diff --git a/.gitignore b/.gitignore index a23406b..2e5e330 100644 --- a/.gitignore +++ b/.gitignore @@ -79,8 +79,14 @@ android/keystores/debug.keystore lib/ # React Native Codegen -ios/generated -android/generated +RustNostrNostrSdkReactNativeFramework.xcframework/ +ios/ +android/ +cpp/ +src/ +!example/ios/ +!example/android/ +!example/src/ # React Native Nitro Modules nitrogen/ diff --git a/RustNostrNostrSdkReactNativeFramework.xcframework/Info.plist b/RustNostrNostrSdkReactNativeFramework.xcframework/Info.plist deleted file mode 100644 index 654f039..0000000 --- a/RustNostrNostrSdkReactNativeFramework.xcframework/Info.plist +++ /dev/null @@ -1,43 +0,0 @@ - - - - - AvailableLibraries - - - BinaryPath - libnostr_sdk_ffi.a - LibraryIdentifier - ios-arm64-simulator - LibraryPath - libnostr_sdk_ffi.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - SupportedPlatformVariant - simulator - - - BinaryPath - libnostr_sdk_ffi.a - LibraryIdentifier - ios-arm64 - LibraryPath - libnostr_sdk_ffi.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - - - CFBundlePackageType - XFWK - XCFrameworkFormatVersion - 1.0 - - diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt deleted file mode 100644 index 61e4cff..0000000 --- a/android/CMakeLists.txt +++ /dev/null @@ -1,77 +0,0 @@ -# Generated by uniffi-bindgen-react-native -cmake_minimum_required(VERSION 3.9.0) -project(NostrSdkReactNative) - -set (CMAKE_VERBOSE_MAKEFILE ON) -set (CMAKE_CXX_STANDARD 17) - -# Resolve the path to the uniffi-bindgen-react-native package -execute_process( - COMMAND node -p "require.resolve('uniffi-bindgen-react-native/package.json')" - OUTPUT_VARIABLE UNIFFI_BINDGEN_PATH - OUTPUT_STRIP_TRAILING_WHITESPACE -) -string(REGEX - REPLACE "/package\\.json$" "" - UNIFFI_BINDGEN_PATH ${UNIFFI_BINDGEN_PATH} -) - -# Specifies a path to native header files. -include_directories( - ../cpp - ../cpp/generated - - ${UNIFFI_BINDGEN_PATH}/cpp/includes -) - -add_library(rust-nostr-nostr-sdk-react-native SHARED - ../cpp/rust-nostr-nostr-sdk-react-native.cpp - ../cpp/generated/nostr_sdk.cpp - cpp-adapter.cpp -) - -# Set C++ compiler flags -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -frtti") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") - -cmake_path( - SET MY_RUST_LIB - ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libnostr_sdk_ffi.a - NORMALIZE -) -add_library(my_rust_lib STATIC IMPORTED) -set_target_properties(my_rust_lib PROPERTIES IMPORTED_LOCATION ${MY_RUST_LIB}) - -# Add ReactAndroid libraries, being careful to account for different versions. -find_package(ReactAndroid REQUIRED CONFIG) -find_library(LOGCAT log) - -# REACTNATIVE_MERGED_SO seems to be only be set in a build.gradle.kt file, -# which we don't use. Thus falling back to version number sniffing. -if (ReactAndroid_VERSION_MINOR GREATER_EQUAL 76) - set(REACTNATIVE_MERGED_SO true) -endif() - -# https://github.com/react-native-community/discussions-and-proposals/discussions/816 -# This if-then-else can be removed once this library does not support version below 0.76 -if (REACTNATIVE_MERGED_SO) - target_link_libraries(rust-nostr-nostr-sdk-react-native ReactAndroid::reactnative) -else() - target_link_libraries(rust-nostr-nostr-sdk-react-native - ReactAndroid::turbomodulejsijni - ReactAndroid::react_nativemodule_core - ) -endif() - -find_package(fbjni REQUIRED CONFIG) -target_link_libraries( - rust-nostr-nostr-sdk-react-native - fbjni::fbjni - ReactAndroid::jsi - ${LOGCAT} - my_rust_lib -) diff --git a/android/build.gradle b/android/build.gradle deleted file mode 100644 index 8deb6d1..0000000 --- a/android/build.gradle +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by uniffi-bindgen-react-native - -buildscript { - // Buildscript is evaluated before everything else so we can't use getExtOrDefault - def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["DummyLibForAndroid_kotlinVersion"] - - repositories { - google() - mavenCentral() - } - - dependencies { - classpath "com.android.tools.build:gradle:7.2.1" - // noinspection DifferentKotlinGradleVersion - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -def reactNativeArchitectures() { - def value = rootProject.getProperties().get("reactNativeArchitectures") - return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"] -} - -def isNewArchitectureEnabled() { - return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true" -} - -apply plugin: "com.android.library" -apply plugin: "kotlin-android" - -if (isNewArchitectureEnabled()) { - apply plugin: "com.facebook.react" -} - -def getExtOrDefault(name) { - return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["NostrSdkReactNative_" + name] -} - -def getExtOrIntegerDefault(name) { - return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["NostrSdkReactNative_" + name]).toInteger() -} - -def supportsNamespace() { - def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.') - def major = parsed[0].toInteger() - def minor = parsed[1].toInteger() - - // Namespace support was added in 7.3.0 - return (major == 7 && minor >= 3) || major >= 8 -} - -android { - if (supportsNamespace()) { - namespace "com.nostrsdkreactnative" - - sourceSets { - main { - manifest.srcFile "src/main/AndroidManifestNew.xml" - } - } - } - - ndkVersion getExtOrDefault("ndkVersion") - compileSdkVersion getExtOrIntegerDefault("compileSdkVersion") - - defaultConfig { - minSdkVersion getExtOrIntegerDefault("minSdkVersion") - targetSdkVersion getExtOrIntegerDefault("targetSdkVersion") - buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() - - buildFeatures { - prefab true - } - externalNativeBuild { - cmake { - arguments '-DANDROID_STL=c++_shared' - abiFilters (*reactNativeArchitectures()) - } - } - ndk { - abiFilters "arm64-v8a", "armeabi-v7a", "x86", "x86_64" - } - } - - externalNativeBuild { - cmake { - path "CMakeLists.txt" - } - } - - buildFeatures { - buildConfig true - } - - buildTypes { - release { - minifyEnabled false - } - } - - lintOptions { - disable "GradleCompatible" - } - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - sourceSets { - main { - if (isNewArchitectureEnabled()) { - java.srcDirs += [ - "generated/java", - "generated/jni" - ] - } - } - } -} - -repositories { - mavenCentral() - google() -} - -def kotlin_version = getExtOrDefault("kotlinVersion") - -dependencies { - // For < 0.71, this will be from the local maven repo - // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin - //noinspection GradleDynamicVersion - implementation "com.facebook.react:react-native:+" - implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" -} - -if (isNewArchitectureEnabled()) { - react { - jsRootDir = file("../src/") - libraryName = "NostrSdkReactNative" - codegenJavaPackageName = "com.nostrsdkreactnative" - } -} diff --git a/android/cpp-adapter.cpp b/android/cpp-adapter.cpp deleted file mode 100644 index 5c9fddf..0000000 --- a/android/cpp-adapter.cpp +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by uniffi-bindgen-react-native -#include -#include -#include -#include "rust-nostr-nostr-sdk-react-native.h" - -namespace jsi = facebook::jsi; -namespace react = facebook::react; - -// Automated testing checks Java_com_nostrsdkreactnative_NostrSdkReactNativeModule and rustnostr_nostrsdkreactnative -// by comparing the whole line here. -/* -Java_com_nostrsdkreactnative_NostrSdkReactNativeModule_nativeMultiply(JNIEnv *env, jclass type, jdouble a, jdouble b) { - return rustnostr_nostrsdkreactnative::multiply(a, b); -} -*/ - -// Installer coming from NostrSdkReactNativeModule -extern "C" -JNIEXPORT jboolean JNICALL -Java_com_nostrsdkreactnative_NostrSdkReactNativeModule_nativeInstallRustCrate( - JNIEnv *env, - jclass type, - jlong rtPtr, - jobject callInvokerHolderJavaObj -) { - // https://github.com/realm/realm-js/blob/main/packages/realm/binding/android/src/main/cpp/io_realm_react_RealmReactModule.cpp#L122-L145 - // React Native uses the fbjni library for handling JNI, which has the concept of "hybrid objects", - // which are Java objects containing a pointer to a C++ object. The CallInvokerHolder, which has the - // invokeAsync method we want access to, is one such hybrid object. - // Rather than reworking our code to use fbjni throughout, this code unpacks the C++ object from the Java - // object `callInvokerHolderJavaObj` manually, based on reverse engineering the fbjni code. - - // 1. Get the Java object referred to by the mHybridData field of the Java holder object - auto callInvokerHolderClass = env->GetObjectClass(callInvokerHolderJavaObj); - auto hybridDataField = env->GetFieldID(callInvokerHolderClass, "mHybridData", "Lcom/facebook/jni/HybridData;"); - auto hybridDataObj = env->GetObjectField(callInvokerHolderJavaObj, hybridDataField); - - // 2. Get the destructor Java object referred to by the mDestructor field from the myHybridData Java object - auto hybridDataClass = env->FindClass("com/facebook/jni/HybridData"); - auto destructorField = - env->GetFieldID(hybridDataClass, "mDestructor", "Lcom/facebook/jni/HybridData$Destructor;"); - auto destructorObj = env->GetObjectField(hybridDataObj, destructorField); - - // 3. Get the mNativePointer field from the mDestructor Java object - auto destructorClass = env->FindClass("com/facebook/jni/HybridData$Destructor"); - auto nativePointerField = env->GetFieldID(destructorClass, "mNativePointer", "J"); - auto nativePointerValue = env->GetLongField(destructorObj, nativePointerField); - - // 4. Cast the mNativePointer back to its C++ type - auto nativePointer = reinterpret_cast(nativePointerValue); - auto jsCallInvoker = nativePointer->getCallInvoker(); - - auto runtime = reinterpret_cast(rtPtr); - return rustnostr_nostrsdkreactnative::installRustCrate(*runtime, jsCallInvoker); -} - -extern "C" -JNIEXPORT jboolean JNICALL -Java_com_nostrsdkreactnative_NostrSdkReactNativeModule_nativeCleanupRustCrate(JNIEnv *env, jclass type, jlong rtPtr) { - auto runtime = reinterpret_cast(rtPtr); - return rustnostr_nostrsdkreactnative::cleanupRustCrate(*runtime); -} \ No newline at end of file diff --git a/android/gradle.properties b/android/gradle.properties deleted file mode 100644 index 4726a1f..0000000 --- a/android/gradle.properties +++ /dev/null @@ -1,5 +0,0 @@ -NostrSdkReactNative_kotlinVersion=2.0.21 -NostrSdkReactNative_minSdkVersion=24 -NostrSdkReactNative_targetSdkVersion=34 -NostrSdkReactNative_compileSdkVersion=35 -NostrSdkReactNative_ndkVersion=27.1.12297006 diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml deleted file mode 100644 index 13a360c..0000000 --- a/android/src/main/AndroidManifest.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/android/src/main/AndroidManifestNew.xml b/android/src/main/AndroidManifestNew.xml deleted file mode 100644 index a2f47b6..0000000 --- a/android/src/main/AndroidManifestNew.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/android/src/main/java/com/nostrsdkreactnative/NostrSdkReactNativeModule.kt b/android/src/main/java/com/nostrsdkreactnative/NostrSdkReactNativeModule.kt deleted file mode 100644 index d472770..0000000 --- a/android/src/main/java/com/nostrsdkreactnative/NostrSdkReactNativeModule.kt +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by uniffi-bindgen-react-native -package com.nostrsdkreactnative - -import com.facebook.react.bridge.ReactApplicationContext -import com.facebook.react.module.annotations.ReactModule -import com.facebook.react.turbomodule.core.interfaces.CallInvokerHolder - -@ReactModule(name = NostrSdkReactNativeModule.NAME) -class NostrSdkReactNativeModule(reactContext: ReactApplicationContext) : - NativeNostrSdkReactNativeSpec(reactContext) { - - override fun getName(): String { - return NAME - } - - // Two native methods implemented in cpp-adapter.cpp, and ultimately - // rust-nostr-nostr-sdk-react-native.cpp - - external fun nativeInstallRustCrate(runtimePointer: Long, callInvoker: CallInvokerHolder): Boolean - external fun nativeCleanupRustCrate(runtimePointer: Long): Boolean - - override fun installRustCrate(): Boolean { - val context = this.reactApplicationContext - return nativeInstallRustCrate( - context.javaScriptContextHolder!!.get(), - context.jsCallInvokerHolder!! - ) - } - - override fun cleanupRustCrate(): Boolean { - return nativeCleanupRustCrate( - this.reactApplicationContext.javaScriptContextHolder!!.get() - ) - } - - companion object { - const val NAME = "NostrSdkReactNative" - - init { - System.loadLibrary("rust-nostr-nostr-sdk-react-native") - } - } -} \ No newline at end of file diff --git a/android/src/main/java/com/nostrsdkreactnative/NostrSdkReactNativePackage.kt b/android/src/main/java/com/nostrsdkreactnative/NostrSdkReactNativePackage.kt deleted file mode 100644 index 066b1f5..0000000 --- a/android/src/main/java/com/nostrsdkreactnative/NostrSdkReactNativePackage.kt +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by uniffi-bindgen-react-native -package com.nostrsdkreactnative - -import com.facebook.react.TurboReactPackage -import com.facebook.react.bridge.NativeModule -import com.facebook.react.bridge.ReactApplicationContext -import com.facebook.react.module.model.ReactModuleInfo -import com.facebook.react.module.model.ReactModuleInfoProvider -import java.util.HashMap - -class NostrSdkReactNativePackage : TurboReactPackage() { - override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? { - return if (name == NostrSdkReactNativeModule.NAME) { - NostrSdkReactNativeModule(reactContext) - } else { - null - } - } - - override fun getReactModuleInfoProvider(): ReactModuleInfoProvider { - return ReactModuleInfoProvider { - val moduleInfos: MutableMap = HashMap() - moduleInfos[NostrSdkReactNativeModule.NAME] = ReactModuleInfo( - NostrSdkReactNativeModule.NAME, - NostrSdkReactNativeModule.NAME, - false, // canOverrideExistingModule - false, // needsEagerInit - false, // isCxxModule - true // isTurboModule - ) - moduleInfos - } - } -} \ No newline at end of file diff --git a/cpp/generated/nostr_sdk.cpp b/cpp/generated/nostr_sdk.cpp deleted file mode 100644 index 1e2c04a..0000000 --- a/cpp/generated/nostr_sdk.cpp +++ /dev/null @@ -1,43617 +0,0 @@ -// This file was autogenerated by some hot garbage in the -// `uniffi-bindgen-react-native` crate. Trust me, you don't want to mess with -// it! -#include "nostr_sdk.hpp" - -#include "UniffiJsiTypes.h" -#include -#include -#include -#include -#include - -namespace react = facebook::react; -namespace jsi = facebook::jsi; - -// Calling into Rust. -extern "C" { -typedef void (*UniffiRustFutureContinuationCallback)(uint64_t data, - int8_t poll_result); -typedef void (*UniffiForeignFutureFree)(uint64_t handle); -typedef void (*UniffiCallbackInterfaceFree)(uint64_t handle); -typedef struct UniffiForeignFuture { - uint64_t handle; - UniffiForeignFutureFree free; -} UniffiForeignFuture; -typedef struct UniffiForeignFutureStructU8 { - uint8_t return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructU8; -typedef void (*UniffiForeignFutureCompleteU8)( - uint64_t callback_data, UniffiForeignFutureStructU8 result); -typedef struct UniffiForeignFutureStructI8 { - int8_t return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructI8; -typedef void (*UniffiForeignFutureCompleteI8)( - uint64_t callback_data, UniffiForeignFutureStructI8 result); -typedef struct UniffiForeignFutureStructU16 { - uint16_t return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructU16; -typedef void (*UniffiForeignFutureCompleteU16)( - uint64_t callback_data, UniffiForeignFutureStructU16 result); -typedef struct UniffiForeignFutureStructI16 { - int16_t return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructI16; -typedef void (*UniffiForeignFutureCompleteI16)( - uint64_t callback_data, UniffiForeignFutureStructI16 result); -typedef struct UniffiForeignFutureStructU32 { - uint32_t return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructU32; -typedef void (*UniffiForeignFutureCompleteU32)( - uint64_t callback_data, UniffiForeignFutureStructU32 result); -typedef struct UniffiForeignFutureStructI32 { - int32_t return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructI32; -typedef void (*UniffiForeignFutureCompleteI32)( - uint64_t callback_data, UniffiForeignFutureStructI32 result); -typedef struct UniffiForeignFutureStructU64 { - uint64_t return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructU64; -typedef void (*UniffiForeignFutureCompleteU64)( - uint64_t callback_data, UniffiForeignFutureStructU64 result); -typedef struct UniffiForeignFutureStructI64 { - int64_t return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructI64; -typedef void (*UniffiForeignFutureCompleteI64)( - uint64_t callback_data, UniffiForeignFutureStructI64 result); -typedef struct UniffiForeignFutureStructF32 { - float return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructF32; -typedef void (*UniffiForeignFutureCompleteF32)( - uint64_t callback_data, UniffiForeignFutureStructF32 result); -typedef struct UniffiForeignFutureStructF64 { - double return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructF64; -typedef void (*UniffiForeignFutureCompleteF64)( - uint64_t callback_data, UniffiForeignFutureStructF64 result); -typedef struct UniffiForeignFutureStructPointer { - void *return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructPointer; -typedef void (*UniffiForeignFutureCompletePointer)( - uint64_t callback_data, UniffiForeignFutureStructPointer result); -typedef struct UniffiForeignFutureStructRustBuffer { - RustBuffer return_value; - RustCallStatus call_status; -} UniffiForeignFutureStructRustBuffer; -typedef void (*UniffiForeignFutureCompleteRustBuffer)( - uint64_t callback_data, UniffiForeignFutureStructRustBuffer result); -typedef struct UniffiForeignFutureStructVoid { - RustCallStatus call_status; -} UniffiForeignFutureStructVoid; -typedef void (*UniffiForeignFutureCompleteVoid)( - uint64_t callback_data, UniffiForeignFutureStructVoid result); -typedef void (*UniffiCallbackInterfaceAdmitPolicyMethod0)( - uint64_t uniffi_handle, RustBuffer relay_url, RustBuffer subscription_id, - void *event, UniffiForeignFutureCompleteRustBuffer uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceCustomNostrSignerMethod0)( - uint64_t uniffi_handle, RustBuffer *uniffi_out_return, - RustCallStatus *rust_call_status); -typedef void (*UniffiCallbackInterfaceCustomNostrSignerMethod1)( - uint64_t uniffi_handle, - UniffiForeignFutureCompleteRustBuffer uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceCustomNostrSignerMethod2)( - uint64_t uniffi_handle, void *unsigned_event, - UniffiForeignFutureCompleteRustBuffer uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceCustomNostrSignerMethod3)( - uint64_t uniffi_handle, void *public_key, RustBuffer content, - UniffiForeignFutureCompleteRustBuffer uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceCustomNostrSignerMethod4)( - uint64_t uniffi_handle, void *public_key, RustBuffer encrypted_content, - UniffiForeignFutureCompleteRustBuffer uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceCustomNostrSignerMethod5)( - uint64_t uniffi_handle, void *public_key, RustBuffer content, - UniffiForeignFutureCompleteRustBuffer uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceCustomNostrSignerMethod6)( - uint64_t uniffi_handle, void *public_key, RustBuffer payload, - UniffiForeignFutureCompleteRustBuffer uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceCustomWebSocketTransportMethod0)( - uint64_t uniffi_handle, int8_t *uniffi_out_return, - RustCallStatus *rust_call_status); -typedef void (*UniffiCallbackInterfaceCustomWebSocketTransportMethod1)( - uint64_t uniffi_handle, RustBuffer url, RustBuffer mode, RustBuffer timeout, - UniffiForeignFutureCompleteRustBuffer uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceHandleNotificationMethod0)( - uint64_t uniffi_handle, RustBuffer relay_url, void *msg, - UniffiForeignFutureCompleteVoid uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceHandleNotificationMethod1)( - uint64_t uniffi_handle, RustBuffer relay_url, RustBuffer subscription_id, - void *event, UniffiForeignFutureCompleteVoid uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceWebSocketAdapterMethod0)( - uint64_t uniffi_handle, RustBuffer msg, - UniffiForeignFutureCompleteVoid uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceWebSocketAdapterMethod1)( - uint64_t uniffi_handle, - UniffiForeignFutureCompleteRustBuffer uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef void (*UniffiCallbackInterfaceWebSocketAdapterMethod2)( - uint64_t uniffi_handle, - UniffiForeignFutureCompleteVoid uniffi_future_callback, - uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return); -typedef struct UniffiVTableCallbackInterfaceAdmitPolicy { - UniffiCallbackInterfaceAdmitPolicyMethod0 admit_event; - UniffiCallbackInterfaceFree uniffi_free; -} UniffiVTableCallbackInterfaceAdmitPolicy; -typedef struct UniffiVTableCallbackInterfaceCustomNostrSigner { - UniffiCallbackInterfaceCustomNostrSignerMethod0 backend; - UniffiCallbackInterfaceCustomNostrSignerMethod1 get_public_key; - UniffiCallbackInterfaceCustomNostrSignerMethod2 sign_event; - UniffiCallbackInterfaceCustomNostrSignerMethod3 nip04_encrypt; - UniffiCallbackInterfaceCustomNostrSignerMethod4 nip04_decrypt; - UniffiCallbackInterfaceCustomNostrSignerMethod5 nip44_encrypt; - UniffiCallbackInterfaceCustomNostrSignerMethod6 nip44_decrypt; - UniffiCallbackInterfaceFree uniffi_free; -} UniffiVTableCallbackInterfaceCustomNostrSigner; -typedef struct UniffiVTableCallbackInterfaceCustomWebSocketTransport { - UniffiCallbackInterfaceCustomWebSocketTransportMethod0 support_ping; - UniffiCallbackInterfaceCustomWebSocketTransportMethod1 connect; - UniffiCallbackInterfaceFree uniffi_free; -} UniffiVTableCallbackInterfaceCustomWebSocketTransport; -typedef struct UniffiVTableCallbackInterfaceHandleNotification { - UniffiCallbackInterfaceHandleNotificationMethod0 handle_msg; - UniffiCallbackInterfaceHandleNotificationMethod1 handle; - UniffiCallbackInterfaceFree uniffi_free; -} UniffiVTableCallbackInterfaceHandleNotification; -typedef struct UniffiVTableCallbackInterfaceWebSocketAdapter { - UniffiCallbackInterfaceWebSocketAdapterMethod0 send; - UniffiCallbackInterfaceWebSocketAdapterMethod1 recv; - UniffiCallbackInterfaceWebSocketAdapterMethod2 close_connection; - UniffiCallbackInterfaceFree uniffi_free; -} UniffiVTableCallbackInterfaceWebSocketAdapter; -void *uniffi_nostr_sdk_ffi_fn_clone_admitpolicy(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_admitpolicy(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_init_callback_vtable_admitpolicy( - UniffiVTableCallbackInterfaceAdmitPolicy *vtable); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_admitpolicy_admit_event( - void *ptr, RustBuffer relay_url, RustBuffer subscription_id, void *event); -void *uniffi_nostr_sdk_ffi_fn_clone_client(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_client(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_client_new(RustBuffer signer, - RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_add_discovery_relay(void *ptr, - RustBuffer url); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_add_read_relay(void *ptr, RustBuffer url); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_add_relay(void *ptr, RustBuffer url); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_add_relay_with_opts( - void *ptr, RustBuffer url, void *opts); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_add_write_relay(void *ptr, - RustBuffer url); -void uniffi_nostr_sdk_ffi_fn_method_client_automatic_authentication( - void *ptr, int8_t enable, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_connect(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_connect_relay(void *ptr, RustBuffer url); -void * -uniffi_nostr_sdk_ffi_fn_method_client_database(void *ptr, - RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_disconnect(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_disconnect_relay(void *ptr, - RustBuffer url); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_fetch_combined_events( - void *ptr, void *filter, RustBuffer timeout); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_fetch_events(void *ptr, void *filter, - RustBuffer timeout); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_fetch_events_from( - void *ptr, RustBuffer urls, void *filter, RustBuffer timeout); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_fetch_metadata( - void *ptr, void *public_key, RustBuffer timeout); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_force_remove_all_relays(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_force_remove_relay(void *ptr, - RustBuffer url); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap( - void *ptr, void *receiver, void *rumor, RustBuffer extra_tags); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap_to(void *ptr, RustBuffer urls, - void *receiver, void *rumor, - RustBuffer extra_tags); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_handle_notifications(void *ptr, - void *handler); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_relay(void *ptr, - RustBuffer url); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_relays(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_remove_all_relays(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_remove_relay(void *ptr, RustBuffer url); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_send_event(void *ptr, void *event); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder(void *ptr, - void *builder); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder_to( - void *ptr, RustBuffer urls, void *builder); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_send_event_to(void *ptr, RustBuffer urls, - void *event); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_send_msg_to(void *ptr, RustBuffer urls, - void *msg); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg( - void *ptr, void *receiver, RustBuffer message, RustBuffer rumor_extra_tags); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg_to( - void *ptr, RustBuffer urls, void *receiver, RustBuffer message, - RustBuffer rumor_extra_tags); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_set_metadata(void *ptr, void *metadata); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_shutdown(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_sign_event_builder(void *ptr, - void *builder); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_signer(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_subscribe(void *ptr, void *filter, - RustBuffer opts); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_subscribe_to( - void *ptr, RustBuffer urls, void *filter, RustBuffer opts); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id( - void *ptr, RustBuffer id, void *filter, RustBuffer opts); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id_to( - void *ptr, RustBuffer urls, RustBuffer id, void *filter, RustBuffer opts); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_subscription(void *ptr, RustBuffer id); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_subscriptions(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_sync(void *ptr, void *filter, void *opts); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_try_connect(void *ptr, - RustBuffer timeout); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe(void *ptr, - RustBuffer subscription_id); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe_all(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_unwrap_gift_wrap(void *ptr, - void *gift_wrap); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_client_wait_for_connection(void *ptr, - RustBuffer timeout); -void * -uniffi_nostr_sdk_ffi_fn_clone_clientbuilder(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_clientbuilder(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_clientbuilder_new( - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_clientbuilder_admit_policy( - void *ptr, void *policy, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_clientbuilder_build( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_clientbuilder_database( - void *ptr, void *database, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_clientbuilder_opts( - void *ptr, void *opts, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_clientbuilder_signer( - void *ptr, void *signer, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_clientbuilder_websocket_transport( - void *ptr, void *transport, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_clientmessage(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_clientmessage(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_auth( - void *event, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_close( - RustBuffer subscription_id, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_count( - RustBuffer subscription_id, void *filter, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_event( - void *event, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_enum( - RustBuffer e, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_json( - RustBuffer json, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_req( - RustBuffer subscription_id, void *filter, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_enum( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_json( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_connection(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_connection(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_connection_new( - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_connection_addr(void *ptr, RustBuffer addr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_connection_mode(void *ptr, RustBuffer mode, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_connection_target( - void *ptr, RustBuffer target, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_coordinate(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_coordinate(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_coordinate_new( - void *kind, void *public_key, RustBuffer identifier, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_coordinate_parse( - RustBuffer coordinate, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_coordinate_identifier( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_coordinate_kind(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_coordinate_public_key( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_coordinate_verify( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_display( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_customnostrsigner(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_customnostrsigner( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customnostrsigner( - UniffiVTableCallbackInterfaceCustomNostrSigner *vtable); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_backend( - void *ptr, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_get_public_key(void *ptr); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_sign_event( - void *ptr, void *unsigned_event); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_encrypt( - void *ptr, void *public_key, RustBuffer content); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_decrypt( - void *ptr, void *public_key, RustBuffer encrypted_content); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_encrypt( - void *ptr, void *public_key, RustBuffer content); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_decrypt( - void *ptr, void *public_key, RustBuffer payload); -void *uniffi_nostr_sdk_ffi_fn_clone_customwebsockettransport( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_customwebsockettransport( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customwebsockettransport( - UniffiVTableCallbackInterfaceCustomWebSocketTransport *vtable); -int8_t uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_support_ping( - void *ptr, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_connect( - void *ptr, RustBuffer url, RustBuffer mode, RustBuffer timeout); -void *uniffi_nostr_sdk_ffi_fn_clone_encryptedsecretkey( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_encryptedsecretkey( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_from_bech32( - RustBuffer bech32, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_new( - void *secret_key, RustBuffer password, uint8_t log_n, - RustBuffer key_security, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_decrypt( - void *ptr, RustBuffer password, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_key_security( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_to_bech32( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_version( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_event(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_event(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_event_from_json( - RustBuffer json, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_event_as_json(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_event_as_pretty_json( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_event_author(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_event_content(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_event_created_at(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_event_id(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_event_is_expired(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_event_is_protected( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_event_kind(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_event_signature(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_event_tags(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_event_verify(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_event_verify_id(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_event_verify_signature( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_eventbuilder(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_eventbuilder(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_articles_curation_set( - RustBuffer identifier, RustBuffer list, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_auth( - RustBuffer challenge, RustBuffer relay_url, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_award_badge( - void *badge_definition, RustBuffer awarded_public_keys, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_blocked_relays( - RustBuffer relay, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks( - RustBuffer list, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks_set( - RustBuffer identifier, RustBuffer list, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel( - void *metadata, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_metadata( - void *channel_id, void *metadata, RustBuffer relay_url, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_msg( - void *channel_id, RustBuffer relay_url, RustBuffer content, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_comment( - RustBuffer content, void *comment_to, RustBuffer root, RustBuffer relay_url, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_communities( - RustBuffer communities, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_contact_list( - RustBuffer contacts, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_define_badge( - RustBuffer badge_id, RustBuffer name, RustBuffer description, - RustBuffer image, RustBuffer image_dimensions, RustBuffer thumbnails, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_delete( - RustBuffer request, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emoji_set( - RustBuffer identifier, RustBuffer emojis, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emojis( - RustBuffer list, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_file_metadata( - RustBuffer description, void *metadata, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_follow_set( - RustBuffer identifier, RustBuffer public_keys, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_issue( - RustBuffer issue, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_patch( - RustBuffer patch, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_repository_announcement( - RustBuffer data, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_hide_channel_msg( - void *message_id, RustBuffer reason, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_http_auth( - RustBuffer data, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interest_set( - RustBuffer identifier, RustBuffer hashtags, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interests( - RustBuffer list, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_feedback( - void *data, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_request( - void *kind, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_result( - void *job_request, RustBuffer payload, uint64_t millisats, - RustBuffer bolt11, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_label( - RustBuffer label_namespace, RustBuffer labels, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event( - RustBuffer live_event, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event_msg( - RustBuffer live_event_id, void *live_event_host, RustBuffer content, - RustBuffer relay_url, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_long_form_text_note( - RustBuffer content, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_metadata( - void *metadata, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_channel_user( - void *public_key, RustBuffer reason, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_list( - RustBuffer list, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_new( - void *kind, RustBuffer content, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_nostr_connect( - void *sender_keys, void *receiver_pubkey, RustBuffer msg, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_pinned_notes( - RustBuffer ids, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_private_msg_rumor( - void *receiver, RustBuffer message, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_product_data( - RustBuffer data, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_profile_badges( - RustBuffer badge_definitions, RustBuffer badge_awards, void *pubkey_awarded, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_chats( - RustBuffer chat, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_zap_request( - void *data, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction( - void *event, RustBuffer reaction, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction_extended( - void *event_id, void *public_key, RustBuffer reaction, RustBuffer kind, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_list( - RustBuffer map, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_set( - RustBuffer identifier, RustBuffer relays, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_report( - RustBuffer tags, RustBuffer content, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_repost( - void *event, RustBuffer relay_url, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_seal( - void *signer, void *receiver_public_key, void *rumor); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_search_relays( - RustBuffer relay, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_stall_data( - void *data, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note( - RustBuffer content, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note_reply( - RustBuffer content, void *reply_to, RustBuffer root, RustBuffer relay_url, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_videos_curation_set( - RustBuffer identifier, RustBuffer video, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_zap_receipt( - RustBuffer bolt11, RustBuffer preimage, void *zap_request, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_eventbuilder_allow_self_tagging( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_eventbuilder_build( - void *ptr, void *public_key, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_eventbuilder_custom_created_at( - void *ptr, void *created_at, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_eventbuilder_dedup_tags( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_eventbuilder_pow(void *ptr, uint8_t difficulty, - RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign(void *ptr, void *signer); -void *uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign_with_keys( - void *ptr, void *keys, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_eventbuilder_tags( - void *ptr, RustBuffer tags, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_eventid(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_eventid(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventid_from_bytes( - RustBuffer bytes, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventid_new( - void *public_key, void *created_at, void *kind, void *tags, - RustBuffer content, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_eventid_parse( - RustBuffer id, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_eventid_as_bytes(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_eventid_to_bech32( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_eventid_to_hex(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_eventid_to_nostr_uri( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_events(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_events(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_events_contains(void *ptr, void *event, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_events_first(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_events_is_empty(void *ptr, - RustCallStatus *uniffi_out_err); -uint64_t -uniffi_nostr_sdk_ffi_fn_method_events_len(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_events_merge(void *ptr, void *other, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_events_to_vec(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_filemetadata(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_filemetadata(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_filemetadata_new( - RustBuffer url, RustBuffer mime_type, RustBuffer hash, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filemetadata_aes_256_gcm( - void *ptr, RustBuffer key, RustBuffer iv, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filemetadata_blurhash( - void *ptr, RustBuffer blurhash, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filemetadata_dimensions( - void *ptr, RustBuffer dim, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filemetadata_magnet( - void *ptr, RustBuffer magnet, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filemetadata_size( - void *ptr, uint64_t size, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_filter(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_filter(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_filter_from_json( - RustBuffer json, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_filter_from_record( - RustBuffer record, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_filter_new(RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_filter_as_json(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_filter_as_record(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_author(void *ptr, void *author, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_authors(void *ptr, RustBuffer authors, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_coordinate( - void *ptr, void *coordinate, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_coordinates( - void *ptr, RustBuffer coordinates, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_custom_tag( - void *ptr, void *tag, RustBuffer content, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_custom_tags( - void *ptr, void *tag, RustBuffer contents, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_event(void *ptr, void *event_id, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_events(void *ptr, RustBuffer ids, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_hashtag(void *ptr, RustBuffer hashtag, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_hashtags(void *ptr, RustBuffer hashtags, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_id(void *ptr, void *id, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_identifier( - void *ptr, RustBuffer identifier, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_identifiers( - void *ptr, RustBuffer identifiers, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_ids(void *ptr, RustBuffer ids, - RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_filter_is_empty(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_kind(void *ptr, void *kind, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_kinds(void *ptr, RustBuffer kinds, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_limit(void *ptr, uint64_t limit, - RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_filter_match_event( - void *ptr, void *event, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_pubkey(void *ptr, void *pubkey, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_pubkeys(void *ptr, RustBuffer pubkeys, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_reference(void *ptr, RustBuffer reference, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_references( - void *ptr, RustBuffer references, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_authors( - void *ptr, RustBuffer authors, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_coordinates( - void *ptr, RustBuffer coordinates, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_custom_tags( - void *ptr, void *tag, RustBuffer contents, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_events( - void *ptr, RustBuffer ids, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_hashtags( - void *ptr, RustBuffer hashtags, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_identifiers( - void *ptr, RustBuffer identifiers, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_ids( - void *ptr, RustBuffer ids, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_kinds( - void *ptr, RustBuffer kinds, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_limit( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_pubkeys( - void *ptr, RustBuffer pubkeys, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_references( - void *ptr, RustBuffer references, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_search( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_since( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_filter_remove_until( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_search(void *ptr, RustBuffer text, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_since(void *ptr, void *timestamp, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_filter_until(void *ptr, void *timestamp, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_handlenotification( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_handlenotification( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_init_callback_vtable_handlenotification( - UniffiVTableCallbackInterfaceHandleNotification *vtable); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle_msg( - void *ptr, RustBuffer relay_url, void *msg); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle( - void *ptr, RustBuffer relay_url, RustBuffer subscription_id, void *event); -void * -uniffi_nostr_sdk_ffi_fn_clone_jobfeedbackdata(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_jobfeedbackdata( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_jobfeedbackdata_new( - void *job_request, RustBuffer status, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_amount( - void *ptr, uint64_t millisats, RustBuffer bolt11, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_extra_info( - void *ptr, RustBuffer info, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_payload( - void *ptr, RustBuffer payload, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_keys(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_keys(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_keys_from_mnemonic( - RustBuffer mnemonic, RustBuffer passphrase, RustBuffer account, - RustBuffer typ, RustBuffer index, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_keys_generate( - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_keys_new(void *secret_key, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_keys_parse(RustBuffer secret_key, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_keys_public_key(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_keys_secret_key(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_keys_sign_schnorr( - void *ptr, RustBuffer message, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_kind(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_kind(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_kind_from_std( - RustBuffer e, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_kind_new(uint16_t kind, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_kind_as_std(void *ptr, - RustCallStatus *uniffi_out_err); -uint16_t -uniffi_nostr_sdk_ffi_fn_method_kind_as_u16(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_kind_is_addressable( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_kind_is_ephemeral( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_kind_is_job_request( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_kind_is_job_result( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_kind_is_regular(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_kind_is_replaceable( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_display( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_metadata(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_metadata(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_json( - RustBuffer json, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_record( - RustBuffer r, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_metadata_new( - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_metadata_as_json(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_as_pretty_json( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_as_record( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_get_about( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_get_banner( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_get_custom_field( - void *ptr, RustBuffer key, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_get_display_name( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud06( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud16( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_get_name( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_get_nip05( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_get_picture( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_get_website( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_metadata_set_about( - void *ptr, RustBuffer about, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_metadata_set_banner( - void *ptr, RustBuffer banner, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_metadata_set_custom_field( - void *ptr, RustBuffer key, RustBuffer value, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_metadata_set_display_name( - void *ptr, RustBuffer display_name, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud06( - void *ptr, RustBuffer lud06, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud16( - void *ptr, RustBuffer lud16, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_metadata_set_name( - void *ptr, RustBuffer name, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_metadata_set_nip05( - void *ptr, RustBuffer nip05, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_metadata_set_picture( - void *ptr, RustBuffer picture, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_metadata_set_website( - void *ptr, RustBuffer website, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_nwc(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nwc(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_nwc_new(void *uri, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nwc_with_opts( - void *uri, void *opts, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nwc_get_balance(void *ptr); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nwc_get_info(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nwc_list_transactions(void *ptr, - RustBuffer params); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nwc_lookup_invoice(void *ptr, RustBuffer params); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nwc_make_invoice(void *ptr, RustBuffer params); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nwc_pay_invoice(void *ptr, RustBuffer params); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nwc_pay_keysend(void *ptr, RustBuffer params); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nwc_status(void *ptr); -void * -uniffi_nostr_sdk_ffi_fn_clone_nip05profile(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nip05profile(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip05profile_nip46( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nip05profile_public_key( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip05profile_relays( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_nip19(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nip19(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19_from_bech32( - RustBuffer bech32, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_nip19_as_enum(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_nip19coordinate(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nip19coordinate( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_bech32( - RustBuffer bech32, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_nostr_uri( - RustBuffer uri, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_new( - void *coordinate, RustBuffer relays, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_coordinate( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_relays( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_bech32( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_nostr_uri( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_nip19event(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nip19event(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_bech32( - RustBuffer bech32, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_event( - void *event, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_nostr_uri( - RustBuffer uri, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19event_new( - void *event_id, RustBuffer author, RustBuffer kind, RustBuffer relays, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19event_author( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nip19event_event_id( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_nip19event_kind(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19event_relays( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19event_to_bech32( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19event_to_nostr_uri( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_nip19profile(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nip19profile(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_bech32( - RustBuffer bech32, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_nostr_uri( - RustBuffer uri, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_new( - void *public_key, RustBuffer relays, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nip19profile_public_key( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19profile_relays( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_bech32( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_nostr_uri( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_nip21(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nip21(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_nip21_parse(RustBuffer uri, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_nip21_as_enum(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip21_to_nostr_uri( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_nostrconnect(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nostrconnect(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nostrconnect_new( - void *uri, void *app_keys, RustBuffer timeout, RustBuffer opts, - RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrconnect_bunker_uri(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrconnect_get_public_key(void *ptr); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_decrypt( - void *ptr, void *public_key, RustBuffer encrypted_content); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_encrypt( - void *ptr, void *public_key, RustBuffer content); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_decrypt( - void *ptr, void *public_key, RustBuffer payload); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_encrypt( - void *ptr, void *public_key, RustBuffer content); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nostrconnect_relays( - void *ptr, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrconnect_sign_event(void *ptr, - void *unsigned_event); -void *uniffi_nostr_sdk_ffi_fn_clone_nostrconnectmetadata( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nostrconnectmetadata( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nostrconnectmetadata_new( - RustBuffer name, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_as_json( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_description( - void *ptr, RustBuffer description, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_icons( - void *ptr, RustBuffer icons, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_url( - void *ptr, RustBuffer url, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_nostrconnecturi(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nostrconnecturi( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nostrconnecturi_parse( - RustBuffer uri, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_display( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_nostrdatabase(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nostrdatabase(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nostrdatabase_lmdb( - RustBuffer path, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_count(void *ptr, void *filter); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_delete(void *ptr, void *filter); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_event_by_id(void *ptr, - void *event_id); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_metadata(void *ptr, - void *public_key); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_query(void *ptr, void *filter); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_save_event(void *ptr, void *event); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_wipe(void *ptr); -void *uniffi_nostr_sdk_ffi_fn_clone_nostrsigner(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nostrsigner(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_custom( - void *custom, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_keys( - void *keys, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_nostr_connect( - void *connect, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nostrsigner_backend( - void *ptr, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrsigner_get_public_key(void *ptr); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_decrypt( - void *ptr, void *public_key, RustBuffer encrypted_content); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_encrypt( - void *ptr, void *public_key, RustBuffer content); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_decrypt( - void *ptr, void *public_key, RustBuffer payload); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_encrypt( - void *ptr, void *public_key, RustBuffer content); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_nostrsigner_sign_event(void *ptr, - void *unsigned_event); -void *uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnectoptions( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnectoptions( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnectoptions_new( - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_connection_mode( - void *ptr, RustBuffer mode, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_timeout( - void *ptr, RustBuffer timeout, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnecturi( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnecturi( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_new( - void *public_key, RustBuffer relays, void *random_secret_key, - RustBuffer lud16, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_parse( - RustBuffer uri, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_lud16( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_public_key( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_relays( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_secret( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_options(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_options(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_options_new(RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_options_autoconnect( - void *ptr, int8_t val, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_options_automatic_authentication( - void *ptr, int8_t enabled, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_options_connection( - void *ptr, void *connection, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_options_gossip(void *ptr, int8_t enabled, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_options_max_avg_latency( - void *ptr, RustBuffer max, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_options_relay_limits( - void *ptr, void *limits, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_publickey(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_publickey(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_publickey_from_bytes( - RustBuffer bytes, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_publickey_parse( - RustBuffer public_key, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_publickey_to_bech32( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_publickey_to_hex(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_publickey_to_nostr_uri( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_relay(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_relay(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_method_relay_batch_msg( - void *ptr, RustBuffer msgs, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_method_relay_connect( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relay_connection_mode( - void *ptr, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_relay_count_events(void *ptr, void *filter, - RustBuffer timeout); -void uniffi_nostr_sdk_ffi_fn_method_relay_disconnect( - void *ptr, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_relay_document(void *ptr); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_relay_fetch_events( - void *ptr, void *filter, RustBuffer timeout, RustBuffer policy); -int8_t uniffi_nostr_sdk_ffi_fn_method_relay_is_connected( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relay_opts(void *ptr, - RustCallStatus *uniffi_out_err); -uint64_t -uniffi_nostr_sdk_ffi_fn_method_relay_queue(void *ptr, - RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_relay_send_event(void *ptr, void *event); -void uniffi_nostr_sdk_ffi_fn_method_relay_send_msg( - void *ptr, void *msg, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_relay_stats(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_relay_status(void *ptr, - RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_relay_subscribe(void *ptr, - void *filter, - void *opts); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_relay_subscribe_with_id( - void *ptr, RustBuffer id, void *filter, void *opts); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_relay_subscription(void *ptr, RustBuffer id); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_relay_subscriptions(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_relay_sync(void *ptr, void *filter, void *opts); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_method_relay_sync_with_items( - void *ptr, void *filter, RustBuffer items, void *opts); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_relay_try_connect(void *ptr, RustBuffer timeout); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe(void *ptr, RustBuffer id); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe_all(void *ptr); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_relay_url(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_relayconnectionstats( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_relayconnectionstats( - void *ptr, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_attempts( - void *ptr, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_received( - void *ptr, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_sent( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_connected_at( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_first_connection_timestamp( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_latency( - void *ptr, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success( - void *ptr, RustCallStatus *uniffi_out_err); -double uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success_rate( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_relayinformationdocument( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_relayinformationdocument( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relayinformationdocument_new( - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_contact( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_description( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_fees( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_icon( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_language_tags( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_limitation( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_name( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_payments_url( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_posting_policy( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_pubkey( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_relay_countries( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_retention( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_software( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_supported_nips( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_tags( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_version( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t -uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_relaylimits(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_relaylimits(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_disable( - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_new( - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags( - void *ptr, RustBuffer max_num_tags, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags_per_kind( - void *ptr, void *kind, RustBuffer max_num_tags, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size( - void *ptr, RustBuffer max_size, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size_per_kind( - void *ptr, void *kind, RustBuffer max_size, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relaylimits_message_max_size( - void *ptr, RustBuffer max_size, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_relaymessage(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_relaymessage(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_auth( - RustBuffer challenge, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_closed( - RustBuffer subscription_id, RustBuffer message, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_count( - RustBuffer subscription_id, double count, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_eose( - RustBuffer subscription_id, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_event( - RustBuffer subscription_id, void *event, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_enum( - RustBuffer e, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_json( - RustBuffer json, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_notice( - RustBuffer message, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_ok( - void *event_id, int8_t status, RustBuffer message, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_enum( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_json( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_relayoptions(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_relayoptions(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_relayoptions_new( - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relayoptions_adjust_retry_interval( - void *ptr, int8_t adjust_retry_interval, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relayoptions_connection_mode( - void *ptr, RustBuffer mode, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relayoptions_limits( - void *ptr, void *limits, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relayoptions_max_avg_latency( - void *ptr, RustBuffer max, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relayoptions_ping( - void *ptr, int8_t ping, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relayoptions_read( - void *ptr, int8_t read, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relayoptions_reconnect( - void *ptr, int8_t reconnect, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relayoptions_retry_interval( - void *ptr, RustBuffer interval, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_relayoptions_write( - void *ptr, int8_t write, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_request(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_request(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_request_new( - RustBuffer method, RustBuffer params, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_request_parse( - RustBuffer json, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_request_method(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_request_params(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_response(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_response(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_secretkey(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_secretkey(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_secretkey_from_bytes( - RustBuffer bytes, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_secretkey_generate( - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_secretkey_parse( - RustBuffer secret_key, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_secretkey_encrypt( - void *ptr, RustBuffer password, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_secretkey_to_bech32( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_secretkey_to_hex(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_serverconfig(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_serverconfig(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_shippingmethod(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_shippingmethod( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_shippingmethod_new( - RustBuffer id, double cost, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_shippingmethod_get_shipping_cost( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_shippingmethod_name( - void *ptr, RustBuffer name, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_shippingmethod_regions( - void *ptr, RustBuffer regions, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_singlelettertag(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_singlelettertag( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_lowercase( - RustBuffer character, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_uppercase( - RustBuffer character, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_lowercase( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_uppercase( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_stalldata(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_stalldata(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_json( - RustBuffer json, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_record( - RustBuffer r, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_stalldata_new( - RustBuffer id, RustBuffer name, RustBuffer description, RustBuffer currency, - RustBuffer shipping, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_stalldata_as_json( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_stalldata_as_record( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_stalldata_currency( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_stalldata_description( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_stalldata_id(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_stalldata_name(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_stalldata_shipping( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_subscribeautocloseoptions( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_subscribeautocloseoptions( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_subscribeautocloseoptions_new( - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_exit_policy( - void *ptr, RustBuffer policy, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_idle_timeout( - void *ptr, RustBuffer timeout, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_timeout( - void *ptr, RustBuffer timeout, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_subscribeoptions(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_subscribeoptions( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_subscribeoptions_new( - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_subscribeoptions_close_on( - void *ptr, void *opts, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_syncoptions(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_syncoptions(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_syncoptions_new( - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_syncoptions_direction( - void *ptr, RustBuffer direction, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_syncoptions_dry_run( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_syncoptions_initial_timeout( - void *ptr, RustBuffer timeout, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_tag(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_tag(void *ptr, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_tag_alt(RustBuffer summary, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_tag_client(RustBuffer name, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_coordinate( - void *coordinate, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_custom( - RustBuffer kind, RustBuffer values, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_description( - RustBuffer description, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_tag_event(void *event_id, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_event_report( - void *event_id, RustBuffer report, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_expiration( - void *timestamp, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_from_standardized( - RustBuffer standardized, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_tag_hashtag(RustBuffer hashtag, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_identifier( - RustBuffer identifier, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_image( - RustBuffer url, RustBuffer dimensions, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_tag_parse(RustBuffer data, - RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_tag_pow(uint64_t nonce, uint8_t difficulty, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_protected( - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key( - void *public_key, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key_report( - void *public_key, RustBuffer report, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_reference( - RustBuffer reference, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tag_relay_metadata( - RustBuffer relay_url, RustBuffer metadata, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_tag_title(RustBuffer title, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_tag_as_standardized( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tag_as_vec(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tag_content(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_tag_is_protected(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_tag_is_reply(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_tag_is_root(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tag_kind(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tag_kind_str(void *ptr, - RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_tag_len(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_tag_single_letter_tag( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_tags(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_tags(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tags_from_list( - RustBuffer list, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_tags_from_text( - RustBuffer text, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_constructor_tags_parse(RustBuffer tags, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_coordinates(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_event_ids(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_expiration(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_filter(void *ptr, RustBuffer kind, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_tags_filter_standardized( - void *ptr, RustBuffer kind, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_find(void *ptr, RustBuffer kind, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_tags_find_standardized( - void *ptr, RustBuffer kind, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_first(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_get(void *ptr, uint64_t index, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_hashtags(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_identifier(void *ptr, - RustCallStatus *uniffi_out_err); -int8_t -uniffi_nostr_sdk_ffi_fn_method_tags_is_empty(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_last(void *ptr, - RustCallStatus *uniffi_out_err); -uint64_t -uniffi_nostr_sdk_ffi_fn_method_tags_len(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_public_keys(void *ptr, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_tags_to_vec(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_clone_timestamp(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_timestamp(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_timestamp_from_secs( - uint64_t secs, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_timestamp_now( - RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_timestamp_as_secs( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_timestamp_to_human_datetime( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_unsignedevent(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_unsignedevent(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_unsignedevent_from_json( - RustBuffer json, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_unsignedevent_add_signature( - void *ptr, RustBuffer sig, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_json( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_pretty_json( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_unsignedevent_author( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_unsignedevent_content( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_unsignedevent_created_at( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_method_unsignedevent_id(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_unsignedevent_kind( - void *ptr, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign(void *ptr, void *signer); -void *uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign_with_keys( - void *ptr, void *keys, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_unsignedevent_tags( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_unwrappedgift(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_unwrappedgift(void *ptr, - RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_constructor_unwrappedgift_from_gift_wrap( - void *signer, void *gift_wrap); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_unwrappedgift__none(void *ptr); -void *uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_rumor( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_sender( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_websocketadapter(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_websocketadapter( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_init_callback_vtable_websocketadapter( - UniffiVTableCallbackInterfaceWebSocketAdapter *vtable); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_websocketadapter_send(void *ptr, RustBuffer msg); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_websocketadapter_recv(void *ptr); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_method_websocketadapter_close_connection(void *ptr); -void *uniffi_nostr_sdk_ffi_fn_clone_websocketadapterwrapper( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_websocketadapterwrapper( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_websocketadapterwrapper_new( - void *adapter, RustCallStatus *uniffi_out_err); -void * -uniffi_nostr_sdk_ffi_fn_clone_zaprequestdata(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_free_zaprequestdata( - void *ptr, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_constructor_zaprequestdata_new( - void *public_key, RustBuffer relays, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_amount( - void *ptr, uint64_t amount, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_event_id( - void *ptr, void *event_id, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_lnurl( - void *ptr, RustBuffer lnurl, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_message( - void *ptr, RustBuffer message, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_debug( - void *ptr, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_eq( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_ne( - void *ptr, void *other, RustCallStatus *uniffi_out_err); -uint64_t uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_hash( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_func_create_delegation_tag( - void *delegator_keys, void *delegatee_pubkey, RustBuffer conditions, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_func_decrypt_received_private_zap_message( - void *secret_key, void *private_zap, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_func_decrypt_sent_private_zap_message( - void *secret_key, void *public_key, void *private_zap, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_func_extract_relay_list(void *event, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_func_generate_shared_key( - void *secret_key, void *public_key, RustCallStatus *uniffi_out_err); -uint8_t uniffi_nostr_sdk_ffi_fn_func_get_leading_zero_bits( - RustBuffer bytes, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_func_get_nip05_profile(RustBuffer nip05, - RustBuffer proxy); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_func_get_nip96_server_config(RustBuffer server_url, - RustBuffer proxy); -RustBuffer uniffi_nostr_sdk_ffi_fn_func_get_prefixes_for_difficulty( - uint8_t leading_zero_bits, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_func_gift_wrap(void *signer, void *receiver_pubkey, - void *rumor, RustBuffer extra_tags); -void *uniffi_nostr_sdk_ffi_fn_func_gift_wrap_from_seal( - void *receiver, void *seal, RustBuffer extra_tags, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_func_git_hash_version(RustCallStatus *uniffi_out_err); -void uniffi_nostr_sdk_ffi_fn_func_init_logger(RustBuffer level, - RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_func_make_private_msg(void *signer, void *receiver, - RustBuffer message, - RustBuffer rumor_extra_tags); -RustBuffer -uniffi_nostr_sdk_ffi_fn_func_nip04_decrypt(void *secret_key, void *public_key, - RustBuffer encrypted_content, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_func_nip04_encrypt(void *secret_key, void *public_key, - RustBuffer content, - RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t -uniffi_nostr_sdk_ffi_fn_func_nip11_get_information_document(RustBuffer url, - RustBuffer proxy); -RustBuffer uniffi_nostr_sdk_ffi_fn_func_nip21_extract_from_text( - RustBuffer text, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_func_nip44_decrypt(void *secret_key, void *public_key, - RustBuffer payload, - RustCallStatus *uniffi_out_err); -RustBuffer uniffi_nostr_sdk_ffi_fn_func_nip44_encrypt( - void *secret_key, void *public_key, RustBuffer content, RustBuffer version, - RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_func_nip57_anonymous_zap_request( - void *data, RustCallStatus *uniffi_out_err); -void *uniffi_nostr_sdk_ffi_fn_func_nip57_private_zap_request( - void *data, void *keys, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_func_nip96_upload( - void *signer, void *config, RustBuffer file_data, RustBuffer mime_type, - RustBuffer proxy); -RustBuffer uniffi_nostr_sdk_ffi_fn_func_sign_delegation( - void *delegator_keys, void *delegatee_pk, RustBuffer conditions, - RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_nostr_sdk_ffi_fn_func_tag_kind_to_string(RustBuffer kind, - RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_func_validate_delegation_tag( - RustBuffer delegation_tag, void *delegatee_pubkey, void *event_kind, - uint64_t created_at, RustCallStatus *uniffi_out_err); -int8_t uniffi_nostr_sdk_ffi_fn_func_verify_delegation_signature( - void *delegator_public_key, void *delegatee_public_key, - RustBuffer conditions, RustBuffer signature, - RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t uniffi_nostr_sdk_ffi_fn_func_verify_nip05(void *public_key, - RustBuffer nip05, - RustBuffer proxy); -RustBuffer ffi_nostr_sdk_ffi_rustbuffer_alloc(uint64_t size, - RustCallStatus *uniffi_out_err); -RustBuffer -ffi_nostr_sdk_ffi_rustbuffer_from_bytes(ForeignBytes bytes, - RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rustbuffer_free(RustBuffer buf, - RustCallStatus *uniffi_out_err); -RustBuffer ffi_nostr_sdk_ffi_rustbuffer_reserve(RustBuffer buf, - uint64_t additional, - RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_u8( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_u8( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_u8( - /*handle*/ uint64_t handle); -uint8_t ffi_nostr_sdk_ffi_rust_future_complete_u8( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_i8( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_i8( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_i8( - /*handle*/ uint64_t handle); -int8_t ffi_nostr_sdk_ffi_rust_future_complete_i8( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_u16( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_u16( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_u16( - /*handle*/ uint64_t handle); -uint16_t ffi_nostr_sdk_ffi_rust_future_complete_u16( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_i16( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_i16( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_i16( - /*handle*/ uint64_t handle); -int16_t ffi_nostr_sdk_ffi_rust_future_complete_i16( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_u32( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_u32( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_u32( - /*handle*/ uint64_t handle); -uint32_t ffi_nostr_sdk_ffi_rust_future_complete_u32( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_i32( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_i32( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_i32( - /*handle*/ uint64_t handle); -int32_t ffi_nostr_sdk_ffi_rust_future_complete_i32( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_u64( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_u64( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_u64( - /*handle*/ uint64_t handle); -uint64_t ffi_nostr_sdk_ffi_rust_future_complete_u64( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_i64( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_i64( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_i64( - /*handle*/ uint64_t handle); -int64_t ffi_nostr_sdk_ffi_rust_future_complete_i64( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_f32( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_f32( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_f32( - /*handle*/ uint64_t handle); -float ffi_nostr_sdk_ffi_rust_future_complete_f32( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_f64( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_f64( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_f64( - /*handle*/ uint64_t handle); -double ffi_nostr_sdk_ffi_rust_future_complete_f64( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_pointer( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_pointer( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_pointer( - /*handle*/ uint64_t handle); -void *ffi_nostr_sdk_ffi_rust_future_complete_pointer( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_rust_buffer( - /*handle*/ uint64_t handle); -RustBuffer ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -void ffi_nostr_sdk_ffi_rust_future_poll_void( - /*handle*/ uint64_t handle, UniffiRustFutureContinuationCallback callback, - /*handle*/ uint64_t callback_data); -void ffi_nostr_sdk_ffi_rust_future_cancel_void( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_free_void( - /*handle*/ uint64_t handle); -void ffi_nostr_sdk_ffi_rust_future_complete_void( - /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_create_delegation_tag(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_func_decrypt_received_private_zap_message(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_decrypt_sent_private_zap_message(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_extract_relay_list(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_generate_shared_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_get_leading_zero_bits(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_get_nip05_profile(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_get_nip96_server_config(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_get_prefixes_for_difficulty(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_gift_wrap(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_gift_wrap_from_seal(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_git_hash_version(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_init_logger(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_make_private_msg(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_nip04_decrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_nip04_encrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_nip11_get_information_document(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_nip21_extract_from_text(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_nip44_decrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_nip44_encrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_nip57_anonymous_zap_request(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_nip57_private_zap_request(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_nip96_upload(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_sign_delegation(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_tag_kind_to_string(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_validate_delegation_tag(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_verify_delegation_signature(); -uint16_t uniffi_nostr_sdk_ffi_checksum_func_verify_nip05(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_admitpolicy_admit_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_add_discovery_relay(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_add_read_relay(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_add_relay(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_add_relay_with_opts(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_add_write_relay(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_automatic_authentication(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_connect(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_connect_relay(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_database(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_disconnect(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_disconnect_relay(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_fetch_combined_events(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events_from(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_fetch_metadata(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_all_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_relay(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap_to(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_handle_notifications(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_relay(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_remove_all_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_remove_relay(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_send_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder_to(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_send_event_to(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_send_msg_to(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg_to(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_set_metadata(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_shutdown(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_sign_event_builder(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_signer(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_subscribe(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_to(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id_to(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_subscription(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_subscriptions(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_sync(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_try_connect(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe_all(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_unwrap_gift_wrap(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_client_wait_for_connection(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_admit_policy(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_build(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_database(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_opts(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_signer(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_websocket_transport(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_enum(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_connection_addr(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_connection_mode(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_connection_target(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_coordinate_identifier(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_coordinate_kind(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_coordinate_public_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_coordinate_verify(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_backend(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_get_public_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_sign_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_encrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_decrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_encrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_decrypt(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_support_ping(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_connect(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_decrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_key_security(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_to_bech32(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_version(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_as_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_as_pretty_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_author(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_content(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_created_at(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_id(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_is_expired(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_is_protected(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_kind(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_signature(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_tags(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_verify(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_verify_id(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_event_verify_signature(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_allow_self_tagging(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_build(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_custom_created_at(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_dedup_tags(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_pow(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign_with_keys(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_tags(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventid_as_bytes(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventid_to_bech32(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventid_to_hex(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_eventid_to_nostr_uri(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_events_contains(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_events_first(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_events_is_empty(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_events_len(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_events_merge(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_events_to_vec(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filemetadata_aes_256_gcm(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filemetadata_blurhash(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filemetadata_dimensions(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filemetadata_magnet(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filemetadata_size(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_as_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_as_record(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_author(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_authors(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_coordinate(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_coordinates(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tag(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tags(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_events(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_hashtag(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_hashtags(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_id(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_identifier(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_identifiers(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_ids(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_is_empty(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_kind(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_kinds(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_limit(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_match_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_pubkey(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_pubkeys(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_reference(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_references(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_authors(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_coordinates(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_custom_tags(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_events(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_hashtags(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_identifiers(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_ids(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_kinds(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_limit(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_pubkeys(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_references(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_search(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_since(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_remove_until(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_search(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_since(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_filter_until(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle_msg(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_amount(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_extra_info(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_payload(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_keys_public_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_keys_secret_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_keys_sign_schnorr(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_kind_as_std(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_kind_as_u16(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_kind_is_addressable(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_kind_is_ephemeral(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_request(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_result(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_kind_is_regular(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_kind_is_replaceable(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_as_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_as_pretty_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_as_record(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_get_about(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_get_banner(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_get_custom_field(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_get_display_name(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud06(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud16(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_get_name(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_get_nip05(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_get_picture(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_get_website(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_set_about(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_set_banner(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_set_custom_field(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_set_display_name(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud06(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud16(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_set_name(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_set_nip05(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_set_picture(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_metadata_set_website(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nwc_get_balance(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nwc_get_info(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nwc_list_transactions(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nwc_lookup_invoice(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nwc_make_invoice(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_invoice(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_keysend(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nwc_status(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip05profile_nip46(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip05profile_public_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip05profile_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19_as_enum(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_coordinate(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_bech32(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_nostr_uri(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19event_author(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19event_event_id(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19event_kind(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19event_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_bech32(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_nostr_uri(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19profile_public_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19profile_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_bech32(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_nostr_uri(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip21_as_enum(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nip21_to_nostr_uri(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_bunker_uri(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_get_public_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_decrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_encrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_decrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_encrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_sign_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_as_json(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_description(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_icons(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_url(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_count(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_delete(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_event_by_id(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_metadata(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_query(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_save_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_wipe(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_backend(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_get_public_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_decrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_encrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_decrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_encrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_sign_event(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_connection_mode(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_timeout(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_lud16(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_public_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_secret(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_options_autoconnect(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_options_automatic_authentication(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_options_connection(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_options_gossip(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_options_max_avg_latency(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_options_relay_limits(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_publickey_to_bech32(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_publickey_to_hex(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_publickey_to_nostr_uri(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_batch_msg(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_connect(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_connection_mode(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_count_events(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_disconnect(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_document(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_fetch_events(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_is_connected(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_opts(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_queue(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_send_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_send_msg(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_stats(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_status(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe_with_id(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_subscription(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_subscriptions(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_sync(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_sync_with_items(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_try_connect(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe_all(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relay_url(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_attempts(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_received(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_sent(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_connected_at(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_first_connection_timestamp(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_latency(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success_rate(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_contact(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_description(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_fees(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_icon(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_language_tags(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_limitation(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_name(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_payments_url(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_posting_policy(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_pubkey(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_relay_countries(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_retention(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_software(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_supported_nips(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_tags(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_version(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags_per_kind(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size_per_kind(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relaylimits_message_max_size(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_enum(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_json(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_relayoptions_adjust_retry_interval(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayoptions_connection_mode(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayoptions_limits(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayoptions_max_avg_latency(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayoptions_ping(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayoptions_read(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayoptions_reconnect(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayoptions_retry_interval(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_relayoptions_write(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_request_method(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_request_params(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_secretkey_encrypt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_bech32(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_hex(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_get_shipping_cost(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_name(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_regions(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_lowercase(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_uppercase(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_record(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_stalldata_currency(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_stalldata_description(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_stalldata_id(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_stalldata_name(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_stalldata_shipping(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_exit_policy(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_idle_timeout(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_timeout(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_subscribeoptions_close_on(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_syncoptions_direction(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_syncoptions_dry_run(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_syncoptions_initial_timeout(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tag_as_standardized(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tag_as_vec(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tag_content(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tag_is_protected(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tag_is_reply(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tag_is_root(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tag_kind(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tag_kind_str(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tag_len(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tag_single_letter_tag(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_coordinates(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_event_ids(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_expiration(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_filter(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_filter_standardized(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_find(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_find_standardized(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_first(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_get(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_hashtags(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_identifier(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_is_empty(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_last(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_len(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_public_keys(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_tags_to_vec(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_timestamp_as_secs(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_timestamp_to_human_datetime(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_add_signature(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_pretty_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_author(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_content(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_created_at(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_id(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_kind(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign_with_keys(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_tags(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift__none(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_rumor(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_sender(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_send(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_recv(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_close_connection(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_amount(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_event_id(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_lnurl(); -uint16_t uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_message(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_client_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_clientbuilder_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_auth(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_close(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_count(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_enum(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_req(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_connection_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_parse(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_from_bech32(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_event_from_json(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_articles_curation_set(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_auth(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_award_badge(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_blocked_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks_set(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_metadata(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_msg(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_comment(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_communities(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_contact_list(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_define_badge(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_delete(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emoji_set(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emojis(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_file_metadata(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_follow_set(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_issue(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_patch(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_repository_announcement(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_hide_channel_msg(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_http_auth(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interest_set(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interests(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_feedback(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_request(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_result(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_label(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event_msg(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_long_form_text_note(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_metadata(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_channel_user(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_list(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_nostr_connect(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_pinned_notes(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_private_msg_rumor(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_product_data(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_profile_badges(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_chats(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_zap_request(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction_extended(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_list(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_set(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_report(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_repost(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_seal(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_search_relays(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_stall_data(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note_reply(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_videos_curation_set(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_zap_receipt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventid_from_bytes(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventid_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_eventid_parse(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_filemetadata_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_record(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_filter_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_jobfeedbackdata_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_keys_from_mnemonic(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_keys_generate(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_keys_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_keys_parse(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_kind_from_std(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_kind_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_record(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_metadata_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nwc_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nwc_with_opts(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nip19_from_bech32(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_bech32(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_nostr_uri(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_bech32(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_nostr_uri(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_bech32(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_nostr_uri(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nip21_parse(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnect_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnectmetadata_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnecturi_parse(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nostrdatabase_lmdb(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_custom(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_keys(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_nostr_connect(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnectoptions_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_new(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_parse(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_options_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_publickey_from_bytes(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_publickey_parse(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_relayinformationdocument_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_disable(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_auth(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_closed(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_count(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_eose(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_enum(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_notice(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_ok(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_relayoptions_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_request_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_request_parse(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_from_bytes(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_generate(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_parse(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_shippingmethod_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_lowercase(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_uppercase(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_json(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_record(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_new(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_subscribeautocloseoptions_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_subscribeoptions_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_syncoptions_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_alt(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_client(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_coordinate(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_custom(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_description(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_event(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_event_report(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_expiration(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_from_standardized(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_hashtag(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_identifier(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_image(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_parse(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_pow(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_protected(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key_report(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_reference(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_relay_metadata(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tag_title(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_list(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_text(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_tags_parse(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_from_secs(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_now(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_unsignedevent_from_json(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_unwrappedgift_from_gift_wrap(); -uint16_t -uniffi_nostr_sdk_ffi_checksum_constructor_websocketadapterwrapper_new(); -uint16_t uniffi_nostr_sdk_ffi_checksum_constructor_zaprequestdata_new(); -uint32_t ffi_nostr_sdk_ffi_uniffi_contract_version(); -} - -namespace uniffi::nostr_sdk { -template struct Bridging; - -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template struct Bridging> { - static jsi::Value jsNew(jsi::Runtime &rt) { - auto holder = jsi::Object(rt); - return holder; - } - static T fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &value) { - auto obj = value.asObject(rt); - if (obj.hasProperty(rt, "pointee")) { - auto pointee = obj.getProperty(rt, "pointee"); - return uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, pointee); - } - throw jsi::JSError(rt, - "Expected ReferenceHolder to have a pointee property. " - "This is likely a bug in uniffi-bindgen-react-native"); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static RustBuffer rustbuffer_alloc(int32_t size) { - RustCallStatus status = {UNIFFI_CALL_STATUS_OK}; - return ffi_nostr_sdk_ffi_rustbuffer_alloc(size, &status); - } - - static void rustbuffer_free(RustBuffer buf) { - RustCallStatus status = {UNIFFI_CALL_STATUS_OK}; - ffi_nostr_sdk_ffi_rustbuffer_free(buf, &status); - } - - static RustBuffer rustbuffer_from_bytes(ForeignBytes bytes) { - RustCallStatus status = {UNIFFI_CALL_STATUS_OK}; - return ffi_nostr_sdk_ffi_rustbuffer_from_bytes(bytes, &status); - } - - static RustBuffer fromJs(jsi::Runtime &rt, std::shared_ptr, - const jsi::Value &value) { - try { - auto buffer = - uniffi_jsi::Bridging::value_to_arraybuffer(rt, - value); - auto bytes = ForeignBytes{ - .len = static_cast(buffer.length(rt)), - .data = buffer.data(rt), - }; - - // This buffer is constructed from foreign bytes. Rust scaffolding copies - // the bytes, to make the RustBuffer. - auto buf = rustbuffer_from_bytes(bytes); - // Once it leaves this function, the buffer is immediately passed back - // into Rust, where it's used to deserialize into the Rust versions of the - // arguments. At that point, the copy is destroyed. - return buf; - } catch (const std::logic_error &e) { - throw jsi::JSError(rt, e.what()); - } - } - - static jsi::Value toJs(jsi::Runtime &rt, std::shared_ptr, - RustBuffer buf) { - // We need to make a copy of the bytes from Rust's memory space into - // Javascripts memory space. We need to do this because the two languages - // manages memory very differently: a garbage collector needs to track all - // the memory at runtime, Rust is doing it all closer to compile time. - uint8_t *bytes = new uint8_t[buf.len]; - std::memcpy(bytes, buf.data, buf.len); - - // Construct an ArrayBuffer with copy of the bytes from the RustBuffer. - auto payload = std::make_shared( - uniffi_jsi::CMutableBuffer((uint8_t *)bytes, buf.len)); - auto arrayBuffer = jsi::ArrayBuffer(rt, payload); - - // Once we have a Javascript version, we no longer need the Rust version, so - // we can call into Rust to tell it it's okay to free that memory. - rustbuffer_free(buf); - - // Finally, return the ArrayBuffer. - return uniffi_jsi::Bridging::arraybuffer_to_value( - rt, arrayBuffer); - ; - } -}; - -} // namespace uniffi::nostr_sdk - -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value jsSuccess(jsi::Runtime &rt) { - auto statusObject = jsi::Object(rt); - statusObject.setProperty(rt, "code", jsi::Value(rt, UNIFFI_CALL_STATUS_OK)); - return statusObject; - } - static RustCallStatus rustSuccess(jsi::Runtime &rt) { - return {UNIFFI_CALL_STATUS_OK}; - } - static void copyIntoJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const RustCallStatus status, - const jsi::Value &jsStatus) { - auto statusObject = jsStatus.asObject(rt); - if (status.error_buf.data != nullptr) { - auto rbuf = Bridging::toJs(rt, callInvoker, status.error_buf); - statusObject.setProperty(rt, "errorBuf", rbuf); - } - if (status.code != UNIFFI_CALL_STATUS_OK) { - auto code = - uniffi_jsi::Bridging::toJs(rt, callInvoker, status.code); - statusObject.setProperty(rt, "code", code); - } - } - - static RustCallStatus fromJs(jsi::Runtime &rt, - std::shared_ptr invoker, - const jsi::Value &jsStatus) { - RustCallStatus status; - auto statusObject = jsStatus.asObject(rt); - if (statusObject.hasProperty(rt, "errorBuf")) { - auto rbuf = statusObject.getProperty(rt, "errorBuf"); - status.error_buf = Bridging::fromJs(rt, invoker, rbuf); - } - if (statusObject.hasProperty(rt, "code")) { - auto code = statusObject.getProperty(rt, "code"); - status.code = uniffi_jsi::Bridging::fromJs(rt, invoker, code); - } - return status; - } - - static void copyFromJs(jsi::Runtime &rt, std::shared_ptr invoker, - const jsi::Value &jsStatus, RustCallStatus *status) { - auto statusObject = jsStatus.asObject(rt); - if (statusObject.hasProperty(rt, "errorBuf")) { - auto rbuf = statusObject.getProperty(rt, "errorBuf"); - status->error_buf = Bridging::fromJs(rt, invoker, rbuf); - } - if (statusObject.hasProperty(rt, "code")) { - auto code = statusObject.getProperty(rt, "code"); - status->code = uniffi_jsi::Bridging::fromJs(rt, invoker, code); - } - } -}; - -} // namespace uniffi::nostr_sdk -// In other uniffi bindings, it is assumed that the foreign language holds on -// to the vtable, which the Rust just gets a pointer to. -// Here, we need to hold on to them, but also be able to clear them at just the -// right time so we can support hot-reloading. -namespace uniffi::nostr_sdk::registry { -template class VTableHolder { -public: - T vtable; - VTableHolder(T v) : vtable(v) {} -}; - -// Mutex to bind the storage and setting of vtable together. -// We declare it here, but the lock is taken by callers of the putTable -// method who are also sending a pointer to Rust. -static std::mutex vtableMutex; - -// Registry to hold all vtables so they persist even when JS objects are GC'd. -// The only reason this exists is to prevent a dangling pointer in the -// Rust machinery: i.e. we don't need to access or write to this registry -// after startup. -// Registry to hold all vtables so they persist even when JS objects are GC'd. -// Maps string identifiers to vtable holders using type erasure -static std::unordered_map> vtableRegistry; - -// Add a vtable to the registry with an identifier -template -static T *putTable(std::string_view identifier, T vtable) { - auto holder = std::make_shared>(vtable); - // Store the raw pointer to the vtable before type erasure - T *rawPtr = &(holder->vtable); - // Store the holder using type erasure with the string identifier - vtableRegistry[std::string(identifier)] = std::shared_ptr(holder); - return rawPtr; -} - -// Clear the registry. -// -// Conceptually, this is called after teardown of the module (i.e. after -// teardown of the jsi::Runtime). However, because Rust is dropping callbacks -// because the Runtime is being torn down, we must keep the registry intact -// until after the runtime goes away. -// -// Therefore, in practice we should call this when the next runtime is -// being stood up. -static void clearRegistry() { - std::lock_guard lock(vtableMutex); - vtableRegistry.clear(); -} -} // namespace uniffi::nostr_sdk::registry - -// This calls into Rust. -// Implementation of callback function calling from Rust to JS -// RustFutureContinuationCallback - -// Callback function: -// uniffi::nostr_sdk::cb::rustfuturecontinuationcallback::UniffiRustFutureContinuationCallback -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::rustfuturecontinuationcallback { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, uint64_t rs_data, - int8_t rs_pollResult) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_data = uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_data); - auto js_pollResult = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_pollResult); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_data, js_pollResult); - - } catch (const jsi::JSError &error) { - std::cout << "Error in callback UniffiRustFutureContinuationCallback: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_data, int8_t rs_pollResult) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_data, rs_pollResult); -} - -static UniffiRustFutureContinuationCallback -makeCallbackFunction( // uniffi::nostr_sdk::cb::rustfuturecontinuationcallback - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_data, - int8_t rs_pollResult) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_data, - rs_pollResult](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_data, rs_pollResult); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - - callInvoker->invokeNonBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::rustfuturecontinuationcallback - // Implementation of callback function calling from JS to Rust - // ForeignFutureFree, passed from Rust to JS as part of async callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureFree rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureFree"), 1, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureFree func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk - // Implementation of free callback function CallbackInterfaceFree - -// Callback function: -// uniffi::nostr_sdk::st::foreignfuture::foreignfuture::free::UniffiCallbackInterfaceFree -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::st::foreignfuture::foreignfuture::free { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_handle) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_handle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_handle); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_handle); - - } catch (const jsi::JSError &error) { - std::cout << "Error in callback UniffiCallbackInterfaceFree: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_handle) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_handle); -} - -static UniffiCallbackInterfaceFree -makeCallbackFunction( // uniffi::nostr_sdk::st::foreignfuture::foreignfuture::free - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_handle) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_handle](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_handle); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - - callInvoker->invokeNonBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::st::foreignfuture::foreignfuture::free - -// Callback function: -// uniffi::nostr_sdk::st::vtablecallbackinterfaceadmitpolicy::vtablecallbackinterfaceadmitpolicy::free::UniffiCallbackInterfaceFree -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::st::vtablecallbackinterfaceadmitpolicy:: - vtablecallbackinterfaceadmitpolicy::free { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_handle) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_handle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_handle); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_handle); - - } catch (const jsi::JSError &error) { - std::cout << "Error in callback UniffiCallbackInterfaceFree: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_handle) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_handle); -} - -static UniffiCallbackInterfaceFree -makeCallbackFunction( // uniffi::nostr_sdk::st::vtablecallbackinterfaceadmitpolicy::vtablecallbackinterfaceadmitpolicy::free - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_handle) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_handle](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_handle); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - - callInvoker->invokeNonBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace - // uniffi::nostr_sdk::st::vtablecallbackinterfaceadmitpolicy::vtablecallbackinterfaceadmitpolicy::free - -// Callback function: -// uniffi::nostr_sdk::st::vtablecallbackinterfacecustomnostrsigner::vtablecallbackinterfacecustomnostrsigner::free::UniffiCallbackInterfaceFree -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::st::vtablecallbackinterfacecustomnostrsigner:: - vtablecallbackinterfacecustomnostrsigner::free { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_handle) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_handle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_handle); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_handle); - - } catch (const jsi::JSError &error) { - std::cout << "Error in callback UniffiCallbackInterfaceFree: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_handle) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_handle); -} - -static UniffiCallbackInterfaceFree -makeCallbackFunction( // uniffi::nostr_sdk::st::vtablecallbackinterfacecustomnostrsigner::vtablecallbackinterfacecustomnostrsigner::free - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_handle) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_handle](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_handle); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - - callInvoker->invokeNonBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace - // uniffi::nostr_sdk::st::vtablecallbackinterfacecustomnostrsigner::vtablecallbackinterfacecustomnostrsigner::free - -// Callback function: -// uniffi::nostr_sdk::st::vtablecallbackinterfacecustomwebsockettransport::vtablecallbackinterfacecustomwebsockettransport::free::UniffiCallbackInterfaceFree -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::st:: - vtablecallbackinterfacecustomwebsockettransport:: - vtablecallbackinterfacecustomwebsockettransport::free { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_handle) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_handle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_handle); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_handle); - - } catch (const jsi::JSError &error) { - std::cout << "Error in callback UniffiCallbackInterfaceFree: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_handle) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_handle); -} - -static UniffiCallbackInterfaceFree -makeCallbackFunction( // uniffi::nostr_sdk::st::vtablecallbackinterfacecustomwebsockettransport::vtablecallbackinterfacecustomwebsockettransport::free - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_handle) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_handle](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_handle); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - - callInvoker->invokeNonBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace - // uniffi::nostr_sdk::st::vtablecallbackinterfacecustomwebsockettransport::vtablecallbackinterfacecustomwebsockettransport::free - -// Callback function: -// uniffi::nostr_sdk::st::vtablecallbackinterfacehandlenotification::vtablecallbackinterfacehandlenotification::free::UniffiCallbackInterfaceFree -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::st::vtablecallbackinterfacehandlenotification:: - vtablecallbackinterfacehandlenotification::free { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_handle) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_handle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_handle); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_handle); - - } catch (const jsi::JSError &error) { - std::cout << "Error in callback UniffiCallbackInterfaceFree: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_handle) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_handle); -} - -static UniffiCallbackInterfaceFree -makeCallbackFunction( // uniffi::nostr_sdk::st::vtablecallbackinterfacehandlenotification::vtablecallbackinterfacehandlenotification::free - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_handle) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_handle](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_handle); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - - callInvoker->invokeNonBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace - // uniffi::nostr_sdk::st::vtablecallbackinterfacehandlenotification::vtablecallbackinterfacehandlenotification::free - -// Callback function: -// uniffi::nostr_sdk::st::vtablecallbackinterfacewebsocketadapter::vtablecallbackinterfacewebsocketadapter::free::UniffiCallbackInterfaceFree -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::st::vtablecallbackinterfacewebsocketadapter:: - vtablecallbackinterfacewebsocketadapter::free { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_handle) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_handle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_handle); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_handle); - - } catch (const jsi::JSError &error) { - std::cout << "Error in callback UniffiCallbackInterfaceFree: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_handle) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_handle); -} - -static UniffiCallbackInterfaceFree -makeCallbackFunction( // uniffi::nostr_sdk::st::vtablecallbackinterfacewebsocketadapter::vtablecallbackinterfacewebsocketadapter::free - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_handle) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_handle](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_handle); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - - callInvoker->invokeNonBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace - // uniffi::nostr_sdk::st::vtablecallbackinterfacewebsocketadapter::vtablecallbackinterfacewebsocketadapter::free -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFuture fromJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, "Expected an object for UniffiForeignFuture"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFuture rsObject; - - // Create the vtable from the js callbacks. - rsObject.handle = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "handle")); - rsObject.free = uniffi::nostr_sdk::st::foreignfuture::foreignfuture::free:: - makeCallbackFunction(rt, callInvoker, jsObject.getProperty(rt, "free")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructU8 - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, - "Expected an object for UniffiForeignFutureStructU8"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructU8 rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteU8, passed from Rust to JS as part of async callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteU8 rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteU8"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteU8 func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructI8 - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, - "Expected an object for UniffiForeignFutureStructI8"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructI8 rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteI8, passed from Rust to JS as part of async callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteI8 rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteI8"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteI8 func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructU16 - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, - "Expected an object for UniffiForeignFutureStructU16"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructU16 rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteU16, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteU16 rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteU16"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteU16 func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructI16 - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, - "Expected an object for UniffiForeignFutureStructI16"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructI16 rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteI16, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteI16 rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteI16"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteI16 func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructU32 - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, - "Expected an object for UniffiForeignFutureStructU32"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructU32 rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteU32, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteU32 rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteU32"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteU32 func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructI32 - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, - "Expected an object for UniffiForeignFutureStructI32"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructI32 rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteI32, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteI32 rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteI32"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteI32 func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructU64 - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, - "Expected an object for UniffiForeignFutureStructU64"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructU64 rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteU64, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteU64 rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteU64"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteU64 func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructI64 - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, - "Expected an object for UniffiForeignFutureStructI64"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructI64 rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteI64, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteI64 rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteI64"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteI64 func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructF32 - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, - "Expected an object for UniffiForeignFutureStructF32"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructF32 rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteF32, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteF32 rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteF32"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteF32 func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructF64 - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, - "Expected an object for UniffiForeignFutureStructF64"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructF64 rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteF64, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteF64 rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteF64"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteF64 func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructPointer - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError( - rt, "Expected an object for UniffiForeignFutureStructPointer"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructPointer rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi_jsi::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompletePointer, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompletePointer rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompletePointer"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompletePointer func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructRustBuffer - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError( - rt, "Expected an object for UniffiForeignFutureStructRustBuffer"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructRustBuffer rsObject; - - // Create the vtable from the js callbacks. - rsObject.return_value = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "returnValue")); - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteRustBuffer, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteRustBuffer rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteRustBuffer"), - 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteRustBuffer func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging< - UniffiForeignFutureStructRustBuffer>::fromJs(rt, callInvoker, - args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiForeignFutureStructVoid - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError( - rt, "Expected an object for UniffiForeignFutureStructVoid"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiForeignFutureStructVoid rsObject; - - // Create the vtable from the js callbacks. - rsObject.call_status = uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, jsObject.getProperty(rt, "callStatus")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from JS to Rust - // ForeignFutureCompleteVoid, passed from Rust to JS as part of async - // callbacks. -namespace uniffi::nostr_sdk { -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static jsi::Value toJs(jsi::Runtime &rt, - std::shared_ptr callInvoker, - UniffiForeignFutureCompleteVoid rsCallback) { - return jsi::Function::createFromHostFunction( - rt, jsi::PropNameID::forAscii(rt, "--ForeignFutureCompleteVoid"), 2, - [rsCallback, callInvoker](jsi::Runtime &rt, const jsi::Value &thisValue, - const jsi::Value *arguments, - size_t count) -> jsi::Value { - return intoRust(rt, callInvoker, thisValue, arguments, count, - rsCallback); - }); - } - - static jsi::Value intoRust(jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &thisValue, - const jsi::Value *args, size_t count, - UniffiForeignFutureCompleteVoid func) { - // Convert the arguments into the Rust, with Bridging::fromJs, - // then call the rs_callback with those arguments. - func(uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1])); - - return jsi::Value::undefined(); - } -}; -} // namespace uniffi::nostr_sdk - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceAdmitPolicyMethod0 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfaceadmitpolicymethod0::UniffiCallbackInterfaceAdmitPolicyMethod0 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfaceadmitpolicymethod0 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, RustBuffer rs_relayUrl, - RustBuffer rs_subscriptionId, void *rs_event, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_relayUrl = uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_relayUrl); - auto js_subscriptionId = uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_subscriptionId); - auto js_event = uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_event); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = - cb.call(rt, js_uniffiHandle, js_relayUrl, js_subscriptionId, js_event, - js_uniffiFutureCallback, js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout << "Error in callback UniffiCallbackInterfaceAdmitPolicyMethod0: " - << error.what() << std::endl; - throw error; - } -} - -static void -callback(uint64_t rs_uniffiHandle, RustBuffer rs_relayUrl, - RustBuffer rs_subscriptionId, void *rs_event, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_relayUrl, rs_subscriptionId, rs_event, - rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceAdmitPolicyMethod0 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfaceadmitpolicymethod0 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, RustBuffer rs_relayUrl, - RustBuffer rs_subscriptionId, void *rs_event, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_relayUrl, - rs_subscriptionId, rs_event, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_relayUrl, - rs_subscriptionId, rs_event, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfaceadmitpolicymethod0 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceCustomNostrSignerMethod0 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod0::UniffiCallbackInterfaceCustomNostrSignerMethod0 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod0 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function rsLambda = - nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, RustBuffer *rs_uniffiOutReturn, - RustCallStatus *uniffi_call_status) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle); - - // Now copy the result back from JS into the RustCallStatus object. - uniffi::nostr_sdk::Bridging::copyFromJs( - rt, callInvoker, uniffiResult, uniffi_call_status); - - if (uniffi_call_status->code != UNIFFI_CALL_STATUS_OK) { - // The JS callback finished abnormally, so we cannot retrieve the return - // value. - return; - } - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = - uniffi::nostr_sdk::Bridging>::fromJs( - rt, callInvoker, uniffiResult); - } catch (const jsi::JSError &error) { - std::cout - << "Error in callback UniffiCallbackInterfaceCustomNostrSignerMethod0: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_uniffiHandle, RustBuffer *rs_uniffiOutReturn, - RustCallStatus *uniffi_call_status) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_uniffiOutReturn, uniffi_call_status); -} - -static UniffiCallbackInterfaceCustomNostrSignerMethod0 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod0 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, RustBuffer *rs_uniffiOutReturn, - RustCallStatus *uniffi_call_status) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_uniffiOutReturn, - uniffi_call_status](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, - rs_uniffiOutReturn, uniffi_call_status); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod0 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceCustomNostrSignerMethod1 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod1::UniffiCallbackInterfaceCustomNostrSignerMethod1 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod1 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback, - js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout - << "Error in callback UniffiCallbackInterfaceCustomNostrSignerMethod1: " - << error.what() << std::endl; - throw error; - } -} - -static void -callback(uint64_t rs_uniffiHandle, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceCustomNostrSignerMethod1 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod1 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, - rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod1 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceCustomNostrSignerMethod2 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod2::UniffiCallbackInterfaceCustomNostrSignerMethod2 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod2 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, void *rs_unsignedEvent, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_unsignedEvent = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_unsignedEvent); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle, js_unsignedEvent, - js_uniffiFutureCallback, js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout - << "Error in callback UniffiCallbackInterfaceCustomNostrSignerMethod2: " - << error.what() << std::endl; - throw error; - } -} - -static void -callback(uint64_t rs_uniffiHandle, void *rs_unsignedEvent, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_unsignedEvent, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceCustomNostrSignerMethod2 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod2 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, void *rs_unsignedEvent, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_unsignedEvent, - rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, - rs_unsignedEvent, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod2 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceCustomNostrSignerMethod3 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod3::UniffiCallbackInterfaceCustomNostrSignerMethod3 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod3 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, void *rs_publicKey, - RustBuffer rs_content, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_publicKey = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_publicKey); - auto js_content = uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_content); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle, js_publicKey, js_content, - js_uniffiFutureCallback, js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout - << "Error in callback UniffiCallbackInterfaceCustomNostrSignerMethod3: " - << error.what() << std::endl; - throw error; - } -} - -static void -callback(uint64_t rs_uniffiHandle, void *rs_publicKey, RustBuffer rs_content, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_publicKey, rs_content, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceCustomNostrSignerMethod3 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod3 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, void *rs_publicKey, - RustBuffer rs_content, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_publicKey, rs_content, - rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_publicKey, - rs_content, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod3 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceCustomNostrSignerMethod4 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod4::UniffiCallbackInterfaceCustomNostrSignerMethod4 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod4 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, void *rs_publicKey, - RustBuffer rs_encryptedContent, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_publicKey = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_publicKey); - auto js_encryptedContent = uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_encryptedContent); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = - cb.call(rt, js_uniffiHandle, js_publicKey, js_encryptedContent, - js_uniffiFutureCallback, js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout - << "Error in callback UniffiCallbackInterfaceCustomNostrSignerMethod4: " - << error.what() << std::endl; - throw error; - } -} - -static void -callback(uint64_t rs_uniffiHandle, void *rs_publicKey, - RustBuffer rs_encryptedContent, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_publicKey, rs_encryptedContent, - rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceCustomNostrSignerMethod4 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod4 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, void *rs_publicKey, - RustBuffer rs_encryptedContent, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_publicKey, - rs_encryptedContent, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_publicKey, - rs_encryptedContent, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod4 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceCustomNostrSignerMethod5 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod5::UniffiCallbackInterfaceCustomNostrSignerMethod5 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod5 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, void *rs_publicKey, - RustBuffer rs_content, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_publicKey = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_publicKey); - auto js_content = uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_content); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle, js_publicKey, js_content, - js_uniffiFutureCallback, js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout - << "Error in callback UniffiCallbackInterfaceCustomNostrSignerMethod5: " - << error.what() << std::endl; - throw error; - } -} - -static void -callback(uint64_t rs_uniffiHandle, void *rs_publicKey, RustBuffer rs_content, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_publicKey, rs_content, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceCustomNostrSignerMethod5 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod5 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, void *rs_publicKey, - RustBuffer rs_content, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_publicKey, rs_content, - rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_publicKey, - rs_content, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod5 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceCustomNostrSignerMethod6 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod6::UniffiCallbackInterfaceCustomNostrSignerMethod6 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod6 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, void *rs_publicKey, - RustBuffer rs_payload, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_publicKey = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_publicKey); - auto js_payload = uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_payload); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle, js_publicKey, js_payload, - js_uniffiFutureCallback, js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout - << "Error in callback UniffiCallbackInterfaceCustomNostrSignerMethod6: " - << error.what() << std::endl; - throw error; - } -} - -static void -callback(uint64_t rs_uniffiHandle, void *rs_publicKey, RustBuffer rs_payload, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_publicKey, rs_payload, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceCustomNostrSignerMethod6 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod6 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, void *rs_publicKey, - RustBuffer rs_payload, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_publicKey, rs_payload, - rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_publicKey, - rs_payload, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod6 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceCustomWebSocketTransportMethod0 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacecustomwebsockettransportmethod0::UniffiCallbackInterfaceCustomWebSocketTransportMethod0 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb:: - callbackinterfacecustomwebsockettransportmethod0 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function rsLambda = - nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, int8_t *rs_uniffiOutReturn, - RustCallStatus *uniffi_call_status) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle); - - // Now copy the result back from JS into the RustCallStatus object. - uniffi::nostr_sdk::Bridging::copyFromJs( - rt, callInvoker, uniffiResult, uniffi_call_status); - - if (uniffi_call_status->code != UNIFFI_CALL_STATUS_OK) { - // The JS callback finished abnormally, so we cannot retrieve the return - // value. - return; - } - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi_jsi::Bridging>::fromJs( - rt, callInvoker, uniffiResult); - } catch (const jsi::JSError &error) { - std::cout << "Error in callback " - "UniffiCallbackInterfaceCustomWebSocketTransportMethod0: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_uniffiHandle, int8_t *rs_uniffiOutReturn, - RustCallStatus *uniffi_call_status) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_uniffiOutReturn, uniffi_call_status); -} - -static UniffiCallbackInterfaceCustomWebSocketTransportMethod0 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacecustomwebsockettransportmethod0 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, int8_t *rs_uniffiOutReturn, - RustCallStatus *uniffi_call_status) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_uniffiOutReturn, - uniffi_call_status](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, - rs_uniffiOutReturn, uniffi_call_status); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace - // uniffi::nostr_sdk::cb::callbackinterfacecustomwebsockettransportmethod0 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceCustomWebSocketTransportMethod1 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacecustomwebsockettransportmethod1::UniffiCallbackInterfaceCustomWebSocketTransportMethod1 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb:: - callbackinterfacecustomwebsockettransportmethod1 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, RustBuffer rs_url, - RustBuffer rs_mode, RustBuffer rs_timeout, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_url = - uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, rs_url); - auto js_mode = - uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, rs_mode); - auto js_timeout = uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_timeout); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = - cb.call(rt, js_uniffiHandle, js_url, js_mode, js_timeout, - js_uniffiFutureCallback, js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout << "Error in callback " - "UniffiCallbackInterfaceCustomWebSocketTransportMethod1: " - << error.what() << std::endl; - throw error; - } -} - -static void -callback(uint64_t rs_uniffiHandle, RustBuffer rs_url, RustBuffer rs_mode, - RustBuffer rs_timeout, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_url, rs_mode, rs_timeout, - rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceCustomWebSocketTransportMethod1 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacecustomwebsockettransportmethod1 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, RustBuffer rs_url, - RustBuffer rs_mode, RustBuffer rs_timeout, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_url, rs_mode, - rs_timeout, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_url, rs_mode, - rs_timeout, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace - // uniffi::nostr_sdk::cb::callbackinterfacecustomwebsockettransportmethod1 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceHandleNotificationMethod0 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacehandlenotificationmethod0::UniffiCallbackInterfaceHandleNotificationMethod0 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacehandlenotificationmethod0 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, RustBuffer rs_relayUrl, void *rs_msg, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_relayUrl = uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_relayUrl); - auto js_msg = uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_msg); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle, js_relayUrl, js_msg, - js_uniffiFutureCallback, js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout << "Error in callback " - "UniffiCallbackInterfaceHandleNotificationMethod0: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_relayUrl, - void *rs_msg, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_relayUrl, rs_msg, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceHandleNotificationMethod0 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacehandlenotificationmethod0 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, RustBuffer rs_relayUrl, void *rs_msg, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_relayUrl, rs_msg, - rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_relayUrl, - rs_msg, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacehandlenotificationmethod0 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceHandleNotificationMethod1 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacehandlenotificationmethod1::UniffiCallbackInterfaceHandleNotificationMethod1 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacehandlenotificationmethod1 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, RustBuffer rs_relayUrl, - RustBuffer rs_subscriptionId, void *rs_event, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_relayUrl = uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_relayUrl); - auto js_subscriptionId = uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_subscriptionId); - auto js_event = uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_event); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = - cb.call(rt, js_uniffiHandle, js_relayUrl, js_subscriptionId, js_event, - js_uniffiFutureCallback, js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout << "Error in callback " - "UniffiCallbackInterfaceHandleNotificationMethod1: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_relayUrl, - RustBuffer rs_subscriptionId, void *rs_event, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_relayUrl, rs_subscriptionId, rs_event, - rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceHandleNotificationMethod1 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacehandlenotificationmethod1 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, RustBuffer rs_relayUrl, - RustBuffer rs_subscriptionId, void *rs_event, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_relayUrl, - rs_subscriptionId, rs_event, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_relayUrl, - rs_subscriptionId, rs_event, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacehandlenotificationmethod1 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceWebSocketAdapterMethod0 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod0::UniffiCallbackInterfaceWebSocketAdapterMethod0 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod0 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, RustBuffer rs_msg, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_msg = - uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, rs_msg); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle, js_msg, - js_uniffiFutureCallback, js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout - << "Error in callback UniffiCallbackInterfaceWebSocketAdapterMethod0: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_msg, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_msg, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceWebSocketAdapterMethod0 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod0 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, RustBuffer rs_msg, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_msg, - rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_msg, - rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod0 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceWebSocketAdapterMethod1 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod1::UniffiCallbackInterfaceWebSocketAdapterMethod1 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod1 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback, - js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout - << "Error in callback UniffiCallbackInterfaceWebSocketAdapterMethod1: " - << error.what() << std::endl; - throw error; - } -} - -static void -callback(uint64_t rs_uniffiHandle, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceWebSocketAdapterMethod1 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod1 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, - UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, - rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod1 - // Implementation of callback function calling from Rust to JS - // CallbackInterfaceWebSocketAdapterMethod2 - -// Callback function: -// uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod2::UniffiCallbackInterfaceWebSocketAdapterMethod2 -// -// We have the following constraints: -// - we need to pass a function pointer to Rust. -// - we need a jsi::Runtime and jsi::Function to call into JS. -// - function pointers can't store state, so we can't use a lamda. -// -// For this, we store a lambda as a global, as `rsLambda`. The `callback` -// function calls the lambda, which itself calls the `body` which then calls -// into JS. -// -// We then give the `callback` function pointer to Rust which will call the -// lambda sometime in the future. -namespace uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod2 { -using namespace facebook; - -// We need to store a lambda in a global so we can call it from -// a function pointer. The function pointer is passed to Rust. -static std::function - rsLambda = nullptr; - -// This is the main body of the callback. It's called from the lambda, -// which itself is called from the callback function which is passed to Rust. -static void body(jsi::Runtime &rt, - std::shared_ptr callInvoker, - std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - - // Convert the arguments from Rust, into jsi::Values. - // We'll use the Bridging class to do this… - auto js_uniffiHandle = - uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); - auto js_uniffiFutureCallback = - uniffi::nostr_sdk::Bridging::toJs( - rt, callInvoker, rs_uniffiFutureCallback); - auto js_uniffiCallbackData = uniffi_jsi::Bridging::toJs( - rt, callInvoker, rs_uniffiCallbackData); - - // Now we are ready to call the callback. - // We are already on the JS thread, because this `body` function was - // invoked from the CallInvoker. - try { - // Getting the callback function - auto cb = callbackValue->asObject(rt).asFunction(rt); - auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback, - js_uniffiCallbackData); - - // Finally, we need to copy the return value back into the Rust pointer. - *rs_uniffiOutReturn = uniffi::nostr_sdk::Bridging< - ReferenceHolder>::fromJs(rt, callInvoker, - uniffiResult); - } catch (const jsi::JSError &error) { - std::cout - << "Error in callback UniffiCallbackInterfaceWebSocketAdapterMethod2: " - << error.what() << std::endl; - throw error; - } -} - -static void callback(uint64_t rs_uniffiHandle, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // If the runtime has shutdown, then there is no point in trying to - // call into Javascript. BUT how do we tell if the runtime has shutdown? - // - // Answer: the module destructor calls into callback `cleanup` method, - // which nulls out the rsLamda. - // - // If rsLamda is null, then there is no runtime to call into. - if (rsLambda == nullptr) { - // This only occurs when destructors are calling into Rust free/drop, - // which causes the JS callback to be dropped. - return; - } - - // The runtime, the actual callback jsi::funtion, and the callInvoker - // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); -} - -static UniffiCallbackInterfaceWebSocketAdapterMethod2 -makeCallbackFunction( // uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod2 - jsi::Runtime &rt, - std::shared_ptr callInvoker, - const jsi::Value &value) { - if (rsLambda != nullptr) { - // `makeCallbackFunction` is called in two circumstances: - // - // 1. at startup, when initializing callback interface vtables. - // 2. when polling futures. This happens at least once per future that is - // exposed to Javascript. We know that this is always the same function, - // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`. - // - // We can therefore return the callback function without making anything - // new if we've been initialized already. - return callback; - } - auto callbackFunction = value.asObject(rt).asFunction(rt); - auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, callbackValue]( - uint64_t rs_uniffiHandle, - UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback, - uint64_t rs_uniffiCallbackData, - UniffiForeignFuture *rs_uniffiOutReturn) { - // We immediately make a lambda which will do the work of transforming the - // arguments into JSI values and calling the callback. - uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_uniffiFutureCallback, - rs_uniffiCallbackData, rs_uniffiOutReturn](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, - rs_uniffiFutureCallback, rs_uniffiCallbackData, - rs_uniffiOutReturn); - }; - // We'll then call that lambda from the callInvoker which will - // look after calling it on the correct thread. - callInvoker->invokeBlocking(rt, jsLambda); - }; - return callback; -} - -// This method is called from the destructor of NativeNostrSdk, which only -// happens when the jsi::Runtime is being destroyed. -static void cleanup() { - // The lambda holds a reference to the the Runtime, so when this is nulled - // out, then the pointer will no longer be left dangling. - rsLambda = nullptr; -} -} // namespace uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod2 -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiVTableCallbackInterfaceAdmitPolicy - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError( - rt, - "Expected an object for UniffiVTableCallbackInterfaceAdmitPolicy"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiVTableCallbackInterfaceAdmitPolicy rsObject; - - // Create the vtable from the js callbacks. - rsObject.admit_event = uniffi::nostr_sdk::cb:: - callbackinterfaceadmitpolicymethod0::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "admitEvent")); - rsObject.uniffi_free = - uniffi::nostr_sdk::st::vtablecallbackinterfaceadmitpolicy:: - vtablecallbackinterfaceadmitpolicy::free::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "uniffiFree")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiVTableCallbackInterfaceCustomNostrSigner - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, "Expected an object for " - "UniffiVTableCallbackInterfaceCustomNostrSigner"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiVTableCallbackInterfaceCustomNostrSigner rsObject; - - // Create the vtable from the js callbacks. - rsObject.backend = uniffi::nostr_sdk::cb:: - callbackinterfacecustomnostrsignermethod0::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "backend")); - rsObject.get_public_key = uniffi::nostr_sdk::cb:: - callbackinterfacecustomnostrsignermethod1::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "getPublicKey")); - rsObject.sign_event = uniffi::nostr_sdk::cb:: - callbackinterfacecustomnostrsignermethod2::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "signEvent")); - rsObject.nip04_encrypt = uniffi::nostr_sdk::cb:: - callbackinterfacecustomnostrsignermethod3::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "nip04Encrypt")); - rsObject.nip04_decrypt = uniffi::nostr_sdk::cb:: - callbackinterfacecustomnostrsignermethod4::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "nip04Decrypt")); - rsObject.nip44_encrypt = uniffi::nostr_sdk::cb:: - callbackinterfacecustomnostrsignermethod5::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "nip44Encrypt")); - rsObject.nip44_decrypt = uniffi::nostr_sdk::cb:: - callbackinterfacecustomnostrsignermethod6::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "nip44Decrypt")); - rsObject.uniffi_free = - uniffi::nostr_sdk::st::vtablecallbackinterfacecustomnostrsigner:: - vtablecallbackinterfacecustomnostrsigner::free:: - makeCallbackFunction(rt, callInvoker, - jsObject.getProperty(rt, "uniffiFree")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> -struct Bridging { - static UniffiVTableCallbackInterfaceCustomWebSocketTransport - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError( - rt, "Expected an object for " - "UniffiVTableCallbackInterfaceCustomWebSocketTransport"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiVTableCallbackInterfaceCustomWebSocketTransport rsObject; - - // Create the vtable from the js callbacks. - rsObject.support_ping = uniffi::nostr_sdk::cb:: - callbackinterfacecustomwebsockettransportmethod0::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "supportPing")); - rsObject.connect = uniffi::nostr_sdk::cb:: - callbackinterfacecustomwebsockettransportmethod1::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "connect")); - rsObject.uniffi_free = - uniffi::nostr_sdk::st::vtablecallbackinterfacecustomwebsockettransport:: - vtablecallbackinterfacecustomwebsockettransport::free:: - makeCallbackFunction(rt, callInvoker, - jsObject.getProperty(rt, "uniffiFree")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiVTableCallbackInterfaceHandleNotification - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, "Expected an object for " - "UniffiVTableCallbackInterfaceHandleNotification"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiVTableCallbackInterfaceHandleNotification rsObject; - - // Create the vtable from the js callbacks. - rsObject.handle_msg = uniffi::nostr_sdk::cb:: - callbackinterfacehandlenotificationmethod0::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "handleMsg")); - rsObject.handle = uniffi::nostr_sdk::cb:: - callbackinterfacehandlenotificationmethod1::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "handle")); - rsObject.uniffi_free = - uniffi::nostr_sdk::st::vtablecallbackinterfacehandlenotification:: - vtablecallbackinterfacehandlenotification::free:: - makeCallbackFunction(rt, callInvoker, - jsObject.getProperty(rt, "uniffiFree")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiVTableCallbackInterfaceWebSocketAdapter - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &jsValue) { - // Check if the input is an object - if (!jsValue.isObject()) { - throw jsi::JSError(rt, "Expected an object for " - "UniffiVTableCallbackInterfaceWebSocketAdapter"); - } - - // Get the object from the jsi::Value - auto jsObject = jsValue.getObject(rt); - - // Create the vtable struct - UniffiVTableCallbackInterfaceWebSocketAdapter rsObject; - - // Create the vtable from the js callbacks. - rsObject.send = uniffi::nostr_sdk::cb:: - callbackinterfacewebsocketadaptermethod0::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "send")); - rsObject.recv = uniffi::nostr_sdk::cb:: - callbackinterfacewebsocketadaptermethod1::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "recv")); - rsObject.close_connection = uniffi::nostr_sdk::cb:: - callbackinterfacewebsocketadaptermethod2::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "closeConnection")); - rsObject.uniffi_free = - uniffi::nostr_sdk::st::vtablecallbackinterfacewebsocketadapter:: - vtablecallbackinterfacewebsocketadapter::free::makeCallbackFunction( - rt, callInvoker, jsObject.getProperty(rt, "uniffiFree")); - - return rsObject; - } -}; - -} // namespace uniffi::nostr_sdk - -namespace uniffi::nostr_sdk { -using namespace facebook; -using CallInvoker = uniffi_runtime::UniffiCallInvoker; - -template <> struct Bridging { - static UniffiRustFutureContinuationCallback - fromJs(jsi::Runtime &rt, std::shared_ptr callInvoker, - const jsi::Value &value) { - try { - return uniffi::nostr_sdk::cb::rustfuturecontinuationcallback:: - makeCallbackFunction(rt, callInvoker, value); - } catch (const std::logic_error &e) { - throw jsi::JSError(rt, e.what()); - } - } -}; - -} // namespace uniffi::nostr_sdk - -NativeNostrSdk::NativeNostrSdk( - jsi::Runtime &rt, - std::shared_ptr invoker) - : callInvoker(invoker), props() { - // Map from Javascript names to the cpp names - props["ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_func_ffi__string_to_byte_length( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_admitpolicy"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_admitpolicy"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_admitpolicy( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_admitpolicy"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_admitpolicy"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_admitpolicy( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_admitpolicy_admit_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_admitpolicy_admit_event"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_admitpolicy_admit_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_client"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_client"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_client(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_client"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_client"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_client(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_client_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_client_new"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_client_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_discovery_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_discovery_relay"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_discovery_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_read_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_read_relay"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_read_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_relay"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_relay_with_opts"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_relay_with_opts"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_relay_with_opts( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_write_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_write_relay"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_write_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_automatic_authentication"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "client_automatic_authentication"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_automatic_authentication( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_connect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_connect"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_connect_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_connect_relay"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_connect_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_database"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_database"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_database( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_disconnect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_disconnect"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_disconnect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_disconnect_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_disconnect_relay"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_disconnect_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_combined_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "client_fetch_combined_events"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_combined_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events_from"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events_from"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events_from( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_metadata"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_all_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "client_force_remove_all_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_all_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_relay"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap_to"), - 5, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_handle_notifications"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "client_handle_notifications"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_handle_notifications( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_relay"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_remove_all_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_remove_all_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_remove_all_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_remove_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_remove_relay"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_remove_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "client_send_event_builder_to"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_to"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_msg_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_msg_to"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_msg_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg_to"), - 5, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_set_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_set_metadata"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_set_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_shutdown"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_shutdown"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_shutdown( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_sign_event_builder"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_sign_event_builder"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_sign_event_builder( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_signer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_signer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_signer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_to"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "client_subscribe_with_id_to"), - 5, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscription"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscription"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscription( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscriptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscriptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscriptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_sync"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_sync"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_sync( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_try_connect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_try_connect"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_try_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe_all"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe_all"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe_all( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unwrap_gift_wrap"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unwrap_gift_wrap"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_unwrap_gift_wrap( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_client_wait_for_connection"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_client_wait_for_connection"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_client_wait_for_connection( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_clientbuilder"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_clientbuilder"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_clientbuilder( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_clientbuilder"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_clientbuilder"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_clientbuilder( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientbuilder_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientbuilder_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientbuilder_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_admit_policy"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_admit_policy"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_admit_policy( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_build"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_build"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_build( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_database"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_database"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_database( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_opts"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_opts"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_opts( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_signer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_signer"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_signer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_websocket_" - "transport"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "clientbuilder_websocket_transport"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_websocket_transport( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_clientmessage"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_clientmessage"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_clientmessage( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_clientmessage"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_clientmessage"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_clientmessage( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_auth"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_auth"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_auth( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_close"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_close"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_close( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_count"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_count"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_count( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_event"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_enum"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_clientmessage_from_enum"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_clientmessage_from_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_req"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_req"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_req( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_enum"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_enum"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_" - "debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "clientmessage_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_" - "eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "clientmessage_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_" - "ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "clientmessage_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_connection"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_connection"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_connection( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_connection"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_connection"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_connection( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_connection_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_connection_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_connection_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_addr"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_addr"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_connection_addr( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_mode"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_mode"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_connection_mode( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_target"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_target"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_connection_target( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "connection_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "connection_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "connection_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "connection_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_coordinate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_coordinate"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_coordinate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_coordinate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_coordinate"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_coordinate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_new"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_identifier"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_identifier"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_identifier( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_kind"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_public_key"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_verify"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_verify"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_verify( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "coordinate_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_display"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "coordinate_uniffi_trait_display"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_display( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "coordinate_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "coordinate_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "coordinate_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_customnostrsigner"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_customnostrsigner"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_customnostrsigner( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_customnostrsigner"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_customnostrsigner"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_customnostrsigner( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_backend"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_backend"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_backend( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_get_public_" - "key"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "customnostrsigner_get_public_key"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_get_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_sign_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "customnostrsigner_sign_event"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_sign_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "customnostrsigner_nip04_encrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "customnostrsigner_nip04_decrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "customnostrsigner_nip44_encrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "customnostrsigner_nip44_decrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_customwebsockettransport"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_customwebsockettransport"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_clone_customwebsockettransport( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_customwebsockettransport"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_customwebsockettransport"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_free_customwebsockettransport( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_support_" - "ping"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "customwebsockettransport_support_ping"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_support_ping( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_" - "connect"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "customwebsockettransport_connect"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_encryptedsecretkey"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_encryptedsecretkey"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_encryptedsecretkey( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_encryptedsecretkey"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_encryptedsecretkey"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_encryptedsecretkey( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_from_" - "bech32"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "encryptedsecretkey_from_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_from_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_encryptedsecretkey_new"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_decrypt"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_key_security"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "encryptedsecretkey_key_security"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_key_security( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "encryptedsecretkey_to_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_version"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_version"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_version( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_" - "debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "encryptedsecretkey_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_" - "eq_eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "encryptedsecretkey_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_" - "eq_ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "encryptedsecretkey_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_" - "hash"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "encryptedsecretkey_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_event"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_event(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_event"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_event(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_event_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_event_from_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_event_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_as_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_as_pretty_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_as_pretty_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_event_as_pretty_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_author"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_author"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_author( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_content"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_content"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_content( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_created_at"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_created_at"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_created_at( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_id"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_is_expired"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_is_expired"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_is_expired( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_is_protected"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_is_protected"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_is_protected( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_kind"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_signature"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_signature"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_signature( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_tags"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_verify( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify_id"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_event_verify_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify_signature"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify_signature"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_event_verify_signature( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_eventbuilder"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_eventbuilder"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_eventbuilder( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_eventbuilder"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_eventbuilder"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_eventbuilder( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_articles_" - "curation_set"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_articles_curation_set"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_articles_curation_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_auth"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_auth"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_auth( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_award_badge"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_award_badge"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_award_badge( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_blocked_" - "relays"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_blocked_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_blocked_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_bookmarks"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks_set"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_bookmarks_set"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_" - "metadata"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_channel_metadata"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_msg"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_channel_msg"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_comment"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_comment"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_comment( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_communities"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_communities"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_communities( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_contact_list"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_contact_list"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_contact_list( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_define_badge"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_define_badge"), - 6, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_define_badge( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_delete"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_delete"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_delete( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emoji_set"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_emoji_set"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emoji_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emojis"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emojis"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emojis( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_file_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_file_metadata"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_file_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_follow_set"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_follow_set"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_follow_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_issue"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_git_issue"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_issue( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_patch"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_git_patch"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_patch( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_repository_" - "announcement"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_git_repository_announcement"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_repository_announcement( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_hide_channel_" - "msg"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_hide_channel_msg"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_hide_channel_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_http_auth"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_http_auth"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_http_auth( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interest_set"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_interest_set"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interest_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interests"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_interests"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interests( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_feedback"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_job_feedback"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_feedback( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_request"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_job_request"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_request( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_result"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_job_result"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_result( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_label"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_label"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_label( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_live_event"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event_" - "msg"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_live_event_msg"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_long_form_text_" - "note"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_long_form_text_note"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_long_form_text_note( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_metadata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_channel_" - "user"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_mute_channel_user"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_channel_user( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_list"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_mute_list"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_list( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_new"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_nostr_connect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_nostr_connect"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_nostr_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_pinned_notes"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_pinned_notes"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_pinned_notes( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_private_msg_" - "rumor"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_private_msg_rumor"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_private_msg_rumor( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_product_data"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_product_data"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_product_data( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_profile_" - "badges"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_profile_badges"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_profile_badges( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_chats"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_public_chats"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_chats( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_zap_" - "request"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_public_zap_request"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_zap_request( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction_" - "extended"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_reaction_extended"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction_extended( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_list"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_relay_list"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_list( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_set"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_relay_set"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_report"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_report"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_report( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_repost"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_repost"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_repost( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_seal"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_seal"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_seal( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_search_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_search_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_search_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_stall_data"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_stall_data"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_stall_data( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_text_note"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note_" - "reply"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_text_note_reply"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note_reply( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_videos_curation_" - "set"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "eventbuilder_videos_curation_set"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_videos_curation_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_zap_receipt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_eventbuilder_zap_receipt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_zap_receipt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_allow_self_tagging"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "eventbuilder_allow_self_tagging"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_allow_self_tagging( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_build"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_build"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_build( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_custom_created_at"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "eventbuilder_custom_created_at"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_custom_created_at( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_dedup_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_dedup_tags"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_dedup_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_pow"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_pow"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_pow( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign_with_keys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "eventbuilder_sign_with_keys"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign_with_keys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_tags"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "eventbuilder_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "eventbuilder_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "eventbuilder_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_eventid"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_eventid"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_eventid(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_eventid"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_eventid"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_eventid(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_from_bytes"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_from_bytes"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventid_from_bytes( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_new"), - 5, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventid_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventid_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_as_bytes"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_as_bytes"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_as_bytes( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_hex"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_hex"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_to_hex( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_nostr_uri"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_events"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_events(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_events"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_events(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_events_contains"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_events_contains"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_events_contains( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_events_first"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_events_first"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_events_first( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_events_is_empty"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_events_is_empty"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_events_is_empty( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_events_len"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_events_len"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_events_len( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_events_merge"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_events_merge"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_events_merge( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_events_to_vec"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_events_to_vec"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_events_to_vec( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_filemetadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_filemetadata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_filemetadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_filemetadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_filemetadata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_filemetadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filemetadata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filemetadata_new"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_filemetadata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_aes_256_gcm"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_aes_256_gcm"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_aes_256_gcm( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_blurhash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_blurhash"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_blurhash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_dimensions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_dimensions"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_dimensions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_magnet"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_magnet"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_magnet( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_size"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_size"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_size( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "filemetadata_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "filemetadata_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "filemetadata_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "filemetadata_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_filter"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_filter"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_filter(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_filter"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_filter"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_filter(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_record"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_filter_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_as_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_as_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_as_record"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_as_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_author"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_author"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_author( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_authors"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_authors"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_authors( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_coordinate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_coordinate"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_coordinate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_coordinates"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_coordinates"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_coordinates( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tag"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tags"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_event"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_events"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_hashtag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_hashtag"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_hashtag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_hashtags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_hashtags"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_hashtags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_id"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_identifier"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_identifier"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_identifier( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_identifiers"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_identifiers"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_identifiers( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_ids"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_ids"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_ids( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_is_empty"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_is_empty"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_is_empty( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_kind"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_kinds"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_kinds"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_kinds( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_limit"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_limit"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_limit( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_match_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_match_event"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_match_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_pubkey"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_pubkey"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_pubkey( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_pubkeys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_pubkeys"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_pubkeys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_reference"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_reference"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_reference( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_references"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_references"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_references( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_authors"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_authors"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_authors( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_coordinates"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_coordinates"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_coordinates( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_custom_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_custom_tags"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_custom_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_events"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_hashtags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_hashtags"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_hashtags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_identifiers"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_identifiers"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_identifiers( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_ids"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_ids"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_ids( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_kinds"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_kinds"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_kinds( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_limit"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_limit"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_limit( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_pubkeys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_pubkeys"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_pubkeys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_references"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_references"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_references( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_search"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_search"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_search( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_since"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_since"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_since( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_until"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_until"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_until( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_search"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_search"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_search( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_since"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_since"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_since( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_until"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_until"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_until( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_handlenotification"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_handlenotification"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_handlenotification( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_handlenotification"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_handlenotification"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_handlenotification( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle_msg"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "handlenotification_handle_msg"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_jobfeedbackdata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_jobfeedbackdata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_jobfeedbackdata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_jobfeedbackdata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_jobfeedbackdata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_jobfeedbackdata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_jobfeedbackdata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_jobfeedbackdata_new"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_jobfeedbackdata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_amount"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_amount"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_amount( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_extra_info"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_extra_info"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_extra_info( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_payload"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_payload"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_payload( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_keys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_keys"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_keys(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_keys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_keys"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_keys(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_from_mnemonic"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_from_mnemonic"), - 5, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_from_mnemonic( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_generate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_generate"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_generate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_new"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_public_key"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_keys_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_secret_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_secret_key"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_keys_secret_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_sign_schnorr"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_sign_schnorr"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_keys_sign_schnorr( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_kind"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_kind(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_kind"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_kind(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_kind_from_std"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_kind_from_std"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_kind_from_std( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_kind_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_kind_new"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_kind_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_as_std"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_as_std"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_as_std( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_as_u16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_as_u16"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_as_u16( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_addressable"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_addressable"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_addressable( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_ephemeral"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_ephemeral"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_ephemeral( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_request"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_request"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_request( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_result"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_result"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_result( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_regular"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_regular"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_regular( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_replaceable"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_replaceable"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_replaceable( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_display"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_display"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_display( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_metadata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_metadata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_metadata(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_record"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_metadata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_pretty_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_pretty_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_as_pretty_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_record"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_as_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_about"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_about"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_about( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_banner"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_banner"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_banner( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_custom_field"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_custom_field"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_custom_field( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_display_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_display_name"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_display_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud06"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud06"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud06( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud16"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud16( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_name"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_nip05"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_nip05"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_nip05( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_picture"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_picture"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_picture( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_website"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_website"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_website( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_about"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_about"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_about( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_banner"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_banner"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_banner( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_custom_field"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_custom_field"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_custom_field( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_display_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_display_name"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_display_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud06"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud06"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud06( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud16"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud16( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_name"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_nip05"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_nip05"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_nip05( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_picture"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_picture"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_picture( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_website"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_website"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_website( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "metadata_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "metadata_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "metadata_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nwc"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nwc"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nwc(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nwc"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_nwc"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nwc(rt, thisVal, args, - count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nwc_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nwc_new"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nwc_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nwc_with_opts"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nwc_with_opts"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nwc_with_opts( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_get_balance"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_get_balance"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_get_balance( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_get_info"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_get_info"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_get_info( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_list_transactions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_list_transactions"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_list_transactions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_lookup_invoice"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_lookup_invoice"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_lookup_invoice( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_make_invoice"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_make_invoice"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_make_invoice( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_invoice"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_invoice"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_invoice( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_keysend"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_keysend"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_keysend( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_status"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_status"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_status( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip05profile"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip05profile"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nip05profile( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nip05profile"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_nip05profile"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nip05profile( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_nip46"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_nip46"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nip05profile_nip46( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_public_key"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip05profile_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nip05profile_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nip19(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19_from_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19_from_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19_from_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_as_enum"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_as_enum"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_as_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19coordinate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19coordinate"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19coordinate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19coordinate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19coordinate"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nip19coordinate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_" - "bech32"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "nip19coordinate_from_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_nostr_" - "uri"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "nip19coordinate_from_nostr_uri"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_new"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_coordinate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_coordinate"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_coordinate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19coordinate_to_nostr_uri"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_" - "debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19coordinate_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_" - "eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19coordinate_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_" - "ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19coordinate_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_" - "hash"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19coordinate_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19event"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19event"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nip19event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_nip19event_from_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_event"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "nip19event_from_nostr_uri"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_new"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_author"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_author"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_author( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_event_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_event_id"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_event_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_kind"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_nostr_uri"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19event_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19event_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19event_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19event_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19profile"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19profile"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19profile( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19profile"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19profile"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nip19profile( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_nip19profile_from_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_nostr_" - "uri"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "nip19profile_from_nostr_uri"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_new"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_public_key"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_nostr_uri"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19profile_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19profile_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19profile_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nip19profile_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip21"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip21"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nip21(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nip21"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_nip21"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nip21(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip21_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip21_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip21_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_as_enum"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_as_enum"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_as_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_to_nostr_uri"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnect"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrconnect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnect"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nostrconnect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnect_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnect_new"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnect_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_bunker_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_bunker_uri"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_bunker_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_get_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnect_get_public_key"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_get_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_decrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_encrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_decrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_encrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_sign_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_sign_event"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_sign_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnectmetadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnectmetadata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrconnectmetadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnectmetadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnectmetadata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nostrconnectmetadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnectmetadata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_nostrconnectmetadata_new"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnectmetadata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnectmetadata_as_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_" - "description"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnectmetadata_description"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_description( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_icons"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_icons"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_icons( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_url"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_url"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_url( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_" - "debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnectmetadata_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_" - "eq_eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnectmetadata_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_" - "eq_ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnectmetadata_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_" - "hash"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnectmetadata_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnecturi"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnecturi"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrconnecturi( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnecturi"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnecturi"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nostrconnecturi( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnecturi_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnecturi_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnecturi_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_" - "debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnecturi_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_" - "display"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnecturi_uniffi_trait_display"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_display( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_" - "eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnecturi_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_" - "ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnecturi_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_" - "hash"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrconnecturi_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrdatabase"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrdatabase"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrdatabase( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrdatabase"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrdatabase"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nostrdatabase( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrdatabase_lmdb"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrdatabase_lmdb"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrdatabase_lmdb( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_count"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_count"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_count( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_delete"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_delete"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_delete( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_event_by_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_event_by_id"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_event_by_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_metadata"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_query"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_query"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_query( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_save_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_save_event"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_save_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_wipe"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_wipe"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_wipe( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrsigner"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrsigner"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrsigner( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrsigner"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrsigner"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nostrsigner( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_custom"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_custom"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_custom( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_keys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_keys"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_keys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_nostr_connect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "nostrsigner_nostr_connect"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_nostr_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_backend"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_backend"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_backend( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_get_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_get_public_key"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_get_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_decrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_encrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_decrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_encrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_sign_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_sign_event"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_sign_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnectoptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnectoptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnectoptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnectoptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnectoptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnectoptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnectoptions_" - "new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "nostrwalletconnectoptions_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnectoptions_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_" - "connection_mode"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrwalletconnectoptions_connection_mode"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_connection_mode( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_" - "timeout"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrwalletconnectoptions_timeout"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_timeout( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnecturi"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnecturi"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnecturi( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnecturi"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnecturi"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnecturi( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "nostrwalletconnecturi_new"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_" - "parse"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "nostrwalletconnecturi_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_lud16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrwalletconnecturi_lud16"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_lud16( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_public_" - "key"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrwalletconnecturi_public_key"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrwalletconnecturi_relays"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_secret"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrwalletconnecturi_secret"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_secret( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_" - "trait_debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrwalletconnecturi_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_" - "trait_eq_eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrwalletconnecturi_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_" - "trait_eq_ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "nostrwalletconnecturi_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_options"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_options"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_options(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_options"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_options"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_options(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_options_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_options_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_options_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_options_autoconnect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_options_autoconnect"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_options_autoconnect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_options_automatic_" - "authentication"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "options_automatic_authentication"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_options_automatic_authentication( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_options_connection"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_options_connection"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_options_connection( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_options_gossip"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_options_gossip"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_options_gossip( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_options_max_avg_latency"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_options_max_avg_latency"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_options_max_avg_latency( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_options_relay_limits"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_options_relay_limits"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_options_relay_limits( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_publickey"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_publickey"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_publickey( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_publickey"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_publickey"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_publickey( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_publickey_from_bytes"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_publickey_from_bytes"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_publickey_from_bytes( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_publickey_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_publickey_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_publickey_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_hex"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_hex"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_to_hex( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_nostr_uri"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "publickey_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "publickey_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "publickey_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "publickey_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_relay"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_relay(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_relay"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_relay(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_batch_msg"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_batch_msg"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_batch_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_connect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_connect"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_connection_mode"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_connection_mode"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_connection_mode( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_count_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_count_events"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_count_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_disconnect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_disconnect"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_disconnect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_document"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_document"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_document( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_fetch_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_fetch_events"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_fetch_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_is_connected"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_is_connected"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_is_connected( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_opts"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_opts"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_opts( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_queue"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_queue"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_queue( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_send_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_send_event"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_send_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_send_msg"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_send_msg"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_send_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_stats"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_stats"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_stats( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_status"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_status"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_status( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe_with_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe_with_id"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe_with_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscription"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscription"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscription( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscriptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscriptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscriptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_sync"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_sync"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_sync( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_sync_with_items"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_sync_with_items"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_sync_with_items( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_try_connect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_try_connect"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_try_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe_all"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe_all"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe_all( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_url"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_url"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relay_url( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayconnectionstats"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayconnectionstats"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_relayconnectionstats( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_relayconnectionstats"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_relayconnectionstats"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_relayconnectionstats( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_attempts"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayconnectionstats_attempts"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_attempts( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_" - "received"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayconnectionstats_bytes_received"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_received( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_sent"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayconnectionstats_bytes_sent"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_sent( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_connected_" - "at"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayconnectionstats_connected_at"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_connected_at( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_first_" - "connection_timestamp"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_first_" - "connection_timestamp"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_first_connection_timestamp( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_latency"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayconnectionstats_latency"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_latency( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayconnectionstats_success"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success_" - "rate"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayconnectionstats_success_rate"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success_rate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayinformationdocument"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayinformationdocument"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_clone_relayinformationdocument( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_relayinformationdocument"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_relayinformationdocument"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_free_relayinformationdocument( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relayinformationdocument_" - "new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "relayinformationdocument_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relayinformationdocument_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_" - "contact"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_contact"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_contact( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_" - "description"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_description"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_description( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_fees"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_fees"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_fees( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_icon"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_icon"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_icon( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_language_" - "tags"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_language_tags"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_language_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_" - "limitation"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_limitation"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_limitation( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_name"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_payments_" - "url"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_payments_url"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_payments_url( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_posting_" - "policy"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_posting_policy"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_posting_policy( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_pubkey"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_pubkey"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_pubkey( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_relay_" - "countries"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_relay_countries"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_relay_countries( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_" - "retention"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_retention"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_retention( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_" - "software"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_software"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_software( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_" - "supported_nips"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_supported_nips"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_supported_nips( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_tags"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_" - "version"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_version"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_version( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_" - "trait_debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_" - "trait_eq_eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_" - "trait_eq_ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_" - "trait_hash"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayinformationdocument_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_relaylimits"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_relaylimits"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_relaylimits( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_relaylimits"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_relaylimits"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_relaylimits( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_disable"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_disable"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_disable( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaylimits_event_max_num_tags"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags_" - "per_kind"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaylimits_event_max_num_tags_per_kind"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags_per_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size_per_" - "kind"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaylimits_event_max_size_per_kind"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size_per_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_message_max_size"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaylimits_message_max_size"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_message_max_size( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaylimits_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaylimits_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaylimits_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_relaymessage"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_relaymessage"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_relaymessage( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_relaymessage"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_relaymessage"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_relaymessage( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_auth"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_auth"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_auth( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_closed"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_closed"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_closed( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_count"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_count"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_count( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_eose"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_eose"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_eose( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_event"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_enum"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_relaymessage_from_enum"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_relaymessage_from_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_notice"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_notice"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_notice( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_ok"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_ok"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_ok( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_enum"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_enum"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaymessage_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaymessage_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaymessage_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relaymessage_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayoptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayoptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_relayoptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_relayoptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_relayoptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_relayoptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relayoptions_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relayoptions_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_relayoptions_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_adjust_retry_" - "interval"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayoptions_adjust_retry_interval"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_adjust_retry_interval( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_connection_mode"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayoptions_connection_mode"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_connection_mode( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_limits"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_limits"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_limits( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_max_avg_latency"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayoptions_max_avg_latency"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_max_avg_latency( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_ping"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_ping"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_ping( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_read"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_read"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_read( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_reconnect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_reconnect"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_reconnect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_retry_interval"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "relayoptions_retry_interval"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_retry_interval( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_write"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_write"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_write( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_request"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_request"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_request(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_request"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_request"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_request(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_request_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_request_new"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_request_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_request_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_request_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_request_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_request_method"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_request_method"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_request_method( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_request_params"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_request_params"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_request_params( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_response"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_response"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_response( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_response"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_response"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_response(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "response_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "response_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "response_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_secretkey"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_secretkey"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_secretkey( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_secretkey"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_secretkey"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_secretkey( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_from_bytes"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_from_bytes"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_from_bytes( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_generate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_generate"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_generate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_encrypt"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_bech32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_hex"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_hex"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_hex( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "secretkey_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "secretkey_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "secretkey_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_serverconfig"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_serverconfig"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_serverconfig( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_serverconfig"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_serverconfig"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_serverconfig( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_shippingmethod"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_shippingmethod"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_shippingmethod( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_shippingmethod"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_shippingmethod"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_shippingmethod( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_shippingmethod_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_shippingmethod_new"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_shippingmethod_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_get_shipping_" - "cost"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "shippingmethod_get_shipping_cost"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_get_shipping_cost( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_name"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_regions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_regions"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_regions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_singlelettertag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_singlelettertag"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_singlelettertag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_singlelettertag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_singlelettertag"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_singlelettertag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_lowercase"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "singlelettertag_lowercase"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_lowercase( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_uppercase"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "singlelettertag_uppercase"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_uppercase( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_lowercase"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "singlelettertag_is_lowercase"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_lowercase( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_uppercase"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "singlelettertag_is_uppercase"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_uppercase( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_" - "debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "singlelettertag_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_" - "eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "singlelettertag_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_" - "ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "singlelettertag_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_" - "hash"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "singlelettertag_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_stalldata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_stalldata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_stalldata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_stalldata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_stalldata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_stalldata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_record"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_new"), - 5, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_record"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_currency"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_currency"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_currency( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_description"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_description"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_description( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_id"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_name"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_shipping"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_shipping"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_shipping( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_subscribeautocloseoptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_subscribeautocloseoptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_clone_subscribeautocloseoptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_subscribeautocloseoptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_subscribeautocloseoptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_free_subscribeautocloseoptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_subscribeautocloseoptions_" - "new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "subscribeautocloseoptions_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_subscribeautocloseoptions_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_exit_" - "policy"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "subscribeautocloseoptions_exit_policy"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_exit_policy( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_idle_" - "timeout"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "subscribeautocloseoptions_idle_timeout"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_idle_timeout( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_" - "timeout"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "subscribeautocloseoptions_timeout"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_timeout( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_subscribeoptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_subscribeoptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_subscribeoptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_subscribeoptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_subscribeoptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_subscribeoptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_subscribeoptions_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_subscribeoptions_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_subscribeoptions_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeoptions_close_on"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeoptions_close_on"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeoptions_close_on( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_syncoptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_syncoptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_syncoptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_syncoptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_syncoptions"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_syncoptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_syncoptions_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_syncoptions_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_syncoptions_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_direction"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_direction"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_syncoptions_direction( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_dry_run"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_dry_run"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_syncoptions_dry_run( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_initial_timeout"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "syncoptions_initial_timeout"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_syncoptions_initial_timeout( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_tag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_tag"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_tag(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_tag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_tag"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_tag(rt, thisVal, args, - count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_alt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_alt"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_alt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_client"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_client"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_client( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_coordinate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_coordinate"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_coordinate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_custom"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_custom"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_custom( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_description"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_description"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_description( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_event"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_event_report"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_event_report"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_event_report( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_expiration"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_expiration"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_expiration( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_from_standardized"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_from_standardized"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_from_standardized( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_hashtag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_hashtag"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_hashtag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_identifier"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_identifier"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_identifier( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_image"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_image"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_image( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_pow"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_pow"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_pow( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_protected"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_protected"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_protected( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key_report"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key_report"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key_report( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_reference"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_reference"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_reference( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_relay_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_relay_metadata"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_relay_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_title"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_title"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_title( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_as_standardized"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_as_standardized"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_as_standardized( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_as_vec"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_as_vec"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_as_vec( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_content"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_content"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_content( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_protected"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_protected"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_is_protected( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_reply"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_reply"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_is_reply( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_root"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_root"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_is_root( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_kind"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_kind_str"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_kind_str"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_kind_str( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_len"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_len"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_len( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_single_letter_tag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_single_letter_tag"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_single_letter_tag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_clone_tags"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_tags(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_free_tags"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_tags(rt, thisVal, - args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_list"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_list"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_list( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_text"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_text"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_text( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_parse"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_tags_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_coordinates"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_coordinates"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_coordinates( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_event_ids"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_event_ids"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_event_ids( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_expiration"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_expiration"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_expiration( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_filter"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_filter"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_filter( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_filter_standardized"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_filter_standardized"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_filter_standardized( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_find"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_find"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_find( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_find_standardized"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_find_standardized"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_find_standardized( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_first"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_first"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_first( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_get"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_get"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_get( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_hashtags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_hashtags"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_hashtags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_identifier"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_identifier"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_identifier( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_is_empty"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_is_empty"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_is_empty( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_last"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_last"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_last( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_len"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_len"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_len( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_public_keys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_public_keys"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_public_keys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_to_vec"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_to_vec"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_tags_to_vec( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_timestamp"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_timestamp"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_timestamp( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_timestamp"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_timestamp"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_timestamp( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_from_secs"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_from_secs"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_from_secs( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_now"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_now"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_now( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_as_secs"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_as_secs"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_as_secs( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_to_human_datetime"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "timestamp_to_human_datetime"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_to_human_datetime( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_debug"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "timestamp_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_eq"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "timestamp_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_ne"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "timestamp_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "timestamp_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_unsignedevent"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_unsignedevent"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_unsignedevent( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_unsignedevent"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_unsignedevent"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_unsignedevent( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_unsignedevent_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_" - "constructor_unsignedevent_from_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_unsignedevent_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_add_signature"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unsignedevent_add_signature"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_add_signature( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_pretty_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unsignedevent_as_pretty_json"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_pretty_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_author"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_author"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_author( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_content"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_content"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_content( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_created_at"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_created_at"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_created_at( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_id"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_kind"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign_with_keys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unsignedevent_sign_with_keys"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign_with_keys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_tags"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_" - "debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unsignedevent_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_" - "eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unsignedevent_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_" - "ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unsignedevent_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unsignedevent_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_unwrappedgift"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_unwrappedgift"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_unwrappedgift( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_unwrappedgift"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_unwrappedgift"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_unwrappedgift( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_unwrappedgift_from_gift_" - "wrap"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "unwrappedgift_from_gift_wrap"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_unwrappedgift_from_gift_wrap( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift__none"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift__none"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift__none( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_rumor"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_rumor"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_rumor( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_sender"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_sender"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_sender( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_" - "debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unwrappedgift_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_" - "eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unwrappedgift_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_" - "ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unwrappedgift_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_hash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "unwrappedgift_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_websocketadapter"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_websocketadapter"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_websocketadapter( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_websocketadapter"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_websocketadapter"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_websocketadapter( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_send"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_send"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_send( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_recv"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_recv"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_recv( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_close_" - "connection"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "websocketadapter_close_connection"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_close_connection( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_websocketadapterwrapper"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_websocketadapterwrapper"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_clone_websocketadapterwrapper( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_websocketadapterwrapper"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_websocketadapterwrapper"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_free_websocketadapterwrapper( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_websocketadapterwrapper_" - "new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_" - "websocketadapterwrapper_new"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_websocketadapterwrapper_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_clone_zaprequestdata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_clone_zaprequestdata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_clone_zaprequestdata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_free_zaprequestdata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_free_zaprequestdata"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_free_zaprequestdata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_constructor_zaprequestdata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_constructor_zaprequestdata_new"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_constructor_zaprequestdata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_amount"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_amount"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_amount( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_event_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_event_id"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_event_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_lnurl"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_lnurl"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_lnurl( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_message"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_message"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_message( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_" - "debug"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "zaprequestdata_uniffi_trait_debug"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_debug( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_" - "eq"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "zaprequestdata_uniffi_trait_eq_eq"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_eq( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_" - "ne"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "zaprequestdata_uniffi_trait_eq_ne"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_ne( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_" - "hash"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_method_" - "zaprequestdata_uniffi_trait_hash"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_hash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_create_delegation_tag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_create_delegation_tag"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_create_delegation_tag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_decrypt_received_private_zap_" - "message"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_decrypt_" - "received_private_zap_message"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_func_decrypt_received_private_zap_message( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_decrypt_sent_private_zap_message"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_" - "decrypt_sent_private_zap_message"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_func_decrypt_sent_private_zap_message( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_extract_relay_list"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_extract_relay_list"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_extract_relay_list( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_generate_shared_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_generate_shared_key"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_generate_shared_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_get_leading_zero_bits"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_get_leading_zero_bits"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_get_leading_zero_bits( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_get_nip05_profile"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_get_nip05_profile"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_get_nip05_profile( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_get_nip96_server_config"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_get_nip96_server_config"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_func_get_nip96_server_config( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_get_prefixes_for_difficulty"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_func_get_prefixes_for_difficulty"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_func_get_prefixes_for_difficulty( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_gift_wrap"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_gift_wrap"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_gift_wrap( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_gift_wrap_from_seal"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_gift_wrap_from_seal"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_gift_wrap_from_seal( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_git_hash_version"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_git_hash_version"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_git_hash_version( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_init_logger"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_init_logger"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_init_logger( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_make_private_msg"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_make_private_msg"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_make_private_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_nip04_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_nip04_decrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_nip04_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_nip04_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_nip04_encrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_nip04_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_nip11_get_information_document"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_" - "nip11_get_information_document"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_func_nip11_get_information_document( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_nip21_extract_from_text"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_nip21_extract_from_text"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_func_nip21_extract_from_text( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_nip44_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_nip44_decrypt"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_nip44_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_nip44_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_nip44_encrypt"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_nip44_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_nip57_anonymous_zap_request"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_func_nip57_anonymous_zap_request"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_func_nip57_anonymous_zap_request( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_nip57_private_zap_request"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_func_nip57_private_zap_request"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_func_nip57_private_zap_request( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_nip96_upload"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_nip96_upload"), - 5, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_nip96_upload( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_sign_delegation"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_sign_delegation"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_sign_delegation( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_tag_kind_to_string"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_tag_kind_to_string"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_tag_kind_to_string( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_validate_delegation_tag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_validate_delegation_tag"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_func_validate_delegation_tag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_verify_delegation_signature"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_func_verify_delegation_signature"), - 4, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_func_verify_delegation_signature( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_func_verify_nip05"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_fn_func_verify_nip05"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_fn_func_verify_nip05( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u8"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u8"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_u8(rt, thisVal, - args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u8"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u8"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u8( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_u8"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_u8"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_u8(rt, thisVal, - args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u8"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u8"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_u8( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i8"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i8"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_i8(rt, thisVal, - args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i8"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i8"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i8( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_i8"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_i8"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_i8(rt, thisVal, - args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i8"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i8"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_i8( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u16"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_u16( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u16"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u16( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_u16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_u16"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_u16( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u16"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_u16( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i16"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_i16( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i16"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i16( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_i16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_i16"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_i16( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i16"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_i16( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u32"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_u32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_u32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_u32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_u32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_u32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i32"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_i32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_i32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_i32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_i32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_i32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u64"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_u64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u64"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_u64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_u64"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_u64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u64"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_u64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i64"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_i64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i64"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_i64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_i64"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_i64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i64"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_i64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_f32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_f32"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_f32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_f32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_f32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_f32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_f32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_f32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_f32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_f32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_f32"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_f32( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_f64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_f64"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_f64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_f64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_f64"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_f64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_f64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_f64"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_f64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_f64"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_f64"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_f64( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_pointer( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_pointer( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_pointer( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_pointer( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void"), - 3, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_poll_void( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_cancel_void( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_free_void"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_free_void"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_free_void( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_rust_future_complete_void( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_create_delegation_tag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_func_create_delegation_tag"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_create_delegation_tag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_decrypt_received_private_zap_" - "message"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_" - "decrypt_received_private_zap_message"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_decrypt_received_private_zap_message( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_decrypt_sent_private_zap_" - "message"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_" - "decrypt_sent_private_zap_message"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_decrypt_sent_private_zap_message( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_extract_relay_list"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_extract_relay_list"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_extract_relay_list( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_generate_shared_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_func_generate_shared_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_generate_shared_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_leading_zero_bits"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_leading_zero_bits"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_get_leading_zero_bits( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_nip05_profile"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_nip05_profile"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_get_nip05_profile( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_nip96_server_config"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "func_get_nip96_server_config"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_get_nip96_server_config( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_prefixes_for_difficulty"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "func_get_prefixes_for_difficulty"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_get_prefixes_for_difficulty( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap_from_seal"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap_from_seal"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap_from_seal( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_git_hash_version"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_git_hash_version"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_git_hash_version( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_init_logger"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_init_logger"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_func_init_logger( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_make_private_msg"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_make_private_msg"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_make_private_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip04_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip04_decrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_func_nip04_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip04_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip04_encrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_func_nip04_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip11_get_information_" - "document"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_" - "nip11_get_information_document"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_nip11_get_information_document( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip21_extract_from_text"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "func_nip21_extract_from_text"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_nip21_extract_from_text( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip44_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip44_decrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_func_nip44_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip44_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip44_encrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_func_nip44_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip57_anonymous_zap_request"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "func_nip57_anonymous_zap_request"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_nip57_anonymous_zap_request( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip57_private_zap_request"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "func_nip57_private_zap_request"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_nip57_private_zap_request( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip96_upload"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip96_upload"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_func_nip96_upload( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_sign_delegation"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_sign_delegation"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_func_sign_delegation( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_tag_kind_to_string"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_tag_kind_to_string"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_tag_kind_to_string( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_validate_delegation_tag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "func_validate_delegation_tag"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_validate_delegation_tag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_verify_delegation_signature"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "func_verify_delegation_signature"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_func_verify_delegation_signature( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_func_verify_nip05"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_func_verify_nip05"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_func_verify_nip05( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_admitpolicy_admit_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_admitpolicy_admit_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_admitpolicy_admit_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_discovery_" - "relay"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "client_add_discovery_relay"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_discovery_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_read_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_add_read_relay"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_read_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay_with_" - "opts"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "client_add_relay_with_opts"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay_with_opts( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_write_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_add_write_relay"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_write_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_automatic_" - "authentication"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "client_automatic_authentication"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_automatic_authentication( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_connect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_connect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_connect_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_connect_relay"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_connect_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_database"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_database"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_database( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_disconnect_relay"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_combined_" - "events"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "client_fetch_combined_events"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_combined_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events_from"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_fetch_events_from"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events_from( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_fetch_metadata"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_all_" - "relays"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "client_force_remove_all_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_all_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_force_remove_relay"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap_to"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_handle_" - "notifications"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "client_handle_notifications"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_handle_notifications( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_relay"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_remove_all_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_remove_all_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_remove_all_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_remove_relay"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_remove_relay"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_remove_relay( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_send_event_builder"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder_" - "to"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "client_send_event_builder_to"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_to"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_msg_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_msg_to"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_msg_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_send_private_msg"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg_" - "to"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "client_send_private_msg_to"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_set_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_set_metadata"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_set_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_shutdown"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_shutdown"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_shutdown( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_sign_event_builder"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_sign_event_builder"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_sign_event_builder( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_signer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_signer"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_signer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_to"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_to"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_subscribe_with_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id_" - "to"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "client_subscribe_with_id_to"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id_to( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscription"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscription"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscription( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscriptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscriptions"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscriptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_sync"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_sync"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_sync( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_try_connect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_try_connect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_try_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe_all"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_unsubscribe_all"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe_all( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_unwrap_gift_wrap"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_client_unwrap_gift_wrap"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_unwrap_gift_wrap( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_wait_for_" - "connection"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "client_wait_for_connection"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_client_wait_for_connection( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_admit_" - "policy"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "clientbuilder_admit_policy"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_admit_policy( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_build"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_build"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_build( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_database"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_clientbuilder_database"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_database( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_opts"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_opts"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_opts( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_signer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_signer"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_signer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_websocket_" - "transport"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "clientbuilder_websocket_transport"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_websocket_transport( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_enum"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_clientmessage_as_enum"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_clientmessage_as_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_addr"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_addr"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_connection_addr( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_mode"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_mode"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_connection_mode( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_target"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_target"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_connection_target( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_identifier"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_coordinate_identifier"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_identifier( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_kind"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_coordinate_public_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_verify"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_verify"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_verify( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_backend"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_customnostrsigner_backend"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_backend( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_get_" - "public_key"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "customnostrsigner_get_public_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_get_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_sign_" - "event"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "customnostrsigner_sign_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_sign_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_" - "encrypt"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "customnostrsigner_nip04_encrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_" - "decrypt"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "customnostrsigner_nip04_decrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_" - "encrypt"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "customnostrsigner_nip44_encrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_" - "decrypt"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "customnostrsigner_nip44_decrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_" - "support_ping"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "customwebsockettransport_support_ping"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_support_ping( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_" - "connect"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "customwebsockettransport_connect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_" - "decrypt"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "encryptedsecretkey_decrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_key_" - "security"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "encryptedsecretkey_key_security"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_key_security( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_to_" - "bech32"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "encryptedsecretkey_to_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_" - "version"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "encryptedsecretkey_version"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_version( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_as_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_as_pretty_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_as_pretty_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_as_pretty_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_author"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_author"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_author( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_content"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_content"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_content( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_created_at"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_created_at"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_created_at( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_is_expired"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_is_expired"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_is_expired( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_is_protected"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_is_protected"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_is_protected( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_kind"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_signature"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_signature"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_signature( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_tags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_verify( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_verify_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify_signature"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_event_verify_signature"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_event_verify_signature( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_allow_self_" - "tagging"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "eventbuilder_allow_self_tagging"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_allow_self_tagging( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_build"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_build"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_build( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_custom_created_" - "at"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "eventbuilder_custom_created_at"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_custom_created_at( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_dedup_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_eventbuilder_dedup_tags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_dedup_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_pow"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_pow"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_pow( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign_with_" - "keys"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "eventbuilder_sign_with_keys"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign_with_keys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_tags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_as_bytes"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_as_bytes"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_as_bytes( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_hex"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_hex"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_hex( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_nostr_uri"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_contains"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_contains"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_events_contains( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_first"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_first"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_events_first( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_is_empty"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_is_empty"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_events_is_empty( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_len"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_len"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_events_len( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_merge"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_merge"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_events_merge( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_to_vec"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_to_vec"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_events_to_vec( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_aes_256_gcm"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_filemetadata_aes_256_gcm"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_aes_256_gcm( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_blurhash"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_filemetadata_blurhash"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_blurhash( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_dimensions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_filemetadata_dimensions"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_dimensions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_magnet"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_magnet"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_magnet( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_size"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_size"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_size( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_as_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_as_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_as_record"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_as_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_author"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_author"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_author( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_authors"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_authors"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_authors( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinate"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinates"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinates"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinates( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tag"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_events"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtag"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_identifier"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_identifier"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_identifier( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_identifiers"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_identifiers"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_identifiers( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_ids"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_ids"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_ids( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_is_empty"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_is_empty"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_is_empty( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_kind"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_kinds"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_kinds"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_kinds( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_limit"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_limit"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_limit( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_match_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_match_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_match_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkey"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkey"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkey( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkeys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkeys"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkeys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_reference"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_reference"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_reference( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_references"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_references"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_references( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_authors"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_filter_remove_authors"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_authors( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_coordinates"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_filter_remove_coordinates"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_coordinates( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_custom_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_filter_remove_custom_tags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_custom_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_events"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_hashtags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_filter_remove_hashtags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_hashtags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_identifiers"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_filter_remove_identifiers"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_identifiers( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_ids"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_ids"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_ids( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_kinds"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_kinds"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_kinds( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_limit"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_limit"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_limit( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_pubkeys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_filter_remove_pubkeys"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_pubkeys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_references"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_filter_remove_references"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_references( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_search"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_search"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_search( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_since"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_since"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_since( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_until"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_until"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_until( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_search"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_search"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_search( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_since"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_since"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_since( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_until"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_until"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_until( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle_" - "msg"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "handlenotification_handle_msg"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_handlenotification_handle"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_amount"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_jobfeedbackdata_amount"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_amount( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_extra_" - "info"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "jobfeedbackdata_extra_info"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_extra_info( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_payload"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_jobfeedbackdata_payload"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_payload( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_public_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_keys_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_secret_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_secret_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_keys_secret_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_sign_schnorr"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_sign_schnorr"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_keys_sign_schnorr( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_as_std"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_as_std"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_as_std( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_as_u16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_as_u16"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_as_u16( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_addressable"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_addressable"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_addressable( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_ephemeral"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_ephemeral"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_ephemeral( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_request"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_request"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_request( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_result"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_result"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_result( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_regular"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_regular"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_regular( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_replaceable"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_replaceable"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_replaceable( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_pretty_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_metadata_as_pretty_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_pretty_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_record"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_about"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_about"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_about( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_banner"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_banner"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_banner( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_custom_field"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_metadata_get_custom_field"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_custom_field( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_display_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_metadata_get_display_name"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_display_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud06"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud06"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud06( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud16"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud16( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_name"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_nip05"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_nip05"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_nip05( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_picture"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_picture"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_picture( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_website"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_website"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_website( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_about"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_about"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_about( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_banner"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_banner"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_banner( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_custom_field"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_metadata_set_custom_field"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_custom_field( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_display_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_metadata_set_display_name"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_display_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud06"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud06"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud06( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud16"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud16"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud16( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_name"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_nip05"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_nip05"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_nip05( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_picture"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_picture"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_picture( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_website"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_website"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_website( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_balance"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_balance"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_balance( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_info"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_info"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_info( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_list_transactions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nwc_list_transactions"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_list_transactions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_lookup_invoice"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_lookup_invoice"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_lookup_invoice( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_make_invoice"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_make_invoice"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_make_invoice( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_invoice"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_invoice"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_invoice( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_keysend"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_keysend"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_keysend( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_status"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_status"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_status( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_nip46"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_nip46"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_nip46( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nip05profile_public_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19_as_enum"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19_as_enum"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19_as_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_" - "coordinate"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nip19coordinate_coordinate"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_coordinate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nip19coordinate_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nip19coordinate_to_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_nostr_" - "uri"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nip19coordinate_to_nostr_uri"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_author"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_author"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_author( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_event_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_event_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_event_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_kind"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nip19event_to_nostr_uri"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nip19profile_public_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nip19profile_to_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nip19profile_to_nostr_uri"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip21_as_enum"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip21_as_enum"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip21_as_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip21_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip21_to_nostr_uri"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nip21_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_bunker_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrconnect_bunker_uri"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_bunker_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_get_public_" - "key"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrconnect_get_public_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_get_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_" - "decrypt"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrconnect_nip04_decrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_" - "encrypt"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrconnect_nip04_encrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_" - "decrypt"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrconnect_nip44_decrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_" - "encrypt"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrconnect_nip44_encrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_relays"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_sign_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrconnect_sign_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_sign_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_as_" - "json"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrconnectmetadata_as_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_" - "description"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrconnectmetadata_description"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_description( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_" - "icons"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrconnectmetadata_icons"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_icons( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_url"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrconnectmetadata_url"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_url( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_count"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_count"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_count( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_delete"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_delete"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_delete( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_event_by_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrdatabase_event_by_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_event_by_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrdatabase_metadata"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_query"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_query"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_query( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_save_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrdatabase_save_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_save_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_wipe"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_wipe"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_wipe( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_backend"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_backend"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_backend( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_get_public_" - "key"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrsigner_get_public_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_get_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrsigner_nip04_decrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrsigner_nip04_encrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_decrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrsigner_nip44_decrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_decrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrsigner_nip44_encrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_sign_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_nostrsigner_sign_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_sign_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_" - "connection_mode"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrwalletconnectoptions_connection_mode"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_connection_mode( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_" - "timeout"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrwalletconnectoptions_timeout"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_timeout( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_" - "lud16"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrwalletconnecturi_lud16"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_lud16( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_" - "public_key"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrwalletconnecturi_public_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_" - "relays"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrwalletconnecturi_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_" - "secret"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "nostrwalletconnecturi_secret"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_secret( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_autoconnect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_autoconnect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_options_autoconnect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_automatic_" - "authentication"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "options_automatic_authentication"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_options_automatic_authentication( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_connection"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_connection"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_options_connection( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_gossip"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_gossip"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_options_gossip( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_max_avg_latency"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_options_max_avg_latency"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_options_max_avg_latency( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_relay_limits"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_relay_limits"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_options_relay_limits( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_hex"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_hex"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_hex( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_nostr_uri"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_publickey_to_nostr_uri"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_batch_msg"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_batch_msg"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_batch_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_connect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_connect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_connection_mode"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_relay_connection_mode"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_connection_mode( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_count_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_count_events"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_count_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_disconnect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_disconnect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_disconnect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_document"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_document"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_document( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_fetch_events"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_fetch_events"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_fetch_events( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_is_connected"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_is_connected"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_is_connected( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_opts"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_opts"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_opts( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_queue"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_queue"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_queue( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_send_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_send_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_send_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_send_msg"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_send_msg"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_send_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_stats"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_stats"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_stats( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_status"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_status"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_status( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe_with_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_relay_subscribe_with_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe_with_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscription"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscription"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscription( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscriptions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscriptions"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscriptions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_sync"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_sync"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_sync( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_sync_with_items"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_relay_sync_with_items"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_sync_with_items( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_try_connect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_try_connect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_try_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe_all"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_relay_unsubscribe_all"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe_all( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_url"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_url"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_url( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_" - "attempts"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayconnectionstats_attempts"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_attempts( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_" - "received"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayconnectionstats_bytes_received"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_received( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_" - "sent"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayconnectionstats_bytes_sent"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_sent( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_" - "connected_at"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayconnectionstats_connected_at"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_connected_at( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_first_" - "connection_timestamp"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_" - "first_connection_timestamp"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_first_connection_timestamp( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_" - "latency"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayconnectionstats_latency"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_latency( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_" - "success"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayconnectionstats_success"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_" - "success_rate"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayconnectionstats_success_rate"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success_rate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "contact"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_contact"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_contact( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "description"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_description"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_description( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "fees"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_fees"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_fees( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "icon"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_icon"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_icon( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "language_tags"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_language_tags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_language_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "limitation"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_limitation"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_limitation( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "name"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_name"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "payments_url"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_payments_url"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_payments_url( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "posting_policy"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_posting_policy"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_posting_policy( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "pubkey"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_pubkey"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_pubkey( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "relay_countries"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_relay_countries"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_relay_countries( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "retention"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_retention"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_retention( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "software"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_software"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_software( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "supported_nips"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_supported_nips"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_supported_nips( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "tags"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_tags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_" - "version"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayinformationdocument_version"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_version( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_" - "tags"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relaylimits_event_max_num_tags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_" - "tags_per_kind"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relaylimits_event_max_num_tags_per_kind"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags_per_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_" - "size"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relaylimits_event_max_size"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size_" - "per_kind"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relaylimits_event_max_size_per_kind"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size_per_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_message_max_" - "size"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relaylimits_message_max_size"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_message_max_size( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_enum"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_enum"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_adjust_retry_" - "interval"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayoptions_adjust_retry_interval"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_adjust_retry_interval( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_connection_" - "mode"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayoptions_connection_mode"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_connection_mode( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_limits"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_limits"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_limits( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_max_avg_" - "latency"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayoptions_max_avg_latency"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_max_avg_latency( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_ping"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_ping"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_ping( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_read"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_read"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_read( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_reconnect"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_relayoptions_reconnect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_reconnect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_retry_" - "interval"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "relayoptions_retry_interval"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_retry_interval( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_write"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_write"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_write( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_request_method"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_request_method"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_request_method( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_request_params"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_request_params"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_request_params( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_encrypt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_encrypt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_secretkey_encrypt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_hex"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_hex"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_hex( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_get_shipping_" - "cost"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "shippingmethod_get_shipping_cost"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_get_shipping_cost( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_name"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_regions"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_shippingmethod_regions"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_regions( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_" - "lowercase"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "singlelettertag_is_lowercase"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_lowercase( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_" - "uppercase"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "singlelettertag_is_uppercase"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_uppercase( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_record"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_currency"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_currency"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_currency( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_description"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_stalldata_description"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_description( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_name"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_name"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_name( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_shipping"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_shipping"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_shipping( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_" - "exit_policy"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "subscribeautocloseoptions_exit_policy"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_exit_policy( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_" - "idle_timeout"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "subscribeautocloseoptions_idle_timeout"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_idle_timeout( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_" - "timeout"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "subscribeautocloseoptions_timeout"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_timeout( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeoptions_close_on"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_subscribeoptions_close_on"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeoptions_close_on( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_direction"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_syncoptions_direction"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_direction( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_dry_run"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_dry_run"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_dry_run( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_initial_" - "timeout"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "syncoptions_initial_timeout"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_initial_timeout( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_as_standardized"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_as_standardized"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_as_standardized( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_as_vec"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_as_vec"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_as_vec( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_content"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_content"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_content( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_protected"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_protected"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_is_protected( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_reply"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_reply"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_is_reply( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_root"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_root"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_is_root( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_kind"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_kind_str"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_kind_str"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_kind_str( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_len"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_len"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_len( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_single_letter_tag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_tag_single_letter_tag"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_single_letter_tag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_coordinates"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_coordinates"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_coordinates( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_event_ids"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_event_ids"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_event_ids( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_expiration"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_expiration"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_expiration( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_filter"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_filter"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_filter( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_filter_standardized"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_tags_filter_standardized"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_filter_standardized( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_find"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_find"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_find( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_find_standardized"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_tags_find_standardized"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_find_standardized( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_first"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_first"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_first( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_get"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_get"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_get( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_hashtags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_hashtags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_hashtags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_identifier"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_identifier"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_identifier( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_is_empty"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_is_empty"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_is_empty( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_last"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_last"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_last( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_len"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_len"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_len( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_public_keys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_public_keys"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_public_keys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_to_vec"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_to_vec"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_to_vec( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_timestamp_as_secs"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_timestamp_as_secs"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_timestamp_as_secs( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_timestamp_to_human_" - "datetime"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "timestamp_to_human_datetime"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_timestamp_to_human_datetime( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_add_" - "signature"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "unsignedevent_add_signature"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_add_signature( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_unsignedevent_as_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_pretty_" - "json"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "unsignedevent_as_pretty_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_pretty_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_author"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_author"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_author( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_content"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_unsignedevent_content"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_content( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_created_at"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_unsignedevent_created_at"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_created_at( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_kind"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_kind"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_kind( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign_with_" - "keys"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "unsignedevent_sign_with_keys"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign_with_keys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_tags"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_tags"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_tags( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift__none"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift__none"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift__none( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_rumor"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_rumor"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_rumor( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_sender"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_sender"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_sender( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_send"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_websocketadapter_send"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_send( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_recv"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_websocketadapter_recv"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_recv( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_close_" - "connection"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_method_" - "websocketadapter_close_connection"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_close_connection( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_amount"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_zaprequestdata_amount"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_amount( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_event_id"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_zaprequestdata_event_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_event_id( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_lnurl"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_lnurl"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_lnurl( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_message"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "method_zaprequestdata_message"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_message( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_client_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_client_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_client_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientbuilder_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_clientbuilder_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientbuilder_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_auth"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_clientmessage_auth"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_auth( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_close"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_clientmessage_close"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_close( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_count"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_clientmessage_count"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_count( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_clientmessage_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_" - "enum"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_clientmessage_from_enum"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_" - "json"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_clientmessage_from_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_req"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_clientmessage_req"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_req( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_connection_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_connection_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_connection_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_coordinate_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_" - "from_bech32"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_encryptedsecretkey_from_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_from_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_" - "new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_encryptedsecretkey_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_event_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_event_from_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_event_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_articles_" - "curation_set"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_" - "articles_curation_set"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_articles_curation_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_auth"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_auth"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_auth( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_award_" - "badge"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_award_badge"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_award_badge( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_blocked_" - "relays"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_blocked_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_blocked_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_" - "bookmarks"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_bookmarks"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks_" - "set"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_bookmarks_set"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_channel"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_" - "metadata"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_channel_metadata"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_" - "msg"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_channel_msg"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_comment"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_comment"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_comment( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_" - "communities"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_communities"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_communities( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_contact_" - "list"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_contact_list"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_contact_list( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_define_" - "badge"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_define_badge"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_define_badge( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_delete"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_delete"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_delete( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emoji_" - "set"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_emoji_set"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emoji_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emojis"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_emojis"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emojis( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_file_" - "metadata"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_file_metadata"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_file_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_follow_" - "set"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_follow_set"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_follow_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_" - "issue"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_git_issue"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_issue( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_" - "patch"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_git_patch"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_patch( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_" - "repository_announcement"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_" - "repository_announcement"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_repository_announcement( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_hide_" - "channel_msg"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_hide_channel_msg"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_hide_channel_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_http_" - "auth"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_http_auth"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_http_auth( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interest_" - "set"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_interest_set"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interest_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_" - "interests"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_interests"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interests( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_" - "feedback"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_job_feedback"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_feedback( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_" - "request"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_job_request"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_request( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_" - "result"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_job_result"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_result( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_label"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_label"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_label( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_" - "event"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_live_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_" - "event_msg"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_live_event_msg"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event_msg( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_long_form_" - "text_note"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_long_form_text_note"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_long_form_text_note( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_" - "metadata"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_metadata"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_" - "channel_user"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_mute_channel_user"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_channel_user( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_" - "list"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_mute_list"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_list( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_nostr_" - "connect"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_nostr_connect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_nostr_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_pinned_" - "notes"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_pinned_notes"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_pinned_notes( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_private_" - "msg_rumor"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_private_msg_rumor"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_private_msg_rumor( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_product_" - "data"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_product_data"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_product_data( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_profile_" - "badges"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_profile_badges"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_profile_badges( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_" - "chats"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_public_chats"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_chats( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_" - "zap_request"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_public_zap_request"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_zap_request( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_" - "reaction"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_reaction"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction_" - "extended"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_reaction_extended"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction_extended( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_" - "list"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_relay_list"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_list( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_" - "set"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_relay_set"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_report"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_report"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_report( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_repost"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_repost"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_repost( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_seal"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_seal"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_seal( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_search_" - "relays"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_search_relays"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_search_relays( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_stall_" - "data"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_stall_data"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_stall_data( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_" - "note"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_text_note"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note_" - "reply"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_text_note_reply"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note_reply( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_videos_" - "curation_set"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_videos_curation_set"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_videos_curation_set( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_zap_" - "receipt"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventbuilder_zap_receipt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_zap_receipt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_from_bytes"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_eventid_from_bytes"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_from_bytes( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filemetadata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_filemetadata_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filemetadata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_filter_from_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_filter_from_record"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filter_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filter_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filter_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_jobfeedbackdata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_jobfeedbackdata_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_jobfeedbackdata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_from_mnemonic"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_keys_from_mnemonic"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_from_mnemonic( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_generate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_generate"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_generate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_kind_from_std"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_kind_from_std"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_kind_from_std( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_kind_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_kind_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_kind_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_metadata_from_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_record"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_metadata_from_record"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_with_opts"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_with_opts"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_with_opts( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19_from_bech32"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nip19_from_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19_from_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_" - "bech32"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nip19coordinate_from_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_" - "nostr_uri"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nip19coordinate_from_nostr_uri"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nip19coordinate_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_" - "bech32"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nip19event_from_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_" - "event"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nip19event_from_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_nostr_" - "uri"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nip19event_from_nostr_uri"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_" - "bech32"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nip19profile_from_bech32"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_bech32( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_" - "nostr_uri"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nip19profile_from_nostr_uri"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_nostr_uri( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nip19profile_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip21_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip21_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip21_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnect_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nostrconnect_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnect_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnectmetadata_" - "new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nostrconnectmetadata_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnectmetadata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnecturi_" - "parse"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nostrconnecturi_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnecturi_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrdatabase_lmdb"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nostrdatabase_lmdb"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrdatabase_lmdb( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_custom"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nostrsigner_custom"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_custom( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_keys"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nostrsigner_keys"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_keys( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_nostr_" - "connect"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nostrsigner_nostr_connect"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_nostr_connect( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_" - "nostrwalletconnectoptions_new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nostrwalletconnectoptions_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnectoptions_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_" - "new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nostrwalletconnecturi_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_" - "parse"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_nostrwalletconnecturi_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_options_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_options_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_options_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_from_bytes"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_publickey_from_bytes"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_from_bytes( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_" - "relayinformationdocument_new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relayinformationdocument_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relayinformationdocument_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_disable"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relaylimits_disable"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_disable( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_auth"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relaymessage_auth"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_auth( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_closed"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relaymessage_closed"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_closed( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_count"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relaymessage_count"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_count( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_eose"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relaymessage_eose"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_eose( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relaymessage_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_" - "enum"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relaymessage_from_enum"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_enum( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_" - "json"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relaymessage_from_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_notice"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relaymessage_notice"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_notice( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_ok"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_ok"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_ok( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relayoptions_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_relayoptions_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relayoptions_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_request_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_request_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_request_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_request_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_request_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_request_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_from_bytes"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_secretkey_from_bytes"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_from_bytes( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_generate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_secretkey_generate"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_generate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_shippingmethod_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_shippingmethod_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_shippingmethod_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_" - "lowercase"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_singlelettertag_lowercase"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_lowercase( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_" - "uppercase"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_singlelettertag_uppercase"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_uppercase( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_stalldata_from_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_" - "record"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_stalldata_from_record"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_record( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_" - "subscribeautocloseoptions_new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_subscribeautocloseoptions_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeautocloseoptions_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeoptions_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_subscribeoptions_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeoptions_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_syncoptions_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_syncoptions_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_syncoptions_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_alt"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_alt"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_alt( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_client"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_client"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_client( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_coordinate"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_coordinate"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_coordinate( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_custom"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_custom"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_custom( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_description"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_description"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_description( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event_report"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_tag_event_report"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event_report( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_expiration"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_expiration"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_expiration( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_from_" - "standardized"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_tag_from_standardized"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_from_standardized( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_hashtag"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_hashtag"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_hashtag( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_identifier"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_identifier"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_identifier( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_image"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_image"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_image( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_pow"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_pow"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_pow( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_protected"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_protected"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_protected( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key_" - "report"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_tag_public_key_report"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key_report( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_reference"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_reference"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_reference( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_relay_metadata"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_tag_relay_metadata"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_relay_metadata( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_title"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_title"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_title( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_list"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_list"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_list( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_text"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_text"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_text( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_parse"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_parse"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tags_parse( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_from_secs"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_timestamp_from_secs"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_from_secs( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_now"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_now"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_now( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_unsignedevent_from_" - "json"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_unsignedevent_from_json"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_unsignedevent_from_json( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_unwrappedgift_from_" - "gift_wrap"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_unwrappedgift_from_gift_wrap"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_unwrappedgift_from_gift_wrap( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_" - "websocketadapterwrapper_new"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_websocketadapterwrapper_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_websocketadapterwrapper_new( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_zaprequestdata_new"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_checksum_" - "constructor_zaprequestdata_new"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_checksum_constructor_zaprequestdata_new( - rt, thisVal, args, count); - }); - props["ubrn_ffi_nostr_sdk_ffi_uniffi_contract_version"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_ffi_nostr_sdk_ffi_uniffi_contract_version"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_ffi_nostr_sdk_ffi_uniffi_contract_version( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_admitpolicy"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_admitpolicy"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_admitpolicy( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customnostrsigner"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_init_" - "callback_vtable_customnostrsigner"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customnostrsigner( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_" - "customwebsockettransport"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_init_" - "callback_vtable_customwebsockettransport"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customwebsockettransport( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_" - "handlenotification"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_init_" - "callback_vtable_handlenotification"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_handlenotification( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_websocketadapter"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nostr_sdk_ffi_fn_init_" - "callback_vtable_websocketadapter"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_websocketadapter( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_admitpolicy_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_admitpolicy_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_admitpolicy_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_client_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_client_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_client_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_clientbuilder_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "clientbuilder_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_clientbuilder_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_clientmessage_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "clientmessage_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_clientmessage_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_connection_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_connection_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_connection_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_coordinate_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_coordinate_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_coordinate_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_customnostrsigner_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "customnostrsigner_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_customnostrsigner_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_customwebsockettransport_ffi__bless_" - "pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_internal_fn_method_" - "customwebsockettransport_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_customwebsockettransport_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_encryptedsecretkey_ffi__bless_" - "pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "encryptedsecretkey_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_encryptedsecretkey_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_event_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_event_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_method_event_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_eventbuilder_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_eventbuilder_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_eventbuilder_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_eventid_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_eventid_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_eventid_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_events_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_events_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_events_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_filemetadata_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_filemetadata_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_filemetadata_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_filter_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_filter_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_filter_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_handlenotification_ffi__bless_" - "pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "handlenotification_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_handlenotification_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_jobfeedbackdata_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "jobfeedbackdata_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_jobfeedbackdata_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_keys_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_keys_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_method_keys_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_kind_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_kind_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_method_kind_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_metadata_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_metadata_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_metadata_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nwc_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_nwc_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_method_nwc_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nip05profile_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_nip05profile_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nip05profile_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nip19_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_nip19_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_method_nip19_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nip19coordinate_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "nip19coordinate_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nip19coordinate_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nip19event_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_nip19event_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nip19event_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nip19profile_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_nip19profile_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nip19profile_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nip21_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_nip21_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_method_nip21_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nostrconnect_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_nostrconnect_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nostrconnect_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nostrconnectmetadata_ffi__bless_" - "pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "nostrconnectmetadata_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nostrconnectmetadata_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nostrconnecturi_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "nostrconnecturi_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nostrconnecturi_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nostrdatabase_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "nostrdatabase_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nostrdatabase_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nostrsigner_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_nostrsigner_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nostrsigner_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nostrwalletconnectoptions_ffi__bless_" - "pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_internal_fn_method_" - "nostrwalletconnectoptions_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nostrwalletconnectoptions_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_nostrwalletconnecturi_ffi__bless_" - "pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "nostrwalletconnecturi_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_nostrwalletconnecturi_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_options_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_options_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_options_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_publickey_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_publickey_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_publickey_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_relay_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_relay_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_method_relay_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_relayconnectionstats_ffi__bless_" - "pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "relayconnectionstats_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_relayconnectionstats_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_relayinformationdocument_ffi__bless_" - "pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_internal_fn_method_" - "relayinformationdocument_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_relayinformationdocument_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_relaylimits_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_relaylimits_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_relaylimits_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_relaymessage_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_relaymessage_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_relaymessage_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_relayoptions_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_relayoptions_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_relayoptions_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_request_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_request_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_request_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_response_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_response_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_response_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_secretkey_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_secretkey_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_secretkey_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_serverconfig_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_serverconfig_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_serverconfig_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_shippingmethod_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "shippingmethod_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_shippingmethod_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_singlelettertag_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "singlelettertag_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_singlelettertag_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_stalldata_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_stalldata_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_stalldata_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_subscribeautocloseoptions_ffi__bless_" - "pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_internal_fn_method_" - "subscribeautocloseoptions_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_subscribeautocloseoptions_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_subscribeoptions_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "subscribeoptions_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_subscribeoptions_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_syncoptions_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_syncoptions_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_syncoptions_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_tag_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_tag_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_method_tag_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_tags_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "ubrn_uniffi_internal_fn_method_tags_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_internal_fn_method_tags_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_timestamp_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "ubrn_uniffi_internal_fn_method_timestamp_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_timestamp_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_unsignedevent_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "unsignedevent_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_unsignedevent_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_unwrappedgift_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "unwrappedgift_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_unwrappedgift_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_websocketadapter_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "websocketadapter_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_websocketadapter_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_websocketadapterwrapper_ffi__bless_" - "pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "ubrn_uniffi_internal_fn_method_" - "websocketadapterwrapper_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_websocketadapterwrapper_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["ubrn_uniffi_internal_fn_method_zaprequestdata_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_" - "zaprequestdata_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_zaprequestdata_ffi__bless_pointer( - rt, thisVal, args, count); - }); -} - -void NativeNostrSdk::registerModule( - jsi::Runtime &rt, std::shared_ptr callInvoker) { - auto invoker = - std::make_shared(callInvoker); - auto tm = std::make_shared(rt, invoker); - auto obj = rt.global().createFromHostObject(rt, tm); - rt.global().setProperty(rt, "NativeNostrSdk", obj); -} - -void NativeNostrSdk::unregisterModule(jsi::Runtime &rt) { - uniffi::nostr_sdk::registry::clearRegistry(); -} - -jsi::Value NativeNostrSdk::get(jsi::Runtime &rt, const jsi::PropNameID &name) { - try { - return jsi::Value(rt, props.at(name.utf8(rt))); - } catch (std::out_of_range &e) { - return jsi::Value::undefined(); - } -} - -std::vector -NativeNostrSdk::getPropertyNames(jsi::Runtime &rt) { - std::vector rval; - for (auto &[key, value] : props) { - rval.push_back(jsi::PropNameID::forUtf8(rt, key)); - } - return rval; -} - -void NativeNostrSdk::set(jsi::Runtime &rt, const jsi::PropNameID &name, - const jsi::Value &value) { - props.insert_or_assign(name.utf8(rt), &value); -} - -NativeNostrSdk::~NativeNostrSdk() { - // Cleanup for callback function RustFutureContinuationCallback - uniffi::nostr_sdk::cb::rustfuturecontinuationcallback::cleanup(); - // Cleanup for "free" callback function CallbackInterfaceFree - uniffi::nostr_sdk::st::foreignfuture::foreignfuture::free::cleanup(); - uniffi::nostr_sdk::st::vtablecallbackinterfaceadmitpolicy:: - vtablecallbackinterfaceadmitpolicy::free::cleanup(); - uniffi::nostr_sdk::st::vtablecallbackinterfacecustomnostrsigner:: - vtablecallbackinterfacecustomnostrsigner::free::cleanup(); - uniffi::nostr_sdk::st::vtablecallbackinterfacecustomwebsockettransport:: - vtablecallbackinterfacecustomwebsockettransport::free::cleanup(); - uniffi::nostr_sdk::st::vtablecallbackinterfacehandlenotification:: - vtablecallbackinterfacehandlenotification::free::cleanup(); - uniffi::nostr_sdk::st::vtablecallbackinterfacewebsocketadapter:: - vtablecallbackinterfacewebsocketadapter::free::cleanup(); - // Cleanup for callback function CallbackInterfaceAdmitPolicyMethod0 - uniffi::nostr_sdk::cb::callbackinterfaceadmitpolicymethod0::cleanup(); - // Cleanup for callback function CallbackInterfaceCustomNostrSignerMethod0 - uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod0::cleanup(); - // Cleanup for callback function CallbackInterfaceCustomNostrSignerMethod1 - uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod1::cleanup(); - // Cleanup for callback function CallbackInterfaceCustomNostrSignerMethod2 - uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod2::cleanup(); - // Cleanup for callback function CallbackInterfaceCustomNostrSignerMethod3 - uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod3::cleanup(); - // Cleanup for callback function CallbackInterfaceCustomNostrSignerMethod4 - uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod4::cleanup(); - // Cleanup for callback function CallbackInterfaceCustomNostrSignerMethod5 - uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod5::cleanup(); - // Cleanup for callback function CallbackInterfaceCustomNostrSignerMethod6 - uniffi::nostr_sdk::cb::callbackinterfacecustomnostrsignermethod6::cleanup(); - // Cleanup for callback function - // CallbackInterfaceCustomWebSocketTransportMethod0 - uniffi::nostr_sdk::cb::callbackinterfacecustomwebsockettransportmethod0:: - cleanup(); - // Cleanup for callback function - // CallbackInterfaceCustomWebSocketTransportMethod1 - uniffi::nostr_sdk::cb::callbackinterfacecustomwebsockettransportmethod1:: - cleanup(); - // Cleanup for callback function CallbackInterfaceHandleNotificationMethod0 - uniffi::nostr_sdk::cb::callbackinterfacehandlenotificationmethod0::cleanup(); - // Cleanup for callback function CallbackInterfaceHandleNotificationMethod1 - uniffi::nostr_sdk::cb::callbackinterfacehandlenotificationmethod1::cleanup(); - // Cleanup for callback function CallbackInterfaceWebSocketAdapterMethod0 - uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod0::cleanup(); - // Cleanup for callback function CallbackInterfaceWebSocketAdapterMethod1 - uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod1::cleanup(); - // Cleanup for callback function CallbackInterfaceWebSocketAdapterMethod2 - uniffi::nostr_sdk::cb::callbackinterfacewebsocketadaptermethod2::cleanup(); -} - -// Utility functions for serialization/deserialization of strings. -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_func_ffi__string_to_byte_length( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - return uniffi_jsi::Bridging::string_to_bytelength(rt, args[0]); -} - -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - return uniffi_jsi::Bridging::string_to_arraybuffer(rt, args[0]); -} - -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - return uniffi_jsi::Bridging::arraybuffer_to_string(rt, args[0]); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_admitpolicy_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_admitpolicy(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_client_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_client(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_clientbuilder_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_clientbuilder(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_clientmessage_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_clientmessage(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_connection_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_connection(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_coordinate_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_coordinate(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_customnostrsigner_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_customnostrsigner(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_customwebsockettransport_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_customwebsockettransport(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_encryptedsecretkey_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_encryptedsecretkey(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_event_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_event(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_eventbuilder_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_eventbuilder(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_eventid_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_eventid(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_events_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_events(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_filemetadata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_filemetadata(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_filter_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_filter(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_handlenotification_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_handlenotification(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_jobfeedbackdata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_jobfeedbackdata(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_keys_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_keys(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_kind_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_kind(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_metadata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_metadata(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk::cpp_uniffi_internal_fn_method_nwc_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nwc(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_nip05profile_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nip05profile(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_nip19_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nip19(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_nip19coordinate_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nip19coordinate(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_nip19event_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nip19event(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_nip19profile_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nip19profile(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_nip21_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nip21(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_nostrconnect_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nostrconnect(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_nostrconnectmetadata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nostrconnectmetadata(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_nostrconnecturi_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nostrconnecturi(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_nostrdatabase_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nostrdatabase(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_nostrsigner_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nostrsigner(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_nostrwalletconnectoptions_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnectoptions(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_nostrwalletconnecturi_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnecturi(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_options_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_options(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_publickey_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_publickey(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_relay_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_relay(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_relayconnectionstats_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_relayconnectionstats(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_relayinformationdocument_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_relayinformationdocument(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_relaylimits_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_relaylimits(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_relaymessage_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_relaymessage(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_relayoptions_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_relayoptions(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_request_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_request(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_response_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_response(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_secretkey_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_secretkey(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_serverconfig_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_serverconfig(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_shippingmethod_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_shippingmethod(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_singlelettertag_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_singlelettertag(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_stalldata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_stalldata(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_subscribeautocloseoptions_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_subscribeautocloseoptions(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_subscribeoptions_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_subscribeoptions(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_syncoptions_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_syncoptions(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk::cpp_uniffi_internal_fn_method_tag_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_tag(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_tags_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_tags(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_timestamp_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_timestamp(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_unsignedevent_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_unsignedevent(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_unwrappedgift_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_unwrappedgift(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_websocketadapter_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_websocketadapter(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_internal_fn_method_websocketadapterwrapper_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_websocketadapterwrapper(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_internal_fn_method_zaprequestdata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_nostr_sdk_ffi_fn_free_zaprequestdata(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} - -// Methods calling directly into the uniffi generated C API of the Rust crate. -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_admitpolicy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_admitpolicy( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_admitpolicy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_admitpolicy( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_admitpolicy_admit_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_admitpolicy_admit_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_client( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_client( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_client( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_client( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_client_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_client_new( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_discovery_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_add_discovery_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_read_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_add_read_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_add_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_relay_with_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_add_relay_with_opts( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_write_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_add_write_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_client_automatic_authentication( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_method_client_automatic_authentication( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_connect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_connect_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_connect_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_database( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_client_database( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_disconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_disconnect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_disconnect_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_disconnect_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_combined_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_fetch_combined_events( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_fetch_events( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events_from( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_fetch_events_from( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_fetch_metadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_all_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_force_remove_all_relays( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_force_remove_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap_to( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[3]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[4])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_handle_notifications( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_handle_notifications( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_relays( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_remove_all_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_remove_all_relays( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_remove_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_remove_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_send_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder_to( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_send_event_to( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_msg_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_send_msg_to( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg_to( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[4])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_set_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_set_metadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_shutdown( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_shutdown( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_sign_event_builder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_sign_event_builder( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_signer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_signer( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_subscribe( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_subscribe_to( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id_to( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[3]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[4])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscription( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_subscription( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscriptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_subscriptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_sync( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_sync( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_try_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_try_connect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe_all( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe_all( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_unwrap_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_unwrap_gift_wrap( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_client_wait_for_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_client_wait_for_connection( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_clientbuilder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_clientbuilder( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_clientbuilder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_clientbuilder( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientbuilder_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_clientbuilder_new(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_admit_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientbuilder_admit_policy( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_build( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientbuilder_build( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_database( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientbuilder_database( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientbuilder_opts( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_signer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientbuilder_signer( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_websocket_transport( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientbuilder_websocket_transport( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_clientmessage( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_clientmessage( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_clientmessage( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_clientmessage( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_auth( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_close( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_close( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_count( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_enum( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_json( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_req( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_req( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_enum( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_connection( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_connection( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_connection_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_connection_new(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_connection_addr( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_connection_addr( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_connection_mode( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_connection_target( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_connection_target( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_coordinate( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_coordinate( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_coordinate_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_coordinate_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_coordinate_identifier( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_coordinate_kind( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_coordinate_public_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_verify( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_coordinate_verify( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_display( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_display( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_customnostrsigner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_customnostrsigner( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_customnostrsigner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_customnostrsigner( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_backend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_backend( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_get_public_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_sign_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_encrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_decrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_encrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_decrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_customwebsockettransport( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_customwebsockettransport( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_customwebsockettransport( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_customwebsockettransport( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_support_ping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_support_ping( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_connect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_encryptedsecretkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_encryptedsecretkey( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_encryptedsecretkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_encryptedsecretkey( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_from_bech32( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_decrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_key_security( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_key_security( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_to_bech32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_version( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_event_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_event_from_json( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_as_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_as_pretty_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_author( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_content( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_created_at( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_is_expired( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_is_expired( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_is_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_is_protected( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_kind( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_signature( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_verify( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_verify( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_verify_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_verify_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_verify_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_verify_signature( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_eventbuilder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_eventbuilder( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_eventbuilder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_eventbuilder( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_articles_curation_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_articles_curation_set( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_auth( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_award_badge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_award_badge( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_blocked_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_blocked_relays( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks_set( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_metadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_msg( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_comment( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_comment( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_communities( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_communities( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_contact_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_contact_list( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_define_badge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_define_badge( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[4]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[5]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_delete( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_delete( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emoji_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emoji_set( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emojis( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emojis( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_file_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_file_metadata( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_follow_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_follow_set( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_issue( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_issue( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_patch( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_patch( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_repository_announcement( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_repository_announcement( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_hide_channel_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_hide_channel_msg( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_http_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_http_auth( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interest_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interest_set( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interests( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interests( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_feedback( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_feedback( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_request( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_result( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_result( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_label( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_label( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event_msg( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_long_form_text_note( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_long_form_text_note( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_metadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_channel_user( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_channel_user( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_list( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_nostr_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_nostr_connect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_pinned_notes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_pinned_notes( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_private_msg_rumor( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_private_msg_rumor( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_product_data( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_product_data( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_profile_badges( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_profile_badges( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_chats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_chats( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_zap_request( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction_extended( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction_extended( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_list( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_set( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_report( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_repost( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_repost( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_seal( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_seal( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_search_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_search_relays( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_stall_data( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_stall_data( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note_reply( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note_reply( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_videos_curation_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_videos_curation_set( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_zap_receipt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_zap_receipt( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_allow_self_tagging( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_allow_self_tagging( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_build( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_build( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_custom_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_custom_created_at( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_dedup_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_dedup_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_pow( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_pow( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign_with_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign_with_keys( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_eventid( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_eventid( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_eventid( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_eventid( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventid_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventid_from_bytes( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventid_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventid_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[3]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[4]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventid_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_eventid_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_as_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventid_as_bytes( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventid_to_bech32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventid_to_hex( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventid_to_nostr_uri( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_events( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_events( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_events_contains( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_events_contains( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_events_first( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_events_first( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_events_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_events_is_empty( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_events_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_events_len( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_events_merge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_events_merge( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_events_to_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_events_to_vec( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_filemetadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_filemetadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_filemetadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_filemetadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_filemetadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_filemetadata_new( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_aes_256_gcm( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filemetadata_aes_256_gcm( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_blurhash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filemetadata_blurhash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_dimensions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filemetadata_dimensions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_magnet( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filemetadata_magnet( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filemetadata_size( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_filter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_filter( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_filter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_filter( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_filter_from_json( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_filter_from_record( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_filter_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_filter_new(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_as_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_as_record( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_author( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_authors( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_authors( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_coordinate( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_coordinates( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_custom_tag( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_custom_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_events( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_hashtag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_hashtag( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_hashtags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_identifier( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_identifiers( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_identifiers( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_ids( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_is_empty( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_kind( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_kinds( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_kinds( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_limit( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_limit( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_match_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_match_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_pubkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_pubkey( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_pubkeys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_pubkeys( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_reference( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_reference( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_references( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_references( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_authors( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_authors( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_coordinates( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_custom_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_custom_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_events( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_hashtags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_identifiers( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_identifiers( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_ids( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_kinds( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_kinds( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_limit( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_limit( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_pubkeys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_pubkeys( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_references( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_references( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_search( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_search( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_since( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_since( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_until( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_remove_until( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_search( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_search( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_since( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_since( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_until( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_until( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_handlenotification( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_handlenotification( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_handlenotification( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_handlenotification( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle_msg( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_jobfeedbackdata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_jobfeedbackdata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_jobfeedbackdata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_jobfeedbackdata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_jobfeedbackdata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_jobfeedbackdata_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_amount( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_amount( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_extra_info( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_extra_info( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_payload( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_payload( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_keys( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_keys( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_from_mnemonic( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_keys_from_mnemonic( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[4]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_generate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_keys_generate(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_keys_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_keys_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_keys_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_keys_public_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_keys_secret_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_keys_secret_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_keys_sign_schnorr( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_keys_sign_schnorr( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_kind( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_kind( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_kind_from_std( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_kind_from_std( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_kind_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_kind_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_as_std( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_as_std( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_as_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_as_u16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_addressable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_is_addressable( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_ephemeral( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_is_ephemeral( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_is_job_request( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_result( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_is_job_result( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_regular( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_is_regular( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_replaceable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_is_replaceable( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_display( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_display( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_metadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_metadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_json( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_record( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_metadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_metadata_new(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_as_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_as_pretty_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_as_record( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_about( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_get_about( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_banner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_get_banner( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_custom_field( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_get_custom_field( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_display_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_get_display_name( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud06( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud06( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_get_name( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_get_nip05( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_picture( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_get_picture( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_website( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_get_website( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_about( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_set_about( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_banner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_set_banner( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_custom_field( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_set_custom_field( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_display_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_set_display_name( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud06( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud06( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_set_name( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_set_nip05( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_picture( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_set_picture( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_website( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_set_website( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nwc( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nwc( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nwc( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nwc( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nwc_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nwc_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nwc_with_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nwc_with_opts( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_get_balance( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nwc_get_balance( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_get_info( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nwc_get_info( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_list_transactions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nwc_list_transactions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_lookup_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nwc_lookup_invoice( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_make_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nwc_make_invoice( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nwc_pay_invoice( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_keysend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nwc_pay_keysend( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_status( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nwc_status( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nip05profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nip05profile( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nip05profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nip05profile( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip05profile_nip46( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip05profile_nip46( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip05profile_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip05profile_public_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip05profile_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip05profile_relays( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nip19( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nip19( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nip19( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip19_from_bech32( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19_as_enum( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nip19coordinate( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nip19coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nip19coordinate( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_bech32( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_nostr_uri( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_coordinate( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_relays( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_bech32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_nostr_uri( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nip19event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nip19event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nip19event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_bech32( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_nostr_uri( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip19event_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19event_author( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19event_event_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19event_kind( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19event_relays( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19event_to_bech32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19event_to_nostr_uri( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nip19profile( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nip19profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nip19profile( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_bech32( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_nostr_uri( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19profile_public_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19profile_relays( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_bech32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_nostr_uri( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nip21( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nip21( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nip21( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nip21( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip21_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nip21_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip21_as_enum( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip21_to_nostr_uri( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nostrconnect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nostrconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nostrconnect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnect_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nostrconnect_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_bunker_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnect_bunker_uri( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnect_get_public_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_decrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_encrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_decrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_encrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnect_relays( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnect_sign_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrconnectmetadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nostrconnectmetadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nostrconnectmetadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nostrconnectmetadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnectmetadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nostrconnectmetadata_new( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_as_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_description( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_icons( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_icons( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_url( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrconnecturi( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nostrconnecturi( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nostrconnecturi( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nostrconnecturi( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnecturi_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nostrconnecturi_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_display( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_display( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrdatabase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nostrdatabase( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nostrdatabase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nostrdatabase( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrdatabase_lmdb( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nostrdatabase_lmdb( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_count( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_delete( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_delete( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_event_by_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_event_by_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_metadata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_query( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_query( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_save_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_save_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_wipe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_wipe( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrsigner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nostrsigner( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nostrsigner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nostrsigner( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_custom( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_custom( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_keys( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_nostr_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_nostr_connect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_backend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrsigner_backend( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrsigner_get_public_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_decrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_encrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_decrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_encrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrsigner_sign_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnectoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnectoptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnectoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnectoptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnectoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnectoptions_new( - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_connection_mode( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_timeout( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnecturi( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnecturi( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnecturi( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnecturi( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_lud16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_public_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_relays( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_secret( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_secret( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_options( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_options( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_options( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_options( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_options_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_options_new(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_options_autoconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_options_autoconnect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_options_automatic_authentication( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_options_automatic_authentication( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_options_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_options_connection( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_options_gossip( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_options_gossip( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_options_max_avg_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_options_max_avg_latency( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_options_relay_limits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_options_relay_limits( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_publickey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_publickey( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_publickey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_publickey( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_publickey_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_publickey_from_bytes( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_publickey_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_publickey_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_publickey_to_bech32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_publickey_to_hex( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_publickey_to_nostr_uri( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_relay( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_batch_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_method_relay_batch_msg( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_method_relay_connect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_connection_mode( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_count_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_count_events( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_disconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_method_relay_disconnect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_document( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_document( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_fetch_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_fetch_events( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_is_connected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_is_connected( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_opts( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_queue( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_queue( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_send_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_send_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_send_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_method_relay_send_msg( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_stats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_stats( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_status( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_status( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_subscribe( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe_with_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_subscribe_with_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscription( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_subscription( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscriptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_subscriptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_sync( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_sync( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_sync_with_items( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_sync_with_items( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_try_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_try_connect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe_all( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe_all( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relay_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relay_url( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_relayconnectionstats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_relayconnectionstats( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_relayconnectionstats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_relayconnectionstats( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_attempts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_attempts( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_received( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_received( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_sent( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_sent( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_connected_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_connected_at( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_first_connection_timestamp( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_first_connection_timestamp( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_latency( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success_rate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success_rate( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_relayinformationdocument( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_relayinformationdocument( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_relayinformationdocument( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_relayinformationdocument( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_relayinformationdocument_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_relayinformationdocument_new(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_contact( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_contact( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_description( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_fees( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_fees( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_icon( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_icon( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_language_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_language_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_limitation( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_limitation( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_name( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_payments_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_payments_url( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_posting_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_posting_policy( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_pubkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_pubkey( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_relay_countries( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_relay_countries( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_retention( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_retention( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_software( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_software( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_supported_nips( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_supported_nips( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_version( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_relaylimits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_relaylimits( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_relaylimits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_relaylimits( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_disable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_disable(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_new(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags_per_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags_per_kind( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size_per_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size_per_kind( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_message_max_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaylimits_message_max_size( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_relaymessage( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_relaymessage( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_relaymessage( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_relaymessage( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_auth( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_closed( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_closed( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_count( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_eose( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_eose( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_event( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_enum( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_json( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_notice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_notice( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_ok( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_ok( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_enum( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_relayoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_relayoptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_relayoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_relayoptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_relayoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_relayoptions_new(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_adjust_retry_interval( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_relayoptions_adjust_retry_interval( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayoptions_connection_mode( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_limits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayoptions_limits( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_max_avg_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayoptions_max_avg_latency( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_ping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayoptions_ping( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_read( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayoptions_read( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_reconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayoptions_reconnect( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_retry_interval( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayoptions_retry_interval( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_write( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_relayoptions_write( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_request( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_request( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_request_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_request_new( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_request_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_request_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_request_method( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_request_method( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_request_params( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_request_params( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_response( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_response( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_response( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_response( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_secretkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_secretkey( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_secretkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_secretkey( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_secretkey_from_bytes( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_generate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_secretkey_generate(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_secretkey_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_secretkey_encrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_secretkey_to_bech32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_secretkey_to_hex( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_serverconfig( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_serverconfig( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_serverconfig( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_serverconfig( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_shippingmethod( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_shippingmethod( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_shippingmethod( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_shippingmethod( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_shippingmethod_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_shippingmethod_new( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_get_shipping_cost( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_shippingmethod_get_shipping_cost( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_shippingmethod_name( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_regions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_shippingmethod_regions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_singlelettertag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_singlelettertag( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_singlelettertag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_singlelettertag( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_lowercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_lowercase( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_uppercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_uppercase( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_lowercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_lowercase( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_uppercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_uppercase( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_stalldata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_stalldata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_stalldata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_stalldata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_json( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_record( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_stalldata_new( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[4]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_stalldata_as_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_stalldata_as_record( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_currency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_stalldata_currency( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_stalldata_description( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_stalldata_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_stalldata_name( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_shipping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_stalldata_shipping( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_subscribeautocloseoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_subscribeautocloseoptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_subscribeautocloseoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_subscribeautocloseoptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_subscribeautocloseoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_subscribeautocloseoptions_new( - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_exit_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_exit_policy( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_idle_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_idle_timeout( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_timeout( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_subscribeoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_subscribeoptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_subscribeoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_subscribeoptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_subscribeoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_constructor_subscribeoptions_new(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeoptions_close_on( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_subscribeoptions_close_on( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_syncoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_syncoptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_syncoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_syncoptions( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_syncoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_syncoptions_new(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_syncoptions_direction( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_syncoptions_direction( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_syncoptions_dry_run( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_syncoptions_dry_run( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_syncoptions_initial_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_syncoptions_initial_timeout( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_tag( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_tag( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_alt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_alt( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_client( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_client( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_coordinate( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_custom( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_custom( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_description( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_event( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_event_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_event_report( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_expiration( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_expiration( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_from_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_from_standardized( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_hashtag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_hashtag( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_identifier( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_image( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_image( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_pow( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_pow( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_protected(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key_report( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_reference( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_reference( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_relay_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_relay_metadata( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_title( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tag_title( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_as_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_as_standardized( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_as_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_as_vec( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_content( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_is_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_is_protected( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_is_reply( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_is_reply( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_is_root( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_is_root( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_kind( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_kind_str( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_kind_str( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_len( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_single_letter_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_single_letter_tag( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tags_from_list( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_text( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tags_from_text( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_tags_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_tags_parse( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_coordinates( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_event_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_event_ids( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_expiration( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_expiration( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_filter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_filter( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_filter_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_filter_standardized( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_find( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_find( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_find_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_find_standardized( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_first( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_first( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_get( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_get( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_hashtags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_identifier( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_is_empty( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_last( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_last( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_len( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_public_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_public_keys( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_tags_to_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_tags_to_vec( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_timestamp( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_timestamp( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_timestamp( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_timestamp( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_from_secs( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_timestamp_from_secs( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_now( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_timestamp_now(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_as_secs( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_timestamp_as_secs( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_to_human_datetime( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_timestamp_to_human_datetime( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_unsignedevent( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_unsignedevent( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_unsignedevent( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_unsignedevent( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_unsignedevent_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_unsignedevent_from_json( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_add_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_add_signature( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_pretty_json( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_author( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_content( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_created_at( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_kind( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign_with_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign_with_keys( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_tags( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_unwrappedgift( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_unwrappedgift( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_unwrappedgift( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_unwrappedgift( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_unwrappedgift_from_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_constructor_unwrappedgift_from_gift_wrap( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift__none( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_unwrappedgift__none( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_rumor( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_rumor( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_sender( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_sender( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_websocketadapter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_websocketadapter( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_websocketadapter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_websocketadapter( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_send( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_websocketadapter_send( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_recv( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_websocketadapter_recv( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_close_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_method_websocketadapter_close_connection( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_websocketadapterwrapper( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_websocketadapterwrapper( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_websocketadapterwrapper( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_websocketadapterwrapper( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_constructor_websocketadapterwrapper_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_websocketadapterwrapper_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_clone_zaprequestdata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_clone_zaprequestdata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_free_zaprequestdata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_free_zaprequestdata( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_constructor_zaprequestdata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_constructor_zaprequestdata_new( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_amount( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_amount( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_event_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_lnurl( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_lnurl( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_message( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_debug( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_eq( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_ne( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_hash( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_create_delegation_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_create_delegation_tag( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_func_decrypt_received_private_zap_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = - uniffi_nostr_sdk_ffi_fn_func_decrypt_received_private_zap_message( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_func_decrypt_sent_private_zap_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_decrypt_sent_private_zap_message( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_extract_relay_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_extract_relay_list( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_generate_shared_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_generate_shared_key( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_get_leading_zero_bits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_get_leading_zero_bits( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_get_nip05_profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_func_get_nip05_profile( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_get_nip96_server_config( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_func_get_nip96_server_config( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_get_prefixes_for_difficulty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_get_prefixes_for_difficulty( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_func_gift_wrap( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_gift_wrap_from_seal( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_gift_wrap_from_seal( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_git_hash_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_git_hash_version(&status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_init_logger( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - uniffi_nostr_sdk_ffi_fn_func_init_logger( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_make_private_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_func_make_private_msg( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[3])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_nip04_decrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_nip04_encrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_nip11_get_information_document( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_func_nip11_get_information_document( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_nip21_extract_from_text( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_nip21_extract_from_text( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_nip44_decrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_nip44_encrypt( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_nip57_anonymous_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_nip57_anonymous_zap_request( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_nip57_private_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_nip57_private_zap_request( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_nip96_upload( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_func_nip96_upload( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[4])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_sign_delegation( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_sign_delegation( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_tag_kind_to_string( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_tag_kind_to_string( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_validate_delegation_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_validate_delegation_tag( - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_verify_delegation_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = uniffi_nostr_sdk_ffi_fn_func_verify_delegation_signature( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[2]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[3]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_func_verify_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_fn_func_verify_nip05( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::nostr_sdk::Bridging::fromJs(rt, callInvoker, - args[2])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_u8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_u8( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_u8( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_u8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_u8( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_u8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_u8( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_i8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_i8( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_i8( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_i8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_i8( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_i8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_i8( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_u16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_u16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_u16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_u16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_i16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_i16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_i16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_i16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_i16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_i16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_i16( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_u32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_u32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_u32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_u32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_u32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_u32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_u32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_i32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_i32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_i32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_i32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_i32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_i32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_i32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_u64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_u64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_u64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_u64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_u64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_u64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_u64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_i64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_i64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_i64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_i64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_i64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_i64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_i64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_f32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_f32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_f32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_f32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_f32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_f32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_f32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_f32( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_f64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_f64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_f64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_f64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_f64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_f64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_f64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_f64( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_pointer( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_pointer( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_pointer( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_pointer( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_rust_buffer( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - auto value = ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::nostr_sdk::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_poll_void( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_poll_void( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - uniffi::nostr_sdk::Bridging::fromJs( - rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[2])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_cancel_void( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_cancel_void( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_free_void( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - ffi_nostr_sdk_ffi_rust_future_free_void( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0])); - - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_rust_future_complete_void( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::nostr_sdk::Bridging::rustSuccess(rt); - ffi_nostr_sdk_ffi_rust_future_complete_void( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, - args[0]), - &status); - uniffi::nostr_sdk::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_create_delegation_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_create_delegation_tag(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_func_decrypt_received_private_zap_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_func_decrypt_received_private_zap_message(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_func_decrypt_sent_private_zap_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_func_decrypt_sent_private_zap_message(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_extract_relay_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_extract_relay_list(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_generate_shared_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_generate_shared_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_get_leading_zero_bits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_get_leading_zero_bits(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_get_nip05_profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_get_nip05_profile(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_get_nip96_server_config( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_get_nip96_server_config(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_func_get_prefixes_for_difficulty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_get_prefixes_for_difficulty(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_gift_wrap(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap_from_seal( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_gift_wrap_from_seal(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_git_hash_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_git_hash_version(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_init_logger( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_init_logger(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_make_private_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_make_private_msg(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_nip04_decrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_nip04_encrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_func_nip11_get_information_document( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_func_nip11_get_information_document(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_nip21_extract_from_text( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_nip21_extract_from_text(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_nip44_decrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_nip44_encrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_func_nip57_anonymous_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_nip57_anonymous_zap_request(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_func_nip57_private_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_nip57_private_zap_request(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_nip96_upload( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_nip96_upload(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_sign_delegation( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_sign_delegation(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_tag_kind_to_string( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_tag_kind_to_string(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_validate_delegation_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_validate_delegation_tag(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_func_verify_delegation_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_verify_delegation_signature(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_func_verify_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_func_verify_nip05(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_admitpolicy_admit_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_admitpolicy_admit_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_discovery_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_client_add_discovery_relay(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_read_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_add_read_relay(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_add_relay(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay_with_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_client_add_relay_with_opts(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_write_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_add_write_relay(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_automatic_authentication( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_client_automatic_authentication(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_connect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_connect_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_connect_relay(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_database( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_database(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_disconnect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_disconnect_relay(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_combined_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_client_fetch_combined_events(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events_from( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events_from(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_fetch_metadata(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_all_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_all_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_relay(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap_to(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_handle_notifications( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_client_handle_notifications(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_relay(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_remove_all_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_remove_all_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_remove_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_remove_relay(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_send_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder_to(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_send_event_to(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_msg_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_send_msg_to(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg_to(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_set_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_set_metadata(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_shutdown( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_shutdown(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_sign_event_builder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_sign_event_builder(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_signer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_signer(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_subscribe(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_to(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id_to(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscription( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_subscription(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscriptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_subscriptions(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_sync( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_sync(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_try_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_try_connect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe_all( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe_all(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_unwrap_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_client_unwrap_gift_wrap(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_wait_for_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_client_wait_for_connection(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_admit_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_admit_policy(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_build( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_build(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_database( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_database(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_opts(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_signer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_signer(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_websocket_transport( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_websocket_transport(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_enum(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_connection_addr( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_connection_addr(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_connection_mode(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_connection_target( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_connection_target(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_coordinate_identifier(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_coordinate_kind(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_coordinate_public_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_verify( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_coordinate_verify(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_backend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_backend(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_get_public_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_sign_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_encrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_decrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_encrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_decrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_support_ping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_support_ping(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_connect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_decrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_key_security( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_key_security(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_to_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_version(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_as_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_as_pretty_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_author(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_content(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_created_at(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_is_expired( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_is_expired(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_is_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_is_protected(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_kind(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_signature(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_tags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_verify( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_verify(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_verify_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_verify_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_event_verify_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_event_verify_signature(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_allow_self_tagging( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_allow_self_tagging(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_build( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_build(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_custom_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_custom_created_at(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_dedup_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_dedup_tags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_pow( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_pow(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign_with_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign_with_keys(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_tags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_as_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_eventid_as_bytes(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_eventid_to_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_eventid_to_hex(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_eventid_to_nostr_uri(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_events_contains( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_events_contains(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_events_first( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_events_first(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_events_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_events_is_empty(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_events_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_events_len(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_events_merge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_events_merge(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_events_to_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_events_to_vec(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_aes_256_gcm( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filemetadata_aes_256_gcm(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_blurhash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filemetadata_blurhash(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_dimensions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filemetadata_dimensions(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_magnet( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filemetadata_magnet(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filemetadata_size(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_as_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_as_record(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_author(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_authors( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_authors(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_coordinate(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_coordinates(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tag(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_events(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_hashtag(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_hashtags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_identifier(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_identifiers( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_identifiers(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_ids(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_is_empty(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_kind(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_kinds( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_kinds(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_limit( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_limit(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_match_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_match_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_pubkey(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkeys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_pubkeys(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_reference( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_reference(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_references( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_references(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_authors( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_authors(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_coordinates(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_custom_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_custom_tags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_events(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_hashtags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_identifiers( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_identifiers(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_ids(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_kinds( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_kinds(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_limit( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_limit(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_pubkeys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_pubkeys(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_references( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_references(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_search( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_search(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_since( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_since(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_until( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_remove_until(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_search( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_search(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_since( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_since(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_until( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_filter_until(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle_msg(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_amount( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_amount(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_extra_info( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_extra_info(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_payload( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_payload(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_keys_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_keys_public_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_keys_secret_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_keys_secret_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_keys_sign_schnorr( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_keys_sign_schnorr(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_as_std( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_kind_as_std(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_as_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_kind_as_u16(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_addressable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_kind_is_addressable(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_ephemeral( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_kind_is_ephemeral(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_request(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_result( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_result(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_regular( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_kind_is_regular(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_replaceable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_kind_is_replaceable(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_as_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_as_pretty_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_as_record(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_about( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_get_about(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_banner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_get_banner(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_custom_field( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_get_custom_field(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_display_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_get_display_name(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud06( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud06(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud16(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_get_name(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_get_nip05(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_picture( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_get_picture(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_website( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_get_website(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_about( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_set_about(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_banner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_set_banner(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_custom_field( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_set_custom_field(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_display_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_set_display_name(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud06( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud06(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud16(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_set_name(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_set_nip05(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_picture( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_set_picture(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_website( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_metadata_set_website(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_balance( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nwc_get_balance(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_info( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nwc_get_info(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_list_transactions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nwc_list_transactions(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_lookup_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nwc_lookup_invoice(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_make_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nwc_make_invoice(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_invoice(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_keysend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_keysend(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_status( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nwc_status(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_nip46( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip05profile_nip46(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip05profile_public_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip05profile_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19_as_enum(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_coordinate(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_nostr_uri(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19event_author(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19event_event_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19event_kind(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19event_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_nostr_uri(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19profile_public_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19profile_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_nostr_uri(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip21_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip21_as_enum(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nip21_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nip21_to_nostr_uri(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_bunker_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_bunker_uri(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_get_public_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_decrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_encrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_decrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_encrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_sign_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_as_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_description(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_icons( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_icons(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_url(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_count(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_delete( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_delete(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_event_by_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_event_by_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_metadata(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_query( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_query(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_save_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_save_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_wipe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_wipe(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_backend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_backend(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_get_public_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_decrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_encrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_decrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_encrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_sign_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_connection_mode(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_timeout(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_lud16(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_public_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_secret( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_secret(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_options_autoconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_options_autoconnect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_options_automatic_authentication( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_options_automatic_authentication(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_options_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_options_connection(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_options_gossip( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_options_gossip(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_options_max_avg_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_options_max_avg_latency(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_options_relay_limits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_options_relay_limits(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_publickey_to_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_publickey_to_hex(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_publickey_to_nostr_uri(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_batch_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_batch_msg(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_connect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_connection_mode(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_count_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_count_events(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_disconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_disconnect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_document( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_document(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_fetch_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_fetch_events(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_is_connected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_is_connected(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_opts(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_queue( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_queue(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_send_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_send_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_send_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_send_msg(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_stats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_stats(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_status( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_status(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe_with_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe_with_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscription( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_subscription(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscriptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_subscriptions(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_sync( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_sync(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_sync_with_items( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_sync_with_items(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_try_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_try_connect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe_all( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe_all(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relay_url(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_attempts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_attempts(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_received( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_received(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_sent( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_sent(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_connected_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_connected_at(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_first_connection_timestamp( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_first_connection_timestamp(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_latency(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success_rate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success_rate(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_contact( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_contact(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_description(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_fees( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_fees(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_icon( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_icon(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_language_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_language_tags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_limitation( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_limitation(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_name(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_payments_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_payments_url(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_posting_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_posting_policy(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_pubkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_pubkey(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_relay_countries( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_relay_countries(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_retention( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_retention(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_software( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_software(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_supported_nips( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_supported_nips(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_tags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_version(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags_per_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags_per_kind(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size_per_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size_per_kind(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_message_max_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relaylimits_message_max_size(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_enum(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_adjust_retry_interval( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayoptions_adjust_retry_interval(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayoptions_connection_mode(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_limits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relayoptions_limits(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_max_avg_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayoptions_max_avg_latency(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_ping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relayoptions_ping(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_read( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relayoptions_read(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_reconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relayoptions_reconnect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_retry_interval( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_relayoptions_retry_interval(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_write( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_relayoptions_write(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_request_method( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_request_method(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_request_params( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_request_params(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_secretkey_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_secretkey_encrypt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_hex(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_get_shipping_cost( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_get_shipping_cost(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_name(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_regions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_regions(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_lowercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_lowercase(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_uppercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_uppercase(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_record(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_currency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_stalldata_currency(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_stalldata_description(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_stalldata_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_stalldata_name(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_shipping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_stalldata_shipping(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_exit_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_exit_policy(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_idle_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_idle_timeout(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_timeout(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeoptions_close_on( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_subscribeoptions_close_on(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_direction( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_syncoptions_direction(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_dry_run( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_syncoptions_dry_run(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_initial_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_syncoptions_initial_timeout(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_as_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tag_as_standardized(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_as_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tag_as_vec(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tag_content(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_is_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tag_is_protected(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_is_reply( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tag_is_reply(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_is_root( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tag_is_root(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tag_kind(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_kind_str( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tag_kind_str(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tag_len(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_single_letter_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tag_single_letter_tag(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_coordinates(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_event_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_event_ids(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_expiration( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_expiration(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_filter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_filter(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_filter_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_filter_standardized(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_find( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_find(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_find_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_find_standardized(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_first( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_first(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_get( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_get(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_hashtags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_identifier(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_is_empty(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_last( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_last(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_len(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_public_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_public_keys(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_to_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_tags_to_vec(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_timestamp_as_secs( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_timestamp_as_secs(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_timestamp_to_human_datetime( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_timestamp_to_human_datetime(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_add_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_add_signature(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_pretty_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_author(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_content(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_created_at(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_kind(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign_with_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign_with_keys(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_tags(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift__none( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift__none(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_rumor( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_rumor(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_sender( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_sender(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_send( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_send(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_recv( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_recv(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_close_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_close_connection(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_amount( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_amount(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_event_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_lnurl( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_lnurl(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_message(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_client_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_client_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientbuilder_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_clientbuilder_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_auth(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_close( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_close(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_count(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_enum(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_req( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_req(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_connection_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_connection_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_from_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_event_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_event_from_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_articles_curation_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_articles_curation_set(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_auth(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_award_badge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_award_badge(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_blocked_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_blocked_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks_set(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_metadata(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_msg(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_comment( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_comment(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_communities( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_communities(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_contact_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_contact_list(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_define_badge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_define_badge(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_delete( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_delete(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emoji_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emoji_set(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emojis( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emojis(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_file_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_file_metadata(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_follow_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_follow_set(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_issue( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_issue(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_patch( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_patch(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_repository_announcement( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_repository_announcement(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_hide_channel_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_hide_channel_msg(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_http_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_http_auth(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interest_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interest_set(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interests( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interests(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_feedback( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_feedback(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_request(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_result( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_result(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_label( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_label(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event_msg(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_long_form_text_note( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_long_form_text_note(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_metadata(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_channel_user( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_channel_user(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_list(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_nostr_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_nostr_connect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_pinned_notes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_pinned_notes(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_private_msg_rumor( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_private_msg_rumor(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_product_data( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_product_data(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_profile_badges( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_profile_badges(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_chats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_chats(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_zap_request(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction_extended( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction_extended(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_list(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_set(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_report(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_repost( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_repost(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_seal( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_seal(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_search_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_search_relays(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_stall_data( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_stall_data(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note_reply( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note_reply(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_videos_curation_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_videos_curation_set(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_zap_receipt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_zap_receipt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventid_from_bytes(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventid_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_eventid_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filemetadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_filemetadata_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_record(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filter_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_filter_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_jobfeedbackdata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_jobfeedbackdata_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_from_mnemonic( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_keys_from_mnemonic(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_generate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_keys_generate(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_keys_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_keys_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_kind_from_std( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_kind_from_std(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_kind_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_kind_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_record(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_metadata_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nwc_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_with_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nwc_with_opts(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nip19_from_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_nostr_uri(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_nostr_uri(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_bech32(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_nostr_uri(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip21_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nip21_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnect_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnect_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnectmetadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnectmetadata_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnecturi_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnecturi_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrdatabase_lmdb( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nostrdatabase_lmdb(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_custom( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_custom(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_keys(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_nostr_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_nostr_connect(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnectoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnectoptions_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_options_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_options_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_publickey_from_bytes(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_publickey_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relayinformationdocument_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_relayinformationdocument_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_disable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_disable(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_auth(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_closed( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_closed(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_count(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_eose( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_eose(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_enum(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_notice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_notice(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_ok( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_ok(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relayoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_relayoptions_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_request_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_request_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_request_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_request_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_from_bytes(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_generate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_generate(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_shippingmethod_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_shippingmethod_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_lowercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_lowercase(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_uppercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_uppercase(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_record(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeautocloseoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_subscribeautocloseoptions_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_subscribeoptions_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_syncoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_syncoptions_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_alt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_alt(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_client( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_client(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_coordinate(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_custom( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_custom(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_description(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_event(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_event_report(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_expiration( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_expiration(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_from_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_tag_from_standardized(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_hashtag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_hashtag(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_identifier(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_image( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_image(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_pow( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_pow(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_protected(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key_report(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_reference( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_reference(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_relay_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_relay_metadata(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_title( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tag_title(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_list(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_text( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_text(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tags_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_tags_parse(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_from_secs( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_from_secs(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_now( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_now(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_unsignedevent_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_unsignedevent_from_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_unwrappedgift_from_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_unwrappedgift_from_gift_wrap(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_websocketadapterwrapper_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_nostr_sdk_ffi_checksum_constructor_websocketadapterwrapper_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_zaprequestdata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_nostr_sdk_ffi_checksum_constructor_zaprequestdata_new(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeNostrSdk::cpp_ffi_nostr_sdk_ffi_uniffi_contract_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = ffi_nostr_sdk_ffi_uniffi_contract_version(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeNostrSdk::cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_admitpolicy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto vtableInstance = uniffi::nostr_sdk::Bridging< - UniffiVTableCallbackInterfaceAdmitPolicy>::fromJs(rt, callInvoker, - args[0]); - - std::lock_guard lock(uniffi::nostr_sdk::registry::vtableMutex); - uniffi_nostr_sdk_ffi_fn_init_callback_vtable_admitpolicy( - uniffi::nostr_sdk::registry::putTable( - "UniffiVTableCallbackInterfaceAdmitPolicy", vtableInstance)); - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customnostrsigner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto vtableInstance = uniffi::nostr_sdk::Bridging< - UniffiVTableCallbackInterfaceCustomNostrSigner>::fromJs(rt, callInvoker, - args[0]); - - std::lock_guard lock(uniffi::nostr_sdk::registry::vtableMutex); - uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customnostrsigner( - uniffi::nostr_sdk::registry::putTable( - "UniffiVTableCallbackInterfaceCustomNostrSigner", vtableInstance)); - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customwebsockettransport( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto vtableInstance = uniffi::nostr_sdk:: - Bridging::fromJs( - rt, callInvoker, args[0]); - - std::lock_guard lock(uniffi::nostr_sdk::registry::vtableMutex); - uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customwebsockettransport( - uniffi::nostr_sdk::registry::putTable( - "UniffiVTableCallbackInterfaceCustomWebSocketTransport", - vtableInstance)); - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_handlenotification( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto vtableInstance = uniffi::nostr_sdk::Bridging< - UniffiVTableCallbackInterfaceHandleNotification>::fromJs(rt, callInvoker, - args[0]); - - std::lock_guard lock(uniffi::nostr_sdk::registry::vtableMutex); - uniffi_nostr_sdk_ffi_fn_init_callback_vtable_handlenotification( - uniffi::nostr_sdk::registry::putTable( - "UniffiVTableCallbackInterfaceHandleNotification", vtableInstance)); - return jsi::Value::undefined(); -} -jsi::Value NativeNostrSdk:: - cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_websocketadapter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto vtableInstance = uniffi::nostr_sdk::Bridging< - UniffiVTableCallbackInterfaceWebSocketAdapter>::fromJs(rt, callInvoker, - args[0]); - - std::lock_guard lock(uniffi::nostr_sdk::registry::vtableMutex); - uniffi_nostr_sdk_ffi_fn_init_callback_vtable_websocketadapter( - uniffi::nostr_sdk::registry::putTable( - "UniffiVTableCallbackInterfaceWebSocketAdapter", vtableInstance)); - return jsi::Value::undefined(); -} \ No newline at end of file diff --git a/cpp/generated/nostr_sdk.hpp b/cpp/generated/nostr_sdk.hpp deleted file mode 100644 index 32a4bfd..0000000 --- a/cpp/generated/nostr_sdk.hpp +++ /dev/null @@ -1,5049 +0,0 @@ -// This file was autogenerated by some hot garbage in the -// `uniffi-bindgen-react-native` crate. Trust me, you don't want to mess with -// it! -#pragma once -#include "UniffiCallInvoker.h" -#include -#include -#include -#include -#include - -namespace react = facebook::react; -namespace jsi = facebook::jsi; - -class NativeNostrSdk : public jsi::HostObject { -private: - // For calling back into JS from Rust. - std::shared_ptr callInvoker; - -protected: - std::map props; - jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_admitpolicy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_admitpolicy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_admitpolicy_admit_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_client(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_client(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_client_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_discovery_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_read_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_relay_with_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_add_write_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_automatic_authentication( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_connect_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_database( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_disconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_disconnect_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_combined_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events_from( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_fetch_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_all_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_handle_notifications( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_remove_all_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_remove_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_event_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_msg_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_set_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_shutdown( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_sign_event_builder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_signer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscription( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_subscriptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_sync( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_try_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe_all( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_unwrap_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_client_wait_for_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_clientbuilder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_clientbuilder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientbuilder_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_admit_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_build( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_database( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_signer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_websocket_transport( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_clientmessage( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_clientmessage( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_close( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_req( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_connection_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_connection_addr( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_connection_target( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_verify( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_display( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_customnostrsigner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_customnostrsigner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_backend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_customwebsockettransport( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_customwebsockettransport( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_support_ping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_encryptedsecretkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_encryptedsecretkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_key_security( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_event(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_event(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_event_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_is_expired( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_is_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_verify( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_verify_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_verify_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_eventbuilder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_eventbuilder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_articles_curation_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_award_badge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_blocked_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_comment( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_communities( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_contact_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_define_badge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_delete( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emoji_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emojis( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_file_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_follow_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_issue( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_patch( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_repository_announcement( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_hide_channel_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_http_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interest_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interests( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_feedback( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_result( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_label( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_long_form_text_note( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_channel_user( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_nostr_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_pinned_notes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_private_msg_rumor( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_product_data( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_profile_badges( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_chats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction_extended( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_repost( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_seal( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_search_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_stall_data( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note_reply( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_videos_curation_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_zap_receipt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_allow_self_tagging( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_build( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_custom_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_dedup_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_pow( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign_with_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_eventid( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_eventid(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventid_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventid_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_eventid_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_as_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_events(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_events(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_events_contains( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_events_first( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_events_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_events_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_events_merge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_events_to_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_filemetadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_filemetadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_filemetadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_aes_256_gcm( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_blurhash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_dimensions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_magnet( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_filter(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_filter(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_filter_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_authors( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_hashtag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_identifiers( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_kinds( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_limit( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_match_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_pubkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_pubkeys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_reference( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_references( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_authors( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_custom_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_identifiers( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_kinds( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_limit( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_pubkeys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_references( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_search( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_since( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_remove_until( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_search( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_since( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_until( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_handlenotification( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_handlenotification( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_jobfeedbackdata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_jobfeedbackdata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_jobfeedbackdata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_amount( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_extra_info( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_payload( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_keys(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_keys(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_from_mnemonic( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_generate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_keys_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_keys_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_keys_secret_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_keys_sign_schnorr( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_kind(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_kind(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_kind_from_std( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_kind_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_as_std( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_as_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_addressable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_ephemeral( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_result( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_regular( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_is_replaceable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_display( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_metadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_about( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_banner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_custom_field( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_display_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud06( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_picture( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_get_website( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_about( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_banner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_custom_field( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_display_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud06( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_picture( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_set_website( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nwc(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nwc(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nwc_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nwc_with_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_get_balance( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_get_info( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_list_transactions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_lookup_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_make_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_keysend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nwc_status( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nip05profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nip05profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip05profile_nip46( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip05profile_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip05profile_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nip19(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nip19coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nip19event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nip19profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nip19profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nip21(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nip21(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nip21_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nostrconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnect_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_bunker_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrconnectmetadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nostrconnectmetadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnectmetadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_icons( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrconnecturi( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nostrconnecturi( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnecturi_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_display( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrdatabase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nostrdatabase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrdatabase_lmdb( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_delete( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_event_by_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_query( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_save_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_wipe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrsigner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nostrsigner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_custom( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_nostr_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_backend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnectoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnectoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnectoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnecturi( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnecturi( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_secret( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_options( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_options(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_options_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_options_autoconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_options_automatic_authentication( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_options_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_options_gossip( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_options_max_avg_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_options_relay_limits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_publickey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_publickey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_publickey_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_publickey_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_relay(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_relay(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_batch_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_count_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_disconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_document( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_fetch_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_is_connected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_queue( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_send_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_send_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_stats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_status( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe_with_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscription( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_subscriptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_sync( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_sync_with_items( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_try_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe_all( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relay_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_relayconnectionstats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_relayconnectionstats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_attempts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_received( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_sent( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_connected_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_first_connection_timestamp( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success_rate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_relayinformationdocument( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_relayinformationdocument( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_relayinformationdocument_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_contact( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_fees( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_icon( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_language_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_limitation( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_payments_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_posting_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_pubkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_relay_countries( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_retention( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_software( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_supported_nips( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_relaylimits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_relaylimits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_disable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags_per_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size_per_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_message_max_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_relaymessage( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_relaymessage( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_closed( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_eose( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_notice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_ok( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_relayoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_relayoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_relayoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_adjust_retry_interval( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_limits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_max_avg_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_ping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_read( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_reconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_retry_interval( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_relayoptions_write( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_request(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_request_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_request_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_request_method( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_request_params( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_response( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_response( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_secretkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_secretkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_generate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_serverconfig( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_serverconfig( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_shippingmethod( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_shippingmethod( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_shippingmethod_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_get_shipping_cost( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_regions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_singlelettertag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_singlelettertag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_lowercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_uppercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_lowercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_uppercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_stalldata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_stalldata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_currency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_stalldata_shipping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_subscribeautocloseoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_subscribeautocloseoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_subscribeautocloseoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_exit_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_idle_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_subscribeoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_subscribeoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_subscribeoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_subscribeoptions_close_on( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_syncoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_syncoptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_syncoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_syncoptions_direction( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_syncoptions_dry_run( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_syncoptions_initial_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_tag(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_tag(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_alt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_client( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_custom( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_event_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_expiration( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_from_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_hashtag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_image( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_pow( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_reference( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_relay_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tag_title( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_as_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_as_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_is_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_is_reply( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_is_root( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_kind_str( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_single_letter_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_tags(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_tags(jsi::Runtime &rt, - const jsi::Value &thisVal, - const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_text( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_tags_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_event_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_expiration( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_filter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_filter_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_find( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_find_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_first( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_get( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_last( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_public_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_tags_to_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_timestamp( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_timestamp( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_from_secs( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_now( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_as_secs( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_to_human_datetime( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_unsignedevent( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_unsignedevent( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_unsignedevent_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_add_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign_with_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_unwrappedgift( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_unwrappedgift( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_unwrappedgift_from_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift__none( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_rumor( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_sender( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_websocketadapter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_websocketadapter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_send( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_recv( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_close_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_websocketadapterwrapper( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_websocketadapterwrapper( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_constructor_websocketadapterwrapper_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_clone_zaprequestdata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_free_zaprequestdata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_constructor_zaprequestdata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_amount( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_lnurl( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_debug( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_eq( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_ne( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_hash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_create_delegation_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_func_decrypt_received_private_zap_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_decrypt_sent_private_zap_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_extract_relay_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_generate_shared_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_get_leading_zero_bits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_get_nip05_profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_get_nip96_server_config( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_get_prefixes_for_difficulty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_gift_wrap_from_seal( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_git_hash_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_init_logger( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_make_private_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_nip11_get_information_document( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_nip21_extract_from_text( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_nip57_anonymous_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_nip57_private_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_nip96_upload( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_sign_delegation( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_tag_kind_to_string( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_validate_delegation_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_verify_delegation_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_func_verify_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_u8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_u8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_u8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_i8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_i8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_i8( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_i16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_i16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_i16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_u32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_u32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_u32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_i32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_i32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_i32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_u64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_u64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_u64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_u64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_i64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_i64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_i64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_i64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_f32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_f32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_f32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_f32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_f64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_f64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_f64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_f64( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_poll_void( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_cancel_void( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_free_void( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_rust_future_complete_void( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_create_delegation_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_func_decrypt_received_private_zap_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_func_decrypt_sent_private_zap_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_extract_relay_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_generate_shared_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_get_leading_zero_bits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_get_nip05_profile( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_get_nip96_server_config( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_get_prefixes_for_difficulty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap_from_seal( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_git_hash_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_init_logger( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_make_private_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_func_nip11_get_information_document( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_nip21_extract_from_text( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_nip57_anonymous_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_nip57_private_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_nip96_upload( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_sign_delegation( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_tag_kind_to_string( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_validate_delegation_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_verify_delegation_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_func_verify_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_admitpolicy_admit_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_discovery_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_read_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay_with_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_add_write_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_automatic_authentication( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_connect_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_database( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_combined_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events_from( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_all_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_handle_notifications( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_remove_all_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_remove_relay( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_msg_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_set_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_shutdown( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_sign_event_builder( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_signer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id_to( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscription( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_subscriptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_sync( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_try_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe_all( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_client_unwrap_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_client_wait_for_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_admit_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_build( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_database( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_signer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_websocket_transport( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_connection_addr( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_connection_target( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_coordinate_verify( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_backend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_support_ping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_key_security( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_is_expired( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_is_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_verify( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_verify_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_event_verify_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_allow_self_tagging( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_build( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_custom_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_dedup_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_pow( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign_with_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_as_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_events_contains( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_events_first( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_events_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_events_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_events_merge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_events_to_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_aes_256_gcm( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_blurhash( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_dimensions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_magnet( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_authors( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_identifiers( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_kinds( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_limit( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_match_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkeys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_reference( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_references( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_authors( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_custom_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_identifiers( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_kinds( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_limit( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_pubkeys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_references( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_search( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_since( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_until( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_search( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_since( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_filter_until( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_amount( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_extra_info( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_payload( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_keys_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_keys_secret_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_keys_sign_schnorr( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_as_std( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_as_u16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_addressable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_ephemeral( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_result( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_regular( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_kind_is_replaceable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_about( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_banner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_custom_field( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_display_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud06( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_picture( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_website( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_about( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_banner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_custom_field( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_display_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud06( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_nip05( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_picture( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_website( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_balance( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_info( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_list_transactions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_lookup_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_make_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_invoice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_keysend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nwc_status( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_nip46( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip21_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nip21_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_bunker_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_icons( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_delete( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_event_by_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_query( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_save_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_wipe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_backend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_get_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_decrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_sign_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_lud16( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_secret( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_options_autoconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_options_automatic_authentication( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_options_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_options_gossip( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_options_max_avg_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_options_relay_limits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_batch_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_count_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_disconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_document( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_fetch_events( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_is_connected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_queue( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_send_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_send_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_stats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_status( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe_with_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscription( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_subscriptions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_sync( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_sync_with_items( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_try_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe_all( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relay_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_attempts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_received( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_sent( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_connected_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_first_connection_timestamp( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success_rate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_contact( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_fees( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_icon( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_language_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_limitation( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_payments_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_posting_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_pubkey( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_relay_countries( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_retention( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_software( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_supported_nips( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags_per_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size_per_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_message_max_size( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_adjust_retry_interval( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_connection_mode( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_limits( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_max_avg_latency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_ping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_read( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_reconnect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_retry_interval( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_write( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_request_method( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_request_params( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_secretkey_encrypt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_hex( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_get_shipping_cost( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_regions( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_lowercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_uppercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_currency( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_name( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_stalldata_shipping( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_exit_policy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_idle_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_subscribeoptions_close_on( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_direction( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_dry_run( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_initial_timeout( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_as_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_as_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_is_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_is_reply( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_is_root( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_kind_str( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tag_single_letter_tag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_coordinates( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_event_ids( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_expiration( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_filter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_filter_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_find( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_find_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_first( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_get( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_hashtags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_is_empty( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_last( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_len( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_public_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_tags_to_vec( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_timestamp_as_secs( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_timestamp_to_human_datetime( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_add_signature( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_pretty_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_author( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_content( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_created_at( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_kind( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign_with_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_tags( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift__none( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_rumor( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_sender( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_send( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_recv( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_close_connection( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_amount( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_event_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_lnurl( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_message( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_client_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientbuilder_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_close( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_req( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_connection_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_event_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_articles_curation_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_award_badge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_blocked_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_comment( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_communities( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_contact_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_define_badge( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_delete( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emoji_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emojis( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_file_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_follow_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_issue( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_patch( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_repository_announcement( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_hide_channel_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_http_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interest_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interests( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_feedback( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_result( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_label( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event_msg( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_long_form_text_note( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_channel_user( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_nostr_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_pinned_notes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_private_msg_rumor( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_product_data( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_profile_badges( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_chats( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_zap_request( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction_extended( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_repost( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_seal( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_search_relays( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_stall_data( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note_reply( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_videos_curation_set( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_zap_receipt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filemetadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_filter_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_jobfeedbackdata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_from_mnemonic( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_generate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_keys_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_kind_from_std( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_kind_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_with_opts( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_bech32( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_nostr_uri( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nip21_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnect_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnectmetadata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnecturi_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrdatabase_lmdb( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_custom( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_keys( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_nostr_connect( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnectoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_options_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relayinformationdocument_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_disable( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_auth( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_closed( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_count( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_eose( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_enum( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_notice( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_ok( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_relayoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_request_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_request_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_from_bytes( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_generate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_shippingmethod_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_lowercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_uppercase( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_record( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeautocloseoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_syncoptions_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_alt( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_client( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_coordinate( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_custom( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_description( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_expiration( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_from_standardized( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_hashtag( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_identifier( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_image( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_pow( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_protected( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key_report( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_reference( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_relay_metadata( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tag_title( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_list( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_text( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_tags_parse( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_from_secs( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_now( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_unsignedevent_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_unwrappedgift_from_gift_wrap( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_checksum_constructor_websocketadapterwrapper_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_checksum_constructor_zaprequestdata_new( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_ffi_nostr_sdk_ffi_uniffi_contract_version( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_admitpolicy( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customnostrsigner( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customwebsockettransport( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_handlenotification( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_websocketadapter( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_admitpolicy_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_client_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_clientbuilder_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_clientmessage_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_connection_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_coordinate_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_customnostrsigner_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_customwebsockettransport_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_encryptedsecretkey_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_event_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_eventbuilder_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_eventid_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_events_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_filemetadata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_filter_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_handlenotification_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_jobfeedbackdata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_keys_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_kind_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_metadata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nwc_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nip05profile_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nip19_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nip19coordinate_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nip19event_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nip19profile_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nip21_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nostrconnect_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_nostrconnectmetadata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nostrconnecturi_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nostrdatabase_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_nostrsigner_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_nostrwalletconnectoptions_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_nostrwalletconnecturi_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_options_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_publickey_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_relay_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_relayconnectionstats_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_relayinformationdocument_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_relaylimits_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_relaymessage_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_relayoptions_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_request_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_response_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_secretkey_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_serverconfig_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_shippingmethod_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_singlelettertag_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_stalldata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_subscribeautocloseoptions_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_subscribeoptions_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_syncoptions_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_tag_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_tags_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_timestamp_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_unsignedevent_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_unwrappedgift_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_websocketadapter_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_websocketadapterwrapper_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_zaprequestdata_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - -public: - NativeNostrSdk( - jsi::Runtime &rt, - std::shared_ptr callInvoker); - virtual ~NativeNostrSdk(); - - /** - * The entry point into the crate. - * - * React Native must call `NativeNostrSdk.registerModule(rt, callInvoker)` - * before using the Javascript interface. - */ - static void registerModule(jsi::Runtime &rt, - std::shared_ptr callInvoker); - - /** - * Some cleanup into the crate goes here. - * - * Current implementation is empty, however, this is not guaranteed to always - * be the case. - * - * Clients should call `NativeNostrSdk.unregisterModule(rt)` after final use - * where possible. - */ - static void unregisterModule(jsi::Runtime &rt); - - virtual jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name); - virtual void set(jsi::Runtime &rt, const jsi::PropNameID &name, - const jsi::Value &value); - virtual std::vector getPropertyNames(jsi::Runtime &rt); -}; \ No newline at end of file diff --git a/cpp/rust-nostr-nostr-sdk-react-native.cpp b/cpp/rust-nostr-nostr-sdk-react-native.cpp deleted file mode 100644 index ce81304..0000000 --- a/cpp/rust-nostr-nostr-sdk-react-native.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by uniffi-bindgen-react-native -#include "rust-nostr-nostr-sdk-react-native.h" -#include "generated/nostr_sdk.hpp" - -namespace rustnostr_nostrsdkreactnative { - using namespace facebook; - - uint8_t installRustCrate(jsi::Runtime &runtime, std::shared_ptr callInvoker) { - NativeNostrSdk::registerModule(runtime, callInvoker); - return true; - } - - uint8_t cleanupRustCrate(jsi::Runtime &runtime) { - return false; - } -} \ No newline at end of file diff --git a/cpp/rust-nostr-nostr-sdk-react-native.h b/cpp/rust-nostr-nostr-sdk-react-native.h deleted file mode 100644 index 81e195d..0000000 --- a/cpp/rust-nostr-nostr-sdk-react-native.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef RUSTNOSTR_NOSTRSDKREACTNATIVE_H -#define RUSTNOSTR_NOSTRSDKREACTNATIVE_H -// Generated by uniffi-bindgen-react-native -#include -#include -#include - -namespace rustnostr_nostrsdkreactnative { - using namespace facebook; - - uint8_t installRustCrate(jsi::Runtime &runtime, std::shared_ptr callInvoker); - uint8_t cleanupRustCrate(jsi::Runtime &runtime); -} - -#endif /* RUSTNOSTR_NOSTRSDKREACTNATIVE_H */ \ No newline at end of file diff --git a/ios/NostrSdkReactNative.h b/ios/NostrSdkReactNative.h deleted file mode 100644 index 3c1221a..0000000 --- a/ios/NostrSdkReactNative.h +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by uniffi-bindgen-react-native -#ifdef __cplusplus -#import "rust-nostr-nostr-sdk-react-native.h" -#endif - -#ifdef RCT_NEW_ARCH_ENABLED -#import "RNNostrSdkReactNativeSpec.h" - -@interface NostrSdkReactNative : NSObject -#else -#import - -@interface NostrSdkReactNative : NSObject -#endif - -@end \ No newline at end of file diff --git a/ios/NostrSdkReactNative.mm b/ios/NostrSdkReactNative.mm deleted file mode 100644 index 1865329..0000000 --- a/ios/NostrSdkReactNative.mm +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by uniffi-bindgen-react-native -#import "NostrSdkReactNative.h" - -namespace uniffi_generated { - using namespace facebook::react; - /** - * ObjC++ class for module 'NativeNostrSdkReactNative' - */ - class JSI_EXPORT NativeNostrSdkReactNativeSpecJSI : public ObjCTurboModule { - public: - NativeNostrSdkReactNativeSpecJSI(const ObjCTurboModule::InitParams ¶ms); - std::shared_ptr callInvoker; - }; - - static facebook::jsi::Value __hostFunction_NostrSdkReactNative_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - auto& tm = static_cast(turboModule); - auto jsInvoker = tm.callInvoker; - uint8_t result = rustnostr_nostrsdkreactnative::installRustCrate(rt, jsInvoker); - return facebook::jsi::Value(rt, result); - } - static facebook::jsi::Value __hostFunction_NostrSdkReactNative_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - uint8_t result = rustnostr_nostrsdkreactnative::cleanupRustCrate(rt); - return facebook::jsi::Value(rt, result); - } - - NativeNostrSdkReactNativeSpecJSI::NativeNostrSdkReactNativeSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params), callInvoker(params.jsInvoker) { - this->methodMap_["installRustCrate"] = MethodMetadata {1, __hostFunction_NostrSdkReactNative_installRustCrate}; - this->methodMap_["cleanupRustCrate"] = MethodMetadata {1, __hostFunction_NostrSdkReactNative_cleanupRustCrate}; - } -} // namespace uniffi_generated - -@implementation NostrSdkReactNative -RCT_EXPORT_MODULE() - -// Don't compile this code when we build for the old architecture. -#ifdef RCT_NEW_ARCH_ENABLED - -// Automated testing checks rustnostr_nostrsdkreactnative -// by comparing the whole line here. -/* -- (NSNumber *)multiply:(double)a b:(double)b { - NSNumber *result = @(rustnostr_nostrsdkreactnative::multiply(a, b)); -} -*/ - -- (NSNumber *)installRustCrate { - @throw [NSException exceptionWithName:@"UnreachableException" - reason:@"This method should never be called." - userInfo:nil]; -} - -- (NSNumber *)cleanupRustCrate { - @throw [NSException exceptionWithName:@"UnreachableException" - reason:@"This method should never be called." - userInfo:nil]; -} - -- (std::shared_ptr)getTurboModule: - (const facebook::react::ObjCTurboModule::InitParams &)params -{ - return std::make_shared(params); -} -#endif - -@end \ No newline at end of file diff --git a/src/NativeNostrSdkReactNative.ts b/src/NativeNostrSdkReactNative.ts deleted file mode 100644 index 06bb60d..0000000 --- a/src/NativeNostrSdkReactNative.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by uniffi-bindgen-react-native -import type { TurboModule } from 'react-native'; -import { TurboModuleRegistry } from 'react-native'; - -export interface Spec extends TurboModule { - installRustCrate(): boolean; - cleanupRustCrate(): boolean; -} - -export default TurboModuleRegistry.getEnforcing('NostrSdkReactNative'); \ No newline at end of file diff --git a/src/__tests__/index.test.tsx b/src/__tests__/index.test.tsx deleted file mode 100644 index bf84291..0000000 --- a/src/__tests__/index.test.tsx +++ /dev/null @@ -1 +0,0 @@ -it.todo('write a test'); diff --git a/src/generated/nostr_sdk-ffi.ts b/src/generated/nostr_sdk-ffi.ts deleted file mode 100644 index 8534036..0000000 --- a/src/generated/nostr_sdk-ffi.ts +++ /dev/null @@ -1,4989 +0,0 @@ -// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate. -// Trust me, you don't want to mess with it! - -import { - type StructuralEquality as UniffiStructuralEquality, - type UniffiForeignFuture as RuntimeUniffiForeignFuture, - type UniffiRustCallStatus, - type UniffiRustArcPtr, - type UniffiRustFutureContinuationCallback as RuntimeUniffiRustFutureContinuationCallback, - type UniffiResult, -} from 'uniffi-bindgen-react-native'; - -interface NativeModuleInterface { - ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length( - string: string, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer( - string: string, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string( - buffer: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): string; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_admitpolicy( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_admitpolicy( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_admitpolicy_admit_event( - ptr: bigint, - relayUrl: Uint8Array, - subscriptionId: Uint8Array, - event: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_client( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_client( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_client_new( - signer: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_discovery_relay( - ptr: bigint, - url: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_read_relay( - ptr: bigint, - url: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_relay( - ptr: bigint, - url: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_relay_with_opts( - ptr: bigint, - url: Uint8Array, - opts: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_write_relay( - ptr: bigint, - url: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_automatic_authentication( - ptr: bigint, - enable: number, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_connect(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_connect_relay( - ptr: bigint, - url: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_database( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_disconnect(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_disconnect_relay( - ptr: bigint, - url: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_combined_events( - ptr: bigint, - filter: bigint, - timeout: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events( - ptr: bigint, - filter: bigint, - timeout: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events_from( - ptr: bigint, - urls: Uint8Array, - filter: bigint, - timeout: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_metadata( - ptr: bigint, - publicKey: bigint, - timeout: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_all_relays( - ptr: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_relay( - ptr: bigint, - url: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap( - ptr: bigint, - receiver: bigint, - rumor: bigint, - extraTags: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap_to( - ptr: bigint, - urls: Uint8Array, - receiver: bigint, - rumor: bigint, - extraTags: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_handle_notifications( - ptr: bigint, - handler: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_relay( - ptr: bigint, - url: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_relays(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_remove_all_relays( - ptr: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_remove_relay( - ptr: bigint, - url: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event( - ptr: bigint, - event: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder( - ptr: bigint, - builder: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder_to( - ptr: bigint, - urls: Uint8Array, - builder: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_to( - ptr: bigint, - urls: Uint8Array, - event: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_msg_to( - ptr: bigint, - urls: Uint8Array, - msg: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg( - ptr: bigint, - receiver: bigint, - message: Uint8Array, - rumorExtraTags: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg_to( - ptr: bigint, - urls: Uint8Array, - receiver: bigint, - message: Uint8Array, - rumorExtraTags: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_set_metadata( - ptr: bigint, - metadata: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_shutdown(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_sign_event_builder( - ptr: bigint, - builder: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_signer(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe( - ptr: bigint, - filter: bigint, - opts: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_to( - ptr: bigint, - urls: Uint8Array, - filter: bigint, - opts: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id( - ptr: bigint, - id: Uint8Array, - filter: bigint, - opts: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id_to( - ptr: bigint, - urls: Uint8Array, - id: Uint8Array, - filter: bigint, - opts: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscription( - ptr: bigint, - id: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscriptions(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_sync( - ptr: bigint, - filter: bigint, - opts: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_try_connect( - ptr: bigint, - timeout: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe( - ptr: bigint, - subscriptionId: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe_all( - ptr: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unwrap_gift_wrap( - ptr: bigint, - giftWrap: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_client_wait_for_connection( - ptr: bigint, - timeout: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_clientbuilder( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_clientbuilder( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientbuilder_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_admit_policy( - ptr: bigint, - policy: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_build( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_database( - ptr: bigint, - database: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_opts( - ptr: bigint, - opts: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_signer( - ptr: bigint, - signer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_websocket_transport( - ptr: bigint, - transport: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_clientmessage( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_clientmessage( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_auth( - event: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_close( - subscriptionId: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_count( - subscriptionId: Uint8Array, - filter: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_event( - event: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_enum( - e: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_json( - json: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_req( - subscriptionId: Uint8Array, - filter: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_enum( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_connection( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_connection( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_connection_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_addr( - ptr: bigint, - addr: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_mode( - ptr: bigint, - mode: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_target( - ptr: bigint, - target: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_coordinate( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_coordinate( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_new( - kind: bigint, - publicKey: bigint, - identifier: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_parse( - coordinate: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_identifier( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_kind( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_public_key( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_verify( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_display( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_customnostrsigner( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_customnostrsigner( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_backend( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_get_public_key( - ptr: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_sign_event( - ptr: bigint, - unsignedEvent: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_encrypt( - ptr: bigint, - publicKey: bigint, - content: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_decrypt( - ptr: bigint, - publicKey: bigint, - encryptedContent: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_encrypt( - ptr: bigint, - publicKey: bigint, - content: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_decrypt( - ptr: bigint, - publicKey: bigint, - payload: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_customwebsockettransport( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_customwebsockettransport( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_support_ping( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_connect( - ptr: bigint, - url: Uint8Array, - mode: Uint8Array, - timeout: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_encryptedsecretkey( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_encryptedsecretkey( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_from_bech32( - bech32: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_new( - secretKey: bigint, - password: Uint8Array, - logN: number, - keySecurity: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_decrypt( - ptr: bigint, - password: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_key_security( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_to_bech32( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_version( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_event( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_event( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_event_from_json( - json: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_as_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_as_pretty_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_author( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_content( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_created_at( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_id( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_is_expired( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_is_protected( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_kind( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_signature( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_tags( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify_id( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify_signature( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_eventbuilder( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_eventbuilder( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_articles_curation_set( - identifier: Uint8Array, - list: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_auth( - challenge: Uint8Array, - relayUrl: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_award_badge( - badgeDefinition: bigint, - awardedPublicKeys: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_blocked_relays( - relay: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks( - list: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks_set( - identifier: Uint8Array, - list: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel( - metadata: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_metadata( - channelId: bigint, - metadata: bigint, - relayUrl: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_msg( - channelId: bigint, - relayUrl: Uint8Array, - content: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_comment( - content: Uint8Array, - commentTo: bigint, - root: Uint8Array, - relayUrl: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_communities( - communities: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_contact_list( - contacts: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_define_badge( - badgeId: Uint8Array, - name: Uint8Array, - description: Uint8Array, - image: Uint8Array, - imageDimensions: Uint8Array, - thumbnails: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_delete( - request: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emoji_set( - identifier: Uint8Array, - emojis: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emojis( - list: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_file_metadata( - description: Uint8Array, - metadata: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_follow_set( - identifier: Uint8Array, - publicKeys: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_issue( - issue: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_patch( - patch: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_repository_announcement( - data: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_hide_channel_msg( - messageId: bigint, - reason: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_http_auth( - data: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interest_set( - identifier: Uint8Array, - hashtags: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interests( - list: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_feedback( - data: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_request( - kind: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_result( - jobRequest: bigint, - payload: Uint8Array, - millisats: bigint, - bolt11: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_label( - labelNamespace: Uint8Array, - labels: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event( - liveEvent: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event_msg( - liveEventId: Uint8Array, - liveEventHost: bigint, - content: Uint8Array, - relayUrl: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_long_form_text_note( - content: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_metadata( - metadata: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_channel_user( - publicKey: bigint, - reason: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_list( - list: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_new( - kind: bigint, - content: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_nostr_connect( - senderKeys: bigint, - receiverPubkey: bigint, - msg: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_pinned_notes( - ids: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_private_msg_rumor( - receiver: bigint, - message: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_product_data( - data: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_profile_badges( - badgeDefinitions: Uint8Array, - badgeAwards: Uint8Array, - pubkeyAwarded: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_chats( - chat: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_zap_request( - data: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction( - event: bigint, - reaction: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction_extended( - eventId: bigint, - publicKey: bigint, - reaction: Uint8Array, - kind: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_list( - map: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_set( - identifier: Uint8Array, - relays: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_report( - tags: Uint8Array, - content: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_repost( - event: bigint, - relayUrl: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_seal( - signer: bigint, - receiverPublicKey: bigint, - rumor: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_search_relays( - relay: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_stall_data( - data: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note( - content: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note_reply( - content: Uint8Array, - replyTo: bigint, - root: Uint8Array, - relayUrl: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_videos_curation_set( - identifier: Uint8Array, - video: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_zap_receipt( - bolt11: Uint8Array, - preimage: Uint8Array, - zapRequest: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_allow_self_tagging( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_build( - ptr: bigint, - publicKey: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_custom_created_at( - ptr: bigint, - createdAt: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_dedup_tags( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_pow( - ptr: bigint, - difficulty: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign( - ptr: bigint, - signer: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign_with_keys( - ptr: bigint, - keys: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_tags( - ptr: bigint, - tags: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_eventid( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_eventid( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_from_bytes( - bytes: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_new( - publicKey: bigint, - createdAt: bigint, - kind: bigint, - tags: bigint, - content: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_parse( - id: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_as_bytes( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_bech32( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_hex( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_nostr_uri( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_events( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_events( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_events_contains( - ptr: bigint, - event: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_events_first( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_events_is_empty( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_events_len( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_events_merge( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_events_to_vec( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_filemetadata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_filemetadata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filemetadata_new( - url: Uint8Array, - mimeType: Uint8Array, - hash: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_aes_256_gcm( - ptr: bigint, - key: Uint8Array, - iv: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_blurhash( - ptr: bigint, - blurhash: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_dimensions( - ptr: bigint, - dim: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_magnet( - ptr: bigint, - magnet: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_size( - ptr: bigint, - size: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_filter( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_filter( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_json( - json: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_record( - record: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_as_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_as_record( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_author( - ptr: bigint, - author: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_authors( - ptr: bigint, - authors: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_coordinate( - ptr: bigint, - coordinate: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_coordinates( - ptr: bigint, - coordinates: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tag( - ptr: bigint, - tag: bigint, - content: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tags( - ptr: bigint, - tag: bigint, - contents: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_event( - ptr: bigint, - eventId: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_events( - ptr: bigint, - ids: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_hashtag( - ptr: bigint, - hashtag: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_hashtags( - ptr: bigint, - hashtags: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_id( - ptr: bigint, - id: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_identifier( - ptr: bigint, - identifier: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_identifiers( - ptr: bigint, - identifiers: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_ids( - ptr: bigint, - ids: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_is_empty( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_kind( - ptr: bigint, - kind: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_kinds( - ptr: bigint, - kinds: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_limit( - ptr: bigint, - limit: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_match_event( - ptr: bigint, - event: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_pubkey( - ptr: bigint, - pubkey: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_pubkeys( - ptr: bigint, - pubkeys: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_reference( - ptr: bigint, - reference: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_references( - ptr: bigint, - references: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_authors( - ptr: bigint, - authors: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_coordinates( - ptr: bigint, - coordinates: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_custom_tags( - ptr: bigint, - tag: bigint, - contents: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_events( - ptr: bigint, - ids: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_hashtags( - ptr: bigint, - hashtags: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_identifiers( - ptr: bigint, - identifiers: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_ids( - ptr: bigint, - ids: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_kinds( - ptr: bigint, - kinds: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_limit( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_pubkeys( - ptr: bigint, - pubkeys: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_references( - ptr: bigint, - references: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_search( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_since( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_until( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_search( - ptr: bigint, - text: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_since( - ptr: bigint, - timestamp: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_until( - ptr: bigint, - timestamp: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_handlenotification( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_handlenotification( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle_msg( - ptr: bigint, - relayUrl: Uint8Array, - msg: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle( - ptr: bigint, - relayUrl: Uint8Array, - subscriptionId: Uint8Array, - event: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_jobfeedbackdata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_jobfeedbackdata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_jobfeedbackdata_new( - jobRequest: bigint, - status: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_amount( - ptr: bigint, - millisats: bigint, - bolt11: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_extra_info( - ptr: bigint, - info: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_payload( - ptr: bigint, - payload: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_keys( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_keys( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_from_mnemonic( - mnemonic: Uint8Array, - passphrase: Uint8Array, - account: Uint8Array, - typ: Uint8Array, - index: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_generate( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_new( - secretKey: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_parse( - secretKey: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_public_key( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_secret_key( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_sign_schnorr( - ptr: bigint, - message: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_kind( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_kind( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_kind_from_std( - e: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_kind_new( - kind: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_as_std( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_as_u16( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_addressable( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_ephemeral( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_request( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_result( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_regular( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_replaceable( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_display( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_metadata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_metadata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_json( - json: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_record( - r: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_pretty_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_record( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_about( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_banner( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_custom_field( - ptr: bigint, - key: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_display_name( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud06( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud16( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_name( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_nip05( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_picture( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_website( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_about( - ptr: bigint, - about: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_banner( - ptr: bigint, - banner: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_custom_field( - ptr: bigint, - key: Uint8Array, - value: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_display_name( - ptr: bigint, - displayName: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud06( - ptr: bigint, - lud06: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud16( - ptr: bigint, - lud16: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_name( - ptr: bigint, - name: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_nip05( - ptr: bigint, - nip05: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_picture( - ptr: bigint, - picture: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_website( - ptr: bigint, - website: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nwc( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nwc( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nwc_new( - uri: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nwc_with_opts( - uri: bigint, - opts: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_get_balance(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_get_info(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_list_transactions( - ptr: bigint, - params: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_lookup_invoice( - ptr: bigint, - params: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_make_invoice( - ptr: bigint, - params: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_invoice( - ptr: bigint, - params: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_keysend( - ptr: bigint, - params: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_status(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip05profile( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nip05profile( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_nip46( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_public_key( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_relays( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19_from_bech32( - bech32: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_as_enum( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19coordinate( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19coordinate( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_bech32( - bech32: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_nostr_uri( - uri: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_new( - coordinate: bigint, - relays: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_coordinate( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_relays( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_bech32( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_nostr_uri( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19event( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19event( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_bech32( - bech32: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_event( - event: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_nostr_uri( - uri: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_new( - eventId: bigint, - author: Uint8Array, - kind: Uint8Array, - relays: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_author( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_event_id( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_kind( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_relays( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_bech32( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_nostr_uri( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19profile( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19profile( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_bech32( - bech32: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_nostr_uri( - uri: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_new( - publicKey: bigint, - relays: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_public_key( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_relays( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_bech32( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_nostr_uri( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip21( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nip21( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip21_parse( - uri: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_as_enum( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_to_nostr_uri( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnect( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnect( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnect_new( - uri: bigint, - appKeys: bigint, - timeout: Uint8Array, - opts: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_bunker_uri( - ptr: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_get_public_key( - ptr: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_decrypt( - ptr: bigint, - publicKey: bigint, - encryptedContent: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_encrypt( - ptr: bigint, - publicKey: bigint, - content: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_decrypt( - ptr: bigint, - publicKey: bigint, - payload: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_encrypt( - ptr: bigint, - publicKey: bigint, - content: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_relays( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_sign_event( - ptr: bigint, - unsignedEvent: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnectmetadata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnectmetadata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnectmetadata_new( - name: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_as_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_description( - ptr: bigint, - description: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_icons( - ptr: bigint, - icons: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_url( - ptr: bigint, - url: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnecturi( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnecturi( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnecturi_parse( - uri: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_display( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrdatabase( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrdatabase( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrdatabase_lmdb( - path: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_count( - ptr: bigint, - filter: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_delete( - ptr: bigint, - filter: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_event_by_id( - ptr: bigint, - eventId: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_metadata( - ptr: bigint, - publicKey: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_query( - ptr: bigint, - filter: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_save_event( - ptr: bigint, - event: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_wipe(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrsigner( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrsigner( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_custom( - custom: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_keys( - keys: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_nostr_connect( - connect: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_backend( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_get_public_key( - ptr: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_decrypt( - ptr: bigint, - publicKey: bigint, - encryptedContent: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_encrypt( - ptr: bigint, - publicKey: bigint, - content: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_decrypt( - ptr: bigint, - publicKey: bigint, - payload: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_encrypt( - ptr: bigint, - publicKey: bigint, - content: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_sign_event( - ptr: bigint, - unsignedEvent: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnectoptions( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnectoptions( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnectoptions_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_connection_mode( - ptr: bigint, - mode: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_timeout( - ptr: bigint, - timeout: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnecturi( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnecturi( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_new( - publicKey: bigint, - relays: Uint8Array, - randomSecretKey: bigint, - lud16: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_parse( - uri: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_lud16( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_public_key( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_relays( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_secret( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_options( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_options( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_options_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_options_autoconnect( - ptr: bigint, - val: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_options_automatic_authentication( - ptr: bigint, - enabled: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_options_connection( - ptr: bigint, - connection: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_options_gossip( - ptr: bigint, - enabled: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_options_max_avg_latency( - ptr: bigint, - max: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_options_relay_limits( - ptr: bigint, - limits: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_publickey( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_publickey( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_publickey_from_bytes( - bytes: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_publickey_parse( - publicKey: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_bech32( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_hex( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_nostr_uri( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_relay( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_relay( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_batch_msg( - ptr: bigint, - msgs: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_connect( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_connection_mode( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_count_events( - ptr: bigint, - filter: bigint, - timeout: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_disconnect( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_document(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_fetch_events( - ptr: bigint, - filter: bigint, - timeout: Uint8Array, - policy: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_is_connected( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_opts( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_queue( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_send_event( - ptr: bigint, - event: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_send_msg( - ptr: bigint, - msg: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_stats( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_status( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe( - ptr: bigint, - filter: bigint, - opts: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe_with_id( - ptr: bigint, - id: Uint8Array, - filter: bigint, - opts: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscription( - ptr: bigint, - id: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscriptions(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_sync( - ptr: bigint, - filter: bigint, - opts: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_sync_with_items( - ptr: bigint, - filter: bigint, - items: Uint8Array, - opts: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_try_connect( - ptr: bigint, - timeout: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe( - ptr: bigint, - id: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe_all( - ptr: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_url( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayconnectionstats( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_relayconnectionstats( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_attempts( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_received( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_sent( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_connected_at( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_first_connection_timestamp( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_latency( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success_rate( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayinformationdocument( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_relayinformationdocument( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relayinformationdocument_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_contact( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_description( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_fees( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_icon( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_language_tags( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_limitation( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_name( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_payments_url( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_posting_policy( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_pubkey( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_relay_countries( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_retention( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_software( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_supported_nips( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_tags( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_version( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_relaylimits( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_relaylimits( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_disable( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags( - ptr: bigint, - maxNumTags: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags_per_kind( - ptr: bigint, - kind: bigint, - maxNumTags: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size( - ptr: bigint, - maxSize: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size_per_kind( - ptr: bigint, - kind: bigint, - maxSize: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_message_max_size( - ptr: bigint, - maxSize: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_relaymessage( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_relaymessage( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_auth( - challenge: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_closed( - subscriptionId: Uint8Array, - message: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_count( - subscriptionId: Uint8Array, - count: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_eose( - subscriptionId: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_event( - subscriptionId: Uint8Array, - event: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_enum( - e: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_json( - json: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_notice( - message: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_ok( - eventId: bigint, - status: number, - message: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_enum( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayoptions( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_relayoptions( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relayoptions_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_adjust_retry_interval( - ptr: bigint, - adjustRetryInterval: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_connection_mode( - ptr: bigint, - mode: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_limits( - ptr: bigint, - limits: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_max_avg_latency( - ptr: bigint, - max: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_ping( - ptr: bigint, - ping: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_read( - ptr: bigint, - read: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_reconnect( - ptr: bigint, - reconnect: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_retry_interval( - ptr: bigint, - interval: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_write( - ptr: bigint, - write: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_request( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_request( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_request_new( - method: Uint8Array, - params: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_request_parse( - json: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_request_method( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_request_params( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_response( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_response( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_secretkey( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_secretkey( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_from_bytes( - bytes: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_generate( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_parse( - secretKey: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_encrypt( - ptr: bigint, - password: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_bech32( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_hex( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_serverconfig( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_serverconfig( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_shippingmethod( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_shippingmethod( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_shippingmethod_new( - id: Uint8Array, - cost: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_get_shipping_cost( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_name( - ptr: bigint, - name: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_regions( - ptr: bigint, - regions: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_singlelettertag( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_singlelettertag( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_lowercase( - character: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_uppercase( - character: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_lowercase( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_uppercase( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_stalldata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_stalldata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_json( - json: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_record( - r: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_new( - id: Uint8Array, - name: Uint8Array, - description: Uint8Array, - currency: Uint8Array, - shipping: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_record( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_currency( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_description( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_id( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_name( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_shipping( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_subscribeautocloseoptions( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_subscribeautocloseoptions( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_subscribeautocloseoptions_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_exit_policy( - ptr: bigint, - policy: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_idle_timeout( - ptr: bigint, - timeout: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_timeout( - ptr: bigint, - timeout: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_subscribeoptions( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_subscribeoptions( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_subscribeoptions_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeoptions_close_on( - ptr: bigint, - opts: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_syncoptions( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_syncoptions( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_syncoptions_new( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_direction( - ptr: bigint, - direction: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_dry_run( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_initial_timeout( - ptr: bigint, - timeout: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_tag( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_tag( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_alt( - summary: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_client( - name: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_coordinate( - coordinate: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_custom( - kind: Uint8Array, - values: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_description( - description: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_event( - eventId: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_event_report( - eventId: bigint, - report: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_expiration( - timestamp: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_from_standardized( - standardized: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_hashtag( - hashtag: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_identifier( - identifier: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_image( - url: Uint8Array, - dimensions: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_parse( - data: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_pow( - nonce: bigint, - difficulty: number, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_protected( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key( - publicKey: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key_report( - publicKey: bigint, - report: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_reference( - reference: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_relay_metadata( - relayUrl: Uint8Array, - metadata: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_title( - title: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_as_standardized( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_as_vec( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_content( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_protected( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_reply( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_root( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_kind( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_kind_str( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_len( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_single_letter_tag( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_tags( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_tags( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_list( - list: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_text( - text: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_parse( - tags: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_coordinates( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_event_ids( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_expiration( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_filter( - ptr: bigint, - kind: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_filter_standardized( - ptr: bigint, - kind: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_find( - ptr: bigint, - kind: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_find_standardized( - ptr: bigint, - kind: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_first( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_get( - ptr: bigint, - index: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_hashtags( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_identifier( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_is_empty( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_last( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_len( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_public_keys( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_to_vec( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_timestamp( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_timestamp( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_from_secs( - secs: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_now( - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_as_secs( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_to_human_datetime( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_unsignedevent( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_unsignedevent( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_unsignedevent_from_json( - json: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_add_signature( - ptr: bigint, - sig: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_pretty_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_author( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_content( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_created_at( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_id( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_kind( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign( - ptr: bigint, - signer: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign_with_keys( - ptr: bigint, - keys: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_tags( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_unwrappedgift( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_unwrappedgift( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_unwrappedgift_from_gift_wrap( - signer: bigint, - giftWrap: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift__none(ptr: bigint): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_rumor( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_sender( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_websocketadapter( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_websocketadapter( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_send( - ptr: bigint, - msg: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_recv( - ptr: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_close_connection( - ptr: bigint - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_websocketadapterwrapper( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_websocketadapterwrapper( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_websocketadapterwrapper_new( - adapter: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_clone_zaprequestdata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_free_zaprequestdata( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_constructor_zaprequestdata_new( - publicKey: bigint, - relays: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_amount( - ptr: bigint, - amount: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_event_id( - ptr: bigint, - eventId: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_lnurl( - ptr: bigint, - lnurl: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_message( - ptr: bigint, - message: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_debug( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_eq( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_ne( - ptr: bigint, - other: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_hash( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_create_delegation_tag( - delegatorKeys: bigint, - delegateePubkey: bigint, - conditions: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_decrypt_received_private_zap_message( - secretKey: bigint, - privateZap: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_decrypt_sent_private_zap_message( - secretKey: bigint, - publicKey: bigint, - privateZap: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_extract_relay_list( - event: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_generate_shared_key( - secretKey: bigint, - publicKey: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_get_leading_zero_bits( - bytes: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_func_get_nip05_profile( - nip05: Uint8Array, - proxy: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_get_nip96_server_config( - serverUrl: Uint8Array, - proxy: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_get_prefixes_for_difficulty( - leadingZeroBits: number, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_gift_wrap( - signer: bigint, - receiverPubkey: bigint, - rumor: bigint, - extraTags: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_gift_wrap_from_seal( - receiver: bigint, - seal: bigint, - extraTags: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_git_hash_version( - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_init_logger( - level: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_func_make_private_msg( - signer: bigint, - receiver: bigint, - message: Uint8Array, - rumorExtraTags: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_nip04_decrypt( - secretKey: bigint, - publicKey: bigint, - encryptedContent: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_nip04_encrypt( - secretKey: bigint, - publicKey: bigint, - content: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_nip11_get_information_document( - url: Uint8Array, - proxy: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_nip21_extract_from_text( - text: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_nip44_decrypt( - secretKey: bigint, - publicKey: bigint, - payload: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_nip44_encrypt( - secretKey: bigint, - publicKey: bigint, - content: Uint8Array, - version: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_nip57_anonymous_zap_request( - data: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_nip57_private_zap_request( - data: bigint, - keys: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_nip96_upload( - signer: bigint, - config: bigint, - fileData: Uint8Array, - mimeType: Uint8Array, - proxy: Uint8Array - ): bigint; - ubrn_uniffi_nostr_sdk_ffi_fn_func_sign_delegation( - delegatorKeys: bigint, - delegateePk: bigint, - conditions: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_tag_kind_to_string( - kind: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_uniffi_nostr_sdk_ffi_fn_func_validate_delegation_tag( - delegationTag: Uint8Array, - delegateePubkey: bigint, - eventKind: bigint, - createdAt: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_func_verify_delegation_signature( - delegatorPublicKey: bigint, - delegateePublicKey: bigint, - conditions: Uint8Array, - signature: Uint8Array, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_uniffi_nostr_sdk_ffi_fn_func_verify_nip05( - publicKey: bigint, - nip05: Uint8Array, - proxy: Uint8Array - ): bigint; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u8( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u8(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_u8(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u8( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i8( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i8(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_i8(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i8( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u16( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u16(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_u16(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u16( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i16( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i16(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_i16(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i16( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u32( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u32(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_u32(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u32( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i32( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i32(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_i32(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i32( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u64( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u64(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_u64(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u64( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i64( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i64(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_i64(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i64( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_f32( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_f32(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_f32(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_f32( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_f64( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_f64(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_f64(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_f64( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): number; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): Uint8Array; - ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void( - handle: bigint, - callback: UniffiRustFutureContinuationCallback, - callbackData: bigint - ): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_free_void(handle: bigint): void; - ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void( - handle: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_create_delegation_tag(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_decrypt_received_private_zap_message(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_decrypt_sent_private_zap_message(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_extract_relay_list(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_generate_shared_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_leading_zero_bits(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_nip05_profile(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_nip96_server_config(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_prefixes_for_difficulty(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap_from_seal(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_git_hash_version(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_init_logger(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_make_private_msg(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip04_decrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip04_encrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip11_get_information_document(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip21_extract_from_text(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip44_decrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip44_encrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip57_anonymous_zap_request(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip57_private_zap_request(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip96_upload(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_sign_delegation(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_tag_kind_to_string(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_validate_delegation_tag(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_verify_delegation_signature(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_func_verify_nip05(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_admitpolicy_admit_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_discovery_relay(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_read_relay(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay_with_opts(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_write_relay(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_automatic_authentication(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_connect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_connect_relay(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_database(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect_relay(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_combined_events(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events_from(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_metadata(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_all_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_relay(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap_to(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_handle_notifications(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_relay(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_remove_all_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_remove_relay(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder_to(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_to(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_msg_to(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg_to(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_set_metadata(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_shutdown(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_sign_event_builder(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_signer(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_to(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id_to(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscription(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscriptions(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_sync(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_try_connect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe_all(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_unwrap_gift_wrap(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_wait_for_connection(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_admit_policy(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_build(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_database(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_opts(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_signer(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_websocket_transport(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_enum(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_addr(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_mode(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_target(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_identifier(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_kind(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_public_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_verify(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_backend(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_get_public_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_sign_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_encrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_decrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_encrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_decrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_support_ping(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_connect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_decrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_key_security(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_to_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_version(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_as_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_as_pretty_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_author(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_content(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_created_at(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_id(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_is_expired(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_is_protected(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_kind(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_signature(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_tags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify_id(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify_signature(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_allow_self_tagging(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_build(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_custom_created_at(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_dedup_tags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_pow(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign_with_keys(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_tags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_as_bytes(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_hex(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_nostr_uri(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_contains(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_first(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_is_empty(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_len(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_merge(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_to_vec(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_aes_256_gcm(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_blurhash(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_dimensions(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_magnet(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_size(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_as_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_as_record(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_author(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_authors(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinate(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinates(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tag(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_events(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtag(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_id(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_identifier(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_identifiers(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_ids(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_is_empty(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_kind(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_kinds(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_limit(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_match_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkey(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkeys(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_reference(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_references(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_authors(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_coordinates(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_custom_tags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_events(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_hashtags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_identifiers(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_ids(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_kinds(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_limit(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_pubkeys(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_references(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_search(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_since(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_until(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_search(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_since(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_until(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle_msg(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_amount(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_extra_info(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_payload(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_public_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_secret_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_sign_schnorr(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_as_std(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_as_u16(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_addressable(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_ephemeral(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_request(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_result(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_regular(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_replaceable(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_pretty_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_record(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_about(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_banner(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_custom_field(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_display_name(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud06(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud16(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_name(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_nip05(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_picture(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_website(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_about(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_banner(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_custom_field(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_display_name(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud06(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud16(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_name(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_nip05(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_picture(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_website(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_balance(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_info(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_list_transactions(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_lookup_invoice(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_make_invoice(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_invoice(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_keysend(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_status(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_nip46(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_public_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19_as_enum(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_coordinate(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_nostr_uri(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_author(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_event_id(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_kind(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_nostr_uri(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_public_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_nostr_uri(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip21_as_enum(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip21_to_nostr_uri(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_bunker_uri(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_get_public_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_decrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_encrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_decrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_encrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_sign_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_as_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_description(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_icons(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_url(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_count(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_delete(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_event_by_id(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_metadata(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_query(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_save_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_wipe(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_backend(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_get_public_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_decrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_encrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_decrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_encrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_sign_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_connection_mode(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_timeout(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_lud16(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_public_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_secret(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_autoconnect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_automatic_authentication(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_connection(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_gossip(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_max_avg_latency(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_relay_limits(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_hex(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_nostr_uri(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_batch_msg(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_connect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_connection_mode(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_count_events(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_disconnect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_document(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_fetch_events(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_is_connected(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_opts(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_queue(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_send_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_send_msg(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_stats(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_status(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe_with_id(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscription(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscriptions(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_sync(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_sync_with_items(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_try_connect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe_all(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_url(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_attempts(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_received(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_sent(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_connected_at(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_first_connection_timestamp(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_latency(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success_rate(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_contact(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_description(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_fees(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_icon(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_language_tags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_limitation(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_name(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_payments_url(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_posting_policy(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_pubkey(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_relay_countries(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_retention(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_software(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_supported_nips(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_tags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_version(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags_per_kind(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size_per_kind(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_message_max_size(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_enum(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_adjust_retry_interval(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_connection_mode(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_limits(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_max_avg_latency(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_ping(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_read(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_reconnect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_retry_interval(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_write(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_request_method(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_request_params(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_encrypt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_hex(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_get_shipping_cost(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_name(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_regions(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_lowercase(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_uppercase(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_record(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_currency(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_description(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_id(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_name(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_shipping(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_exit_policy(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_idle_timeout(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_timeout(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeoptions_close_on(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_direction(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_dry_run(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_initial_timeout(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_as_standardized(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_as_vec(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_content(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_protected(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_reply(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_root(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_kind(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_kind_str(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_len(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_single_letter_tag(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_coordinates(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_event_ids(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_expiration(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_filter(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_filter_standardized(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_find(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_find_standardized(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_first(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_get(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_hashtags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_identifier(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_is_empty(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_last(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_len(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_public_keys(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_to_vec(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_timestamp_as_secs(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_timestamp_to_human_datetime(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_add_signature(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_pretty_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_author(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_content(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_created_at(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_id(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_kind(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign_with_keys(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_tags(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift__none(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_rumor(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_sender(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_send(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_recv(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_close_connection(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_amount(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_event_id(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_lnurl(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_message(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_client_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientbuilder_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_auth(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_close(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_count(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_enum(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_req(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_connection_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_from_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_event_from_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_articles_curation_set(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_auth(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_award_badge(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_blocked_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks_set(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_metadata(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_msg(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_comment(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_communities(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_contact_list(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_define_badge(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_delete(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emoji_set(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emojis(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_file_metadata(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_follow_set(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_issue(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_patch(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_repository_announcement(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_hide_channel_msg(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_http_auth(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interest_set(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interests(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_feedback(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_request(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_result(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_label(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event_msg(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_long_form_text_note(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_metadata(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_channel_user(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_list(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_nostr_connect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_pinned_notes(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_private_msg_rumor(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_product_data(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_profile_badges(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_chats(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_zap_request(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction_extended(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_list(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_set(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_report(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_repost(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_seal(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_search_relays(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_stall_data(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note_reply(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_videos_curation_set(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_zap_receipt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_from_bytes(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filemetadata_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_record(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filter_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_jobfeedbackdata_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_from_mnemonic(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_generate(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_kind_from_std(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_kind_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_record(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_with_opts(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19_from_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_nostr_uri(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_nostr_uri(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_bech32(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_nostr_uri(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip21_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnect_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnectmetadata_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnecturi_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrdatabase_lmdb(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_custom(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_keys(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_nostr_connect(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnectoptions_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_options_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_from_bytes(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relayinformationdocument_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_disable(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_auth(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_closed(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_count(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_eose(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_enum(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_notice(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_ok(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relayoptions_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_request_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_request_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_from_bytes(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_generate(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_shippingmethod_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_lowercase(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_uppercase(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_record(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeautocloseoptions_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeoptions_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_syncoptions_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_alt(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_client(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_coordinate(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_custom(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_description(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event_report(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_expiration(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_from_standardized(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_hashtag(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_identifier(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_image(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_pow(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_protected(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key_report(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_reference(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_relay_metadata(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_title(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_list(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_text(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_parse(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_from_secs(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_now(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_unsignedevent_from_json(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_unwrappedgift_from_gift_wrap(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_websocketadapterwrapper_new(): number; - ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_zaprequestdata_new(): number; - ubrn_ffi_nostr_sdk_ffi_uniffi_contract_version(): number; - ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_admitpolicy( - vtable: UniffiVTableCallbackInterfaceAdmitPolicy - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customnostrsigner( - vtable: UniffiVTableCallbackInterfaceCustomNostrSigner - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customwebsockettransport( - vtable: UniffiVTableCallbackInterfaceCustomWebSocketTransport - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_handlenotification( - vtable: UniffiVTableCallbackInterfaceHandleNotification - ): void; - ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_websocketadapter( - vtable: UniffiVTableCallbackInterfaceWebSocketAdapter - ): void; - ubrn_uniffi_internal_fn_method_admitpolicy_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_client_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_clientbuilder_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_clientmessage_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_connection_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_coordinate_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_customnostrsigner_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_customwebsockettransport_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_encryptedsecretkey_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_event_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_eventbuilder_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_eventid_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_events_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_filemetadata_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_filter_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_handlenotification_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_jobfeedbackdata_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_keys_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_kind_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_metadata_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nwc_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nip05profile_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nip19_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nip19coordinate_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nip19event_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nip19profile_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nip21_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nostrconnect_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nostrconnectmetadata_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nostrconnecturi_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nostrdatabase_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nostrsigner_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nostrwalletconnectoptions_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_nostrwalletconnecturi_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_options_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_publickey_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_relay_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_relayconnectionstats_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_relayinformationdocument_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_relaylimits_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_relaymessage_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_relayoptions_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_request_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_response_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_secretkey_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_serverconfig_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_shippingmethod_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_singlelettertag_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_stalldata_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_subscribeautocloseoptions_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_subscribeoptions_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_syncoptions_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_tag_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_tags_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_timestamp_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_unsignedevent_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_unwrappedgift_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_websocketadapter_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_websocketadapterwrapper_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - ubrn_uniffi_internal_fn_method_zaprequestdata_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; -} - -// Casting globalThis to any allows us to look for `NativeNostrSdk` -// if it was added via JSI. -// -// We use a getter here rather than simply `globalThis.NativeNostrSdk` so that -// if/when the startup sequence isn't just so, an empty value isn't inadvertantly cached. -const getter: () => NativeModuleInterface = () => - (globalThis as any).NativeNostrSdk; -export default getter; - -// Structs and function types for calling back into Typescript from Rust. -export type UniffiRustFutureContinuationCallback = ( - data: bigint, - pollResult: number -) => void; -type UniffiForeignFutureFree = (handle: bigint) => void; -type UniffiCallbackInterfaceFree = (handle: bigint) => void; -export type UniffiForeignFuture = { - handle: bigint; - free: UniffiForeignFutureFree; -}; -export type UniffiForeignFutureStructU8 = { - returnValue: number; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteU8 = ( - callbackData: bigint, - result: UniffiForeignFutureStructU8 -) => void; -export type UniffiForeignFutureStructI8 = { - returnValue: number; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteI8 = ( - callbackData: bigint, - result: UniffiForeignFutureStructI8 -) => void; -export type UniffiForeignFutureStructU16 = { - returnValue: number; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteU16 = ( - callbackData: bigint, - result: UniffiForeignFutureStructU16 -) => void; -export type UniffiForeignFutureStructI16 = { - returnValue: number; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteI16 = ( - callbackData: bigint, - result: UniffiForeignFutureStructI16 -) => void; -export type UniffiForeignFutureStructU32 = { - returnValue: number; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteU32 = ( - callbackData: bigint, - result: UniffiForeignFutureStructU32 -) => void; -export type UniffiForeignFutureStructI32 = { - returnValue: number; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteI32 = ( - callbackData: bigint, - result: UniffiForeignFutureStructI32 -) => void; -export type UniffiForeignFutureStructU64 = { - returnValue: bigint; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteU64 = ( - callbackData: bigint, - result: UniffiForeignFutureStructU64 -) => void; -export type UniffiForeignFutureStructI64 = { - returnValue: bigint; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteI64 = ( - callbackData: bigint, - result: UniffiForeignFutureStructI64 -) => void; -export type UniffiForeignFutureStructF32 = { - returnValue: number; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteF32 = ( - callbackData: bigint, - result: UniffiForeignFutureStructF32 -) => void; -export type UniffiForeignFutureStructF64 = { - returnValue: number; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteF64 = ( - callbackData: bigint, - result: UniffiForeignFutureStructF64 -) => void; -export type UniffiForeignFutureStructPointer = { - returnValue: bigint; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompletePointer = ( - callbackData: bigint, - result: UniffiForeignFutureStructPointer -) => void; -export type UniffiForeignFutureStructRustBuffer = { - returnValue: Uint8Array; - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteRustBuffer = ( - callbackData: bigint, - result: UniffiForeignFutureStructRustBuffer -) => void; -export type UniffiForeignFutureStructVoid = { - callStatus: UniffiRustCallStatus; -}; -export type UniffiForeignFutureCompleteVoid = ( - callbackData: bigint, - result: UniffiForeignFutureStructVoid -) => void; -type UniffiCallbackInterfaceAdmitPolicyMethod0 = ( - uniffiHandle: bigint, - relayUrl: Uint8Array, - subscriptionId: Uint8Array, - event: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceCustomNostrSignerMethod0 = ( - uniffiHandle: bigint -) => UniffiResult; -type UniffiCallbackInterfaceCustomNostrSignerMethod1 = ( - uniffiHandle: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceCustomNostrSignerMethod2 = ( - uniffiHandle: bigint, - unsignedEvent: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceCustomNostrSignerMethod3 = ( - uniffiHandle: bigint, - publicKey: bigint, - content: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceCustomNostrSignerMethod4 = ( - uniffiHandle: bigint, - publicKey: bigint, - encryptedContent: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceCustomNostrSignerMethod5 = ( - uniffiHandle: bigint, - publicKey: bigint, - content: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceCustomNostrSignerMethod6 = ( - uniffiHandle: bigint, - publicKey: bigint, - payload: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceCustomWebSocketTransportMethod0 = ( - uniffiHandle: bigint -) => UniffiResult; -type UniffiCallbackInterfaceCustomWebSocketTransportMethod1 = ( - uniffiHandle: bigint, - url: Uint8Array, - mode: Uint8Array, - timeout: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceHandleNotificationMethod0 = ( - uniffiHandle: bigint, - relayUrl: Uint8Array, - msg: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteVoid, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceHandleNotificationMethod1 = ( - uniffiHandle: bigint, - relayUrl: Uint8Array, - subscriptionId: Uint8Array, - event: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteVoid, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceWebSocketAdapterMethod0 = ( - uniffiHandle: bigint, - msg: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteVoid, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceWebSocketAdapterMethod1 = ( - uniffiHandle: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint -) => UniffiResult; -type UniffiCallbackInterfaceWebSocketAdapterMethod2 = ( - uniffiHandle: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteVoid, - uniffiCallbackData: bigint -) => UniffiResult; -export type UniffiVTableCallbackInterfaceAdmitPolicy = { - admitEvent: UniffiCallbackInterfaceAdmitPolicyMethod0; - uniffiFree: UniffiCallbackInterfaceFree; -}; -export type UniffiVTableCallbackInterfaceCustomNostrSigner = { - backend: UniffiCallbackInterfaceCustomNostrSignerMethod0; - getPublicKey: UniffiCallbackInterfaceCustomNostrSignerMethod1; - signEvent: UniffiCallbackInterfaceCustomNostrSignerMethod2; - nip04Encrypt: UniffiCallbackInterfaceCustomNostrSignerMethod3; - nip04Decrypt: UniffiCallbackInterfaceCustomNostrSignerMethod4; - nip44Encrypt: UniffiCallbackInterfaceCustomNostrSignerMethod5; - nip44Decrypt: UniffiCallbackInterfaceCustomNostrSignerMethod6; - uniffiFree: UniffiCallbackInterfaceFree; -}; -export type UniffiVTableCallbackInterfaceCustomWebSocketTransport = { - supportPing: UniffiCallbackInterfaceCustomWebSocketTransportMethod0; - connect: UniffiCallbackInterfaceCustomWebSocketTransportMethod1; - uniffiFree: UniffiCallbackInterfaceFree; -}; -export type UniffiVTableCallbackInterfaceHandleNotification = { - handleMsg: UniffiCallbackInterfaceHandleNotificationMethod0; - handle: UniffiCallbackInterfaceHandleNotificationMethod1; - uniffiFree: UniffiCallbackInterfaceFree; -}; -export type UniffiVTableCallbackInterfaceWebSocketAdapter = { - send: UniffiCallbackInterfaceWebSocketAdapterMethod0; - recv: UniffiCallbackInterfaceWebSocketAdapterMethod1; - closeConnection: UniffiCallbackInterfaceWebSocketAdapterMethod2; - uniffiFree: UniffiCallbackInterfaceFree; -}; - -// UniffiRustFutureContinuationCallback is generated as part of the component interface's -// ffi_definitions. However, we need it in the runtime. -// We could: -// (a) do some complicated template logic to ensure the declaration is not generated here (possible) -// (b) import the generated declaration into the runtime (m a y b e) or… -// (c) generate the declaration anyway, and use a different declaration in the runtime. -// -// We chose (c) here as the simplest. In addition, we perform a compile time check that -// the two versions of `UniffiRustFutureContinuationCallback` are structurally equivalent. -// -// If you see the error: -// ``` -// Type 'true' is not assignable to type 'false'.(2322) -// ``` -// Then a new version of uniffi has changed the signature of the callback. Most likely, code in -// `typescript/src/async-rust-call.ts` will need to be changed. -// -// If you see the error: -// ``` -// Cannot find name 'UniffiRustFutureContinuationCallback'. Did you mean 'RuntimeUniffiRustFutureContinuationCallback'?(2552) -// ``` -// then you may not be using callbacks or promises, and uniffi is now not generating Futures and callbacks. -// You should not generate this if that is the case. -// -// ('You' being the bindings generator maintainer). -const isRustFutureContinuationCallbackTypeCompatible: UniffiStructuralEquality< - RuntimeUniffiRustFutureContinuationCallback, - UniffiRustFutureContinuationCallback -> = true; -const isUniffiForeignFutureTypeCompatible: UniffiStructuralEquality< - RuntimeUniffiForeignFuture, - UniffiForeignFuture -> = true; diff --git a/src/generated/nostr_sdk.ts b/src/generated/nostr_sdk.ts deleted file mode 100644 index f6bf6ad..0000000 --- a/src/generated/nostr_sdk.ts +++ /dev/null @@ -1,47975 +0,0 @@ -// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate. -// Trust me, you don't want to mess with it! -import nativeModule, { - type UniffiRustFutureContinuationCallback, - type UniffiForeignFuture, - type UniffiForeignFutureStructU8, - type UniffiForeignFutureCompleteU8, - type UniffiForeignFutureStructI8, - type UniffiForeignFutureCompleteI8, - type UniffiForeignFutureStructU16, - type UniffiForeignFutureCompleteU16, - type UniffiForeignFutureStructI16, - type UniffiForeignFutureCompleteI16, - type UniffiForeignFutureStructU32, - type UniffiForeignFutureCompleteU32, - type UniffiForeignFutureStructI32, - type UniffiForeignFutureCompleteI32, - type UniffiForeignFutureStructU64, - type UniffiForeignFutureCompleteU64, - type UniffiForeignFutureStructI64, - type UniffiForeignFutureCompleteI64, - type UniffiForeignFutureStructF32, - type UniffiForeignFutureCompleteF32, - type UniffiForeignFutureStructF64, - type UniffiForeignFutureCompleteF64, - type UniffiForeignFutureStructPointer, - type UniffiForeignFutureCompletePointer, - type UniffiForeignFutureStructRustBuffer, - type UniffiForeignFutureCompleteRustBuffer, - type UniffiForeignFutureStructVoid, - type UniffiForeignFutureCompleteVoid, - type UniffiVTableCallbackInterfaceAdmitPolicy, - type UniffiVTableCallbackInterfaceCustomNostrSigner, - type UniffiVTableCallbackInterfaceCustomWebSocketTransport, - type UniffiVTableCallbackInterfaceHandleNotification, - type UniffiVTableCallbackInterfaceWebSocketAdapter, -} from './nostr_sdk-ffi'; -import { - type FfiConverter, - type UniffiByteArray, - type UniffiDuration, - type UniffiHandle, - type UniffiObjectFactory, - type UniffiReferenceHolder, - type UniffiRustArcPtr, - type UniffiRustCallStatus, - type UnsafeMutableRawPointer, - AbstractFfiConverterByteArray, - FfiConverterArray, - FfiConverterArrayBuffer, - FfiConverterBool, - FfiConverterDuration, - FfiConverterFloat64, - FfiConverterInt32, - FfiConverterInt64, - FfiConverterMap, - FfiConverterObject, - FfiConverterObjectWithCallbacks, - FfiConverterOptional, - FfiConverterUInt16, - FfiConverterUInt32, - FfiConverterUInt64, - FfiConverterUInt8, - RustBuffer, - UniffiAbstractObject, - UniffiEnum, - UniffiError, - UniffiInternalError, - UniffiResult, - UniffiRustCaller, - destructorGuardSymbol, - pointerLiteralSymbol, - uniffiCreateFfiConverterString, - uniffiCreateRecord, - uniffiRustCallAsync, - uniffiTraitInterfaceCall, - uniffiTraitInterfaceCallAsync, - uniffiTraitInterfaceCallAsyncWithError, - uniffiTypeNameSymbol, - variantOrdinalSymbol, -} from 'uniffi-bindgen-react-native'; - -// Get converters from the other files, if any. -const uniffiCaller = new UniffiRustCaller(); - -const uniffiIsDebug = - // @ts-ignore -- The process global might not be defined - typeof process !== 'object' || - // @ts-ignore -- The process global might not be defined - process?.env?.NODE_ENV !== 'production' || - false; -// Public interface members begin here. - -/** - * Create a NIP26 delegation tag (including the signature). - * See also validate_delegation_tag(). - * - * - */ -export function createDelegationTag( - delegatorKeys: KeysInterface, - delegateePubkey: PublicKeyInterface, - conditions: string -): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_create_delegation_tag( - FfiConverterTypeKeys.lower(delegatorKeys), - FfiConverterTypePublicKey.lower(delegateePubkey), - FfiConverterString.lower(conditions), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -export function decryptReceivedPrivateZapMessage( - secretKey: SecretKeyInterface, - privateZap: EventInterface -): EventInterface /*throws*/ { - return FfiConverterTypeEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_decrypt_received_private_zap_message( - FfiConverterTypeSecretKey.lower(secretKey), - FfiConverterTypeEvent.lower(privateZap), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -export function decryptSentPrivateZapMessage( - secretKey: SecretKeyInterface, - publicKey: PublicKeyInterface, - privateZap: EventInterface -): EventInterface /*throws*/ { - return FfiConverterTypeEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_decrypt_sent_private_zap_message( - FfiConverterTypeSecretKey.lower(secretKey), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterTypeEvent.lower(privateZap), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -/** - * Extracts the relay info (url, optional read/write flag) from the event - */ -export function extractRelayList( - event: EventInterface -): Map { - return FfiConverterMapStringOptionalTypeRelayMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_extract_relay_list( - FfiConverterTypeEvent.lower(event), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -/** - * Generate shared key - * - * **Important: use of a strong cryptographic hash function may be critical to security! Do NOT use - * unless you understand cryptographical implications.** - */ -export function generateSharedKey( - secretKey: SecretKeyInterface, - publicKey: PublicKeyInterface -): ArrayBuffer /*throws*/ { - return FfiConverterArrayBuffer.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_generate_shared_key( - FfiConverterTypeSecretKey.lower(secretKey), - FfiConverterTypePublicKey.lower(publicKey), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -/** - * Gets the number of leading zero bits. Result is between 0 and 255. - */ -export function getLeadingZeroBits(bytes: ArrayBuffer): /*u8*/ number { - return FfiConverterUInt8.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_get_leading_zero_bits( - FfiConverterArrayBuffer.lower(bytes), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -/** - * Get NIP05 profile - * - * - */ -export async function getNip05Profile( - nip05: string, - proxy: string | undefined = undefined, - asyncOpts_?: { signal: AbortSignal } -): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_get_nip05_profile( - FfiConverterString.lower(nip05), - FfiConverterOptionalString.lower(proxy) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeNip05Profile.lift.bind( - FfiConverterTypeNip05Profile - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } -} -/** - * Get the nip96.json file on the server and return the JSON as a `ServerConfig` - * - * - */ -export async function getNip96ServerConfig( - serverUrl: string, - proxy: string | undefined = undefined, - asyncOpts_?: { signal: AbortSignal } -): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_get_nip96_server_config( - FfiConverterString.lower(serverUrl), - FfiConverterOptionalString.lower(proxy) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeServerConfig.lift.bind( - FfiConverterTypeServerConfig - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } -} -/** - * Returns all possible ID prefixes (hex) that have the specified number of leading zero bits. - * - * Possible values: 0-255 - */ -export function getPrefixesForDifficulty( - leadingZeroBits: /*u8*/ number -): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_get_prefixes_for_difficulty( - FfiConverterUInt8.lower(leadingZeroBits), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -/** - * Build Gift Wrap - * - * - */ -export async function giftWrap( - signer: NostrSignerInterface, - receiverPubkey: PublicKeyInterface, - rumor: UnsignedEventInterface, - extraTags: Array = [], - asyncOpts_?: { signal: AbortSignal } -): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_gift_wrap( - FfiConverterTypeNostrSigner.lower(signer), - FfiConverterTypePublicKey.lower(receiverPubkey), - FfiConverterTypeUnsignedEvent.lower(rumor), - FfiConverterArrayTypeTag.lower(extraTags) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvent.lift.bind(FfiConverterTypeEvent), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } -} -/** - * Build Gift Wrap from Seal - * - * - */ -export function giftWrapFromSeal( - receiver: PublicKeyInterface, - seal: EventInterface, - extraTags: Array = [] -): EventInterface /*throws*/ { - return FfiConverterTypeEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_gift_wrap_from_seal( - FfiConverterTypePublicKey.lower(receiver), - FfiConverterTypeEvent.lower(seal), - FfiConverterArrayTypeTag.lower(extraTags), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -/** - * Get git hash version of `rust-nostr` libraries - */ -export function gitHashVersion(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_git_hash_version( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -export function initLogger(level: LogLevel): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_init_logger( - FfiConverterTypeLogLevel.lower(level), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); -} -/** - * Private Direct message - * - * - */ -export async function makePrivateMsg( - signer: NostrSignerInterface, - receiver: PublicKeyInterface, - message: string, - rumorExtraTags: Array = [], - asyncOpts_?: { signal: AbortSignal } -): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_make_private_msg( - FfiConverterTypeNostrSigner.lower(signer), - FfiConverterTypePublicKey.lower(receiver), - FfiConverterString.lower(message), - FfiConverterArrayTypeTag.lower(rumorExtraTags) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvent.lift.bind(FfiConverterTypeEvent), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } -} -export function nip04Decrypt( - secretKey: SecretKeyInterface, - publicKey: PublicKeyInterface, - encryptedContent: string -): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_nip04_decrypt( - FfiConverterTypeSecretKey.lower(secretKey), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(encryptedContent), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -export function nip04Encrypt( - secretKey: SecretKeyInterface, - publicKey: PublicKeyInterface, - content: string -): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_nip04_encrypt( - FfiConverterTypeSecretKey.lower(secretKey), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(content), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -export async function nip11GetInformationDocument( - url: string, - proxy: string | undefined = undefined, - asyncOpts_?: { signal: AbortSignal } -): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_nip11_get_information_document( - FfiConverterString.lower(url), - FfiConverterOptionalString.lower(proxy) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeRelayInformationDocument.lift.bind( - FfiConverterTypeRelayInformationDocument - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } -} -/** - * Extract `nostr:` URIs from a text - */ -export function nip21ExtractFromText(text: string): Array { - return FfiConverterArrayTypeNip21.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_nip21_extract_from_text( - FfiConverterString.lower(text), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -export function nip44Decrypt( - secretKey: SecretKeyInterface, - publicKey: PublicKeyInterface, - payload: string -): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_nip44_decrypt( - FfiConverterTypeSecretKey.lower(secretKey), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(payload), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -export function nip44Encrypt( - secretKey: SecretKeyInterface, - publicKey: PublicKeyInterface, - content: string, - version: Nip44Version -): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_nip44_encrypt( - FfiConverterTypeSecretKey.lower(secretKey), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(content), - FfiConverterTypeNip44Version.lower(version), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -export function nip57AnonymousZapRequest( - data: ZapRequestDataInterface -): EventInterface /*throws*/ { - return FfiConverterTypeEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_nip57_anonymous_zap_request( - FfiConverterTypeZapRequestData.lower(data), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -export function nip57PrivateZapRequest( - data: ZapRequestDataInterface, - keys: KeysInterface -): EventInterface /*throws*/ { - return FfiConverterTypeEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_nip57_private_zap_request( - FfiConverterTypeZapRequestData.lower(data), - FfiConverterTypeKeys.lower(keys), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -/** - * Uploads some data to a NIP-96 server and returns the file's download URL - * - * - */ -export async function nip96Upload( - signer: NostrSignerInterface, - config: ServerConfigInterface, - fileData: ArrayBuffer, - mimeType: string | undefined = undefined, - proxy: string | undefined = undefined, - asyncOpts_?: { signal: AbortSignal } -): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_nip96_upload( - FfiConverterTypeNostrSigner.lower(signer), - FfiConverterTypeServerConfig.lower(config), - FfiConverterArrayBuffer.lower(fileData), - FfiConverterOptionalString.lower(mimeType), - FfiConverterOptionalString.lower(proxy) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } -} -/** - * Sign delegation. - * See `create_delegation_tag` for more complete functionality. - * - * - */ -export function signDelegation( - delegatorKeys: KeysInterface, - delegateePk: PublicKeyInterface, - conditions: string -): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_sign_delegation( - FfiConverterTypeKeys.lower(delegatorKeys), - FfiConverterTypePublicKey.lower(delegateePk), - FfiConverterString.lower(conditions), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -/** - * Convert tag kind to string - */ -export function tagKindToString(kind: TagKind): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_tag_kind_to_string( - FfiConverterTypeTagKind.lower(kind), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -/** - * Validate a NIP26 delegation tag, check signature and conditions. - * - * - */ -export function validateDelegationTag( - delegationTag: string, - delegateePubkey: PublicKeyInterface, - eventKind: KindInterface, - createdAt: /*u64*/ bigint -): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_validate_delegation_tag( - FfiConverterString.lower(delegationTag), - FfiConverterTypePublicKey.lower(delegateePubkey), - FfiConverterTypeKind.lower(eventKind), - FfiConverterUInt64.lower(createdAt), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -/** - * Verify delegation signature - * - * - */ -export function verifyDelegationSignature( - delegatorPublicKey: PublicKeyInterface, - delegateePublicKey: PublicKeyInterface, - conditions: string, - signature: string -): boolean /*throws*/ { - return FfiConverterBool.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_verify_delegation_signature( - FfiConverterTypePublicKey.lower(delegatorPublicKey), - FfiConverterTypePublicKey.lower(delegateePublicKey), - FfiConverterString.lower(conditions), - FfiConverterString.lower(signature), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} -export async function verifyNip05( - publicKey: PublicKeyInterface, - nip05: string, - proxy: string | undefined = undefined, - asyncOpts_?: { signal: AbortSignal } -): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_func_verify_nip05( - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(nip05), - FfiConverterOptionalString.lower(proxy) - ); - }, - /*pollFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i8, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i8, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i8, - /*freeFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_free_i8, - /*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } -} - -/** - * Groups of articles picked by users as interesting and/or belonging to the same category - * - * - */ -export type ArticlesCuration = { - /** - * Coordinates - */ - coordinate: Array; - /** - * Event IDs - */ - eventIds: Array; -}; - -/** - * Generated factory for {@link ArticlesCuration} record objects. - */ -export const ArticlesCuration = (() => { - const defaults = () => ({ coordinate: [], eventIds: [] }); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link ArticlesCuration}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link ArticlesCuration}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeArticlesCuration = (() => { - type TypeName = ArticlesCuration; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - coordinate: FfiConverterArrayTypeCoordinate.read(from), - eventIds: FfiConverterArrayTypeEventId.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayTypeCoordinate.write(value.coordinate, into); - FfiConverterArrayTypeEventId.write(value.eventIds, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterArrayTypeCoordinate.allocationSize(value.coordinate) + - FfiConverterArrayTypeEventId.allocationSize(value.eventIds) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Uncategorized, "global" list of things a user wants to save - * - * - */ -export type Bookmarks = { - eventIds: Array; - coordinate: Array; - hashtags: Array; - urls: Array; -}; - -/** - * Generated factory for {@link Bookmarks} record objects. - */ -export const Bookmarks = (() => { - const defaults = () => ({ - eventIds: [], - coordinate: [], - hashtags: [], - urls: [], - }); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Bookmarks}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Bookmarks}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeBookmarks = (() => { - type TypeName = Bookmarks; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - eventIds: FfiConverterArrayTypeEventId.read(from), - coordinate: FfiConverterArrayTypeCoordinate.read(from), - hashtags: FfiConverterArrayString.read(from), - urls: FfiConverterArrayString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayTypeEventId.write(value.eventIds, into); - FfiConverterArrayTypeCoordinate.write(value.coordinate, into); - FfiConverterArrayString.write(value.hashtags, into); - FfiConverterArrayString.write(value.urls, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterArrayTypeEventId.allocationSize(value.eventIds) + - FfiConverterArrayTypeCoordinate.allocationSize(value.coordinate) + - FfiConverterArrayString.allocationSize(value.hashtags) + - FfiConverterArrayString.allocationSize(value.urls) - ); - } - } - return new FFIConverter(); -})(); - -export type Contact = { - publicKey: PublicKeyInterface; - relayUrl: string | undefined; - alias: string | undefined; -}; - -/** - * Generated factory for {@link Contact} record objects. - */ -export const Contact = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Contact}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Contact}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeContact = (() => { - type TypeName = Contact; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - publicKey: FfiConverterTypePublicKey.read(from), - relayUrl: FfiConverterOptionalString.read(from), - alias: FfiConverterOptionalString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypePublicKey.write(value.publicKey, into); - FfiConverterOptionalString.write(value.relayUrl, into); - FfiConverterOptionalString.write(value.alias, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypePublicKey.allocationSize(value.publicKey) + - FfiConverterOptionalString.allocationSize(value.relayUrl) + - FfiConverterOptionalString.allocationSize(value.alias) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Emoji - * - * - */ -export type EmojiInfo = { - shortcode: string; - url: string; -}; - -/** - * Generated factory for {@link EmojiInfo} record objects. - */ -export const EmojiInfo = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link EmojiInfo}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link EmojiInfo}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeEmojiInfo = (() => { - type TypeName = EmojiInfo; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - shortcode: FfiConverterString.read(from), - url: FfiConverterString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.shortcode, into); - FfiConverterString.write(value.url, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.shortcode) + - FfiConverterString.allocationSize(value.url) - ); - } - } - return new FFIConverter(); -})(); - -/** - * User preferred emojis and pointers to emoji sets - * - * - */ -export type Emojis = { - /** - * Emojis - */ - emojis: Array; - /** - * Coordinates - */ - coordinate: Array; -}; - -/** - * Generated factory for {@link Emojis} record objects. - */ -export const Emojis = (() => { - const defaults = () => ({ emojis: [], coordinate: [] }); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Emojis}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Emojis}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeEmojis = (() => { - type TypeName = Emojis; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - emojis: FfiConverterArrayTypeEmojiInfo.read(from), - coordinate: FfiConverterArrayTypeCoordinate.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayTypeEmojiInfo.write(value.emojis, into); - FfiConverterArrayTypeCoordinate.write(value.coordinate, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterArrayTypeEmojiInfo.allocationSize(value.emojis) + - FfiConverterArrayTypeCoordinate.allocationSize(value.coordinate) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Event deletion request - */ -export type EventDeletionRequest = { - /** - * Event IDs - */ - ids: Array; - /** - * Event coordinates - */ - coordinates: Array; - /** - * Optional reason - */ - reason: string | undefined; -}; - -/** - * Generated factory for {@link EventDeletionRequest} record objects. - */ -export const EventDeletionRequest = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord< - EventDeletionRequest, - ReturnType - >(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link EventDeletionRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link EventDeletionRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeEventDeletionRequest = (() => { - type TypeName = EventDeletionRequest; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - ids: FfiConverterArrayTypeEventId.read(from), - coordinates: FfiConverterArrayTypeCoordinate.read(from), - reason: FfiConverterOptionalString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayTypeEventId.write(value.ids, into); - FfiConverterArrayTypeCoordinate.write(value.coordinates, into); - FfiConverterOptionalString.write(value.reason, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterArrayTypeEventId.allocationSize(value.ids) + - FfiConverterArrayTypeCoordinate.allocationSize(value.coordinates) + - FfiConverterOptionalString.allocationSize(value.reason) - ); - } - } - return new FFIConverter(); -})(); - -/** - * The specific information about a fee schedule - */ -export type FeeSchedule = { - /** - * The fee amount - */ - amount: /*i32*/ number; - /** - * The denomination of the feed - */ - unit: string; - /** - * The duration for which the fee is valid - */ - period: /*i32*/ number | undefined; - /** - * The event kinds the fee allows the client to publish to the relay - */ - kinds: Array | undefined; -}; - -/** - * Generated factory for {@link FeeSchedule} record objects. - */ -export const FeeSchedule = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link FeeSchedule}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link FeeSchedule}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeFeeSchedule = (() => { - type TypeName = FeeSchedule; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - amount: FfiConverterInt32.read(from), - unit: FfiConverterString.read(from), - period: FfiConverterOptionalInt32.read(from), - kinds: FfiConverterOptionalArrayString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterInt32.write(value.amount, into); - FfiConverterString.write(value.unit, into); - FfiConverterOptionalInt32.write(value.period, into); - FfiConverterOptionalArrayString.write(value.kinds, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterInt32.allocationSize(value.amount) + - FfiConverterString.allocationSize(value.unit) + - FfiConverterOptionalInt32.allocationSize(value.period) + - FfiConverterOptionalArrayString.allocationSize(value.kinds) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Available fee schedules - */ -export type FeeSchedules = { - /** - * Fees for admission to use the relay - */ - admission: Array; - /** - * Fees for subscription to use the relay - */ - subscription: Array; - /** - * Fees to publish to the relay - */ - publication: Array; -}; - -/** - * Generated factory for {@link FeeSchedules} record objects. - */ -export const FeeSchedules = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link FeeSchedules}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link FeeSchedules}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeFeeSchedules = (() => { - type TypeName = FeeSchedules; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - admission: FfiConverterArrayTypeFeeSchedule.read(from), - subscription: FfiConverterArrayTypeFeeSchedule.read(from), - publication: FfiConverterArrayTypeFeeSchedule.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayTypeFeeSchedule.write(value.admission, into); - FfiConverterArrayTypeFeeSchedule.write(value.subscription, into); - FfiConverterArrayTypeFeeSchedule.write(value.publication, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterArrayTypeFeeSchedule.allocationSize(value.admission) + - FfiConverterArrayTypeFeeSchedule.allocationSize(value.subscription) + - FfiConverterArrayTypeFeeSchedule.allocationSize(value.publication) - ); - } - } - return new FFIConverter(); -})(); - -export type FilterRecord = { - ids: Array | undefined; - authors: Array | undefined; - kinds: Array | undefined; - /** - * It's a string describing a query in a human-readable form, i.e. "best nostr apps" - * - * - */ - search: string | undefined; - /** - * An integer unix timestamp, events must be newer than this to pass - */ - since: TimestampInterface | undefined; - /** - * An integer unix timestamp, events must be older than this to pass - */ - until: TimestampInterface | undefined; - /** - * Maximum number of events to be returned in the initial query - */ - limit: /*u64*/ bigint | undefined; - /** - * Generic tag queries - */ - genericTags: Array; -}; - -/** - * Generated factory for {@link FilterRecord} record objects. - */ -export const FilterRecord = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link FilterRecord}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link FilterRecord}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeFilterRecord = (() => { - type TypeName = FilterRecord; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - ids: FfiConverterOptionalArrayTypeEventId.read(from), - authors: FfiConverterOptionalArrayTypePublicKey.read(from), - kinds: FfiConverterOptionalArrayTypeKind.read(from), - search: FfiConverterOptionalString.read(from), - since: FfiConverterOptionalTypeTimestamp.read(from), - until: FfiConverterOptionalTypeTimestamp.read(from), - limit: FfiConverterOptionalUInt64.read(from), - genericTags: FfiConverterArrayTypeGenericTag.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalArrayTypeEventId.write(value.ids, into); - FfiConverterOptionalArrayTypePublicKey.write(value.authors, into); - FfiConverterOptionalArrayTypeKind.write(value.kinds, into); - FfiConverterOptionalString.write(value.search, into); - FfiConverterOptionalTypeTimestamp.write(value.since, into); - FfiConverterOptionalTypeTimestamp.write(value.until, into); - FfiConverterOptionalUInt64.write(value.limit, into); - FfiConverterArrayTypeGenericTag.write(value.genericTags, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalArrayTypeEventId.allocationSize(value.ids) + - FfiConverterOptionalArrayTypePublicKey.allocationSize(value.authors) + - FfiConverterOptionalArrayTypeKind.allocationSize(value.kinds) + - FfiConverterOptionalString.allocationSize(value.search) + - FfiConverterOptionalTypeTimestamp.allocationSize(value.since) + - FfiConverterOptionalTypeTimestamp.allocationSize(value.until) + - FfiConverterOptionalUInt64.allocationSize(value.limit) + - FfiConverterArrayTypeGenericTag.allocationSize(value.genericTags) - ); - } - } - return new FFIConverter(); -})(); - -export type GenericTag = { - key: SingleLetterTagInterface; - value: Array; -}; - -/** - * Generated factory for {@link GenericTag} record objects. - */ -export const GenericTag = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link GenericTag}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link GenericTag}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeGenericTag = (() => { - type TypeName = GenericTag; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - key: FfiConverterTypeSingleLetterTag.read(from), - value: FfiConverterArrayString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypeSingleLetterTag.write(value.key, into); - FfiConverterArrayString.write(value.value, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypeSingleLetterTag.allocationSize(value.key) + - FfiConverterArrayString.allocationSize(value.value) - ); - } - } - return new FFIConverter(); -})(); - -/** - * NIP47 Response Result - */ -export type GetBalanceResponse = { - /** - * Balance amount in msats - */ - balance: /*u64*/ bigint; -}; - -/** - * Generated factory for {@link GetBalanceResponse} record objects. - */ -export const GetBalanceResponse = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link GetBalanceResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link GetBalanceResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeGetBalanceResponse = (() => { - type TypeName = GetBalanceResponse; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - balance: FfiConverterUInt64.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterUInt64.write(value.balance, into); - } - allocationSize(value: TypeName): number { - return FfiConverterUInt64.allocationSize(value.balance); - } - } - return new FFIConverter(); -})(); - -/** - * NIP47 Response Result - */ -export type GetInfoResponse = { - /** - * The alias of the lightning node - */ - alias: string | undefined; - /** - * The color of the current node in hex code format - */ - color: string | undefined; - /** - * Lightning Node's public key - */ - pubkey: string | undefined; - /** - * Active network - */ - network: string | undefined; - /** - * Current block height - */ - blockHeight: /*u32*/ number | undefined; - /** - * Most Recent Block Hash - */ - blockHash: string | undefined; - /** - * Available methods for this connection - */ - methods: Array; - /** - * List of supported notifications for this connection (optional) - */ - notifications: Array; -}; - -/** - * Generated factory for {@link GetInfoResponse} record objects. - */ -export const GetInfoResponse = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link GetInfoResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link GetInfoResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeGetInfoResponse = (() => { - type TypeName = GetInfoResponse; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - alias: FfiConverterOptionalString.read(from), - color: FfiConverterOptionalString.read(from), - pubkey: FfiConverterOptionalString.read(from), - network: FfiConverterOptionalString.read(from), - blockHeight: FfiConverterOptionalUInt32.read(from), - blockHash: FfiConverterOptionalString.read(from), - methods: FfiConverterArrayString.read(from), - notifications: FfiConverterArrayString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalString.write(value.alias, into); - FfiConverterOptionalString.write(value.color, into); - FfiConverterOptionalString.write(value.pubkey, into); - FfiConverterOptionalString.write(value.network, into); - FfiConverterOptionalUInt32.write(value.blockHeight, into); - FfiConverterOptionalString.write(value.blockHash, into); - FfiConverterArrayString.write(value.methods, into); - FfiConverterArrayString.write(value.notifications, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalString.allocationSize(value.alias) + - FfiConverterOptionalString.allocationSize(value.color) + - FfiConverterOptionalString.allocationSize(value.pubkey) + - FfiConverterOptionalString.allocationSize(value.network) + - FfiConverterOptionalUInt32.allocationSize(value.blockHeight) + - FfiConverterOptionalString.allocationSize(value.blockHash) + - FfiConverterArrayString.allocationSize(value.methods) + - FfiConverterArrayString.allocationSize(value.notifications) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Git Issue - */ -export type GitIssue = { - /** - * The repository address - */ - repository: CoordinateInterface; - /** - * The issue content (markdown) - */ - content: string; - /** - * Subject - */ - subject: string | undefined; - /** - * Labels - */ - labels: Array; -}; - -/** - * Generated factory for {@link GitIssue} record objects. - */ -export const GitIssue = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link GitIssue}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link GitIssue}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeGitIssue = (() => { - type TypeName = GitIssue; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - repository: FfiConverterTypeCoordinate.read(from), - content: FfiConverterString.read(from), - subject: FfiConverterOptionalString.read(from), - labels: FfiConverterArrayString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypeCoordinate.write(value.repository, into); - FfiConverterString.write(value.content, into); - FfiConverterOptionalString.write(value.subject, into); - FfiConverterArrayString.write(value.labels, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypeCoordinate.allocationSize(value.repository) + - FfiConverterString.allocationSize(value.content) + - FfiConverterOptionalString.allocationSize(value.subject) + - FfiConverterArrayString.allocationSize(value.labels) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Git Patch - */ -export type GitPatch = { - /** - * Repository - */ - repository: CoordinateInterface; - /** - * Patch - */ - content: GitPatchContent; - /** - * Earliest unique commit ID of repo - */ - euc: string; - /** - * Labels - */ - labels: Array; -}; - -/** - * Generated factory for {@link GitPatch} record objects. - */ -export const GitPatch = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link GitPatch}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link GitPatch}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeGitPatch = (() => { - type TypeName = GitPatch; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - repository: FfiConverterTypeCoordinate.read(from), - content: FfiConverterTypeGitPatchContent.read(from), - euc: FfiConverterString.read(from), - labels: FfiConverterArrayString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypeCoordinate.write(value.repository, into); - FfiConverterTypeGitPatchContent.write(value.content, into); - FfiConverterString.write(value.euc, into); - FfiConverterArrayString.write(value.labels, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypeCoordinate.allocationSize(value.repository) + - FfiConverterTypeGitPatchContent.allocationSize(value.content) + - FfiConverterString.allocationSize(value.euc) + - FfiConverterArrayString.allocationSize(value.labels) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Git Patch Committer - */ -export type GitPatchCommitter = { - /** - * Name - */ - name: string | undefined; - /** - * Email - */ - email: string | undefined; - /** - * Timestamp - */ - timestamp: TimestampInterface; - /** - * Timezone offset in minutes - */ - offsetMinutes: /*i32*/ number; -}; - -/** - * Generated factory for {@link GitPatchCommitter} record objects. - */ -export const GitPatchCommitter = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link GitPatchCommitter}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link GitPatchCommitter}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeGitPatchCommitter = (() => { - type TypeName = GitPatchCommitter; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - name: FfiConverterOptionalString.read(from), - email: FfiConverterOptionalString.read(from), - timestamp: FfiConverterTypeTimestamp.read(from), - offsetMinutes: FfiConverterInt32.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalString.write(value.name, into); - FfiConverterOptionalString.write(value.email, into); - FfiConverterTypeTimestamp.write(value.timestamp, into); - FfiConverterInt32.write(value.offsetMinutes, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalString.allocationSize(value.name) + - FfiConverterOptionalString.allocationSize(value.email) + - FfiConverterTypeTimestamp.allocationSize(value.timestamp) + - FfiConverterInt32.allocationSize(value.offsetMinutes) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Git Repository Announcement - * - * Git repositories are hosted in Git-enabled servers, but their existence can be announced using Nostr events, - * as well as their willingness to receive patches, bug reports and comments in general. - */ -export type GitRepositoryAnnouncement = { - /** - * Repository ID (usually kebab-case short name) - */ - id: string; - /** - * Human-readable project name - */ - name: string | undefined; - /** - * Brief human-readable project description - */ - description: string | undefined; - /** - * Webpage urls, if the git server being used provides such a thing - */ - web: Array; - /** - * Urls for git-cloning - */ - clone: Array; - /** - * Relays that this repository will monitor for patches and issues - */ - relays: Array; - /** - * Earliest unique commit ID - * - * `euc` marker should be the commit ID of the earliest unique commit of this repo, - * made to identify it among forks and group it with other repositories hosted elsewhere that may represent essentially the same project. - * In most cases it will be the root commit of a repository. - * In case of a permanent fork between two projects, then the first commit after the fork should be used. - */ - euc: string | undefined; - /** - * Other recognized maintainers - */ - maintainers: Array; -}; - -/** - * Generated factory for {@link GitRepositoryAnnouncement} record objects. - */ -export const GitRepositoryAnnouncement = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord< - GitRepositoryAnnouncement, - ReturnType - >(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link GitRepositoryAnnouncement}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link GitRepositoryAnnouncement}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => - Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeGitRepositoryAnnouncement = (() => { - type TypeName = GitRepositoryAnnouncement; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterString.read(from), - name: FfiConverterOptionalString.read(from), - description: FfiConverterOptionalString.read(from), - web: FfiConverterArrayString.read(from), - clone: FfiConverterArrayString.read(from), - relays: FfiConverterArrayString.read(from), - euc: FfiConverterOptionalString.read(from), - maintainers: FfiConverterArrayTypePublicKey.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.id, into); - FfiConverterOptionalString.write(value.name, into); - FfiConverterOptionalString.write(value.description, into); - FfiConverterArrayString.write(value.web, into); - FfiConverterArrayString.write(value.clone, into); - FfiConverterArrayString.write(value.relays, into); - FfiConverterOptionalString.write(value.euc, into); - FfiConverterArrayTypePublicKey.write(value.maintainers, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.id) + - FfiConverterOptionalString.allocationSize(value.name) + - FfiConverterOptionalString.allocationSize(value.description) + - FfiConverterArrayString.allocationSize(value.web) + - FfiConverterArrayString.allocationSize(value.clone) + - FfiConverterArrayString.allocationSize(value.relays) + - FfiConverterOptionalString.allocationSize(value.euc) + - FfiConverterArrayTypePublicKey.allocationSize(value.maintainers) - ); - } - } - return new FFIConverter(); -})(); - -export type HttpData = { - url: string; - method: HttpMethod; - payload: string | undefined; -}; - -/** - * Generated factory for {@link HttpData} record objects. - */ -export const HttpData = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link HttpData}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link HttpData}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeHttpData = (() => { - type TypeName = HttpData; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - url: FfiConverterString.read(from), - method: FfiConverterTypeHttpMethod.read(from), - payload: FfiConverterOptionalString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.url, into); - FfiConverterTypeHttpMethod.write(value.method, into); - FfiConverterOptionalString.write(value.payload, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.url) + - FfiConverterTypeHttpMethod.allocationSize(value.method) + - FfiConverterOptionalString.allocationSize(value.payload) - ); - } - } - return new FFIConverter(); -})(); - -/** - * External identity - * - * - */ -export type Identity = { - /** - * The external identity provider - */ - platform: ExternalIdentity; - /** - * The user's identity (username) on the provider - */ - ident: string; - /** - * The user's proof on the provider - */ - proof: string; -}; - -/** - * Generated factory for {@link Identity} record objects. - */ -export const Identity = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Identity}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Identity}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeIdentity = (() => { - type TypeName = Identity; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - platform: FfiConverterTypeExternalIdentity.read(from), - ident: FfiConverterString.read(from), - proof: FfiConverterString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypeExternalIdentity.write(value.platform, into); - FfiConverterString.write(value.ident, into); - FfiConverterString.write(value.proof, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypeExternalIdentity.allocationSize(value.platform) + - FfiConverterString.allocationSize(value.ident) + - FfiConverterString.allocationSize(value.proof) - ); - } - } - return new FFIConverter(); -})(); - -export type Image = { - url: string; - dimensions: ImageDimensions | undefined; -}; - -/** - * Generated factory for {@link Image} record objects. - */ -export const Image = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Image}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Image}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeImage = (() => { - type TypeName = Image; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - url: FfiConverterString.read(from), - dimensions: FfiConverterOptionalTypeImageDimensions.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.url, into); - FfiConverterOptionalTypeImageDimensions.write(value.dimensions, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.url) + - FfiConverterOptionalTypeImageDimensions.allocationSize(value.dimensions) - ); - } - } - return new FFIConverter(); -})(); - -export type ImageDimensions = { - /** - * Width - */ - width: /*u64*/ bigint; - /** - * Height - */ - height: /*u64*/ bigint; -}; - -/** - * Generated factory for {@link ImageDimensions} record objects. - */ -export const ImageDimensions = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link ImageDimensions}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link ImageDimensions}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeImageDimensions = (() => { - type TypeName = ImageDimensions; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - width: FfiConverterUInt64.read(from), - height: FfiConverterUInt64.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterUInt64.write(value.width, into); - FfiConverterUInt64.write(value.height, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterUInt64.allocationSize(value.width) + - FfiConverterUInt64.allocationSize(value.height) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Topics a user may be interested in and pointers - * - * - */ -export type Interests = { - hashtags: Array; - coordinate: Array; -}; - -/** - * Generated factory for {@link Interests} record objects. - */ -export const Interests = (() => { - const defaults = () => ({ hashtags: [], coordinate: [] }); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Interests}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Interests}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeInterests = (() => { - type TypeName = Interests; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - hashtags: FfiConverterArrayString.read(from), - coordinate: FfiConverterArrayTypeCoordinate.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayString.write(value.hashtags, into); - FfiConverterArrayTypeCoordinate.write(value.coordinate, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterArrayString.allocationSize(value.hashtags) + - FfiConverterArrayTypeCoordinate.allocationSize(value.coordinate) - ); - } - } - return new FFIConverter(); -})(); - -/** - * TLVs to be added to the keysend payment - */ -export type KeysendTlvRecord = { - /** - * TLV type - */ - tlvType: /*u64*/ bigint; - /** - * TLV value - */ - value: string; -}; - -/** - * Generated factory for {@link KeysendTlvRecord} record objects. - */ -export const KeysendTlvRecord = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link KeysendTlvRecord}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link KeysendTlvRecord}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeKeysendTLVRecord = (() => { - type TypeName = KeysendTlvRecord; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - tlvType: FfiConverterUInt64.read(from), - value: FfiConverterString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterUInt64.write(value.tlvType, into); - FfiConverterString.write(value.value, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterUInt64.allocationSize(value.tlvType) + - FfiConverterString.allocationSize(value.value) - ); - } - } - return new FFIConverter(); -})(); - -/** - * These are limitations imposed by the relay on clients. Your client should - * expect that requests which exceed these practical limitations are rejected or fail immediately. - */ -export type Limitation = { - /** - * Maximum number of bytes for incoming JSON that the relay will attempt to decode and act upon - */ - maxMessageLength: /*i32*/ number | undefined; - /** - * Total number of subscriptions that may be active on a single websocket connection - */ - maxSubscriptions: /*i32*/ number | undefined; - /** - * Maximum number of filter values in each subscription - */ - maxFilters: /*i32*/ number | undefined; - /** - * Relay will clamp each filter's limit value to this number - */ - maxLimit: /*i32*/ number | undefined; - /** - * Maximum length of subscription id as a string - */ - maxSubidLength: /*i32*/ number | undefined; - /** - * Maximum number of elements in the tags list - */ - maxEventTags: /*i32*/ number | undefined; - /** - * Maximum number of characters in the content field of any event - */ - maxContentLength: /*i32*/ number | undefined; - /** - * New events will require at least this difficulty of PoW, - */ - minPowDifficulty: /*i32*/ number | undefined; - /** - * Relay requires NIP42 authentication to happen before a new connection may perform any other action - */ - authRequired: boolean | undefined; - /** - * Relay requires payment before a new connection may perform any action - */ - paymentRequired: boolean | undefined; - /** - * 'created_at' lower limit - */ - createdAtLowerLimit: TimestampInterface | undefined; - /** - * 'created_at' upper limit - */ - createdAtUpperLimit: TimestampInterface | undefined; -}; - -/** - * Generated factory for {@link Limitation} record objects. - */ -export const Limitation = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Limitation}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Limitation}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeLimitation = (() => { - type TypeName = Limitation; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - maxMessageLength: FfiConverterOptionalInt32.read(from), - maxSubscriptions: FfiConverterOptionalInt32.read(from), - maxFilters: FfiConverterOptionalInt32.read(from), - maxLimit: FfiConverterOptionalInt32.read(from), - maxSubidLength: FfiConverterOptionalInt32.read(from), - maxEventTags: FfiConverterOptionalInt32.read(from), - maxContentLength: FfiConverterOptionalInt32.read(from), - minPowDifficulty: FfiConverterOptionalInt32.read(from), - authRequired: FfiConverterOptionalBool.read(from), - paymentRequired: FfiConverterOptionalBool.read(from), - createdAtLowerLimit: FfiConverterOptionalTypeTimestamp.read(from), - createdAtUpperLimit: FfiConverterOptionalTypeTimestamp.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalInt32.write(value.maxMessageLength, into); - FfiConverterOptionalInt32.write(value.maxSubscriptions, into); - FfiConverterOptionalInt32.write(value.maxFilters, into); - FfiConverterOptionalInt32.write(value.maxLimit, into); - FfiConverterOptionalInt32.write(value.maxSubidLength, into); - FfiConverterOptionalInt32.write(value.maxEventTags, into); - FfiConverterOptionalInt32.write(value.maxContentLength, into); - FfiConverterOptionalInt32.write(value.minPowDifficulty, into); - FfiConverterOptionalBool.write(value.authRequired, into); - FfiConverterOptionalBool.write(value.paymentRequired, into); - FfiConverterOptionalTypeTimestamp.write(value.createdAtLowerLimit, into); - FfiConverterOptionalTypeTimestamp.write(value.createdAtUpperLimit, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalInt32.allocationSize(value.maxMessageLength) + - FfiConverterOptionalInt32.allocationSize(value.maxSubscriptions) + - FfiConverterOptionalInt32.allocationSize(value.maxFilters) + - FfiConverterOptionalInt32.allocationSize(value.maxLimit) + - FfiConverterOptionalInt32.allocationSize(value.maxSubidLength) + - FfiConverterOptionalInt32.allocationSize(value.maxEventTags) + - FfiConverterOptionalInt32.allocationSize(value.maxContentLength) + - FfiConverterOptionalInt32.allocationSize(value.minPowDifficulty) + - FfiConverterOptionalBool.allocationSize(value.authRequired) + - FfiConverterOptionalBool.allocationSize(value.paymentRequired) + - FfiConverterOptionalTypeTimestamp.allocationSize( - value.createdAtLowerLimit - ) + - FfiConverterOptionalTypeTimestamp.allocationSize( - value.createdAtUpperLimit - ) - ); - } - } - return new FFIConverter(); -})(); - -/** - * List Invoice Request - */ -export type ListTransactionsRequest = { - /** - * Starting timestamp in seconds since epoch - */ - from: TimestampInterface | undefined; - /** - * Ending timestamp in seconds since epoch - */ - until: TimestampInterface | undefined; - /** - * Number of invoices to return - */ - limit: /*u64*/ bigint | undefined; - /** - * Offset of the first invoice to return - */ - offset: /*u64*/ bigint | undefined; - /** - * If true, include unpaid invoices - */ - unpaid: boolean | undefined; - /** - * [`TransactionType::Incoming`] for invoices, [`TransactionType::Outgoing`] for payments, [`None`] for both - */ - transactionType: TransactionType | undefined; -}; - -/** - * Generated factory for {@link ListTransactionsRequest} record objects. - */ -export const ListTransactionsRequest = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord< - ListTransactionsRequest, - ReturnType - >(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link ListTransactionsRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link ListTransactionsRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => - Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeListTransactionsRequest = (() => { - type TypeName = ListTransactionsRequest; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - from: FfiConverterOptionalTypeTimestamp.read(from), - until: FfiConverterOptionalTypeTimestamp.read(from), - limit: FfiConverterOptionalUInt64.read(from), - offset: FfiConverterOptionalUInt64.read(from), - unpaid: FfiConverterOptionalBool.read(from), - transactionType: FfiConverterOptionalTypeTransactionType.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalTypeTimestamp.write(value.from, into); - FfiConverterOptionalTypeTimestamp.write(value.until, into); - FfiConverterOptionalUInt64.write(value.limit, into); - FfiConverterOptionalUInt64.write(value.offset, into); - FfiConverterOptionalBool.write(value.unpaid, into); - FfiConverterOptionalTypeTransactionType.write( - value.transactionType, - into - ); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalTypeTimestamp.allocationSize(value.from) + - FfiConverterOptionalTypeTimestamp.allocationSize(value.until) + - FfiConverterOptionalUInt64.allocationSize(value.limit) + - FfiConverterOptionalUInt64.allocationSize(value.offset) + - FfiConverterOptionalBool.allocationSize(value.unpaid) + - FfiConverterOptionalTypeTransactionType.allocationSize( - value.transactionType - ) - ); - } - } - return new FFIConverter(); -})(); - -export type LiveEvent = { - id: string; - title: string | undefined; - summary: string | undefined; - image: Image | undefined; - hashtags: Array; - streaming: string | undefined; - recording: string | undefined; - start: TimestampInterface | undefined; - ends: TimestampInterface | undefined; - status: LiveEventStatus | undefined; - currentParticipants: /*u64*/ bigint | undefined; - totalParticipants: /*u64*/ bigint | undefined; - relays: Array; - host: LiveEventHost | undefined; - speakers: Array; - participants: Array; -}; - -/** - * Generated factory for {@link LiveEvent} record objects. - */ -export const LiveEvent = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link LiveEvent}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link LiveEvent}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeLiveEvent = (() => { - type TypeName = LiveEvent; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterString.read(from), - title: FfiConverterOptionalString.read(from), - summary: FfiConverterOptionalString.read(from), - image: FfiConverterOptionalTypeImage.read(from), - hashtags: FfiConverterArrayString.read(from), - streaming: FfiConverterOptionalString.read(from), - recording: FfiConverterOptionalString.read(from), - start: FfiConverterOptionalTypeTimestamp.read(from), - ends: FfiConverterOptionalTypeTimestamp.read(from), - status: FfiConverterOptionalTypeLiveEventStatus.read(from), - currentParticipants: FfiConverterOptionalUInt64.read(from), - totalParticipants: FfiConverterOptionalUInt64.read(from), - relays: FfiConverterArrayString.read(from), - host: FfiConverterOptionalTypeLiveEventHost.read(from), - speakers: FfiConverterArrayTypePerson.read(from), - participants: FfiConverterArrayTypePerson.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.id, into); - FfiConverterOptionalString.write(value.title, into); - FfiConverterOptionalString.write(value.summary, into); - FfiConverterOptionalTypeImage.write(value.image, into); - FfiConverterArrayString.write(value.hashtags, into); - FfiConverterOptionalString.write(value.streaming, into); - FfiConverterOptionalString.write(value.recording, into); - FfiConverterOptionalTypeTimestamp.write(value.start, into); - FfiConverterOptionalTypeTimestamp.write(value.ends, into); - FfiConverterOptionalTypeLiveEventStatus.write(value.status, into); - FfiConverterOptionalUInt64.write(value.currentParticipants, into); - FfiConverterOptionalUInt64.write(value.totalParticipants, into); - FfiConverterArrayString.write(value.relays, into); - FfiConverterOptionalTypeLiveEventHost.write(value.host, into); - FfiConverterArrayTypePerson.write(value.speakers, into); - FfiConverterArrayTypePerson.write(value.participants, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.id) + - FfiConverterOptionalString.allocationSize(value.title) + - FfiConverterOptionalString.allocationSize(value.summary) + - FfiConverterOptionalTypeImage.allocationSize(value.image) + - FfiConverterArrayString.allocationSize(value.hashtags) + - FfiConverterOptionalString.allocationSize(value.streaming) + - FfiConverterOptionalString.allocationSize(value.recording) + - FfiConverterOptionalTypeTimestamp.allocationSize(value.start) + - FfiConverterOptionalTypeTimestamp.allocationSize(value.ends) + - FfiConverterOptionalTypeLiveEventStatus.allocationSize(value.status) + - FfiConverterOptionalUInt64.allocationSize(value.currentParticipants) + - FfiConverterOptionalUInt64.allocationSize(value.totalParticipants) + - FfiConverterArrayString.allocationSize(value.relays) + - FfiConverterOptionalTypeLiveEventHost.allocationSize(value.host) + - FfiConverterArrayTypePerson.allocationSize(value.speakers) + - FfiConverterArrayTypePerson.allocationSize(value.participants) - ); - } - } - return new FFIConverter(); -})(); - -export type LiveEventHost = { - publicKey: PublicKeyInterface; - relayUrl: string | undefined; - proof: string | undefined; -}; - -/** - * Generated factory for {@link LiveEventHost} record objects. - */ -export const LiveEventHost = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link LiveEventHost}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link LiveEventHost}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeLiveEventHost = (() => { - type TypeName = LiveEventHost; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - publicKey: FfiConverterTypePublicKey.read(from), - relayUrl: FfiConverterOptionalString.read(from), - proof: FfiConverterOptionalString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypePublicKey.write(value.publicKey, into); - FfiConverterOptionalString.write(value.relayUrl, into); - FfiConverterOptionalString.write(value.proof, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypePublicKey.allocationSize(value.publicKey) + - FfiConverterOptionalString.allocationSize(value.relayUrl) + - FfiConverterOptionalString.allocationSize(value.proof) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Lookup Invoice Request - */ -export type LookupInvoiceRequest = { - /** - * Payment hash of invoice - */ - paymentHash: string | undefined; - /** - * Bolt11 invoice - */ - invoice: string | undefined; -}; - -/** - * Generated factory for {@link LookupInvoiceRequest} record objects. - */ -export const LookupInvoiceRequest = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord< - LookupInvoiceRequest, - ReturnType - >(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link LookupInvoiceRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link LookupInvoiceRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeLookupInvoiceRequest = (() => { - type TypeName = LookupInvoiceRequest; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - paymentHash: FfiConverterOptionalString.read(from), - invoice: FfiConverterOptionalString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalString.write(value.paymentHash, into); - FfiConverterOptionalString.write(value.invoice, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalString.allocationSize(value.paymentHash) + - FfiConverterOptionalString.allocationSize(value.invoice) - ); - } - } - return new FFIConverter(); -})(); - -/** - * NIP47 Response Result - */ -export type LookupInvoiceResponse = { - /** - * Transaction type - */ - transactionType: TransactionType | undefined; - /** - * Bolt11 invoice - */ - invoice: string | undefined; - /** - * Invoice's description - */ - description: string | undefined; - /** - * Invoice's description hash - */ - descriptionHash: string | undefined; - /** - * Payment preimage - */ - preimage: string | undefined; - /** - * Payment hash - */ - paymentHash: string; - /** - * Amount in millisatoshis - */ - amount: /*u64*/ bigint; - /** - * Fees paid in millisatoshis - */ - feesPaid: /*u64*/ bigint; - /** - * Creation timestamp in seconds since epoch - */ - createdAt: TimestampInterface; - /** - * Expiration timestamp in seconds since epoch - */ - expiresAt: TimestampInterface | undefined; - /** - * Settled timestamp in seconds since epoch - */ - settledAt: TimestampInterface | undefined; - /** - * Optional metadata about the payment - */ - metadata: JsonValue | undefined; -}; - -/** - * Generated factory for {@link LookupInvoiceResponse} record objects. - */ -export const LookupInvoiceResponse = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord< - LookupInvoiceResponse, - ReturnType - >(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link LookupInvoiceResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link LookupInvoiceResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeLookupInvoiceResponse = (() => { - type TypeName = LookupInvoiceResponse; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - transactionType: FfiConverterOptionalTypeTransactionType.read(from), - invoice: FfiConverterOptionalString.read(from), - description: FfiConverterOptionalString.read(from), - descriptionHash: FfiConverterOptionalString.read(from), - preimage: FfiConverterOptionalString.read(from), - paymentHash: FfiConverterString.read(from), - amount: FfiConverterUInt64.read(from), - feesPaid: FfiConverterUInt64.read(from), - createdAt: FfiConverterTypeTimestamp.read(from), - expiresAt: FfiConverterOptionalTypeTimestamp.read(from), - settledAt: FfiConverterOptionalTypeTimestamp.read(from), - metadata: FfiConverterOptionalTypeJsonValue.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalTypeTransactionType.write( - value.transactionType, - into - ); - FfiConverterOptionalString.write(value.invoice, into); - FfiConverterOptionalString.write(value.description, into); - FfiConverterOptionalString.write(value.descriptionHash, into); - FfiConverterOptionalString.write(value.preimage, into); - FfiConverterString.write(value.paymentHash, into); - FfiConverterUInt64.write(value.amount, into); - FfiConverterUInt64.write(value.feesPaid, into); - FfiConverterTypeTimestamp.write(value.createdAt, into); - FfiConverterOptionalTypeTimestamp.write(value.expiresAt, into); - FfiConverterOptionalTypeTimestamp.write(value.settledAt, into); - FfiConverterOptionalTypeJsonValue.write(value.metadata, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalTypeTransactionType.allocationSize( - value.transactionType - ) + - FfiConverterOptionalString.allocationSize(value.invoice) + - FfiConverterOptionalString.allocationSize(value.description) + - FfiConverterOptionalString.allocationSize(value.descriptionHash) + - FfiConverterOptionalString.allocationSize(value.preimage) + - FfiConverterString.allocationSize(value.paymentHash) + - FfiConverterUInt64.allocationSize(value.amount) + - FfiConverterUInt64.allocationSize(value.feesPaid) + - FfiConverterTypeTimestamp.allocationSize(value.createdAt) + - FfiConverterOptionalTypeTimestamp.allocationSize(value.expiresAt) + - FfiConverterOptionalTypeTimestamp.allocationSize(value.settledAt) + - FfiConverterOptionalTypeJsonValue.allocationSize(value.metadata) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Make Invoice Request - */ -export type MakeInvoiceRequest = { - /** - * Amount in millisatoshis - */ - amount: /*u64*/ bigint; - /** - * Invoice description - */ - description: string | undefined; - /** - * Invoice description hash - */ - descriptionHash: string | undefined; - /** - * Invoice expiry in seconds - */ - expiry: /*u64*/ bigint | undefined; -}; - -/** - * Generated factory for {@link MakeInvoiceRequest} record objects. - */ -export const MakeInvoiceRequest = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link MakeInvoiceRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link MakeInvoiceRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeMakeInvoiceRequest = (() => { - type TypeName = MakeInvoiceRequest; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - amount: FfiConverterUInt64.read(from), - description: FfiConverterOptionalString.read(from), - descriptionHash: FfiConverterOptionalString.read(from), - expiry: FfiConverterOptionalUInt64.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterUInt64.write(value.amount, into); - FfiConverterOptionalString.write(value.description, into); - FfiConverterOptionalString.write(value.descriptionHash, into); - FfiConverterOptionalUInt64.write(value.expiry, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterUInt64.allocationSize(value.amount) + - FfiConverterOptionalString.allocationSize(value.description) + - FfiConverterOptionalString.allocationSize(value.descriptionHash) + - FfiConverterOptionalUInt64.allocationSize(value.expiry) - ); - } - } - return new FFIConverter(); -})(); - -/** - * NIP47 Response Result - */ -export type MakeInvoiceResponse = { - /** - * Bolt 11 invoice - */ - invoice: string; - /** - * Invoice's payment hash - */ - paymentHash: string; -}; - -/** - * Generated factory for {@link MakeInvoiceResponse} record objects. - */ -export const MakeInvoiceResponse = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link MakeInvoiceResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link MakeInvoiceResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeMakeInvoiceResponse = (() => { - type TypeName = MakeInvoiceResponse; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - invoice: FfiConverterString.read(from), - paymentHash: FfiConverterString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.invoice, into); - FfiConverterString.write(value.paymentHash, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.invoice) + - FfiConverterString.allocationSize(value.paymentHash) - ); - } - } - return new FFIConverter(); -})(); - -export type MetadataRecord = { - /** - * Name - */ - name: string | undefined; - /** - * Display name - */ - displayName: string | undefined; - /** - * Description - */ - about: string | undefined; - /** - * Website url - */ - website: string | undefined; - /** - * Picture url - */ - picture: string | undefined; - /** - * Banner url - */ - banner: string | undefined; - /** - * NIP05 (ex. name@example.com) - */ - nip05: string | undefined; - /** - * LNURL - */ - lud06: string | undefined; - /** - * Lightning Address - */ - lud16: string | undefined; -}; - -/** - * Generated factory for {@link MetadataRecord} record objects. - */ -export const MetadataRecord = (() => { - const defaults = () => ({ - name: undefined, - displayName: undefined, - about: undefined, - website: undefined, - picture: undefined, - banner: undefined, - nip05: undefined, - lud06: undefined, - lud16: undefined, - }); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link MetadataRecord}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link MetadataRecord}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeMetadataRecord = (() => { - type TypeName = MetadataRecord; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - name: FfiConverterOptionalString.read(from), - displayName: FfiConverterOptionalString.read(from), - about: FfiConverterOptionalString.read(from), - website: FfiConverterOptionalString.read(from), - picture: FfiConverterOptionalString.read(from), - banner: FfiConverterOptionalString.read(from), - nip05: FfiConverterOptionalString.read(from), - lud06: FfiConverterOptionalString.read(from), - lud16: FfiConverterOptionalString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalString.write(value.name, into); - FfiConverterOptionalString.write(value.displayName, into); - FfiConverterOptionalString.write(value.about, into); - FfiConverterOptionalString.write(value.website, into); - FfiConverterOptionalString.write(value.picture, into); - FfiConverterOptionalString.write(value.banner, into); - FfiConverterOptionalString.write(value.nip05, into); - FfiConverterOptionalString.write(value.lud06, into); - FfiConverterOptionalString.write(value.lud16, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalString.allocationSize(value.name) + - FfiConverterOptionalString.allocationSize(value.displayName) + - FfiConverterOptionalString.allocationSize(value.about) + - FfiConverterOptionalString.allocationSize(value.website) + - FfiConverterOptionalString.allocationSize(value.picture) + - FfiConverterOptionalString.allocationSize(value.banner) + - FfiConverterOptionalString.allocationSize(value.nip05) + - FfiConverterOptionalString.allocationSize(value.lud06) + - FfiConverterOptionalString.allocationSize(value.lud16) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Multi Pay Invoice Request Params - */ -export type MultiPayInvoiceRequest = { - /** - * Invoices to pay - */ - invoices: Array; -}; - -/** - * Generated factory for {@link MultiPayInvoiceRequest} record objects. - */ -export const MultiPayInvoiceRequest = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord< - MultiPayInvoiceRequest, - ReturnType - >(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link MultiPayInvoiceRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link MultiPayInvoiceRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => - Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeMultiPayInvoiceRequest = (() => { - type TypeName = MultiPayInvoiceRequest; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - invoices: FfiConverterArrayTypePayInvoiceRequest.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayTypePayInvoiceRequest.write(value.invoices, into); - } - allocationSize(value: TypeName): number { - return FfiConverterArrayTypePayInvoiceRequest.allocationSize( - value.invoices - ); - } - } - return new FFIConverter(); -})(); - -/** - * Multi Pay Keysend Request - */ -export type MultiPayKeysendRequest = { - /** - * Keysends - */ - keysends: Array; -}; - -/** - * Generated factory for {@link MultiPayKeysendRequest} record objects. - */ -export const MultiPayKeysendRequest = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord< - MultiPayKeysendRequest, - ReturnType - >(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link MultiPayKeysendRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link MultiPayKeysendRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => - Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeMultiPayKeysendRequest = (() => { - type TypeName = MultiPayKeysendRequest; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - keysends: FfiConverterArrayTypePayKeysendRequest.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayTypePayKeysendRequest.write(value.keysends, into); - } - allocationSize(value: TypeName): number { - return FfiConverterArrayTypePayKeysendRequest.allocationSize( - value.keysends - ); - } - } - return new FFIConverter(); -})(); - -/** - * Things the user doesn't want to see in their feeds - * - * - */ -export type MuteList = { - publicKeys: Array; - hashtags: Array; - eventIds: Array; - words: Array; -}; - -/** - * Generated factory for {@link MuteList} record objects. - */ -export const MuteList = (() => { - const defaults = () => ({ - publicKeys: [], - hashtags: [], - eventIds: [], - words: [], - }); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link MuteList}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link MuteList}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeMuteList = (() => { - type TypeName = MuteList; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - publicKeys: FfiConverterArrayTypePublicKey.read(from), - hashtags: FfiConverterArrayString.read(from), - eventIds: FfiConverterArrayTypeEventId.read(from), - words: FfiConverterArrayString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayTypePublicKey.write(value.publicKeys, into); - FfiConverterArrayString.write(value.hashtags, into); - FfiConverterArrayTypeEventId.write(value.eventIds, into); - FfiConverterArrayString.write(value.words, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterArrayTypePublicKey.allocationSize(value.publicKeys) + - FfiConverterArrayString.allocationSize(value.hashtags) + - FfiConverterArrayTypeEventId.allocationSize(value.eventIds) + - FfiConverterArrayString.allocationSize(value.words) - ); - } - } - return new FFIConverter(); -})(); - -/** - * NIP47 Error message - */ -export type Nip47Error = { - /** - * Error Code - */ - code: ErrorCode; - /** - * Human Readable error message - */ - message: string; -}; - -/** - * Generated factory for {@link Nip47Error} record objects. - */ -export const Nip47Error = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Nip47Error}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Nip47Error}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeNIP47Error = (() => { - type TypeName = Nip47Error; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - code: FfiConverterTypeErrorCode.read(from), - message: FfiConverterString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypeErrorCode.write(value.code, into); - FfiConverterString.write(value.message, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypeErrorCode.allocationSize(value.code) + - FfiConverterString.allocationSize(value.message) - ); - } - } - return new FFIConverter(); -})(); - -export type NegentropyItem = { - id: EventIdInterface; - timestamp: TimestampInterface; -}; - -/** - * Generated factory for {@link NegentropyItem} record objects. - */ -export const NegentropyItem = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link NegentropyItem}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link NegentropyItem}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeNegentropyItem = (() => { - type TypeName = NegentropyItem; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterTypeEventId.read(from), - timestamp: FfiConverterTypeTimestamp.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypeEventId.write(value.id, into); - FfiConverterTypeTimestamp.write(value.timestamp, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypeEventId.allocationSize(value.id) + - FfiConverterTypeTimestamp.allocationSize(value.timestamp) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Output - * - * Send or negentropy reconciliation output - */ -export type Output = { - /** - * Set of relays that success - */ - success: Array; - /** - * Map of relays that failed, with related errors. - */ - failed: Map; -}; - -/** - * Generated factory for {@link Output} record objects. - */ -export const Output = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Output}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Output}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeOutput = (() => { - type TypeName = Output; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - success: FfiConverterArrayString.read(from), - failed: FfiConverterMapStringString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayString.write(value.success, into); - FfiConverterMapStringString.write(value.failed, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterArrayString.allocationSize(value.success) + - FfiConverterMapStringString.allocationSize(value.failed) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Pay Invoice Request - */ -export type PayInvoiceRequest = { - /** - * Optional id - */ - id: string | undefined; - /** - * Request invoice - */ - invoice: string; - /** - * Optional amount in millisatoshis - */ - amount: /*u64*/ bigint | undefined; -}; - -/** - * Generated factory for {@link PayInvoiceRequest} record objects. - */ -export const PayInvoiceRequest = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link PayInvoiceRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link PayInvoiceRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypePayInvoiceRequest = (() => { - type TypeName = PayInvoiceRequest; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterOptionalString.read(from), - invoice: FfiConverterString.read(from), - amount: FfiConverterOptionalUInt64.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalString.write(value.id, into); - FfiConverterString.write(value.invoice, into); - FfiConverterOptionalUInt64.write(value.amount, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalString.allocationSize(value.id) + - FfiConverterString.allocationSize(value.invoice) + - FfiConverterOptionalUInt64.allocationSize(value.amount) - ); - } - } - return new FFIConverter(); -})(); - -/** - * NIP47 Response Result - */ -export type PayInvoiceResponse = { - /** - * Response preimage - */ - preimage: string; -}; - -/** - * Generated factory for {@link PayInvoiceResponse} record objects. - */ -export const PayInvoiceResponse = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link PayInvoiceResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link PayInvoiceResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypePayInvoiceResponse = (() => { - type TypeName = PayInvoiceResponse; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - preimage: FfiConverterString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.preimage, into); - } - allocationSize(value: TypeName): number { - return FfiConverterString.allocationSize(value.preimage); - } - } - return new FFIConverter(); -})(); - -/** - * Pay Invoice Request - */ -export type PayKeysendRequest = { - /** - * Optional id - */ - id: string | undefined; - /** - * Amount in millisatoshis - */ - amount: /*u64*/ bigint; - /** - * Receiver's node id - */ - pubkey: string; - /** - * Optional preimage - */ - preimage: string | undefined; - /** - * Optional TLVs to be added to the keysend payment - */ - tlvRecords: Array; -}; - -/** - * Generated factory for {@link PayKeysendRequest} record objects. - */ -export const PayKeysendRequest = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link PayKeysendRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link PayKeysendRequest}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypePayKeysendRequest = (() => { - type TypeName = PayKeysendRequest; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterOptionalString.read(from), - amount: FfiConverterUInt64.read(from), - pubkey: FfiConverterString.read(from), - preimage: FfiConverterOptionalString.read(from), - tlvRecords: FfiConverterArrayTypeKeysendTLVRecord.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalString.write(value.id, into); - FfiConverterUInt64.write(value.amount, into); - FfiConverterString.write(value.pubkey, into); - FfiConverterOptionalString.write(value.preimage, into); - FfiConverterArrayTypeKeysendTLVRecord.write(value.tlvRecords, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalString.allocationSize(value.id) + - FfiConverterUInt64.allocationSize(value.amount) + - FfiConverterString.allocationSize(value.pubkey) + - FfiConverterOptionalString.allocationSize(value.preimage) + - FfiConverterArrayTypeKeysendTLVRecord.allocationSize(value.tlvRecords) - ); - } - } - return new FFIConverter(); -})(); - -/** - * NIP47 Response Result - */ -export type PayKeysendResponse = { - /** - * Response preimage - */ - preimage: string; -}; - -/** - * Generated factory for {@link PayKeysendResponse} record objects. - */ -export const PayKeysendResponse = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link PayKeysendResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link PayKeysendResponse}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypePayKeysendResponse = (() => { - type TypeName = PayKeysendResponse; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - preimage: FfiConverterString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.preimage, into); - } - allocationSize(value: TypeName): number { - return FfiConverterString.allocationSize(value.preimage); - } - } - return new FFIConverter(); -})(); - -export type Person = { - publicKey: PublicKeyInterface; - url: string | undefined; -}; - -/** - * Generated factory for {@link Person} record objects. - */ -export const Person = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Person}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Person}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypePerson = (() => { - type TypeName = Person; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - publicKey: FfiConverterTypePublicKey.read(from), - url: FfiConverterOptionalString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypePublicKey.write(value.publicKey, into); - FfiConverterOptionalString.write(value.url, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypePublicKey.allocationSize(value.publicKey) + - FfiConverterOptionalString.allocationSize(value.url) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Payload for creating or updating product - */ -export type ProductData = { - /** - * UUID of the product generated by merchant - */ - id: string; - /** - * Id of the stall that this product belongs to - */ - stallId: string; - /** - * Product name - */ - name: string; - /** - * Description of the product - */ - description: string | undefined; - /** - * Image urls of the product - */ - images: Array | undefined; - /** - * Currency used - */ - currency: string; - /** - * Price of the product - */ - price: /*f64*/ number; - /** - * Available items - */ - quantity: /*u64*/ bigint; - /** - * Specifications of the product - */ - specs: Array> | undefined; - /** - * Shipping method costs - */ - shipping: Array; - /** - * Categories of the product (will be added to tags) - */ - categories: Array | undefined; -}; - -/** - * Generated factory for {@link ProductData} record objects. - */ -export const ProductData = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link ProductData}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link ProductData}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeProductData = (() => { - type TypeName = ProductData; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterString.read(from), - stallId: FfiConverterString.read(from), - name: FfiConverterString.read(from), - description: FfiConverterOptionalString.read(from), - images: FfiConverterOptionalArrayString.read(from), - currency: FfiConverterString.read(from), - price: FfiConverterFloat64.read(from), - quantity: FfiConverterUInt64.read(from), - specs: FfiConverterOptionalArrayArrayString.read(from), - shipping: FfiConverterArrayTypeShippingCost.read(from), - categories: FfiConverterOptionalArrayString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.id, into); - FfiConverterString.write(value.stallId, into); - FfiConverterString.write(value.name, into); - FfiConverterOptionalString.write(value.description, into); - FfiConverterOptionalArrayString.write(value.images, into); - FfiConverterString.write(value.currency, into); - FfiConverterFloat64.write(value.price, into); - FfiConverterUInt64.write(value.quantity, into); - FfiConverterOptionalArrayArrayString.write(value.specs, into); - FfiConverterArrayTypeShippingCost.write(value.shipping, into); - FfiConverterOptionalArrayString.write(value.categories, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.id) + - FfiConverterString.allocationSize(value.stallId) + - FfiConverterString.allocationSize(value.name) + - FfiConverterOptionalString.allocationSize(value.description) + - FfiConverterOptionalArrayString.allocationSize(value.images) + - FfiConverterString.allocationSize(value.currency) + - FfiConverterFloat64.allocationSize(value.price) + - FfiConverterUInt64.allocationSize(value.quantity) + - FfiConverterOptionalArrayArrayString.allocationSize(value.specs) + - FfiConverterArrayTypeShippingCost.allocationSize(value.shipping) + - FfiConverterOptionalArrayString.allocationSize(value.categories) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Reconciliation output - */ -export type Reconciliation = { - /** - * The IDs that were stored locally - */ - local: Array; - /** - * The IDs that were missing locally (stored on relay) - */ - remote: Array; - /** - * Events that are **successfully** sent to relays during reconciliation - */ - sent: Array; - /** - * Event that are **successfully** received from relay - */ - received: Array; - sendFailures: Map>; -}; - -/** - * Generated factory for {@link Reconciliation} record objects. - */ -export const Reconciliation = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Reconciliation}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Reconciliation}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeReconciliation = (() => { - type TypeName = Reconciliation; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - local: FfiConverterArrayTypeEventId.read(from), - remote: FfiConverterArrayTypeEventId.read(from), - sent: FfiConverterArrayTypeEventId.read(from), - received: FfiConverterArrayTypeEventId.read(from), - sendFailures: - FfiConverterMapStringArrayTypeReconciliationSendFailureItem.read( - from - ), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterArrayTypeEventId.write(value.local, into); - FfiConverterArrayTypeEventId.write(value.remote, into); - FfiConverterArrayTypeEventId.write(value.sent, into); - FfiConverterArrayTypeEventId.write(value.received, into); - FfiConverterMapStringArrayTypeReconciliationSendFailureItem.write( - value.sendFailures, - into - ); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterArrayTypeEventId.allocationSize(value.local) + - FfiConverterArrayTypeEventId.allocationSize(value.remote) + - FfiConverterArrayTypeEventId.allocationSize(value.sent) + - FfiConverterArrayTypeEventId.allocationSize(value.received) + - FfiConverterMapStringArrayTypeReconciliationSendFailureItem.allocationSize( - value.sendFailures - ) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Reconciliation output - */ -export type ReconciliationOutput = { - /** - * Reconciliation report - */ - report: Reconciliation; - /** - * Set of relays that success - */ - success: Array; - /** - * Map of relays that failed, with related errors. - */ - failed: Map; -}; - -/** - * Generated factory for {@link ReconciliationOutput} record objects. - */ -export const ReconciliationOutput = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord< - ReconciliationOutput, - ReturnType - >(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link ReconciliationOutput}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link ReconciliationOutput}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeReconciliationOutput = (() => { - type TypeName = ReconciliationOutput; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - report: FfiConverterTypeReconciliation.read(from), - success: FfiConverterArrayString.read(from), - failed: FfiConverterMapStringString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypeReconciliation.write(value.report, into); - FfiConverterArrayString.write(value.success, into); - FfiConverterMapStringString.write(value.failed, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypeReconciliation.allocationSize(value.report) + - FfiConverterArrayString.allocationSize(value.success) + - FfiConverterMapStringString.allocationSize(value.failed) - ); - } - } - return new FFIConverter(); -})(); - -export type ReconciliationSendFailureItem = { - id: EventIdInterface; - error: string; -}; - -/** - * Generated factory for {@link ReconciliationSendFailureItem} record objects. - */ -export const ReconciliationSendFailureItem = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord< - ReconciliationSendFailureItem, - ReturnType - >(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link ReconciliationSendFailureItem}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link ReconciliationSendFailureItem}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => - Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeReconciliationSendFailureItem = (() => { - type TypeName = ReconciliationSendFailureItem; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterTypeEventId.read(from), - error: FfiConverterString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypeEventId.write(value.id, into); - FfiConverterString.write(value.error, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypeEventId.allocationSize(value.id) + - FfiConverterString.allocationSize(value.error) - ); - } - } - return new FFIConverter(); -})(); - -/** - * A retention schedule for the relay - */ -export type Retention = { - /** - * The event kinds this retention pertains to - */ - kinds: Array | undefined; - /** - * The amount of time these events are kept - */ - time: /*u64*/ bigint | undefined; - /** - * The max number of events kept before removing older events - */ - count: /*u64*/ bigint | undefined; -}; - -/** - * Generated factory for {@link Retention} record objects. - */ -export const Retention = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link Retention}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link Retention}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeRetention = (() => { - type TypeName = Retention; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - kinds: FfiConverterOptionalArrayTypeRetentionKind.read(from), - time: FfiConverterOptionalUInt64.read(from), - count: FfiConverterOptionalUInt64.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalArrayTypeRetentionKind.write(value.kinds, into); - FfiConverterOptionalUInt64.write(value.time, into); - FfiConverterOptionalUInt64.write(value.count, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalArrayTypeRetentionKind.allocationSize(value.kinds) + - FfiConverterOptionalUInt64.allocationSize(value.time) + - FfiConverterOptionalUInt64.allocationSize(value.count) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Send event output - */ -export type SendEventOutput = { - /** - * Event ID - */ - id: EventIdInterface; - /** - * Set of relays that success - */ - success: Array; - /** - * Map of relays that failed, with related errors. - */ - failed: Map; -}; - -/** - * Generated factory for {@link SendEventOutput} record objects. - */ -export const SendEventOutput = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link SendEventOutput}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link SendEventOutput}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeSendEventOutput = (() => { - type TypeName = SendEventOutput; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterTypeEventId.read(from), - success: FfiConverterArrayString.read(from), - failed: FfiConverterMapStringString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypeEventId.write(value.id, into); - FfiConverterArrayString.write(value.success, into); - FfiConverterMapStringString.write(value.failed, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypeEventId.allocationSize(value.id) + - FfiConverterArrayString.allocationSize(value.success) + - FfiConverterMapStringString.allocationSize(value.failed) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Delivery cost for shipping method as defined by the merchant in the product - */ -export type ShippingCost = { - /** - * Id of the shipping method - */ - id: string; - /** - * Cost to use this shipping method - */ - cost: /*f64*/ number; -}; - -/** - * Generated factory for {@link ShippingCost} record objects. - */ -export const ShippingCost = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link ShippingCost}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link ShippingCost}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeShippingCost = (() => { - type TypeName = ShippingCost; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterString.read(from), - cost: FfiConverterFloat64.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.id, into); - FfiConverterFloat64.write(value.cost, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.id) + - FfiConverterFloat64.allocationSize(value.cost) - ); - } - } - return new FFIConverter(); -})(); - -export type ShippingMethodRecord = { - /** - * Shipping method unique id by merchant - */ - id: string; - /** - * Shipping method name - */ - name: string | undefined; - /** - * Shipping method cost (currency is the same as the stall) - */ - cost: /*f64*/ number; - /** - * Covered regions - */ - regions: Array; -}; - -/** - * Generated factory for {@link ShippingMethodRecord} record objects. - */ -export const ShippingMethodRecord = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord< - ShippingMethodRecord, - ReturnType - >(defaults); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link ShippingMethodRecord}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link ShippingMethodRecord}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeShippingMethodRecord = (() => { - type TypeName = ShippingMethodRecord; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterString.read(from), - name: FfiConverterOptionalString.read(from), - cost: FfiConverterFloat64.read(from), - regions: FfiConverterArrayString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.id, into); - FfiConverterOptionalString.write(value.name, into); - FfiConverterFloat64.write(value.cost, into); - FfiConverterArrayString.write(value.regions, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.id) + - FfiConverterOptionalString.allocationSize(value.name) + - FfiConverterFloat64.allocationSize(value.cost) + - FfiConverterArrayString.allocationSize(value.regions) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Payload for creating or updating stall - */ -export type StallDataRecord = { - /** - * UUID of the stall generated by merchant - */ - id: string; - /** - * Stall name - */ - name: string; - /** - * Stall description - */ - description: string | undefined; - /** - * Currency used - */ - currency: string; - /** - * Available shipping methods - */ - shipping: Array; -}; - -/** - * Generated factory for {@link StallDataRecord} record objects. - */ -export const StallDataRecord = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link StallDataRecord}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link StallDataRecord}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeStallDataRecord = (() => { - type TypeName = StallDataRecord; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterString.read(from), - name: FfiConverterString.read(from), - description: FfiConverterOptionalString.read(from), - currency: FfiConverterString.read(from), - shipping: FfiConverterArrayTypeShippingMethodRecord.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.id, into); - FfiConverterString.write(value.name, into); - FfiConverterOptionalString.write(value.description, into); - FfiConverterString.write(value.currency, into); - FfiConverterArrayTypeShippingMethodRecord.write(value.shipping, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.id) + - FfiConverterString.allocationSize(value.name) + - FfiConverterOptionalString.allocationSize(value.description) + - FfiConverterString.allocationSize(value.currency) + - FfiConverterArrayTypeShippingMethodRecord.allocationSize(value.shipping) - ); - } - } - return new FFIConverter(); -})(); - -/** - * Subscribe output - */ -export type SubscribeOutput = { - /** - * Subscription ID - */ - id: string; - /** - * Set of relays that success - */ - success: Array; - /** - * Map of relays that failed, with related errors. - */ - failed: Map; -}; - -/** - * Generated factory for {@link SubscribeOutput} record objects. - */ -export const SubscribeOutput = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link SubscribeOutput}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link SubscribeOutput}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeSubscribeOutput = (() => { - type TypeName = SubscribeOutput; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - id: FfiConverterString.read(from), - success: FfiConverterArrayString.read(from), - failed: FfiConverterMapStringString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.id, into); - FfiConverterArrayString.write(value.success, into); - FfiConverterMapStringString.write(value.failed, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.id) + - FfiConverterArrayString.allocationSize(value.success) + - FfiConverterMapStringString.allocationSize(value.failed) - ); - } - } - return new FFIConverter(); -})(); - -export type TagClientAddress = { - /** - * Coordinate - */ - coordinate: CoordinateInterface; - /** - * Relay hint - */ - hint: string | undefined; -}; - -/** - * Generated factory for {@link TagClientAddress} record objects. - */ -export const TagClientAddress = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link TagClientAddress}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link TagClientAddress}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeTagClientAddress = (() => { - type TypeName = TagClientAddress; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - coordinate: FfiConverterTypeCoordinate.read(from), - hint: FfiConverterOptionalString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterTypeCoordinate.write(value.coordinate, into); - FfiConverterOptionalString.write(value.hint, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterTypeCoordinate.allocationSize(value.coordinate) + - FfiConverterOptionalString.allocationSize(value.hint) - ); - } - } - return new FFIConverter(); -})(); - -export type WebSocketCloseFrame = { - code: /*u16*/ number; - reason: string; -}; - -/** - * Generated factory for {@link WebSocketCloseFrame} record objects. - */ -export const WebSocketCloseFrame = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link WebSocketCloseFrame}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - create, - - /** - * Create a frozen instance of {@link WebSocketCloseFrame}, with defaults specified - * in Rust, in the {@link nostr_sdk} crate. - */ - new: create, - - /** - * Defaults specified in the {@link nostr_sdk} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeWebSocketCloseFrame = (() => { - type TypeName = WebSocketCloseFrame; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - return { - code: FfiConverterUInt16.read(from), - reason: FfiConverterString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterUInt16.write(value.code, into); - FfiConverterString.write(value.reason, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterUInt16.allocationSize(value.code) + - FfiConverterString.allocationSize(value.reason) - ); - } - } - return new FFIConverter(); -})(); - -const stringConverter = { - stringToBytes: (s: string) => - uniffiCaller.rustCall((status) => - nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer( - s, - status - ) - ), - bytesToString: (ab: UniffiByteArray) => - uniffiCaller.rustCall((status) => - nativeModule().ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string( - ab, - status - ) - ), - stringByteLength: (s: string) => - uniffiCaller.rustCall((status) => - nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length( - s, - status - ) - ), -}; -const FfiConverterString = uniffiCreateFfiConverterString(stringConverter); - -export enum AdmitStatus { - Success, - Rejected, -} - -const FfiConverterTypeAdmitStatus = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = AdmitStatus; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return AdmitStatus.Success; - case 2: - return AdmitStatus.Rejected; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case AdmitStatus.Success: - return ordinalConverter.write(1, into); - case AdmitStatus.Rejected: - return ordinalConverter.write(2, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -export enum Alphabet { - A, - B, - C, - D, - E, - F, - G, - H, - I, - J, - K, - L, - M, - N, - O, - P, - Q, - R, - S, - T, - U, - V, - W, - X, - Y, - Z, -} - -const FfiConverterTypeAlphabet = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = Alphabet; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return Alphabet.A; - case 2: - return Alphabet.B; - case 3: - return Alphabet.C; - case 4: - return Alphabet.D; - case 5: - return Alphabet.E; - case 6: - return Alphabet.F; - case 7: - return Alphabet.G; - case 8: - return Alphabet.H; - case 9: - return Alphabet.I; - case 10: - return Alphabet.J; - case 11: - return Alphabet.K; - case 12: - return Alphabet.L; - case 13: - return Alphabet.M; - case 14: - return Alphabet.N; - case 15: - return Alphabet.O; - case 16: - return Alphabet.P; - case 17: - return Alphabet.Q; - case 18: - return Alphabet.R; - case 19: - return Alphabet.S; - case 20: - return Alphabet.T; - case 21: - return Alphabet.U; - case 22: - return Alphabet.V; - case 23: - return Alphabet.W; - case 24: - return Alphabet.X; - case 25: - return Alphabet.Y; - case 26: - return Alphabet.Z; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case Alphabet.A: - return ordinalConverter.write(1, into); - case Alphabet.B: - return ordinalConverter.write(2, into); - case Alphabet.C: - return ordinalConverter.write(3, into); - case Alphabet.D: - return ordinalConverter.write(4, into); - case Alphabet.E: - return ordinalConverter.write(5, into); - case Alphabet.F: - return ordinalConverter.write(6, into); - case Alphabet.G: - return ordinalConverter.write(7, into); - case Alphabet.H: - return ordinalConverter.write(8, into); - case Alphabet.I: - return ordinalConverter.write(9, into); - case Alphabet.J: - return ordinalConverter.write(10, into); - case Alphabet.K: - return ordinalConverter.write(11, into); - case Alphabet.L: - return ordinalConverter.write(12, into); - case Alphabet.M: - return ordinalConverter.write(13, into); - case Alphabet.N: - return ordinalConverter.write(14, into); - case Alphabet.O: - return ordinalConverter.write(15, into); - case Alphabet.P: - return ordinalConverter.write(16, into); - case Alphabet.Q: - return ordinalConverter.write(17, into); - case Alphabet.R: - return ordinalConverter.write(18, into); - case Alphabet.S: - return ordinalConverter.write(19, into); - case Alphabet.T: - return ordinalConverter.write(20, into); - case Alphabet.U: - return ordinalConverter.write(21, into); - case Alphabet.V: - return ordinalConverter.write(22, into); - case Alphabet.W: - return ordinalConverter.write(23, into); - case Alphabet.X: - return ordinalConverter.write(24, into); - case Alphabet.Y: - return ordinalConverter.write(25, into); - case Alphabet.Z: - return ordinalConverter.write(26, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: ClientMessageEnum -export enum ClientMessageEnum_Tags { - EventMsg = 'EventMsg', - Req = 'Req', - ReqMultiFilter = 'ReqMultiFilter', - Count = 'Count', - Close = 'Close', - Auth = 'Auth', - NegOpen = 'NegOpen', - NegMsg = 'NegMsg', - NegClose = 'NegClose', -} -/** - * Messages sent by clients, received by relays - */ -export const ClientMessageEnum = (() => { - type EventMsg__interface = { - tag: ClientMessageEnum_Tags.EventMsg; - inner: Readonly<{ event: EventInterface }>; - }; - - class EventMsg_ extends UniffiEnum implements EventMsg__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ClientMessageEnum'; - readonly tag = ClientMessageEnum_Tags.EventMsg; - readonly inner: Readonly<{ event: EventInterface }>; - constructor(inner: { event: EventInterface }) { - super('ClientMessageEnum', 'EventMsg'); - this.inner = Object.freeze(inner); - } - - static new(inner: { event: EventInterface }): EventMsg_ { - return new EventMsg_(inner); - } - - static instanceOf(obj: any): obj is EventMsg_ { - return obj.tag === ClientMessageEnum_Tags.EventMsg; - } - } - - type Req__interface = { - tag: ClientMessageEnum_Tags.Req; - inner: Readonly<{ subscriptionId: string; filter: FilterInterface }>; - }; - - class Req_ extends UniffiEnum implements Req__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ClientMessageEnum'; - readonly tag = ClientMessageEnum_Tags.Req; - readonly inner: Readonly<{ - subscriptionId: string; - filter: FilterInterface; - }>; - constructor(inner: { subscriptionId: string; filter: FilterInterface }) { - super('ClientMessageEnum', 'Req'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - subscriptionId: string; - filter: FilterInterface; - }): Req_ { - return new Req_(inner); - } - - static instanceOf(obj: any): obj is Req_ { - return obj.tag === ClientMessageEnum_Tags.Req; - } - } - - type ReqMultiFilter__interface = { - tag: ClientMessageEnum_Tags.ReqMultiFilter; - inner: Readonly<{ - subscriptionId: string; - filters: Array; - }>; - }; - - /** - * Multi-filter REQ (deprecated) - * - * - */ - class ReqMultiFilter_ - extends UniffiEnum - implements ReqMultiFilter__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ClientMessageEnum'; - readonly tag = ClientMessageEnum_Tags.ReqMultiFilter; - readonly inner: Readonly<{ - subscriptionId: string; - filters: Array; - }>; - constructor(inner: { - subscriptionId: string; - filters: Array; - }) { - super('ClientMessageEnum', 'ReqMultiFilter'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - subscriptionId: string; - filters: Array; - }): ReqMultiFilter_ { - return new ReqMultiFilter_(inner); - } - - static instanceOf(obj: any): obj is ReqMultiFilter_ { - return obj.tag === ClientMessageEnum_Tags.ReqMultiFilter; - } - } - - type Count__interface = { - tag: ClientMessageEnum_Tags.Count; - inner: Readonly<{ subscriptionId: string; filter: FilterInterface }>; - }; - - class Count_ extends UniffiEnum implements Count__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ClientMessageEnum'; - readonly tag = ClientMessageEnum_Tags.Count; - readonly inner: Readonly<{ - subscriptionId: string; - filter: FilterInterface; - }>; - constructor(inner: { subscriptionId: string; filter: FilterInterface }) { - super('ClientMessageEnum', 'Count'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - subscriptionId: string; - filter: FilterInterface; - }): Count_ { - return new Count_(inner); - } - - static instanceOf(obj: any): obj is Count_ { - return obj.tag === ClientMessageEnum_Tags.Count; - } - } - - type Close__interface = { - tag: ClientMessageEnum_Tags.Close; - inner: Readonly<{ subscriptionId: string }>; - }; - - class Close_ extends UniffiEnum implements Close__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ClientMessageEnum'; - readonly tag = ClientMessageEnum_Tags.Close; - readonly inner: Readonly<{ subscriptionId: string }>; - constructor(inner: { subscriptionId: string }) { - super('ClientMessageEnum', 'Close'); - this.inner = Object.freeze(inner); - } - - static new(inner: { subscriptionId: string }): Close_ { - return new Close_(inner); - } - - static instanceOf(obj: any): obj is Close_ { - return obj.tag === ClientMessageEnum_Tags.Close; - } - } - - type Auth__interface = { - tag: ClientMessageEnum_Tags.Auth; - inner: Readonly<{ event: EventInterface }>; - }; - - class Auth_ extends UniffiEnum implements Auth__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ClientMessageEnum'; - readonly tag = ClientMessageEnum_Tags.Auth; - readonly inner: Readonly<{ event: EventInterface }>; - constructor(inner: { event: EventInterface }) { - super('ClientMessageEnum', 'Auth'); - this.inner = Object.freeze(inner); - } - - static new(inner: { event: EventInterface }): Auth_ { - return new Auth_(inner); - } - - static instanceOf(obj: any): obj is Auth_ { - return obj.tag === ClientMessageEnum_Tags.Auth; - } - } - - type NegOpen__interface = { - tag: ClientMessageEnum_Tags.NegOpen; - inner: Readonly<{ - subscriptionId: string; - filter: FilterInterface; - idSize: /*u8*/ number | undefined; - initialMessage: string; - }>; - }; - - /** - * Negentropy Open - */ - class NegOpen_ extends UniffiEnum implements NegOpen__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ClientMessageEnum'; - readonly tag = ClientMessageEnum_Tags.NegOpen; - readonly inner: Readonly<{ - subscriptionId: string; - filter: FilterInterface; - idSize: /*u8*/ number | undefined; - initialMessage: string; - }>; - constructor(inner: { - subscriptionId: string; - filter: FilterInterface; - /** - * ID size (deprecated) - */ idSize: /*u8*/ number | undefined; - initialMessage: string; - }) { - super('ClientMessageEnum', 'NegOpen'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - subscriptionId: string; - filter: FilterInterface; - /** - * ID size (deprecated) - */ idSize: /*u8*/ number | undefined; - initialMessage: string; - }): NegOpen_ { - return new NegOpen_(inner); - } - - static instanceOf(obj: any): obj is NegOpen_ { - return obj.tag === ClientMessageEnum_Tags.NegOpen; - } - } - - type NegMsg__interface = { - tag: ClientMessageEnum_Tags.NegMsg; - inner: Readonly<{ subscriptionId: string; message: string }>; - }; - - /** - * Negentropy Message - */ - class NegMsg_ extends UniffiEnum implements NegMsg__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ClientMessageEnum'; - readonly tag = ClientMessageEnum_Tags.NegMsg; - readonly inner: Readonly<{ subscriptionId: string; message: string }>; - constructor(inner: { subscriptionId: string; message: string }) { - super('ClientMessageEnum', 'NegMsg'); - this.inner = Object.freeze(inner); - } - - static new(inner: { subscriptionId: string; message: string }): NegMsg_ { - return new NegMsg_(inner); - } - - static instanceOf(obj: any): obj is NegMsg_ { - return obj.tag === ClientMessageEnum_Tags.NegMsg; - } - } - - type NegClose__interface = { - tag: ClientMessageEnum_Tags.NegClose; - inner: Readonly<{ subscriptionId: string }>; - }; - - /** - * Negentropy Close - */ - class NegClose_ extends UniffiEnum implements NegClose__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ClientMessageEnum'; - readonly tag = ClientMessageEnum_Tags.NegClose; - readonly inner: Readonly<{ subscriptionId: string }>; - constructor(inner: { subscriptionId: string }) { - super('ClientMessageEnum', 'NegClose'); - this.inner = Object.freeze(inner); - } - - static new(inner: { subscriptionId: string }): NegClose_ { - return new NegClose_(inner); - } - - static instanceOf(obj: any): obj is NegClose_ { - return obj.tag === ClientMessageEnum_Tags.NegClose; - } - } - - function instanceOf(obj: any): obj is ClientMessageEnum { - return obj[uniffiTypeNameSymbol] === 'ClientMessageEnum'; - } - - return Object.freeze({ - instanceOf, - EventMsg: EventMsg_, - Req: Req_, - ReqMultiFilter: ReqMultiFilter_, - Count: Count_, - Close: Close_, - Auth: Auth_, - NegOpen: NegOpen_, - NegMsg: NegMsg_, - NegClose: NegClose_, - }); -})(); - -/** - * Messages sent by clients, received by relays - */ - -export type ClientMessageEnum = InstanceType< - (typeof ClientMessageEnum)[keyof Omit] ->; - -// FfiConverter for enum ClientMessageEnum -const FfiConverterTypeClientMessageEnum = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = ClientMessageEnum; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new ClientMessageEnum.EventMsg({ - event: FfiConverterTypeEvent.read(from), - }); - case 2: - return new ClientMessageEnum.Req({ - subscriptionId: FfiConverterString.read(from), - filter: FfiConverterTypeFilter.read(from), - }); - case 3: - return new ClientMessageEnum.ReqMultiFilter({ - subscriptionId: FfiConverterString.read(from), - filters: FfiConverterArrayTypeFilter.read(from), - }); - case 4: - return new ClientMessageEnum.Count({ - subscriptionId: FfiConverterString.read(from), - filter: FfiConverterTypeFilter.read(from), - }); - case 5: - return new ClientMessageEnum.Close({ - subscriptionId: FfiConverterString.read(from), - }); - case 6: - return new ClientMessageEnum.Auth({ - event: FfiConverterTypeEvent.read(from), - }); - case 7: - return new ClientMessageEnum.NegOpen({ - subscriptionId: FfiConverterString.read(from), - filter: FfiConverterTypeFilter.read(from), - idSize: FfiConverterOptionalUInt8.read(from), - initialMessage: FfiConverterString.read(from), - }); - case 8: - return new ClientMessageEnum.NegMsg({ - subscriptionId: FfiConverterString.read(from), - message: FfiConverterString.read(from), - }); - case 9: - return new ClientMessageEnum.NegClose({ - subscriptionId: FfiConverterString.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case ClientMessageEnum_Tags.EventMsg: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterTypeEvent.write(inner.event, into); - return; - } - case ClientMessageEnum_Tags.Req: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - FfiConverterTypeFilter.write(inner.filter, into); - return; - } - case ClientMessageEnum_Tags.ReqMultiFilter: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - FfiConverterArrayTypeFilter.write(inner.filters, into); - return; - } - case ClientMessageEnum_Tags.Count: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - FfiConverterTypeFilter.write(inner.filter, into); - return; - } - case ClientMessageEnum_Tags.Close: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - return; - } - case ClientMessageEnum_Tags.Auth: { - ordinalConverter.write(6, into); - const inner = value.inner; - FfiConverterTypeEvent.write(inner.event, into); - return; - } - case ClientMessageEnum_Tags.NegOpen: { - ordinalConverter.write(7, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - FfiConverterTypeFilter.write(inner.filter, into); - FfiConverterOptionalUInt8.write(inner.idSize, into); - FfiConverterString.write(inner.initialMessage, into); - return; - } - case ClientMessageEnum_Tags.NegMsg: { - ordinalConverter.write(8, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - FfiConverterString.write(inner.message, into); - return; - } - case ClientMessageEnum_Tags.NegClose: { - ordinalConverter.write(9, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - return; - } - default: - // Throwing from here means that ClientMessageEnum_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case ClientMessageEnum_Tags.EventMsg: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterTypeEvent.allocationSize(inner.event); - return size; - } - case ClientMessageEnum_Tags.Req: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterString.allocationSize(inner.subscriptionId); - size += FfiConverterTypeFilter.allocationSize(inner.filter); - return size; - } - case ClientMessageEnum_Tags.ReqMultiFilter: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterString.allocationSize(inner.subscriptionId); - size += FfiConverterArrayTypeFilter.allocationSize(inner.filters); - return size; - } - case ClientMessageEnum_Tags.Count: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterString.allocationSize(inner.subscriptionId); - size += FfiConverterTypeFilter.allocationSize(inner.filter); - return size; - } - case ClientMessageEnum_Tags.Close: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterString.allocationSize(inner.subscriptionId); - return size; - } - case ClientMessageEnum_Tags.Auth: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(6); - size += FfiConverterTypeEvent.allocationSize(inner.event); - return size; - } - case ClientMessageEnum_Tags.NegOpen: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(7); - size += FfiConverterString.allocationSize(inner.subscriptionId); - size += FfiConverterTypeFilter.allocationSize(inner.filter); - size += FfiConverterOptionalUInt8.allocationSize(inner.idSize); - size += FfiConverterString.allocationSize(inner.initialMessage); - return size; - } - case ClientMessageEnum_Tags.NegMsg: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(8); - size += FfiConverterString.allocationSize(inner.subscriptionId); - size += FfiConverterString.allocationSize(inner.message); - return size; - } - case ClientMessageEnum_Tags.NegClose: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(9); - size += FfiConverterString.allocationSize(inner.subscriptionId); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Enum: ConnectionMode -export enum ConnectionMode_Tags { - Direct = 'Direct', - Proxy = 'Proxy', -} -export const ConnectionMode = (() => { - type Direct__interface = { - tag: ConnectionMode_Tags.Direct; - }; - - class Direct_ extends UniffiEnum implements Direct__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ConnectionMode'; - readonly tag = ConnectionMode_Tags.Direct; - constructor() { - super('ConnectionMode', 'Direct'); - } - - static new(): Direct_ { - return new Direct_(); - } - - static instanceOf(obj: any): obj is Direct_ { - return obj.tag === ConnectionMode_Tags.Direct; - } - } - - type Proxy__interface = { - tag: ConnectionMode_Tags.Proxy; - inner: Readonly<{ ip: string; port: /*u16*/ number }>; - }; - - class Proxy_ extends UniffiEnum implements Proxy__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ConnectionMode'; - readonly tag = ConnectionMode_Tags.Proxy; - readonly inner: Readonly<{ ip: string; port: /*u16*/ number }>; - constructor(inner: { - /** - * IP - */ ip: string; - /** - * Port - */ port: /*u16*/ number; - }) { - super('ConnectionMode', 'Proxy'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * IP - */ ip: string; - /** - * Port - */ port: /*u16*/ number; - }): Proxy_ { - return new Proxy_(inner); - } - - static instanceOf(obj: any): obj is Proxy_ { - return obj.tag === ConnectionMode_Tags.Proxy; - } - } - - function instanceOf(obj: any): obj is ConnectionMode { - return obj[uniffiTypeNameSymbol] === 'ConnectionMode'; - } - - return Object.freeze({ - instanceOf, - Direct: Direct_, - Proxy: Proxy_, - }); -})(); - -export type ConnectionMode = InstanceType< - (typeof ConnectionMode)[keyof Omit] ->; - -// FfiConverter for enum ConnectionMode -const FfiConverterTypeConnectionMode = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = ConnectionMode; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new ConnectionMode.Direct(); - case 2: - return new ConnectionMode.Proxy({ - ip: FfiConverterString.read(from), - port: FfiConverterUInt16.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case ConnectionMode_Tags.Direct: { - ordinalConverter.write(1, into); - return; - } - case ConnectionMode_Tags.Proxy: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterString.write(inner.ip, into); - FfiConverterUInt16.write(inner.port, into); - return; - } - default: - // Throwing from here means that ConnectionMode_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case ConnectionMode_Tags.Direct: { - return ordinalConverter.allocationSize(1); - } - case ConnectionMode_Tags.Proxy: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterString.allocationSize(inner.ip); - size += FfiConverterUInt16.allocationSize(inner.port); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -/** - * Connection target - */ -export enum ConnectionTarget { - /** - * Use proxy for all relays - */ - All, - /** - * Use proxy only for `.onion` relays - */ - Onion, -} - -const FfiConverterTypeConnectionTarget = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = ConnectionTarget; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return ConnectionTarget.All; - case 2: - return ConnectionTarget.Onion; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case ConnectionTarget.All: - return ordinalConverter.write(1, into); - case ConnectionTarget.Onion: - return ordinalConverter.write(2, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -export enum DataVendingMachineStatus { - PaymentRequired, - Processing, - Error, - Success, - Partial, -} - -const FfiConverterTypeDataVendingMachineStatus = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = DataVendingMachineStatus; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return DataVendingMachineStatus.PaymentRequired; - case 2: - return DataVendingMachineStatus.Processing; - case 3: - return DataVendingMachineStatus.Error; - case 4: - return DataVendingMachineStatus.Success; - case 5: - return DataVendingMachineStatus.Partial; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case DataVendingMachineStatus.PaymentRequired: - return ordinalConverter.write(1, into); - case DataVendingMachineStatus.Processing: - return ordinalConverter.write(2, into); - case DataVendingMachineStatus.Error: - return ordinalConverter.write(3, into); - case DataVendingMachineStatus.Success: - return ordinalConverter.write(4, into); - case DataVendingMachineStatus.Partial: - return ordinalConverter.write(5, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -/** - * Encrypted Secret Key version (NIP49) - */ -export enum EncryptedSecretKeyVersion { - V2, -} - -const FfiConverterTypeEncryptedSecretKeyVersion = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = EncryptedSecretKeyVersion; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return EncryptedSecretKeyVersion.V2; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case EncryptedSecretKeyVersion.V2: - return ordinalConverter.write(1, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -/** - * NIP47 Response Error codes - */ -export enum ErrorCode { - /** - * The client is sending commands too fast. - */ - RateLimited, - /** - * The command is not known of is intentionally not implemented - */ - NotImplemented, - /** - * The wallet does not have enough funds to cover a fee reserve or the payment amount - */ - InsufficientBalance, - /** - * The payment failed. This may be due to a timeout, exhausting all routes, insufficient capacity or similar. - */ - PaymentFailed, - /** - * The invoice could not be found by the given parameters. - */ - NotFound, - /** - * The wallet has exceeded its spending quota - */ - QuotaExceeded, - /** - * This public key is not allowed to do this operation - */ - Restricted, - /** - * This public key has no wallet connected - */ - Unauthorized, - /** - * An internal error - */ - Internal, - /** - * Other error - */ - Other, -} - -const FfiConverterTypeErrorCode = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = ErrorCode; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return ErrorCode.RateLimited; - case 2: - return ErrorCode.NotImplemented; - case 3: - return ErrorCode.InsufficientBalance; - case 4: - return ErrorCode.PaymentFailed; - case 5: - return ErrorCode.NotFound; - case 6: - return ErrorCode.QuotaExceeded; - case 7: - return ErrorCode.Restricted; - case 8: - return ErrorCode.Unauthorized; - case 9: - return ErrorCode.Internal; - case 10: - return ErrorCode.Other; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case ErrorCode.RateLimited: - return ordinalConverter.write(1, into); - case ErrorCode.NotImplemented: - return ordinalConverter.write(2, into); - case ErrorCode.InsufficientBalance: - return ordinalConverter.write(3, into); - case ErrorCode.PaymentFailed: - return ordinalConverter.write(4, into); - case ErrorCode.NotFound: - return ordinalConverter.write(5, into); - case ErrorCode.QuotaExceeded: - return ordinalConverter.write(6, into); - case ErrorCode.Restricted: - return ordinalConverter.write(7, into); - case ErrorCode.Unauthorized: - return ordinalConverter.write(8, into); - case ErrorCode.Internal: - return ordinalConverter.write(9, into); - case ErrorCode.Other: - return ordinalConverter.write(10, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: ExternalContentId -export enum ExternalContentId_Tags { - Url = 'Url', - Hashtag = 'Hashtag', - Geohash = 'Geohash', - Book = 'Book', - PodcastFeed = 'PodcastFeed', - PodcastEpisode = 'PodcastEpisode', - PodcastPublisher = 'PodcastPublisher', - Movie = 'Movie', - Paper = 'Paper', -} -/** - * External Content ID - */ -export const ExternalContentId = (() => { - type Url__interface = { - tag: ExternalContentId_Tags.Url; - inner: Readonly<[string]>; - }; - - /** - * URL - */ - class Url_ extends UniffiEnum implements Url__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExternalContentId'; - readonly tag = ExternalContentId_Tags.Url; - readonly inner: Readonly<[string]>; - constructor(v0: string) { - super('ExternalContentId', 'Url'); - this.inner = Object.freeze([v0]); - } - - static new(v0: string): Url_ { - return new Url_(v0); - } - - static instanceOf(obj: any): obj is Url_ { - return obj.tag === ExternalContentId_Tags.Url; - } - } - - type Hashtag__interface = { - tag: ExternalContentId_Tags.Hashtag; - inner: Readonly<[string]>; - }; - - /** - * Hashtag - */ - class Hashtag_ extends UniffiEnum implements Hashtag__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExternalContentId'; - readonly tag = ExternalContentId_Tags.Hashtag; - readonly inner: Readonly<[string]>; - constructor(v0: string) { - super('ExternalContentId', 'Hashtag'); - this.inner = Object.freeze([v0]); - } - - static new(v0: string): Hashtag_ { - return new Hashtag_(v0); - } - - static instanceOf(obj: any): obj is Hashtag_ { - return obj.tag === ExternalContentId_Tags.Hashtag; - } - } - - type Geohash__interface = { - tag: ExternalContentId_Tags.Geohash; - inner: Readonly<[string]>; - }; - - /** - * Geohash - */ - class Geohash_ extends UniffiEnum implements Geohash__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExternalContentId'; - readonly tag = ExternalContentId_Tags.Geohash; - readonly inner: Readonly<[string]>; - constructor(v0: string) { - super('ExternalContentId', 'Geohash'); - this.inner = Object.freeze([v0]); - } - - static new(v0: string): Geohash_ { - return new Geohash_(v0); - } - - static instanceOf(obj: any): obj is Geohash_ { - return obj.tag === ExternalContentId_Tags.Geohash; - } - } - - type Book__interface = { - tag: ExternalContentId_Tags.Book; - inner: Readonly<[string]>; - }; - - /** - * Book - */ - class Book_ extends UniffiEnum implements Book__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExternalContentId'; - readonly tag = ExternalContentId_Tags.Book; - readonly inner: Readonly<[string]>; - constructor(v0: string) { - super('ExternalContentId', 'Book'); - this.inner = Object.freeze([v0]); - } - - static new(v0: string): Book_ { - return new Book_(v0); - } - - static instanceOf(obj: any): obj is Book_ { - return obj.tag === ExternalContentId_Tags.Book; - } - } - - type PodcastFeed__interface = { - tag: ExternalContentId_Tags.PodcastFeed; - inner: Readonly<[string]>; - }; - - /** - * Podcast Feed - */ - class PodcastFeed_ extends UniffiEnum implements PodcastFeed__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExternalContentId'; - readonly tag = ExternalContentId_Tags.PodcastFeed; - readonly inner: Readonly<[string]>; - constructor(v0: string) { - super('ExternalContentId', 'PodcastFeed'); - this.inner = Object.freeze([v0]); - } - - static new(v0: string): PodcastFeed_ { - return new PodcastFeed_(v0); - } - - static instanceOf(obj: any): obj is PodcastFeed_ { - return obj.tag === ExternalContentId_Tags.PodcastFeed; - } - } - - type PodcastEpisode__interface = { - tag: ExternalContentId_Tags.PodcastEpisode; - inner: Readonly<[string]>; - }; - - /** - * Podcast Episode - */ - class PodcastEpisode_ - extends UniffiEnum - implements PodcastEpisode__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExternalContentId'; - readonly tag = ExternalContentId_Tags.PodcastEpisode; - readonly inner: Readonly<[string]>; - constructor(v0: string) { - super('ExternalContentId', 'PodcastEpisode'); - this.inner = Object.freeze([v0]); - } - - static new(v0: string): PodcastEpisode_ { - return new PodcastEpisode_(v0); - } - - static instanceOf(obj: any): obj is PodcastEpisode_ { - return obj.tag === ExternalContentId_Tags.PodcastEpisode; - } - } - - type PodcastPublisher__interface = { - tag: ExternalContentId_Tags.PodcastPublisher; - inner: Readonly<[string]>; - }; - - /** - * Podcast Publisher - */ - class PodcastPublisher_ - extends UniffiEnum - implements PodcastPublisher__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExternalContentId'; - readonly tag = ExternalContentId_Tags.PodcastPublisher; - readonly inner: Readonly<[string]>; - constructor(v0: string) { - super('ExternalContentId', 'PodcastPublisher'); - this.inner = Object.freeze([v0]); - } - - static new(v0: string): PodcastPublisher_ { - return new PodcastPublisher_(v0); - } - - static instanceOf(obj: any): obj is PodcastPublisher_ { - return obj.tag === ExternalContentId_Tags.PodcastPublisher; - } - } - - type Movie__interface = { - tag: ExternalContentId_Tags.Movie; - inner: Readonly<[string]>; - }; - - /** - * Movie - */ - class Movie_ extends UniffiEnum implements Movie__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExternalContentId'; - readonly tag = ExternalContentId_Tags.Movie; - readonly inner: Readonly<[string]>; - constructor(v0: string) { - super('ExternalContentId', 'Movie'); - this.inner = Object.freeze([v0]); - } - - static new(v0: string): Movie_ { - return new Movie_(v0); - } - - static instanceOf(obj: any): obj is Movie_ { - return obj.tag === ExternalContentId_Tags.Movie; - } - } - - type Paper__interface = { - tag: ExternalContentId_Tags.Paper; - inner: Readonly<[string]>; - }; - - /** - * Paper - */ - class Paper_ extends UniffiEnum implements Paper__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExternalContentId'; - readonly tag = ExternalContentId_Tags.Paper; - readonly inner: Readonly<[string]>; - constructor(v0: string) { - super('ExternalContentId', 'Paper'); - this.inner = Object.freeze([v0]); - } - - static new(v0: string): Paper_ { - return new Paper_(v0); - } - - static instanceOf(obj: any): obj is Paper_ { - return obj.tag === ExternalContentId_Tags.Paper; - } - } - - function instanceOf(obj: any): obj is ExternalContentId { - return obj[uniffiTypeNameSymbol] === 'ExternalContentId'; - } - - return Object.freeze({ - instanceOf, - Url: Url_, - Hashtag: Hashtag_, - Geohash: Geohash_, - Book: Book_, - PodcastFeed: PodcastFeed_, - PodcastEpisode: PodcastEpisode_, - PodcastPublisher: PodcastPublisher_, - Movie: Movie_, - Paper: Paper_, - }); -})(); - -/** - * External Content ID - */ - -export type ExternalContentId = InstanceType< - (typeof ExternalContentId)[keyof Omit] ->; - -// FfiConverter for enum ExternalContentId -const FfiConverterTypeExternalContentId = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = ExternalContentId; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new ExternalContentId.Url(FfiConverterString.read(from)); - case 2: - return new ExternalContentId.Hashtag(FfiConverterString.read(from)); - case 3: - return new ExternalContentId.Geohash(FfiConverterString.read(from)); - case 4: - return new ExternalContentId.Book(FfiConverterString.read(from)); - case 5: - return new ExternalContentId.PodcastFeed( - FfiConverterString.read(from) - ); - case 6: - return new ExternalContentId.PodcastEpisode( - FfiConverterString.read(from) - ); - case 7: - return new ExternalContentId.PodcastPublisher( - FfiConverterString.read(from) - ); - case 8: - return new ExternalContentId.Movie(FfiConverterString.read(from)); - case 9: - return new ExternalContentId.Paper(FfiConverterString.read(from)); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case ExternalContentId_Tags.Url: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterString.write(inner[0], into); - return; - } - case ExternalContentId_Tags.Hashtag: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterString.write(inner[0], into); - return; - } - case ExternalContentId_Tags.Geohash: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterString.write(inner[0], into); - return; - } - case ExternalContentId_Tags.Book: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterString.write(inner[0], into); - return; - } - case ExternalContentId_Tags.PodcastFeed: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterString.write(inner[0], into); - return; - } - case ExternalContentId_Tags.PodcastEpisode: { - ordinalConverter.write(6, into); - const inner = value.inner; - FfiConverterString.write(inner[0], into); - return; - } - case ExternalContentId_Tags.PodcastPublisher: { - ordinalConverter.write(7, into); - const inner = value.inner; - FfiConverterString.write(inner[0], into); - return; - } - case ExternalContentId_Tags.Movie: { - ordinalConverter.write(8, into); - const inner = value.inner; - FfiConverterString.write(inner[0], into); - return; - } - case ExternalContentId_Tags.Paper: { - ordinalConverter.write(9, into); - const inner = value.inner; - FfiConverterString.write(inner[0], into); - return; - } - default: - // Throwing from here means that ExternalContentId_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case ExternalContentId_Tags.Url: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterString.allocationSize(inner[0]); - return size; - } - case ExternalContentId_Tags.Hashtag: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterString.allocationSize(inner[0]); - return size; - } - case ExternalContentId_Tags.Geohash: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterString.allocationSize(inner[0]); - return size; - } - case ExternalContentId_Tags.Book: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterString.allocationSize(inner[0]); - return size; - } - case ExternalContentId_Tags.PodcastFeed: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterString.allocationSize(inner[0]); - return size; - } - case ExternalContentId_Tags.PodcastEpisode: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(6); - size += FfiConverterString.allocationSize(inner[0]); - return size; - } - case ExternalContentId_Tags.PodcastPublisher: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(7); - size += FfiConverterString.allocationSize(inner[0]); - return size; - } - case ExternalContentId_Tags.Movie: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(8); - size += FfiConverterString.allocationSize(inner[0]); - return size; - } - case ExternalContentId_Tags.Paper: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(9); - size += FfiConverterString.allocationSize(inner[0]); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -/** - * Supported external identity providers - * - * - */ -export enum ExternalIdentity { - /** - * github.com - */ - GitHub, - /** - * twitter.com - */ - Twitter, - /** - * mastodon.social - */ - Mastodon, - /** - * telegram.org - */ - Telegram, -} - -const FfiConverterTypeExternalIdentity = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = ExternalIdentity; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return ExternalIdentity.GitHub; - case 2: - return ExternalIdentity.Twitter; - case 3: - return ExternalIdentity.Mastodon; - case 4: - return ExternalIdentity.Telegram; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case ExternalIdentity.GitHub: - return ordinalConverter.write(1, into); - case ExternalIdentity.Twitter: - return ordinalConverter.write(2, into); - case ExternalIdentity.Mastodon: - return ordinalConverter.write(3, into); - case ExternalIdentity.Telegram: - return ordinalConverter.write(4, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: ExtractedComment -export enum ExtractedComment_Tags { - Event = 'Event', - Address = 'Address', - External = 'External', -} -/** - * Extracted NIP22 comment - * - * - */ -export const ExtractedComment = (() => { - type Event__interface = { - tag: ExtractedComment_Tags.Event; - inner: Readonly<{ - id: EventIdInterface; - relayHint: string | undefined; - pubkeyHint: PublicKeyInterface | undefined; - kind: KindInterface | undefined; - }>; - }; - - /** - * Event - */ - class Event_ extends UniffiEnum implements Event__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExtractedComment'; - readonly tag = ExtractedComment_Tags.Event; - readonly inner: Readonly<{ - id: EventIdInterface; - relayHint: string | undefined; - pubkeyHint: PublicKeyInterface | undefined; - kind: KindInterface | undefined; - }>; - constructor(inner: { - /** - * Event ID - */ id: EventIdInterface; - /** - * Relay hint - */ relayHint: string | undefined; - /** - * Public key hint - */ pubkeyHint: PublicKeyInterface | undefined; - /** - * Kind - */ kind: KindInterface | undefined; - }) { - super('ExtractedComment', 'Event'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * Event ID - */ id: EventIdInterface; - /** - * Relay hint - */ relayHint: string | undefined; - /** - * Public key hint - */ pubkeyHint: PublicKeyInterface | undefined; - /** - * Kind - */ kind: KindInterface | undefined; - }): Event_ { - return new Event_(inner); - } - - static instanceOf(obj: any): obj is Event_ { - return obj.tag === ExtractedComment_Tags.Event; - } - } - - type Address__interface = { - tag: ExtractedComment_Tags.Address; - inner: Readonly<{ - address: CoordinateInterface; - relayHint: string | undefined; - kind: KindInterface | undefined; - }>; - }; - - /** - * Coordinate - */ - class Address_ extends UniffiEnum implements Address__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExtractedComment'; - readonly tag = ExtractedComment_Tags.Address; - readonly inner: Readonly<{ - address: CoordinateInterface; - relayHint: string | undefined; - kind: KindInterface | undefined; - }>; - constructor(inner: { - /** - * Coordinate - */ address: CoordinateInterface; - /** - * Relay hint - */ relayHint: string | undefined; - /** - * Kind - */ kind: KindInterface | undefined; - }) { - super('ExtractedComment', 'Address'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * Coordinate - */ address: CoordinateInterface; - /** - * Relay hint - */ relayHint: string | undefined; - /** - * Kind - */ kind: KindInterface | undefined; - }): Address_ { - return new Address_(inner); - } - - static instanceOf(obj: any): obj is Address_ { - return obj.tag === ExtractedComment_Tags.Address; - } - } - - type External__interface = { - tag: ExtractedComment_Tags.External; - inner: Readonly<{ content: ExternalContentId; hint: string | undefined }>; - }; - - /** - * External content - */ - class External_ extends UniffiEnum implements External__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ExtractedComment'; - readonly tag = ExtractedComment_Tags.External; - readonly inner: Readonly<{ - content: ExternalContentId; - hint: string | undefined; - }>; - constructor(inner: { - /** - * Content - */ content: ExternalContentId; - /** - * Web hint - */ hint: string | undefined; - }) { - super('ExtractedComment', 'External'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * Content - */ content: ExternalContentId; - /** - * Web hint - */ hint: string | undefined; - }): External_ { - return new External_(inner); - } - - static instanceOf(obj: any): obj is External_ { - return obj.tag === ExtractedComment_Tags.External; - } - } - - function instanceOf(obj: any): obj is ExtractedComment { - return obj[uniffiTypeNameSymbol] === 'ExtractedComment'; - } - - return Object.freeze({ - instanceOf, - Event: Event_, - Address: Address_, - External: External_, - }); -})(); - -/** - * Extracted NIP22 comment - * - * - */ - -export type ExtractedComment = InstanceType< - (typeof ExtractedComment)[keyof Omit] ->; - -// FfiConverter for enum ExtractedComment -const FfiConverterTypeExtractedComment = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = ExtractedComment; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new ExtractedComment.Event({ - id: FfiConverterTypeEventId.read(from), - relayHint: FfiConverterOptionalString.read(from), - pubkeyHint: FfiConverterOptionalTypePublicKey.read(from), - kind: FfiConverterOptionalTypeKind.read(from), - }); - case 2: - return new ExtractedComment.Address({ - address: FfiConverterTypeCoordinate.read(from), - relayHint: FfiConverterOptionalString.read(from), - kind: FfiConverterOptionalTypeKind.read(from), - }); - case 3: - return new ExtractedComment.External({ - content: FfiConverterTypeExternalContentId.read(from), - hint: FfiConverterOptionalString.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case ExtractedComment_Tags.Event: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterTypeEventId.write(inner.id, into); - FfiConverterOptionalString.write(inner.relayHint, into); - FfiConverterOptionalTypePublicKey.write(inner.pubkeyHint, into); - FfiConverterOptionalTypeKind.write(inner.kind, into); - return; - } - case ExtractedComment_Tags.Address: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterTypeCoordinate.write(inner.address, into); - FfiConverterOptionalString.write(inner.relayHint, into); - FfiConverterOptionalTypeKind.write(inner.kind, into); - return; - } - case ExtractedComment_Tags.External: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterTypeExternalContentId.write(inner.content, into); - FfiConverterOptionalString.write(inner.hint, into); - return; - } - default: - // Throwing from here means that ExtractedComment_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case ExtractedComment_Tags.Event: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterTypeEventId.allocationSize(inner.id); - size += FfiConverterOptionalString.allocationSize(inner.relayHint); - size += FfiConverterOptionalTypePublicKey.allocationSize( - inner.pubkeyHint - ); - size += FfiConverterOptionalTypeKind.allocationSize(inner.kind); - return size; - } - case ExtractedComment_Tags.Address: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterTypeCoordinate.allocationSize(inner.address); - size += FfiConverterOptionalString.allocationSize(inner.relayHint); - size += FfiConverterOptionalTypeKind.allocationSize(inner.kind); - return size; - } - case ExtractedComment_Tags.External: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterTypeExternalContentId.allocationSize( - inner.content - ); - size += FfiConverterOptionalString.allocationSize(inner.hint); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Enum: GitPatchContent -export enum GitPatchContent_Tags { - CoverLetter = 'CoverLetter', - Patch = 'Patch', -} -/** - * Git Patch Content - */ -export const GitPatchContent = (() => { - type CoverLetter__interface = { - tag: GitPatchContent_Tags.CoverLetter; - inner: Readonly<{ - title: string; - description: string; - lastCommit: string; - commitsLen: /*u64*/ bigint; - }>; - }; - - /** - * Cover letter - */ - class CoverLetter_ extends UniffiEnum implements CoverLetter__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'GitPatchContent'; - readonly tag = GitPatchContent_Tags.CoverLetter; - readonly inner: Readonly<{ - title: string; - description: string; - lastCommit: string; - commitsLen: /*u64*/ bigint; - }>; - constructor(inner: { - /** - * Title - */ title: string; - /** - * Description - */ description: string; - /** - * Last commit - */ lastCommit: string; - /** - * Number of commits - */ commitsLen: /*u64*/ bigint; - }) { - super('GitPatchContent', 'CoverLetter'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * Title - */ title: string; - /** - * Description - */ description: string; - /** - * Last commit - */ lastCommit: string; - /** - * Number of commits - */ commitsLen: /*u64*/ bigint; - }): CoverLetter_ { - return new CoverLetter_(inner); - } - - static instanceOf(obj: any): obj is CoverLetter_ { - return obj.tag === GitPatchContent_Tags.CoverLetter; - } - } - - type Patch__interface = { - tag: GitPatchContent_Tags.Patch; - inner: Readonly<{ - content: string; - commit: string; - parentCommit: string; - commitPgpSig: string | undefined; - committer: GitPatchCommitter; - }>; - }; - - /** - * Patch - */ - class Patch_ extends UniffiEnum implements Patch__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'GitPatchContent'; - readonly tag = GitPatchContent_Tags.Patch; - readonly inner: Readonly<{ - content: string; - commit: string; - parentCommit: string; - commitPgpSig: string | undefined; - committer: GitPatchCommitter; - }>; - constructor(inner: { - /** - * Patch content - */ content: string; - /** - * Commit hash - */ commit: string; - /** - * Parent commit - */ parentCommit: string; - /** - * PGP signature of commit - */ commitPgpSig: string | undefined; - /** - * Committer - */ committer: GitPatchCommitter; - }) { - super('GitPatchContent', 'Patch'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * Patch content - */ content: string; - /** - * Commit hash - */ commit: string; - /** - * Parent commit - */ parentCommit: string; - /** - * PGP signature of commit - */ commitPgpSig: string | undefined; - /** - * Committer - */ committer: GitPatchCommitter; - }): Patch_ { - return new Patch_(inner); - } - - static instanceOf(obj: any): obj is Patch_ { - return obj.tag === GitPatchContent_Tags.Patch; - } - } - - function instanceOf(obj: any): obj is GitPatchContent { - return obj[uniffiTypeNameSymbol] === 'GitPatchContent'; - } - - return Object.freeze({ - instanceOf, - CoverLetter: CoverLetter_, - Patch: Patch_, - }); -})(); - -/** - * Git Patch Content - */ - -export type GitPatchContent = InstanceType< - (typeof GitPatchContent)[keyof Omit] ->; - -// FfiConverter for enum GitPatchContent -const FfiConverterTypeGitPatchContent = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = GitPatchContent; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new GitPatchContent.CoverLetter({ - title: FfiConverterString.read(from), - description: FfiConverterString.read(from), - lastCommit: FfiConverterString.read(from), - commitsLen: FfiConverterUInt64.read(from), - }); - case 2: - return new GitPatchContent.Patch({ - content: FfiConverterString.read(from), - commit: FfiConverterString.read(from), - parentCommit: FfiConverterString.read(from), - commitPgpSig: FfiConverterOptionalString.read(from), - committer: FfiConverterTypeGitPatchCommitter.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case GitPatchContent_Tags.CoverLetter: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterString.write(inner.title, into); - FfiConverterString.write(inner.description, into); - FfiConverterString.write(inner.lastCommit, into); - FfiConverterUInt64.write(inner.commitsLen, into); - return; - } - case GitPatchContent_Tags.Patch: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterString.write(inner.content, into); - FfiConverterString.write(inner.commit, into); - FfiConverterString.write(inner.parentCommit, into); - FfiConverterOptionalString.write(inner.commitPgpSig, into); - FfiConverterTypeGitPatchCommitter.write(inner.committer, into); - return; - } - default: - // Throwing from here means that GitPatchContent_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case GitPatchContent_Tags.CoverLetter: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterString.allocationSize(inner.title); - size += FfiConverterString.allocationSize(inner.description); - size += FfiConverterString.allocationSize(inner.lastCommit); - size += FfiConverterUInt64.allocationSize(inner.commitsLen); - return size; - } - case GitPatchContent_Tags.Patch: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterString.allocationSize(inner.content); - size += FfiConverterString.allocationSize(inner.commit); - size += FfiConverterString.allocationSize(inner.parentCommit); - size += FfiConverterOptionalString.allocationSize(inner.commitPgpSig); - size += FfiConverterTypeGitPatchCommitter.allocationSize( - inner.committer - ); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -export enum HttpMethod { - Get, - Post, - Put, - Patch, -} - -const FfiConverterTypeHttpMethod = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = HttpMethod; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return HttpMethod.Get; - case 2: - return HttpMethod.Post; - case 3: - return HttpMethod.Put; - case 4: - return HttpMethod.Patch; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case HttpMethod.Get: - return ordinalConverter.write(1, into); - case HttpMethod.Post: - return ordinalConverter.write(2, into); - case HttpMethod.Put: - return ordinalConverter.write(3, into); - case HttpMethod.Patch: - return ordinalConverter.write(4, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: JsonValue -export enum JsonValue_Tags { - Bool = 'Bool', - NumberPosInt = 'NumberPosInt', - NumberNegInt = 'NumberNegInt', - NumberFloat = 'NumberFloat', - Str = 'Str', - Array = 'Array', - Object = 'Object', - Null = 'Null', -} -export const JsonValue = (() => { - type Bool__interface = { - tag: JsonValue_Tags.Bool; - inner: Readonly<{ bool: boolean }>; - }; - - class Bool_ extends UniffiEnum implements Bool__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'JsonValue'; - readonly tag = JsonValue_Tags.Bool; - readonly inner: Readonly<{ bool: boolean }>; - constructor(inner: { bool: boolean }) { - super('JsonValue', 'Bool'); - this.inner = Object.freeze(inner); - } - - static new(inner: { bool: boolean }): Bool_ { - return new Bool_(inner); - } - - static instanceOf(obj: any): obj is Bool_ { - return obj.tag === JsonValue_Tags.Bool; - } - } - - type NumberPosInt__interface = { - tag: JsonValue_Tags.NumberPosInt; - inner: Readonly<{ number: /*u64*/ bigint }>; - }; - - class NumberPosInt_ extends UniffiEnum implements NumberPosInt__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'JsonValue'; - readonly tag = JsonValue_Tags.NumberPosInt; - readonly inner: Readonly<{ number: /*u64*/ bigint }>; - constructor(inner: { number: /*u64*/ bigint }) { - super('JsonValue', 'NumberPosInt'); - this.inner = Object.freeze(inner); - } - - static new(inner: { number: /*u64*/ bigint }): NumberPosInt_ { - return new NumberPosInt_(inner); - } - - static instanceOf(obj: any): obj is NumberPosInt_ { - return obj.tag === JsonValue_Tags.NumberPosInt; - } - } - - type NumberNegInt__interface = { - tag: JsonValue_Tags.NumberNegInt; - inner: Readonly<{ number: /*i64*/ bigint }>; - }; - - class NumberNegInt_ extends UniffiEnum implements NumberNegInt__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'JsonValue'; - readonly tag = JsonValue_Tags.NumberNegInt; - readonly inner: Readonly<{ number: /*i64*/ bigint }>; - constructor(inner: { number: /*i64*/ bigint }) { - super('JsonValue', 'NumberNegInt'); - this.inner = Object.freeze(inner); - } - - static new(inner: { number: /*i64*/ bigint }): NumberNegInt_ { - return new NumberNegInt_(inner); - } - - static instanceOf(obj: any): obj is NumberNegInt_ { - return obj.tag === JsonValue_Tags.NumberNegInt; - } - } - - type NumberFloat__interface = { - tag: JsonValue_Tags.NumberFloat; - inner: Readonly<{ number: /*f64*/ number }>; - }; - - class NumberFloat_ extends UniffiEnum implements NumberFloat__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'JsonValue'; - readonly tag = JsonValue_Tags.NumberFloat; - readonly inner: Readonly<{ number: /*f64*/ number }>; - constructor(inner: { number: /*f64*/ number }) { - super('JsonValue', 'NumberFloat'); - this.inner = Object.freeze(inner); - } - - static new(inner: { number: /*f64*/ number }): NumberFloat_ { - return new NumberFloat_(inner); - } - - static instanceOf(obj: any): obj is NumberFloat_ { - return obj.tag === JsonValue_Tags.NumberFloat; - } - } - - type Str__interface = { - tag: JsonValue_Tags.Str; - inner: Readonly<{ s: string }>; - }; - - class Str_ extends UniffiEnum implements Str__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'JsonValue'; - readonly tag = JsonValue_Tags.Str; - readonly inner: Readonly<{ s: string }>; - constructor(inner: { s: string }) { - super('JsonValue', 'Str'); - this.inner = Object.freeze(inner); - } - - static new(inner: { s: string }): Str_ { - return new Str_(inner); - } - - static instanceOf(obj: any): obj is Str_ { - return obj.tag === JsonValue_Tags.Str; - } - } - - type Array__interface = { - tag: JsonValue_Tags.Array; - inner: Readonly<{ array: Array }>; - }; - - class Array_ extends UniffiEnum implements Array__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'JsonValue'; - readonly tag = JsonValue_Tags.Array; - readonly inner: Readonly<{ array: Array }>; - constructor(inner: { array: Array }) { - super('JsonValue', 'Array'); - this.inner = Object.freeze(inner); - } - - static new(inner: { array: Array }): Array_ { - return new Array_(inner); - } - - static instanceOf(obj: any): obj is Array_ { - return obj.tag === JsonValue_Tags.Array; - } - } - - type Object__interface = { - tag: JsonValue_Tags.Object; - inner: Readonly<{ map: Map }>; - }; - - class Object_ extends UniffiEnum implements Object__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'JsonValue'; - readonly tag = JsonValue_Tags.Object; - readonly inner: Readonly<{ map: Map }>; - constructor(inner: { map: Map }) { - super('JsonValue', 'Object'); - this.inner = Object.freeze(inner); - } - - static new(inner: { map: Map }): Object_ { - return new Object_(inner); - } - - static instanceOf(obj: any): obj is Object_ { - return obj.tag === JsonValue_Tags.Object; - } - } - - type Null__interface = { - tag: JsonValue_Tags.Null; - }; - - class Null_ extends UniffiEnum implements Null__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'JsonValue'; - readonly tag = JsonValue_Tags.Null; - constructor() { - super('JsonValue', 'Null'); - } - - static new(): Null_ { - return new Null_(); - } - - static instanceOf(obj: any): obj is Null_ { - return obj.tag === JsonValue_Tags.Null; - } - } - - function instanceOf(obj: any): obj is JsonValue { - return obj[uniffiTypeNameSymbol] === 'JsonValue'; - } - - return Object.freeze({ - instanceOf, - Bool: Bool_, - NumberPosInt: NumberPosInt_, - NumberNegInt: NumberNegInt_, - NumberFloat: NumberFloat_, - Str: Str_, - Array: Array_, - Object: Object_, - Null: Null_, - }); -})(); - -export type JsonValue = InstanceType< - (typeof JsonValue)[keyof Omit] ->; - -// FfiConverter for enum JsonValue -const FfiConverterTypeJsonValue = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = JsonValue; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new JsonValue.Bool({ bool: FfiConverterBool.read(from) }); - case 2: - return new JsonValue.NumberPosInt({ - number: FfiConverterUInt64.read(from), - }); - case 3: - return new JsonValue.NumberNegInt({ - number: FfiConverterInt64.read(from), - }); - case 4: - return new JsonValue.NumberFloat({ - number: FfiConverterFloat64.read(from), - }); - case 5: - return new JsonValue.Str({ s: FfiConverterString.read(from) }); - case 6: - return new JsonValue.Array({ - array: FfiConverterArrayTypeJsonValue.read(from), - }); - case 7: - return new JsonValue.Object({ - map: FfiConverterMapStringTypeJsonValue.read(from), - }); - case 8: - return new JsonValue.Null(); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case JsonValue_Tags.Bool: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterBool.write(inner.bool, into); - return; - } - case JsonValue_Tags.NumberPosInt: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterUInt64.write(inner.number, into); - return; - } - case JsonValue_Tags.NumberNegInt: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterInt64.write(inner.number, into); - return; - } - case JsonValue_Tags.NumberFloat: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterFloat64.write(inner.number, into); - return; - } - case JsonValue_Tags.Str: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterString.write(inner.s, into); - return; - } - case JsonValue_Tags.Array: { - ordinalConverter.write(6, into); - const inner = value.inner; - FfiConverterArrayTypeJsonValue.write(inner.array, into); - return; - } - case JsonValue_Tags.Object: { - ordinalConverter.write(7, into); - const inner = value.inner; - FfiConverterMapStringTypeJsonValue.write(inner.map, into); - return; - } - case JsonValue_Tags.Null: { - ordinalConverter.write(8, into); - return; - } - default: - // Throwing from here means that JsonValue_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case JsonValue_Tags.Bool: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterBool.allocationSize(inner.bool); - return size; - } - case JsonValue_Tags.NumberPosInt: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterUInt64.allocationSize(inner.number); - return size; - } - case JsonValue_Tags.NumberNegInt: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterInt64.allocationSize(inner.number); - return size; - } - case JsonValue_Tags.NumberFloat: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterFloat64.allocationSize(inner.number); - return size; - } - case JsonValue_Tags.Str: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterString.allocationSize(inner.s); - return size; - } - case JsonValue_Tags.Array: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(6); - size += FfiConverterArrayTypeJsonValue.allocationSize(inner.array); - return size; - } - case JsonValue_Tags.Object: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(7); - size += FfiConverterMapStringTypeJsonValue.allocationSize(inner.map); - return size; - } - case JsonValue_Tags.Null: { - return ordinalConverter.allocationSize(8); - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -/** - * Key security - */ -export enum KeySecurity { - /** - * The key has been known to have been handled insecurely (stored unencrypted, cut and paste unencrypted, etc) - */ - Weak, - /** - * The key has NOT been known to have been handled insecurely (stored encrypted, cut and paste encrypted, etc) - */ - Medium, - /** - * The client does not track this data - */ - Unknown, -} - -const FfiConverterTypeKeySecurity = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = KeySecurity; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return KeySecurity.Weak; - case 2: - return KeySecurity.Medium; - case 3: - return KeySecurity.Unknown; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case KeySecurity.Weak: - return ordinalConverter.write(1, into); - case KeySecurity.Medium: - return ordinalConverter.write(2, into); - case KeySecurity.Unknown: - return ordinalConverter.write(3, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -/** - * Standardized kind - */ -export enum KindStandard { - /** - * Metadata (NIP01 and NIP05) - */ - Metadata, - /** - * Short Text Note (NIP01) - */ - TextNote, - /** - * Contacts (NIP02) - */ - ContactList, - /** - * OpenTimestamps Attestations (NIP03) - */ - OpenTimestamps, - /** - * Event Deletion (NIP09) - */ - EventDeletion, - /** - * Repost (NIP18) - */ - Repost, - /** - * Generic Repost (NIP18) - */ - GenericRepost, - /** - * Comment (NIP22) - */ - Comment, - /** - * Reaction (NIP25) - */ - Reaction, - /** - * Badge Award (NIP58) - */ - BadgeAward, - /** - * Channel Creation (NIP28) - */ - ChannelCreation, - /** - * Channel Metadata (NIP28) - */ - ChannelMetadata, - /** - * Channel Message (NIP28) - */ - ChannelMessage, - /** - * Channel Hide Message (NIP28) - */ - ChannelHideMessage, - /** - * Channel Mute User (NIP28) - */ - ChannelMuteUser, - /** - * Git Patch - * - * - */ - GitPatch, - /** - * Git Issue - * - * - */ - GitIssue, - /** - * Git Reply - * - * - */ - GitReply, - /** - * Open Status of Git Patch or Issue - * - * - */ - GitStatusOpen, - /** - * Applied / Merged Status of Git Patch or Resolved Status of Git Issue - * - * - */ - GitStatusApplied, - /** - * Closed Status of Git Patch or Issue - * - * - */ - GitStatusClosed, - /** - * Draft Status of Git Patch or Issue - * - * - */ - GitStatusDraft, - /** - * Torrent - * - * - */ - Torrent, - /** - * Torrent comment - * - * - */ - TorrentComment, - /** - * Label - * - * - */ - Label, - /** - * Wallet Service Info (NIP47) - */ - WalletConnectInfo, - /** - * Reporting (NIP56) - */ - Reporting, - /** - * Zap Private Message (NIP57) - */ - ZapPrivateMessage, - /** - * Zap Request (NIP57) - */ - ZapRequest, - /** - * Zap Receipt (NIP57) - */ - ZapReceipt, - /** - * Mute List - * - * - */ - MuteList, - /** - * Pin List - * - * - */ - PinList, - /** - * Bookmarks - * - * - */ - Bookmarks, - /** - * Communities - * - * - */ - Communities, - /** - * Public Chats - * - * - */ - PublicChats, - /** - * Blocked Relays - * - * - */ - BlockedRelays, - /** - * Search Relays - * - * - */ - SearchRelays, - /** - * Simple Groups - * - * - */ - SimpleGroups, - /** - * Interests - * - * - */ - Interests, - /** - * Emojis - * - * - */ - Emojis, - /** - * Follow Set - * - * - */ - FollowSet, - /** - * Relay Set - * - * - */ - RelaySet, - /** - * Bookmark Set - * - * - */ - BookmarkSet, - /** - * Articles Curation Set - * - * - */ - ArticlesCurationSet, - /** - * Videos Curation Set - * - * - */ - VideosCurationSet, - /** - * Interest Set - * - * - */ - InterestSet, - /** - * Emoji Set - * - * - */ - EmojiSet, - /** - * Release Artifact Set - * - * - */ - ReleaseArtifactSet, - /** - * Relay List Metadata (NIP65) - */ - RelayList, - /** - * Peer-to-peer Order events - * - * - */ - PeerToPeerOrder, - /** - * Request to Vanish (NIP62) - * - * - */ - RequestToVanish, - /** - * Client Authentication (NIP42) - */ - Authentication, - /** - * Wallet Connect Request (NIP47) - */ - WalletConnectRequest, - /** - * Wallet Connect Response (NIP47) - */ - WalletConnectResponse, - /** - * Nostr Connect (NIP46) - */ - NostrConnect, - /** - * Live Event (NIP53) - */ - LiveEvent, - /** - * Live Event Message (NIP53) - */ - LiveEventMessage, - /** - * Profile Badges (NIP58) - */ - ProfileBadges, - /** - * Badge Definition (NIP58) - */ - BadgeDefinition, - /** - * Seal (NIP59) - */ - Seal, - /** - * Gift Wrap (NIP59) - */ - GiftWrap, - /** - * Private Direct message - * - * - */ - PrivateDirectMessage, - /** - * Inbox Relays (NIP17) - */ - InboxRelays, - /** - * MLS Key Package Relays (NIP104) - */ - MlsKeyPackageRelays, - /** - * MLS Key Package (NIP104) - */ - MlsKeyPackage, - /** - * MLS Welcome (NIP104) - */ - MlsWelcome, - /** - * MLS Group Message (NIP104) - */ - MlsGroupMessage, - /** - * Long-form Text Note (NIP23) - */ - LongFormTextNote, - /** - * Git Repository Announcement - * - * - */ - GitRepoAnnouncement, - /** - * Application-specific Data (NIP78) - */ - ApplicationSpecificData, - /** - * File Metadata (NIP94) - */ - FileMetadata, - /** - * HTTP Auth (NIP98) - */ - HttpAuth, - /** - * Set stall (NIP15) - */ - SetStall, - /** - * Set product (NIP15) - */ - SetProduct, - /** - * Job Feedback (NIP90) - */ - JobFeedback, - /** - * User Status - * - * - */ - UserStatus, - /** - * Cashu Wallet - * - * - */ - CashuWallet, - /** - * Cashu Wallet Unspent Proof - * - * - */ - CashuWalletUnspentProof, - /** - * Cashu Wallet Spending History - * - * - */ - CashuWalletSpendingHistory, -} - -const FfiConverterTypeKindStandard = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = KindStandard; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return KindStandard.Metadata; - case 2: - return KindStandard.TextNote; - case 3: - return KindStandard.ContactList; - case 4: - return KindStandard.OpenTimestamps; - case 5: - return KindStandard.EventDeletion; - case 6: - return KindStandard.Repost; - case 7: - return KindStandard.GenericRepost; - case 8: - return KindStandard.Comment; - case 9: - return KindStandard.Reaction; - case 10: - return KindStandard.BadgeAward; - case 11: - return KindStandard.ChannelCreation; - case 12: - return KindStandard.ChannelMetadata; - case 13: - return KindStandard.ChannelMessage; - case 14: - return KindStandard.ChannelHideMessage; - case 15: - return KindStandard.ChannelMuteUser; - case 16: - return KindStandard.GitPatch; - case 17: - return KindStandard.GitIssue; - case 18: - return KindStandard.GitReply; - case 19: - return KindStandard.GitStatusOpen; - case 20: - return KindStandard.GitStatusApplied; - case 21: - return KindStandard.GitStatusClosed; - case 22: - return KindStandard.GitStatusDraft; - case 23: - return KindStandard.Torrent; - case 24: - return KindStandard.TorrentComment; - case 25: - return KindStandard.Label; - case 26: - return KindStandard.WalletConnectInfo; - case 27: - return KindStandard.Reporting; - case 28: - return KindStandard.ZapPrivateMessage; - case 29: - return KindStandard.ZapRequest; - case 30: - return KindStandard.ZapReceipt; - case 31: - return KindStandard.MuteList; - case 32: - return KindStandard.PinList; - case 33: - return KindStandard.Bookmarks; - case 34: - return KindStandard.Communities; - case 35: - return KindStandard.PublicChats; - case 36: - return KindStandard.BlockedRelays; - case 37: - return KindStandard.SearchRelays; - case 38: - return KindStandard.SimpleGroups; - case 39: - return KindStandard.Interests; - case 40: - return KindStandard.Emojis; - case 41: - return KindStandard.FollowSet; - case 42: - return KindStandard.RelaySet; - case 43: - return KindStandard.BookmarkSet; - case 44: - return KindStandard.ArticlesCurationSet; - case 45: - return KindStandard.VideosCurationSet; - case 46: - return KindStandard.InterestSet; - case 47: - return KindStandard.EmojiSet; - case 48: - return KindStandard.ReleaseArtifactSet; - case 49: - return KindStandard.RelayList; - case 50: - return KindStandard.PeerToPeerOrder; - case 51: - return KindStandard.RequestToVanish; - case 52: - return KindStandard.Authentication; - case 53: - return KindStandard.WalletConnectRequest; - case 54: - return KindStandard.WalletConnectResponse; - case 55: - return KindStandard.NostrConnect; - case 56: - return KindStandard.LiveEvent; - case 57: - return KindStandard.LiveEventMessage; - case 58: - return KindStandard.ProfileBadges; - case 59: - return KindStandard.BadgeDefinition; - case 60: - return KindStandard.Seal; - case 61: - return KindStandard.GiftWrap; - case 62: - return KindStandard.PrivateDirectMessage; - case 63: - return KindStandard.InboxRelays; - case 64: - return KindStandard.MlsKeyPackageRelays; - case 65: - return KindStandard.MlsKeyPackage; - case 66: - return KindStandard.MlsWelcome; - case 67: - return KindStandard.MlsGroupMessage; - case 68: - return KindStandard.LongFormTextNote; - case 69: - return KindStandard.GitRepoAnnouncement; - case 70: - return KindStandard.ApplicationSpecificData; - case 71: - return KindStandard.FileMetadata; - case 72: - return KindStandard.HttpAuth; - case 73: - return KindStandard.SetStall; - case 74: - return KindStandard.SetProduct; - case 75: - return KindStandard.JobFeedback; - case 76: - return KindStandard.UserStatus; - case 77: - return KindStandard.CashuWallet; - case 78: - return KindStandard.CashuWalletUnspentProof; - case 79: - return KindStandard.CashuWalletSpendingHistory; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case KindStandard.Metadata: - return ordinalConverter.write(1, into); - case KindStandard.TextNote: - return ordinalConverter.write(2, into); - case KindStandard.ContactList: - return ordinalConverter.write(3, into); - case KindStandard.OpenTimestamps: - return ordinalConverter.write(4, into); - case KindStandard.EventDeletion: - return ordinalConverter.write(5, into); - case KindStandard.Repost: - return ordinalConverter.write(6, into); - case KindStandard.GenericRepost: - return ordinalConverter.write(7, into); - case KindStandard.Comment: - return ordinalConverter.write(8, into); - case KindStandard.Reaction: - return ordinalConverter.write(9, into); - case KindStandard.BadgeAward: - return ordinalConverter.write(10, into); - case KindStandard.ChannelCreation: - return ordinalConverter.write(11, into); - case KindStandard.ChannelMetadata: - return ordinalConverter.write(12, into); - case KindStandard.ChannelMessage: - return ordinalConverter.write(13, into); - case KindStandard.ChannelHideMessage: - return ordinalConverter.write(14, into); - case KindStandard.ChannelMuteUser: - return ordinalConverter.write(15, into); - case KindStandard.GitPatch: - return ordinalConverter.write(16, into); - case KindStandard.GitIssue: - return ordinalConverter.write(17, into); - case KindStandard.GitReply: - return ordinalConverter.write(18, into); - case KindStandard.GitStatusOpen: - return ordinalConverter.write(19, into); - case KindStandard.GitStatusApplied: - return ordinalConverter.write(20, into); - case KindStandard.GitStatusClosed: - return ordinalConverter.write(21, into); - case KindStandard.GitStatusDraft: - return ordinalConverter.write(22, into); - case KindStandard.Torrent: - return ordinalConverter.write(23, into); - case KindStandard.TorrentComment: - return ordinalConverter.write(24, into); - case KindStandard.Label: - return ordinalConverter.write(25, into); - case KindStandard.WalletConnectInfo: - return ordinalConverter.write(26, into); - case KindStandard.Reporting: - return ordinalConverter.write(27, into); - case KindStandard.ZapPrivateMessage: - return ordinalConverter.write(28, into); - case KindStandard.ZapRequest: - return ordinalConverter.write(29, into); - case KindStandard.ZapReceipt: - return ordinalConverter.write(30, into); - case KindStandard.MuteList: - return ordinalConverter.write(31, into); - case KindStandard.PinList: - return ordinalConverter.write(32, into); - case KindStandard.Bookmarks: - return ordinalConverter.write(33, into); - case KindStandard.Communities: - return ordinalConverter.write(34, into); - case KindStandard.PublicChats: - return ordinalConverter.write(35, into); - case KindStandard.BlockedRelays: - return ordinalConverter.write(36, into); - case KindStandard.SearchRelays: - return ordinalConverter.write(37, into); - case KindStandard.SimpleGroups: - return ordinalConverter.write(38, into); - case KindStandard.Interests: - return ordinalConverter.write(39, into); - case KindStandard.Emojis: - return ordinalConverter.write(40, into); - case KindStandard.FollowSet: - return ordinalConverter.write(41, into); - case KindStandard.RelaySet: - return ordinalConverter.write(42, into); - case KindStandard.BookmarkSet: - return ordinalConverter.write(43, into); - case KindStandard.ArticlesCurationSet: - return ordinalConverter.write(44, into); - case KindStandard.VideosCurationSet: - return ordinalConverter.write(45, into); - case KindStandard.InterestSet: - return ordinalConverter.write(46, into); - case KindStandard.EmojiSet: - return ordinalConverter.write(47, into); - case KindStandard.ReleaseArtifactSet: - return ordinalConverter.write(48, into); - case KindStandard.RelayList: - return ordinalConverter.write(49, into); - case KindStandard.PeerToPeerOrder: - return ordinalConverter.write(50, into); - case KindStandard.RequestToVanish: - return ordinalConverter.write(51, into); - case KindStandard.Authentication: - return ordinalConverter.write(52, into); - case KindStandard.WalletConnectRequest: - return ordinalConverter.write(53, into); - case KindStandard.WalletConnectResponse: - return ordinalConverter.write(54, into); - case KindStandard.NostrConnect: - return ordinalConverter.write(55, into); - case KindStandard.LiveEvent: - return ordinalConverter.write(56, into); - case KindStandard.LiveEventMessage: - return ordinalConverter.write(57, into); - case KindStandard.ProfileBadges: - return ordinalConverter.write(58, into); - case KindStandard.BadgeDefinition: - return ordinalConverter.write(59, into); - case KindStandard.Seal: - return ordinalConverter.write(60, into); - case KindStandard.GiftWrap: - return ordinalConverter.write(61, into); - case KindStandard.PrivateDirectMessage: - return ordinalConverter.write(62, into); - case KindStandard.InboxRelays: - return ordinalConverter.write(63, into); - case KindStandard.MlsKeyPackageRelays: - return ordinalConverter.write(64, into); - case KindStandard.MlsKeyPackage: - return ordinalConverter.write(65, into); - case KindStandard.MlsWelcome: - return ordinalConverter.write(66, into); - case KindStandard.MlsGroupMessage: - return ordinalConverter.write(67, into); - case KindStandard.LongFormTextNote: - return ordinalConverter.write(68, into); - case KindStandard.GitRepoAnnouncement: - return ordinalConverter.write(69, into); - case KindStandard.ApplicationSpecificData: - return ordinalConverter.write(70, into); - case KindStandard.FileMetadata: - return ordinalConverter.write(71, into); - case KindStandard.HttpAuth: - return ordinalConverter.write(72, into); - case KindStandard.SetStall: - return ordinalConverter.write(73, into); - case KindStandard.SetProduct: - return ordinalConverter.write(74, into); - case KindStandard.JobFeedback: - return ordinalConverter.write(75, into); - case KindStandard.UserStatus: - return ordinalConverter.write(76, into); - case KindStandard.CashuWallet: - return ordinalConverter.write(77, into); - case KindStandard.CashuWalletUnspentProof: - return ordinalConverter.write(78, into); - case KindStandard.CashuWalletSpendingHistory: - return ordinalConverter.write(79, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -/** - * Live Event Marker - */ -export enum LiveEventMarker { - /** - * Host - */ - Host, - /** - * Speaker - */ - Speaker, - /** - * Participant - */ - Participant, -} - -const FfiConverterTypeLiveEventMarker = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = LiveEventMarker; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return LiveEventMarker.Host; - case 2: - return LiveEventMarker.Speaker; - case 3: - return LiveEventMarker.Participant; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case LiveEventMarker.Host: - return ordinalConverter.write(1, into); - case LiveEventMarker.Speaker: - return ordinalConverter.write(2, into); - case LiveEventMarker.Participant: - return ordinalConverter.write(3, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: LiveEventStatus -export enum LiveEventStatus_Tags { - Planned = 'Planned', - Live = 'Live', - Ended = 'Ended', - Custom = 'Custom', -} -export const LiveEventStatus = (() => { - type Planned__interface = { - tag: LiveEventStatus_Tags.Planned; - }; - - class Planned_ extends UniffiEnum implements Planned__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'LiveEventStatus'; - readonly tag = LiveEventStatus_Tags.Planned; - constructor() { - super('LiveEventStatus', 'Planned'); - } - - static new(): Planned_ { - return new Planned_(); - } - - static instanceOf(obj: any): obj is Planned_ { - return obj.tag === LiveEventStatus_Tags.Planned; - } - } - - type Live__interface = { - tag: LiveEventStatus_Tags.Live; - }; - - class Live_ extends UniffiEnum implements Live__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'LiveEventStatus'; - readonly tag = LiveEventStatus_Tags.Live; - constructor() { - super('LiveEventStatus', 'Live'); - } - - static new(): Live_ { - return new Live_(); - } - - static instanceOf(obj: any): obj is Live_ { - return obj.tag === LiveEventStatus_Tags.Live; - } - } - - type Ended__interface = { - tag: LiveEventStatus_Tags.Ended; - }; - - class Ended_ extends UniffiEnum implements Ended__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'LiveEventStatus'; - readonly tag = LiveEventStatus_Tags.Ended; - constructor() { - super('LiveEventStatus', 'Ended'); - } - - static new(): Ended_ { - return new Ended_(); - } - - static instanceOf(obj: any): obj is Ended_ { - return obj.tag === LiveEventStatus_Tags.Ended; - } - } - - type Custom__interface = { - tag: LiveEventStatus_Tags.Custom; - inner: Readonly<{ custom: string }>; - }; - - class Custom_ extends UniffiEnum implements Custom__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'LiveEventStatus'; - readonly tag = LiveEventStatus_Tags.Custom; - readonly inner: Readonly<{ custom: string }>; - constructor(inner: { custom: string }) { - super('LiveEventStatus', 'Custom'); - this.inner = Object.freeze(inner); - } - - static new(inner: { custom: string }): Custom_ { - return new Custom_(inner); - } - - static instanceOf(obj: any): obj is Custom_ { - return obj.tag === LiveEventStatus_Tags.Custom; - } - } - - function instanceOf(obj: any): obj is LiveEventStatus { - return obj[uniffiTypeNameSymbol] === 'LiveEventStatus'; - } - - return Object.freeze({ - instanceOf, - Planned: Planned_, - Live: Live_, - Ended: Ended_, - Custom: Custom_, - }); -})(); - -export type LiveEventStatus = InstanceType< - (typeof LiveEventStatus)[keyof Omit] ->; - -// FfiConverter for enum LiveEventStatus -const FfiConverterTypeLiveEventStatus = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = LiveEventStatus; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new LiveEventStatus.Planned(); - case 2: - return new LiveEventStatus.Live(); - case 3: - return new LiveEventStatus.Ended(); - case 4: - return new LiveEventStatus.Custom({ - custom: FfiConverterString.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case LiveEventStatus_Tags.Planned: { - ordinalConverter.write(1, into); - return; - } - case LiveEventStatus_Tags.Live: { - ordinalConverter.write(2, into); - return; - } - case LiveEventStatus_Tags.Ended: { - ordinalConverter.write(3, into); - return; - } - case LiveEventStatus_Tags.Custom: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterString.write(inner.custom, into); - return; - } - default: - // Throwing from here means that LiveEventStatus_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case LiveEventStatus_Tags.Planned: { - return ordinalConverter.allocationSize(1); - } - case LiveEventStatus_Tags.Live: { - return ordinalConverter.allocationSize(2); - } - case LiveEventStatus_Tags.Ended: { - return ordinalConverter.allocationSize(3); - } - case LiveEventStatus_Tags.Custom: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterString.allocationSize(inner.custom); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -export enum LogLevel { - Error, - Warn, - Info, - Debug, - Trace, -} - -const FfiConverterTypeLogLevel = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = LogLevel; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return LogLevel.Error; - case 2: - return LogLevel.Warn; - case 3: - return LogLevel.Info; - case 4: - return LogLevel.Debug; - case 5: - return LogLevel.Trace; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case LogLevel.Error: - return ordinalConverter.write(1, into); - case LogLevel.Warn: - return ordinalConverter.write(2, into); - case LogLevel.Info: - return ordinalConverter.write(3, into); - case LogLevel.Debug: - return ordinalConverter.write(4, into); - case LogLevel.Trace: - return ordinalConverter.write(5, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -/** - * Marker - */ -export enum Marker { - /** - * Root - */ - Root, - /** - * Reply - */ - Reply, - /** - * Mention - */ - Mention, -} - -const FfiConverterTypeMarker = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = Marker; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return Marker.Root; - case 2: - return Marker.Reply; - case 3: - return Marker.Mention; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case Marker.Root: - return ordinalConverter.write(1, into); - case Marker.Reply: - return ordinalConverter.write(2, into); - case Marker.Mention: - return ordinalConverter.write(3, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -/** - * Method - */ -export enum Method { - /** - * Pay Invoice - */ - PayInvoice, - /** - * Multi Pay Invoice - */ - MultiPayInvoice, - /** - * Pay Keysend - */ - PayKeysend, - /** - * Multi Pay Keysend - */ - MultiPayKeysend, - /** - * Make Invoice - */ - MakeInvoice, - /** - * Lookup Invoice - */ - LookupInvoice, - /** - * List transactions - */ - ListTransactions, - /** - * Get Balance - */ - GetBalance, - /** - * Get Info - */ - GetInfo, -} - -const FfiConverterTypeMethod = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = Method; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return Method.PayInvoice; - case 2: - return Method.MultiPayInvoice; - case 3: - return Method.PayKeysend; - case 4: - return Method.MultiPayKeysend; - case 5: - return Method.MakeInvoice; - case 6: - return Method.LookupInvoice; - case 7: - return Method.ListTransactions; - case 8: - return Method.GetBalance; - case 9: - return Method.GetInfo; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case Method.PayInvoice: - return ordinalConverter.write(1, into); - case Method.MultiPayInvoice: - return ordinalConverter.write(2, into); - case Method.PayKeysend: - return ordinalConverter.write(3, into); - case Method.MultiPayKeysend: - return ordinalConverter.write(4, into); - case Method.MakeInvoice: - return ordinalConverter.write(5, into); - case Method.LookupInvoice: - return ordinalConverter.write(6, into); - case Method.ListTransactions: - return ordinalConverter.write(7, into); - case Method.GetBalance: - return ordinalConverter.write(8, into); - case Method.GetInfo: - return ordinalConverter.write(9, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: Nip19Enum -export enum Nip19Enum_Tags { - Secret = 'Secret', - EncryptedSecret = 'EncryptedSecret', - Pubkey = 'Pubkey', - Profile = 'Profile', - Note = 'Note', - Event = 'Event', - Addr = 'Addr', -} -/** - * A representation any `NIP19` bech32 nostr object. Useful for decoding - * `NIP19` bech32 strings without necessarily knowing what you're decoding - * ahead of time. - */ -export const Nip19Enum = (() => { - type Secret__interface = { - tag: Nip19Enum_Tags.Secret; - inner: Readonly<{ nsec: SecretKeyInterface }>; - }; - - /** - * nsec - */ - class Secret_ extends UniffiEnum implements Secret__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip19Enum'; - readonly tag = Nip19Enum_Tags.Secret; - readonly inner: Readonly<{ nsec: SecretKeyInterface }>; - constructor(inner: { nsec: SecretKeyInterface }) { - super('Nip19Enum', 'Secret'); - this.inner = Object.freeze(inner); - } - - static new(inner: { nsec: SecretKeyInterface }): Secret_ { - return new Secret_(inner); - } - - static instanceOf(obj: any): obj is Secret_ { - return obj.tag === Nip19Enum_Tags.Secret; - } - } - - type EncryptedSecret__interface = { - tag: Nip19Enum_Tags.EncryptedSecret; - inner: Readonly<{ ncryptsec: EncryptedSecretKeyInterface }>; - }; - - /** - * Encrypted Secret Key - */ - class EncryptedSecret_ - extends UniffiEnum - implements EncryptedSecret__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip19Enum'; - readonly tag = Nip19Enum_Tags.EncryptedSecret; - readonly inner: Readonly<{ ncryptsec: EncryptedSecretKeyInterface }>; - constructor(inner: { ncryptsec: EncryptedSecretKeyInterface }) { - super('Nip19Enum', 'EncryptedSecret'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - ncryptsec: EncryptedSecretKeyInterface; - }): EncryptedSecret_ { - return new EncryptedSecret_(inner); - } - - static instanceOf(obj: any): obj is EncryptedSecret_ { - return obj.tag === Nip19Enum_Tags.EncryptedSecret; - } - } - - type Pubkey__interface = { - tag: Nip19Enum_Tags.Pubkey; - inner: Readonly<{ npub: PublicKeyInterface }>; - }; - - /** - * npub - */ - class Pubkey_ extends UniffiEnum implements Pubkey__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip19Enum'; - readonly tag = Nip19Enum_Tags.Pubkey; - readonly inner: Readonly<{ npub: PublicKeyInterface }>; - constructor(inner: { npub: PublicKeyInterface }) { - super('Nip19Enum', 'Pubkey'); - this.inner = Object.freeze(inner); - } - - static new(inner: { npub: PublicKeyInterface }): Pubkey_ { - return new Pubkey_(inner); - } - - static instanceOf(obj: any): obj is Pubkey_ { - return obj.tag === Nip19Enum_Tags.Pubkey; - } - } - - type Profile__interface = { - tag: Nip19Enum_Tags.Profile; - inner: Readonly<{ nprofile: Nip19ProfileInterface }>; - }; - - /** - * nprofile - */ - class Profile_ extends UniffiEnum implements Profile__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip19Enum'; - readonly tag = Nip19Enum_Tags.Profile; - readonly inner: Readonly<{ nprofile: Nip19ProfileInterface }>; - constructor(inner: { nprofile: Nip19ProfileInterface }) { - super('Nip19Enum', 'Profile'); - this.inner = Object.freeze(inner); - } - - static new(inner: { nprofile: Nip19ProfileInterface }): Profile_ { - return new Profile_(inner); - } - - static instanceOf(obj: any): obj is Profile_ { - return obj.tag === Nip19Enum_Tags.Profile; - } - } - - type Note__interface = { - tag: Nip19Enum_Tags.Note; - inner: Readonly<{ eventId: EventIdInterface }>; - }; - - /** - * note - */ - class Note_ extends UniffiEnum implements Note__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip19Enum'; - readonly tag = Nip19Enum_Tags.Note; - readonly inner: Readonly<{ eventId: EventIdInterface }>; - constructor(inner: { eventId: EventIdInterface }) { - super('Nip19Enum', 'Note'); - this.inner = Object.freeze(inner); - } - - static new(inner: { eventId: EventIdInterface }): Note_ { - return new Note_(inner); - } - - static instanceOf(obj: any): obj is Note_ { - return obj.tag === Nip19Enum_Tags.Note; - } - } - - type Event__interface = { - tag: Nip19Enum_Tags.Event; - inner: Readonly<{ event: Nip19EventInterface }>; - }; - - /** - * nevent - */ - class Event_ extends UniffiEnum implements Event__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip19Enum'; - readonly tag = Nip19Enum_Tags.Event; - readonly inner: Readonly<{ event: Nip19EventInterface }>; - constructor(inner: { event: Nip19EventInterface }) { - super('Nip19Enum', 'Event'); - this.inner = Object.freeze(inner); - } - - static new(inner: { event: Nip19EventInterface }): Event_ { - return new Event_(inner); - } - - static instanceOf(obj: any): obj is Event_ { - return obj.tag === Nip19Enum_Tags.Event; - } - } - - type Addr__interface = { - tag: Nip19Enum_Tags.Addr; - inner: Readonly<{ coordinate: Nip19CoordinateInterface }>; - }; - - /** - * naddr - */ - class Addr_ extends UniffiEnum implements Addr__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip19Enum'; - readonly tag = Nip19Enum_Tags.Addr; - readonly inner: Readonly<{ coordinate: Nip19CoordinateInterface }>; - constructor(inner: { coordinate: Nip19CoordinateInterface }) { - super('Nip19Enum', 'Addr'); - this.inner = Object.freeze(inner); - } - - static new(inner: { coordinate: Nip19CoordinateInterface }): Addr_ { - return new Addr_(inner); - } - - static instanceOf(obj: any): obj is Addr_ { - return obj.tag === Nip19Enum_Tags.Addr; - } - } - - function instanceOf(obj: any): obj is Nip19Enum { - return obj[uniffiTypeNameSymbol] === 'Nip19Enum'; - } - - return Object.freeze({ - instanceOf, - Secret: Secret_, - EncryptedSecret: EncryptedSecret_, - Pubkey: Pubkey_, - Profile: Profile_, - Note: Note_, - Event: Event_, - Addr: Addr_, - }); -})(); - -/** - * A representation any `NIP19` bech32 nostr object. Useful for decoding - * `NIP19` bech32 strings without necessarily knowing what you're decoding - * ahead of time. - */ - -export type Nip19Enum = InstanceType< - (typeof Nip19Enum)[keyof Omit] ->; - -// FfiConverter for enum Nip19Enum -const FfiConverterTypeNip19Enum = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = Nip19Enum; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new Nip19Enum.Secret({ - nsec: FfiConverterTypeSecretKey.read(from), - }); - case 2: - return new Nip19Enum.EncryptedSecret({ - ncryptsec: FfiConverterTypeEncryptedSecretKey.read(from), - }); - case 3: - return new Nip19Enum.Pubkey({ - npub: FfiConverterTypePublicKey.read(from), - }); - case 4: - return new Nip19Enum.Profile({ - nprofile: FfiConverterTypeNip19Profile.read(from), - }); - case 5: - return new Nip19Enum.Note({ - eventId: FfiConverterTypeEventId.read(from), - }); - case 6: - return new Nip19Enum.Event({ - event: FfiConverterTypeNip19Event.read(from), - }); - case 7: - return new Nip19Enum.Addr({ - coordinate: FfiConverterTypeNip19Coordinate.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case Nip19Enum_Tags.Secret: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterTypeSecretKey.write(inner.nsec, into); - return; - } - case Nip19Enum_Tags.EncryptedSecret: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterTypeEncryptedSecretKey.write(inner.ncryptsec, into); - return; - } - case Nip19Enum_Tags.Pubkey: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.npub, into); - return; - } - case Nip19Enum_Tags.Profile: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterTypeNip19Profile.write(inner.nprofile, into); - return; - } - case Nip19Enum_Tags.Note: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterTypeEventId.write(inner.eventId, into); - return; - } - case Nip19Enum_Tags.Event: { - ordinalConverter.write(6, into); - const inner = value.inner; - FfiConverterTypeNip19Event.write(inner.event, into); - return; - } - case Nip19Enum_Tags.Addr: { - ordinalConverter.write(7, into); - const inner = value.inner; - FfiConverterTypeNip19Coordinate.write(inner.coordinate, into); - return; - } - default: - // Throwing from here means that Nip19Enum_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case Nip19Enum_Tags.Secret: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterTypeSecretKey.allocationSize(inner.nsec); - return size; - } - case Nip19Enum_Tags.EncryptedSecret: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterTypeEncryptedSecretKey.allocationSize( - inner.ncryptsec - ); - return size; - } - case Nip19Enum_Tags.Pubkey: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterTypePublicKey.allocationSize(inner.npub); - return size; - } - case Nip19Enum_Tags.Profile: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterTypeNip19Profile.allocationSize(inner.nprofile); - return size; - } - case Nip19Enum_Tags.Note: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterTypeEventId.allocationSize(inner.eventId); - return size; - } - case Nip19Enum_Tags.Event: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(6); - size += FfiConverterTypeNip19Event.allocationSize(inner.event); - return size; - } - case Nip19Enum_Tags.Addr: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(7); - size += FfiConverterTypeNip19Coordinate.allocationSize( - inner.coordinate - ); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Enum: Nip21Enum -export enum Nip21Enum_Tags { - Pubkey = 'Pubkey', - Profile = 'Profile', - Note = 'Note', - Event = 'Event', - Addr = 'Addr', -} -/** - * A representation any `NIP21` object. Useful for decoding - * `NIP21` strings without necessarily knowing what you're decoding - * ahead of time. - */ -export const Nip21Enum = (() => { - type Pubkey__interface = { - tag: Nip21Enum_Tags.Pubkey; - inner: Readonly<{ publicKey: PublicKeyInterface }>; - }; - - /** - * nostr::npub - */ - class Pubkey_ extends UniffiEnum implements Pubkey__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip21Enum'; - readonly tag = Nip21Enum_Tags.Pubkey; - readonly inner: Readonly<{ publicKey: PublicKeyInterface }>; - constructor(inner: { publicKey: PublicKeyInterface }) { - super('Nip21Enum', 'Pubkey'); - this.inner = Object.freeze(inner); - } - - static new(inner: { publicKey: PublicKeyInterface }): Pubkey_ { - return new Pubkey_(inner); - } - - static instanceOf(obj: any): obj is Pubkey_ { - return obj.tag === Nip21Enum_Tags.Pubkey; - } - } - - type Profile__interface = { - tag: Nip21Enum_Tags.Profile; - inner: Readonly<{ profile: Nip19ProfileInterface }>; - }; - - /** - * nostr::nprofile - */ - class Profile_ extends UniffiEnum implements Profile__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip21Enum'; - readonly tag = Nip21Enum_Tags.Profile; - readonly inner: Readonly<{ profile: Nip19ProfileInterface }>; - constructor(inner: { profile: Nip19ProfileInterface }) { - super('Nip21Enum', 'Profile'); - this.inner = Object.freeze(inner); - } - - static new(inner: { profile: Nip19ProfileInterface }): Profile_ { - return new Profile_(inner); - } - - static instanceOf(obj: any): obj is Profile_ { - return obj.tag === Nip21Enum_Tags.Profile; - } - } - - type Note__interface = { - tag: Nip21Enum_Tags.Note; - inner: Readonly<{ eventId: EventIdInterface }>; - }; - - /** - * nostr::note (EventId) - */ - class Note_ extends UniffiEnum implements Note__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip21Enum'; - readonly tag = Nip21Enum_Tags.Note; - readonly inner: Readonly<{ eventId: EventIdInterface }>; - constructor(inner: { eventId: EventIdInterface }) { - super('Nip21Enum', 'Note'); - this.inner = Object.freeze(inner); - } - - static new(inner: { eventId: EventIdInterface }): Note_ { - return new Note_(inner); - } - - static instanceOf(obj: any): obj is Note_ { - return obj.tag === Nip21Enum_Tags.Note; - } - } - - type Event__interface = { - tag: Nip21Enum_Tags.Event; - inner: Readonly<{ event: Nip19EventInterface }>; - }; - - /** - * nostr::nevent - */ - class Event_ extends UniffiEnum implements Event__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip21Enum'; - readonly tag = Nip21Enum_Tags.Event; - readonly inner: Readonly<{ event: Nip19EventInterface }>; - constructor(inner: { event: Nip19EventInterface }) { - super('Nip21Enum', 'Event'); - this.inner = Object.freeze(inner); - } - - static new(inner: { event: Nip19EventInterface }): Event_ { - return new Event_(inner); - } - - static instanceOf(obj: any): obj is Event_ { - return obj.tag === Nip21Enum_Tags.Event; - } - } - - type Addr__interface = { - tag: Nip21Enum_Tags.Addr; - inner: Readonly<{ coordinate: Nip19CoordinateInterface }>; - }; - - /** - * nostr::naddr - */ - class Addr_ extends UniffiEnum implements Addr__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip21Enum'; - readonly tag = Nip21Enum_Tags.Addr; - readonly inner: Readonly<{ coordinate: Nip19CoordinateInterface }>; - constructor(inner: { coordinate: Nip19CoordinateInterface }) { - super('Nip21Enum', 'Addr'); - this.inner = Object.freeze(inner); - } - - static new(inner: { coordinate: Nip19CoordinateInterface }): Addr_ { - return new Addr_(inner); - } - - static instanceOf(obj: any): obj is Addr_ { - return obj.tag === Nip21Enum_Tags.Addr; - } - } - - function instanceOf(obj: any): obj is Nip21Enum { - return obj[uniffiTypeNameSymbol] === 'Nip21Enum'; - } - - return Object.freeze({ - instanceOf, - Pubkey: Pubkey_, - Profile: Profile_, - Note: Note_, - Event: Event_, - Addr: Addr_, - }); -})(); - -/** - * A representation any `NIP21` object. Useful for decoding - * `NIP21` strings without necessarily knowing what you're decoding - * ahead of time. - */ - -export type Nip21Enum = InstanceType< - (typeof Nip21Enum)[keyof Omit] ->; - -// FfiConverter for enum Nip21Enum -const FfiConverterTypeNip21Enum = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = Nip21Enum; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new Nip21Enum.Pubkey({ - publicKey: FfiConverterTypePublicKey.read(from), - }); - case 2: - return new Nip21Enum.Profile({ - profile: FfiConverterTypeNip19Profile.read(from), - }); - case 3: - return new Nip21Enum.Note({ - eventId: FfiConverterTypeEventId.read(from), - }); - case 4: - return new Nip21Enum.Event({ - event: FfiConverterTypeNip19Event.read(from), - }); - case 5: - return new Nip21Enum.Addr({ - coordinate: FfiConverterTypeNip19Coordinate.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case Nip21Enum_Tags.Pubkey: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.publicKey, into); - return; - } - case Nip21Enum_Tags.Profile: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterTypeNip19Profile.write(inner.profile, into); - return; - } - case Nip21Enum_Tags.Note: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterTypeEventId.write(inner.eventId, into); - return; - } - case Nip21Enum_Tags.Event: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterTypeNip19Event.write(inner.event, into); - return; - } - case Nip21Enum_Tags.Addr: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterTypeNip19Coordinate.write(inner.coordinate, into); - return; - } - default: - // Throwing from here means that Nip21Enum_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case Nip21Enum_Tags.Pubkey: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterTypePublicKey.allocationSize(inner.publicKey); - return size; - } - case Nip21Enum_Tags.Profile: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterTypeNip19Profile.allocationSize(inner.profile); - return size; - } - case Nip21Enum_Tags.Note: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterTypeEventId.allocationSize(inner.eventId); - return size; - } - case Nip21Enum_Tags.Event: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterTypeNip19Event.allocationSize(inner.event); - return size; - } - case Nip21Enum_Tags.Addr: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterTypeNip19Coordinate.allocationSize( - inner.coordinate - ); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -/** - * NIP44 Version - */ -export enum Nip44Version { - /** - * V2 - Secp256k1 ECDH, HKDF, padding, ChaCha20, HMAC-SHA256 and base64 - */ - V2, -} - -const FfiConverterTypeNip44Version = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = Nip44Version; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return Nip44Version.V2; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case Nip44Version.V2: - return ordinalConverter.write(1, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: Nip46Request -export enum Nip46Request_Tags { - Connect = 'Connect', - GetPublicKey = 'GetPublicKey', - SignEvent = 'SignEvent', - GetRelays = 'GetRelays', - Nip04Encrypt = 'Nip04Encrypt', - Nip04Decrypt = 'Nip04Decrypt', - Nip44Encrypt = 'Nip44Encrypt', - Nip44Decrypt = 'Nip44Decrypt', - Ping = 'Ping', -} -/** - * Request (NIP46) - */ -export const Nip46Request = (() => { - type Connect__interface = { - tag: Nip46Request_Tags.Connect; - inner: Readonly<{ - publicKey: PublicKeyInterface; - secret: string | undefined; - }>; - }; - - /** - * Connect - */ - class Connect_ extends UniffiEnum implements Connect__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip46Request'; - readonly tag = Nip46Request_Tags.Connect; - readonly inner: Readonly<{ - publicKey: PublicKeyInterface; - secret: string | undefined; - }>; - constructor(inner: { - /** - * Remote public key - */ publicKey: PublicKeyInterface; - /** - * Optional secret - */ secret: string | undefined; - }) { - super('Nip46Request', 'Connect'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * Remote public key - */ publicKey: PublicKeyInterface; - /** - * Optional secret - */ secret: string | undefined; - }): Connect_ { - return new Connect_(inner); - } - - static instanceOf(obj: any): obj is Connect_ { - return obj.tag === Nip46Request_Tags.Connect; - } - } - - type GetPublicKey__interface = { - tag: Nip46Request_Tags.GetPublicKey; - }; - - /** - * Get public key - */ - class GetPublicKey_ extends UniffiEnum implements GetPublicKey__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip46Request'; - readonly tag = Nip46Request_Tags.GetPublicKey; - constructor() { - super('Nip46Request', 'GetPublicKey'); - } - - static new(): GetPublicKey_ { - return new GetPublicKey_(); - } - - static instanceOf(obj: any): obj is GetPublicKey_ { - return obj.tag === Nip46Request_Tags.GetPublicKey; - } - } - - type SignEvent__interface = { - tag: Nip46Request_Tags.SignEvent; - inner: Readonly<{ unsignedEvent: UnsignedEventInterface }>; - }; - - /** - * Sign [`UnsignedEvent`] - */ - class SignEvent_ extends UniffiEnum implements SignEvent__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip46Request'; - readonly tag = Nip46Request_Tags.SignEvent; - readonly inner: Readonly<{ unsignedEvent: UnsignedEventInterface }>; - constructor(inner: { unsignedEvent: UnsignedEventInterface }) { - super('Nip46Request', 'SignEvent'); - this.inner = Object.freeze(inner); - } - - static new(inner: { unsignedEvent: UnsignedEventInterface }): SignEvent_ { - return new SignEvent_(inner); - } - - static instanceOf(obj: any): obj is SignEvent_ { - return obj.tag === Nip46Request_Tags.SignEvent; - } - } - - type GetRelays__interface = { - tag: Nip46Request_Tags.GetRelays; - }; - - /** - * Get relays - */ - class GetRelays_ extends UniffiEnum implements GetRelays__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip46Request'; - readonly tag = Nip46Request_Tags.GetRelays; - constructor() { - super('Nip46Request', 'GetRelays'); - } - - static new(): GetRelays_ { - return new GetRelays_(); - } - - static instanceOf(obj: any): obj is GetRelays_ { - return obj.tag === Nip46Request_Tags.GetRelays; - } - } - - type Nip04Encrypt__interface = { - tag: Nip46Request_Tags.Nip04Encrypt; - inner: Readonly<{ publicKey: PublicKeyInterface; text: string }>; - }; - - /** - * Encrypt text (NIP04) - */ - class Nip04Encrypt_ extends UniffiEnum implements Nip04Encrypt__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip46Request'; - readonly tag = Nip46Request_Tags.Nip04Encrypt; - readonly inner: Readonly<{ publicKey: PublicKeyInterface; text: string }>; - constructor(inner: { - /** - * Pubkey - */ publicKey: PublicKeyInterface; - /** - * Plain text - */ text: string; - }) { - super('Nip46Request', 'Nip04Encrypt'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * Pubkey - */ publicKey: PublicKeyInterface; - /** - * Plain text - */ text: string; - }): Nip04Encrypt_ { - return new Nip04Encrypt_(inner); - } - - static instanceOf(obj: any): obj is Nip04Encrypt_ { - return obj.tag === Nip46Request_Tags.Nip04Encrypt; - } - } - - type Nip04Decrypt__interface = { - tag: Nip46Request_Tags.Nip04Decrypt; - inner: Readonly<{ publicKey: PublicKeyInterface; ciphertext: string }>; - }; - - /** - * Decrypt (NIP04) - */ - class Nip04Decrypt_ extends UniffiEnum implements Nip04Decrypt__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip46Request'; - readonly tag = Nip46Request_Tags.Nip04Decrypt; - readonly inner: Readonly<{ - publicKey: PublicKeyInterface; - ciphertext: string; - }>; - constructor(inner: { - /** - * Pubkey - */ publicKey: PublicKeyInterface; - /** - * Ciphertext - */ ciphertext: string; - }) { - super('Nip46Request', 'Nip04Decrypt'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * Pubkey - */ publicKey: PublicKeyInterface; - /** - * Ciphertext - */ ciphertext: string; - }): Nip04Decrypt_ { - return new Nip04Decrypt_(inner); - } - - static instanceOf(obj: any): obj is Nip04Decrypt_ { - return obj.tag === Nip46Request_Tags.Nip04Decrypt; - } - } - - type Nip44Encrypt__interface = { - tag: Nip46Request_Tags.Nip44Encrypt; - inner: Readonly<{ publicKey: PublicKeyInterface; text: string }>; - }; - - /** - * Encrypt text (NIP44) - */ - class Nip44Encrypt_ extends UniffiEnum implements Nip44Encrypt__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip46Request'; - readonly tag = Nip46Request_Tags.Nip44Encrypt; - readonly inner: Readonly<{ publicKey: PublicKeyInterface; text: string }>; - constructor(inner: { - /** - * Pubkey - */ publicKey: PublicKeyInterface; - /** - * Plain text - */ text: string; - }) { - super('Nip46Request', 'Nip44Encrypt'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * Pubkey - */ publicKey: PublicKeyInterface; - /** - * Plain text - */ text: string; - }): Nip44Encrypt_ { - return new Nip44Encrypt_(inner); - } - - static instanceOf(obj: any): obj is Nip44Encrypt_ { - return obj.tag === Nip46Request_Tags.Nip44Encrypt; - } - } - - type Nip44Decrypt__interface = { - tag: Nip46Request_Tags.Nip44Decrypt; - inner: Readonly<{ publicKey: PublicKeyInterface; ciphertext: string }>; - }; - - /** - * Decrypt (NIP44) - */ - class Nip44Decrypt_ extends UniffiEnum implements Nip44Decrypt__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip46Request'; - readonly tag = Nip46Request_Tags.Nip44Decrypt; - readonly inner: Readonly<{ - publicKey: PublicKeyInterface; - ciphertext: string; - }>; - constructor(inner: { - /** - * Pubkey - */ publicKey: PublicKeyInterface; - /** - * Ciphertext - */ ciphertext: string; - }) { - super('Nip46Request', 'Nip44Decrypt'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * Pubkey - */ publicKey: PublicKeyInterface; - /** - * Ciphertext - */ ciphertext: string; - }): Nip44Decrypt_ { - return new Nip44Decrypt_(inner); - } - - static instanceOf(obj: any): obj is Nip44Decrypt_ { - return obj.tag === Nip46Request_Tags.Nip44Decrypt; - } - } - - type Ping__interface = { - tag: Nip46Request_Tags.Ping; - }; - - /** - * Ping - */ - class Ping_ extends UniffiEnum implements Ping__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Nip46Request'; - readonly tag = Nip46Request_Tags.Ping; - constructor() { - super('Nip46Request', 'Ping'); - } - - static new(): Ping_ { - return new Ping_(); - } - - static instanceOf(obj: any): obj is Ping_ { - return obj.tag === Nip46Request_Tags.Ping; - } - } - - function instanceOf(obj: any): obj is Nip46Request { - return obj[uniffiTypeNameSymbol] === 'Nip46Request'; - } - - return Object.freeze({ - instanceOf, - Connect: Connect_, - GetPublicKey: GetPublicKey_, - SignEvent: SignEvent_, - GetRelays: GetRelays_, - Nip04Encrypt: Nip04Encrypt_, - Nip04Decrypt: Nip04Decrypt_, - Nip44Encrypt: Nip44Encrypt_, - Nip44Decrypt: Nip44Decrypt_, - Ping: Ping_, - }); -})(); - -/** - * Request (NIP46) - */ - -export type Nip46Request = InstanceType< - (typeof Nip46Request)[keyof Omit] ->; - -// FfiConverter for enum Nip46Request -const FfiConverterTypeNip46Request = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = Nip46Request; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new Nip46Request.Connect({ - publicKey: FfiConverterTypePublicKey.read(from), - secret: FfiConverterOptionalString.read(from), - }); - case 2: - return new Nip46Request.GetPublicKey(); - case 3: - return new Nip46Request.SignEvent({ - unsignedEvent: FfiConverterTypeUnsignedEvent.read(from), - }); - case 4: - return new Nip46Request.GetRelays(); - case 5: - return new Nip46Request.Nip04Encrypt({ - publicKey: FfiConverterTypePublicKey.read(from), - text: FfiConverterString.read(from), - }); - case 6: - return new Nip46Request.Nip04Decrypt({ - publicKey: FfiConverterTypePublicKey.read(from), - ciphertext: FfiConverterString.read(from), - }); - case 7: - return new Nip46Request.Nip44Encrypt({ - publicKey: FfiConverterTypePublicKey.read(from), - text: FfiConverterString.read(from), - }); - case 8: - return new Nip46Request.Nip44Decrypt({ - publicKey: FfiConverterTypePublicKey.read(from), - ciphertext: FfiConverterString.read(from), - }); - case 9: - return new Nip46Request.Ping(); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case Nip46Request_Tags.Connect: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.publicKey, into); - FfiConverterOptionalString.write(inner.secret, into); - return; - } - case Nip46Request_Tags.GetPublicKey: { - ordinalConverter.write(2, into); - return; - } - case Nip46Request_Tags.SignEvent: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterTypeUnsignedEvent.write(inner.unsignedEvent, into); - return; - } - case Nip46Request_Tags.GetRelays: { - ordinalConverter.write(4, into); - return; - } - case Nip46Request_Tags.Nip04Encrypt: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.publicKey, into); - FfiConverterString.write(inner.text, into); - return; - } - case Nip46Request_Tags.Nip04Decrypt: { - ordinalConverter.write(6, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.publicKey, into); - FfiConverterString.write(inner.ciphertext, into); - return; - } - case Nip46Request_Tags.Nip44Encrypt: { - ordinalConverter.write(7, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.publicKey, into); - FfiConverterString.write(inner.text, into); - return; - } - case Nip46Request_Tags.Nip44Decrypt: { - ordinalConverter.write(8, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.publicKey, into); - FfiConverterString.write(inner.ciphertext, into); - return; - } - case Nip46Request_Tags.Ping: { - ordinalConverter.write(9, into); - return; - } - default: - // Throwing from here means that Nip46Request_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case Nip46Request_Tags.Connect: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterTypePublicKey.allocationSize(inner.publicKey); - size += FfiConverterOptionalString.allocationSize(inner.secret); - return size; - } - case Nip46Request_Tags.GetPublicKey: { - return ordinalConverter.allocationSize(2); - } - case Nip46Request_Tags.SignEvent: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterTypeUnsignedEvent.allocationSize( - inner.unsignedEvent - ); - return size; - } - case Nip46Request_Tags.GetRelays: { - return ordinalConverter.allocationSize(4); - } - case Nip46Request_Tags.Nip04Encrypt: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterTypePublicKey.allocationSize(inner.publicKey); - size += FfiConverterString.allocationSize(inner.text); - return size; - } - case Nip46Request_Tags.Nip04Decrypt: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(6); - size += FfiConverterTypePublicKey.allocationSize(inner.publicKey); - size += FfiConverterString.allocationSize(inner.ciphertext); - return size; - } - case Nip46Request_Tags.Nip44Encrypt: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(7); - size += FfiConverterTypePublicKey.allocationSize(inner.publicKey); - size += FfiConverterString.allocationSize(inner.text); - return size; - } - case Nip46Request_Tags.Nip44Decrypt: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(8); - size += FfiConverterTypePublicKey.allocationSize(inner.publicKey); - size += FfiConverterString.allocationSize(inner.ciphertext); - return size; - } - case Nip46Request_Tags.Ping: { - return ordinalConverter.allocationSize(9); - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Enum: NostrConnectMessage -export enum NostrConnectMessage_Tags { - Request = 'Request', - Response = 'Response', -} -export const NostrConnectMessage = (() => { - type Request__interface = { - tag: NostrConnectMessage_Tags.Request; - inner: Readonly<{ id: string; method: string; params: Array }>; - }; - - class Request_ extends UniffiEnum implements Request__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'NostrConnectMessage'; - readonly tag = NostrConnectMessage_Tags.Request; - readonly inner: Readonly<{ - id: string; - method: string; - params: Array; - }>; - constructor(inner: { id: string; method: string; params: Array }) { - super('NostrConnectMessage', 'Request'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - id: string; - method: string; - params: Array; - }): Request_ { - return new Request_(inner); - } - - static instanceOf(obj: any): obj is Request_ { - return obj.tag === NostrConnectMessage_Tags.Request; - } - } - - type Response__interface = { - tag: NostrConnectMessage_Tags.Response; - inner: Readonly<{ - id: string; - result: string | undefined; - error: string | undefined; - }>; - }; - - class Response_ extends UniffiEnum implements Response__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'NostrConnectMessage'; - readonly tag = NostrConnectMessage_Tags.Response; - readonly inner: Readonly<{ - id: string; - result: string | undefined; - error: string | undefined; - }>; - constructor(inner: { - id: string; - result: string | undefined; - error: string | undefined; - }) { - super('NostrConnectMessage', 'Response'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - id: string; - result: string | undefined; - error: string | undefined; - }): Response_ { - return new Response_(inner); - } - - static instanceOf(obj: any): obj is Response_ { - return obj.tag === NostrConnectMessage_Tags.Response; - } - } - - function instanceOf(obj: any): obj is NostrConnectMessage { - return obj[uniffiTypeNameSymbol] === 'NostrConnectMessage'; - } - - return Object.freeze({ - instanceOf, - Request: Request_, - Response: Response_, - }); -})(); - -export type NostrConnectMessage = InstanceType< - (typeof NostrConnectMessage)[keyof Omit< - typeof NostrConnectMessage, - 'instanceOf' - >] ->; - -// FfiConverter for enum NostrConnectMessage -const FfiConverterTypeNostrConnectMessage = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = NostrConnectMessage; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new NostrConnectMessage.Request({ - id: FfiConverterString.read(from), - method: FfiConverterString.read(from), - params: FfiConverterArrayString.read(from), - }); - case 2: - return new NostrConnectMessage.Response({ - id: FfiConverterString.read(from), - result: FfiConverterOptionalString.read(from), - error: FfiConverterOptionalString.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case NostrConnectMessage_Tags.Request: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterString.write(inner.id, into); - FfiConverterString.write(inner.method, into); - FfiConverterArrayString.write(inner.params, into); - return; - } - case NostrConnectMessage_Tags.Response: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterString.write(inner.id, into); - FfiConverterOptionalString.write(inner.result, into); - FfiConverterOptionalString.write(inner.error, into); - return; - } - default: - // Throwing from here means that NostrConnectMessage_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case NostrConnectMessage_Tags.Request: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterString.allocationSize(inner.id); - size += FfiConverterString.allocationSize(inner.method); - size += FfiConverterArrayString.allocationSize(inner.params); - return size; - } - case NostrConnectMessage_Tags.Response: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterString.allocationSize(inner.id); - size += FfiConverterOptionalString.allocationSize(inner.result); - size += FfiConverterOptionalString.allocationSize(inner.error); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Flat error type: NostrSdkError -export enum NostrSdkError_Tags { - Generic = 'Generic', -} -export const NostrSdkError = (() => { - class Generic extends UniffiError { - /** - * @private - * This field is private and should not be used. - */ - readonly [uniffiTypeNameSymbol]: string = 'NostrSdkError'; - /** - * @private - * This field is private and should not be used. - */ - readonly [variantOrdinalSymbol] = 1; - - public readonly tag = NostrSdkError_Tags.Generic; - - constructor(message: string) { - super('NostrSdkError', 'Generic', message); - } - - static instanceOf(e: any): e is Generic { - return instanceOf(e) && (e as any)[variantOrdinalSymbol] === 1; - } - } - - // Utility function which does not rely on instanceof. - function instanceOf(e: any): e is NostrSdkError { - return (e as any)[uniffiTypeNameSymbol] === 'NostrSdkError'; - } - return { - Generic, - instanceOf, - }; -})(); - -// Union type for NostrSdkError error type. - -export type NostrSdkError = InstanceType< - (typeof NostrSdkError)[keyof Omit] ->; - -const FfiConverterTypeNostrSdkError = (() => { - const intConverter = FfiConverterInt32; - type TypeName = NostrSdkError; - class FfiConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (intConverter.read(from)) { - case 1: - return new NostrSdkError.Generic(FfiConverterString.read(from)); - - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - const obj = value as any; - const index = obj[variantOrdinalSymbol] as number; - intConverter.write(index, into); - } - allocationSize(value: TypeName): number { - return intConverter.allocationSize(0); - } - } - return new FfiConverter(); -})(); - -// Enum: Protocol -export enum Protocol_Tags { - ActivityPub = 'ActivityPub', - AtProto = 'ATProto', - Rss = 'Rss', - Web = 'Web', - Custom = 'Custom', -} -/** - * NIP48 Proxy Protocol - */ -export const Protocol = (() => { - type ActivityPub__interface = { - tag: Protocol_Tags.ActivityPub; - }; - - /** - * ActivityPub - */ - class ActivityPub_ extends UniffiEnum implements ActivityPub__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Protocol'; - readonly tag = Protocol_Tags.ActivityPub; - constructor() { - super('Protocol', 'ActivityPub'); - } - - static new(): ActivityPub_ { - return new ActivityPub_(); - } - - static instanceOf(obj: any): obj is ActivityPub_ { - return obj.tag === Protocol_Tags.ActivityPub; - } - } - - type AtProto__interface = { - tag: Protocol_Tags.AtProto; - }; - - /** - * AT Protocol - */ - class AtProto_ extends UniffiEnum implements AtProto__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Protocol'; - readonly tag = Protocol_Tags.AtProto; - constructor() { - super('Protocol', 'AtProto'); - } - - static new(): AtProto_ { - return new AtProto_(); - } - - static instanceOf(obj: any): obj is AtProto_ { - return obj.tag === Protocol_Tags.AtProto; - } - } - - type Rss__interface = { - tag: Protocol_Tags.Rss; - }; - - /** - * Rss - */ - class Rss_ extends UniffiEnum implements Rss__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Protocol'; - readonly tag = Protocol_Tags.Rss; - constructor() { - super('Protocol', 'Rss'); - } - - static new(): Rss_ { - return new Rss_(); - } - - static instanceOf(obj: any): obj is Rss_ { - return obj.tag === Protocol_Tags.Rss; - } - } - - type Web__interface = { - tag: Protocol_Tags.Web; - }; - - /** - * Web - */ - class Web_ extends UniffiEnum implements Web__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Protocol'; - readonly tag = Protocol_Tags.Web; - constructor() { - super('Protocol', 'Web'); - } - - static new(): Web_ { - return new Web_(); - } - - static instanceOf(obj: any): obj is Web_ { - return obj.tag === Protocol_Tags.Web; - } - } - - type Custom__interface = { - tag: Protocol_Tags.Custom; - inner: Readonly<{ custom: string }>; - }; - - /** - * Custom - */ - class Custom_ extends UniffiEnum implements Custom__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'Protocol'; - readonly tag = Protocol_Tags.Custom; - readonly inner: Readonly<{ custom: string }>; - constructor(inner: { custom: string }) { - super('Protocol', 'Custom'); - this.inner = Object.freeze(inner); - } - - static new(inner: { custom: string }): Custom_ { - return new Custom_(inner); - } - - static instanceOf(obj: any): obj is Custom_ { - return obj.tag === Protocol_Tags.Custom; - } - } - - function instanceOf(obj: any): obj is Protocol { - return obj[uniffiTypeNameSymbol] === 'Protocol'; - } - - return Object.freeze({ - instanceOf, - ActivityPub: ActivityPub_, - AtProto: AtProto_, - Rss: Rss_, - Web: Web_, - Custom: Custom_, - }); -})(); - -/** - * NIP48 Proxy Protocol - */ - -export type Protocol = InstanceType< - (typeof Protocol)[keyof Omit] ->; - -// FfiConverter for enum Protocol -const FfiConverterTypeProtocol = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = Protocol; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new Protocol.ActivityPub(); - case 2: - return new Protocol.AtProto(); - case 3: - return new Protocol.Rss(); - case 4: - return new Protocol.Web(); - case 5: - return new Protocol.Custom({ custom: FfiConverterString.read(from) }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case Protocol_Tags.ActivityPub: { - ordinalConverter.write(1, into); - return; - } - case Protocol_Tags.AtProto: { - ordinalConverter.write(2, into); - return; - } - case Protocol_Tags.Rss: { - ordinalConverter.write(3, into); - return; - } - case Protocol_Tags.Web: { - ordinalConverter.write(4, into); - return; - } - case Protocol_Tags.Custom: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterString.write(inner.custom, into); - return; - } - default: - // Throwing from here means that Protocol_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case Protocol_Tags.ActivityPub: { - return ordinalConverter.allocationSize(1); - } - case Protocol_Tags.AtProto: { - return ordinalConverter.allocationSize(2); - } - case Protocol_Tags.Rss: { - return ordinalConverter.allocationSize(3); - } - case Protocol_Tags.Web: { - return ordinalConverter.allocationSize(4); - } - case Protocol_Tags.Custom: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterString.allocationSize(inner.custom); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -/** - * Reason why event wasn't stored into the database - */ -export enum RejectedReason { - /** - * Ephemeral events aren't expected to be stored - */ - Ephemeral, - /** - * The event already exists - */ - Duplicate, - /** - * The event was deleted - */ - Deleted, - /** - * The event is expired - */ - Expired, - /** - * The event was replaced - */ - Replaced, - /** - * Attempt to delete a non-owned event - */ - InvalidDelete, - /** - * Other reason - */ - Other, -} - -const FfiConverterTypeRejectedReason = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = RejectedReason; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return RejectedReason.Ephemeral; - case 2: - return RejectedReason.Duplicate; - case 3: - return RejectedReason.Deleted; - case 4: - return RejectedReason.Expired; - case 5: - return RejectedReason.Replaced; - case 6: - return RejectedReason.InvalidDelete; - case 7: - return RejectedReason.Other; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case RejectedReason.Ephemeral: - return ordinalConverter.write(1, into); - case RejectedReason.Duplicate: - return ordinalConverter.write(2, into); - case RejectedReason.Deleted: - return ordinalConverter.write(3, into); - case RejectedReason.Expired: - return ordinalConverter.write(4, into); - case RejectedReason.Replaced: - return ordinalConverter.write(5, into); - case RejectedReason.InvalidDelete: - return ordinalConverter.write(6, into); - case RejectedReason.Other: - return ordinalConverter.write(7, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: RelayMessageEnum -export enum RelayMessageEnum_Tags { - EventMsg = 'EventMsg', - Ok = 'Ok', - EndOfStoredEvents = 'EndOfStoredEvents', - Notice = 'Notice', - Closed = 'Closed', - Auth = 'Auth', - Count = 'Count', - NegMsg = 'NegMsg', - NegErr = 'NegErr', -} -export const RelayMessageEnum = (() => { - type EventMsg__interface = { - tag: RelayMessageEnum_Tags.EventMsg; - inner: Readonly<{ subscriptionId: string; event: EventInterface }>; - }; - - class EventMsg_ extends UniffiEnum implements EventMsg__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RelayMessageEnum'; - readonly tag = RelayMessageEnum_Tags.EventMsg; - readonly inner: Readonly<{ subscriptionId: string; event: EventInterface }>; - constructor(inner: { subscriptionId: string; event: EventInterface }) { - super('RelayMessageEnum', 'EventMsg'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - subscriptionId: string; - event: EventInterface; - }): EventMsg_ { - return new EventMsg_(inner); - } - - static instanceOf(obj: any): obj is EventMsg_ { - return obj.tag === RelayMessageEnum_Tags.EventMsg; - } - } - - type Ok__interface = { - tag: RelayMessageEnum_Tags.Ok; - inner: Readonly<{ - eventId: EventIdInterface; - status: boolean; - message: string; - }>; - }; - - class Ok_ extends UniffiEnum implements Ok__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RelayMessageEnum'; - readonly tag = RelayMessageEnum_Tags.Ok; - readonly inner: Readonly<{ - eventId: EventIdInterface; - status: boolean; - message: string; - }>; - constructor(inner: { - eventId: EventIdInterface; - status: boolean; - message: string; - }) { - super('RelayMessageEnum', 'Ok'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - eventId: EventIdInterface; - status: boolean; - message: string; - }): Ok_ { - return new Ok_(inner); - } - - static instanceOf(obj: any): obj is Ok_ { - return obj.tag === RelayMessageEnum_Tags.Ok; - } - } - - type EndOfStoredEvents__interface = { - tag: RelayMessageEnum_Tags.EndOfStoredEvents; - inner: Readonly<{ subscriptionId: string }>; - }; - - class EndOfStoredEvents_ - extends UniffiEnum - implements EndOfStoredEvents__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RelayMessageEnum'; - readonly tag = RelayMessageEnum_Tags.EndOfStoredEvents; - readonly inner: Readonly<{ subscriptionId: string }>; - constructor(inner: { subscriptionId: string }) { - super('RelayMessageEnum', 'EndOfStoredEvents'); - this.inner = Object.freeze(inner); - } - - static new(inner: { subscriptionId: string }): EndOfStoredEvents_ { - return new EndOfStoredEvents_(inner); - } - - static instanceOf(obj: any): obj is EndOfStoredEvents_ { - return obj.tag === RelayMessageEnum_Tags.EndOfStoredEvents; - } - } - - type Notice__interface = { - tag: RelayMessageEnum_Tags.Notice; - inner: Readonly<{ message: string }>; - }; - - class Notice_ extends UniffiEnum implements Notice__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RelayMessageEnum'; - readonly tag = RelayMessageEnum_Tags.Notice; - readonly inner: Readonly<{ message: string }>; - constructor(inner: { message: string }) { - super('RelayMessageEnum', 'Notice'); - this.inner = Object.freeze(inner); - } - - static new(inner: { message: string }): Notice_ { - return new Notice_(inner); - } - - static instanceOf(obj: any): obj is Notice_ { - return obj.tag === RelayMessageEnum_Tags.Notice; - } - } - - type Closed__interface = { - tag: RelayMessageEnum_Tags.Closed; - inner: Readonly<{ subscriptionId: string; message: string }>; - }; - - class Closed_ extends UniffiEnum implements Closed__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RelayMessageEnum'; - readonly tag = RelayMessageEnum_Tags.Closed; - readonly inner: Readonly<{ subscriptionId: string; message: string }>; - constructor(inner: { subscriptionId: string; message: string }) { - super('RelayMessageEnum', 'Closed'); - this.inner = Object.freeze(inner); - } - - static new(inner: { subscriptionId: string; message: string }): Closed_ { - return new Closed_(inner); - } - - static instanceOf(obj: any): obj is Closed_ { - return obj.tag === RelayMessageEnum_Tags.Closed; - } - } - - type Auth__interface = { - tag: RelayMessageEnum_Tags.Auth; - inner: Readonly<{ challenge: string }>; - }; - - class Auth_ extends UniffiEnum implements Auth__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RelayMessageEnum'; - readonly tag = RelayMessageEnum_Tags.Auth; - readonly inner: Readonly<{ challenge: string }>; - constructor(inner: { challenge: string }) { - super('RelayMessageEnum', 'Auth'); - this.inner = Object.freeze(inner); - } - - static new(inner: { challenge: string }): Auth_ { - return new Auth_(inner); - } - - static instanceOf(obj: any): obj is Auth_ { - return obj.tag === RelayMessageEnum_Tags.Auth; - } - } - - type Count__interface = { - tag: RelayMessageEnum_Tags.Count; - inner: Readonly<{ subscriptionId: string; count: /*u64*/ bigint }>; - }; - - class Count_ extends UniffiEnum implements Count__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RelayMessageEnum'; - readonly tag = RelayMessageEnum_Tags.Count; - readonly inner: Readonly<{ subscriptionId: string; count: /*u64*/ bigint }>; - constructor(inner: { subscriptionId: string; count: /*u64*/ bigint }) { - super('RelayMessageEnum', 'Count'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - subscriptionId: string; - count: /*u64*/ bigint; - }): Count_ { - return new Count_(inner); - } - - static instanceOf(obj: any): obj is Count_ { - return obj.tag === RelayMessageEnum_Tags.Count; - } - } - - type NegMsg__interface = { - tag: RelayMessageEnum_Tags.NegMsg; - inner: Readonly<{ subscriptionId: string; message: string }>; - }; - - class NegMsg_ extends UniffiEnum implements NegMsg__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RelayMessageEnum'; - readonly tag = RelayMessageEnum_Tags.NegMsg; - readonly inner: Readonly<{ subscriptionId: string; message: string }>; - constructor(inner: { subscriptionId: string; message: string }) { - super('RelayMessageEnum', 'NegMsg'); - this.inner = Object.freeze(inner); - } - - static new(inner: { subscriptionId: string; message: string }): NegMsg_ { - return new NegMsg_(inner); - } - - static instanceOf(obj: any): obj is NegMsg_ { - return obj.tag === RelayMessageEnum_Tags.NegMsg; - } - } - - type NegErr__interface = { - tag: RelayMessageEnum_Tags.NegErr; - inner: Readonly<{ subscriptionId: string; message: string }>; - }; - - class NegErr_ extends UniffiEnum implements NegErr__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RelayMessageEnum'; - readonly tag = RelayMessageEnum_Tags.NegErr; - readonly inner: Readonly<{ subscriptionId: string; message: string }>; - constructor(inner: { subscriptionId: string; message: string }) { - super('RelayMessageEnum', 'NegErr'); - this.inner = Object.freeze(inner); - } - - static new(inner: { subscriptionId: string; message: string }): NegErr_ { - return new NegErr_(inner); - } - - static instanceOf(obj: any): obj is NegErr_ { - return obj.tag === RelayMessageEnum_Tags.NegErr; - } - } - - function instanceOf(obj: any): obj is RelayMessageEnum { - return obj[uniffiTypeNameSymbol] === 'RelayMessageEnum'; - } - - return Object.freeze({ - instanceOf, - EventMsg: EventMsg_, - Ok: Ok_, - EndOfStoredEvents: EndOfStoredEvents_, - Notice: Notice_, - Closed: Closed_, - Auth: Auth_, - Count: Count_, - NegMsg: NegMsg_, - NegErr: NegErr_, - }); -})(); - -export type RelayMessageEnum = InstanceType< - (typeof RelayMessageEnum)[keyof Omit] ->; - -// FfiConverter for enum RelayMessageEnum -const FfiConverterTypeRelayMessageEnum = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = RelayMessageEnum; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new RelayMessageEnum.EventMsg({ - subscriptionId: FfiConverterString.read(from), - event: FfiConverterTypeEvent.read(from), - }); - case 2: - return new RelayMessageEnum.Ok({ - eventId: FfiConverterTypeEventId.read(from), - status: FfiConverterBool.read(from), - message: FfiConverterString.read(from), - }); - case 3: - return new RelayMessageEnum.EndOfStoredEvents({ - subscriptionId: FfiConverterString.read(from), - }); - case 4: - return new RelayMessageEnum.Notice({ - message: FfiConverterString.read(from), - }); - case 5: - return new RelayMessageEnum.Closed({ - subscriptionId: FfiConverterString.read(from), - message: FfiConverterString.read(from), - }); - case 6: - return new RelayMessageEnum.Auth({ - challenge: FfiConverterString.read(from), - }); - case 7: - return new RelayMessageEnum.Count({ - subscriptionId: FfiConverterString.read(from), - count: FfiConverterUInt64.read(from), - }); - case 8: - return new RelayMessageEnum.NegMsg({ - subscriptionId: FfiConverterString.read(from), - message: FfiConverterString.read(from), - }); - case 9: - return new RelayMessageEnum.NegErr({ - subscriptionId: FfiConverterString.read(from), - message: FfiConverterString.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case RelayMessageEnum_Tags.EventMsg: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - FfiConverterTypeEvent.write(inner.event, into); - return; - } - case RelayMessageEnum_Tags.Ok: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterTypeEventId.write(inner.eventId, into); - FfiConverterBool.write(inner.status, into); - FfiConverterString.write(inner.message, into); - return; - } - case RelayMessageEnum_Tags.EndOfStoredEvents: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - return; - } - case RelayMessageEnum_Tags.Notice: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterString.write(inner.message, into); - return; - } - case RelayMessageEnum_Tags.Closed: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - FfiConverterString.write(inner.message, into); - return; - } - case RelayMessageEnum_Tags.Auth: { - ordinalConverter.write(6, into); - const inner = value.inner; - FfiConverterString.write(inner.challenge, into); - return; - } - case RelayMessageEnum_Tags.Count: { - ordinalConverter.write(7, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - FfiConverterUInt64.write(inner.count, into); - return; - } - case RelayMessageEnum_Tags.NegMsg: { - ordinalConverter.write(8, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - FfiConverterString.write(inner.message, into); - return; - } - case RelayMessageEnum_Tags.NegErr: { - ordinalConverter.write(9, into); - const inner = value.inner; - FfiConverterString.write(inner.subscriptionId, into); - FfiConverterString.write(inner.message, into); - return; - } - default: - // Throwing from here means that RelayMessageEnum_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case RelayMessageEnum_Tags.EventMsg: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterString.allocationSize(inner.subscriptionId); - size += FfiConverterTypeEvent.allocationSize(inner.event); - return size; - } - case RelayMessageEnum_Tags.Ok: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterTypeEventId.allocationSize(inner.eventId); - size += FfiConverterBool.allocationSize(inner.status); - size += FfiConverterString.allocationSize(inner.message); - return size; - } - case RelayMessageEnum_Tags.EndOfStoredEvents: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterString.allocationSize(inner.subscriptionId); - return size; - } - case RelayMessageEnum_Tags.Notice: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterString.allocationSize(inner.message); - return size; - } - case RelayMessageEnum_Tags.Closed: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterString.allocationSize(inner.subscriptionId); - size += FfiConverterString.allocationSize(inner.message); - return size; - } - case RelayMessageEnum_Tags.Auth: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(6); - size += FfiConverterString.allocationSize(inner.challenge); - return size; - } - case RelayMessageEnum_Tags.Count: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(7); - size += FfiConverterString.allocationSize(inner.subscriptionId); - size += FfiConverterUInt64.allocationSize(inner.count); - return size; - } - case RelayMessageEnum_Tags.NegMsg: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(8); - size += FfiConverterString.allocationSize(inner.subscriptionId); - size += FfiConverterString.allocationSize(inner.message); - return size; - } - case RelayMessageEnum_Tags.NegErr: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(9); - size += FfiConverterString.allocationSize(inner.subscriptionId); - size += FfiConverterString.allocationSize(inner.message); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -export enum RelayMetadata { - /** - * Read - */ - Read, - /** - * Write - */ - Write, -} - -const FfiConverterTypeRelayMetadata = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = RelayMetadata; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return RelayMetadata.Read; - case 2: - return RelayMetadata.Write; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case RelayMetadata.Read: - return ordinalConverter.write(1, into); - case RelayMetadata.Write: - return ordinalConverter.write(2, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -export enum RelayStatus { - /** - * Initialized - */ - Initialized, - /** - * Pending - */ - Pending, - /** - * Connecting - */ - Connecting, - /** - * Connected - */ - Connected, - /** - * Disconnected, will retry to connect again - */ - Disconnected, - /** - * Completely disconnected - */ - Terminated, -} - -const FfiConverterTypeRelayStatus = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = RelayStatus; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return RelayStatus.Initialized; - case 2: - return RelayStatus.Pending; - case 3: - return RelayStatus.Connecting; - case 4: - return RelayStatus.Connected; - case 5: - return RelayStatus.Disconnected; - case 6: - return RelayStatus.Terminated; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case RelayStatus.Initialized: - return ordinalConverter.write(1, into); - case RelayStatus.Pending: - return ordinalConverter.write(2, into); - case RelayStatus.Connecting: - return ordinalConverter.write(3, into); - case RelayStatus.Connected: - return ordinalConverter.write(4, into); - case RelayStatus.Disconnected: - return ordinalConverter.write(5, into); - case RelayStatus.Terminated: - return ordinalConverter.write(6, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -/** - * Report - * - * - */ -export enum Report { - /** - * Depictions of nudity, porn, etc - */ - Nudity, - /** - * Virus, trojan horse, worm, robot, spyware, adware, back door, ransomware, rootkit, kidnapper, etc. - */ - Malware, - /** - * Profanity, hateful speech, etc. - */ - Profanity, - /** - * Something which may be illegal in some jurisdiction - * - * Remember: there is what is right and there is the law. - */ - Illegal, - /** - * Spam - */ - Spam, - /** - * Someone pretending to be someone else - */ - Impersonation, - /** - * Reports that don't fit in the above categories - */ - Other, -} - -const FfiConverterTypeReport = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = Report; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return Report.Nudity; - case 2: - return Report.Malware; - case 3: - return Report.Profanity; - case 4: - return Report.Illegal; - case 5: - return Report.Spam; - case 6: - return Report.Impersonation; - case 7: - return Report.Other; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case Report.Nudity: - return ordinalConverter.write(1, into); - case Report.Malware: - return ordinalConverter.write(2, into); - case Report.Profanity: - return ordinalConverter.write(3, into); - case Report.Illegal: - return ordinalConverter.write(4, into); - case Report.Spam: - return ordinalConverter.write(5, into); - case Report.Impersonation: - return ordinalConverter.write(6, into); - case Report.Other: - return ordinalConverter.write(7, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: ReqExitPolicy -export enum ReqExitPolicy_Tags { - ExitOnEose = 'ExitOnEOSE', - WaitForEvents = 'WaitForEvents', - WaitForEventsAfterEose = 'WaitForEventsAfterEOSE', - WaitDurationAfterEose = 'WaitDurationAfterEOSE', -} -/** - * Request (REQ) exit policy - */ -export const ReqExitPolicy = (() => { - type ExitOnEose__interface = { - tag: ReqExitPolicy_Tags.ExitOnEose; - }; - - /** - * Exit on EOSE - */ - class ExitOnEose_ extends UniffiEnum implements ExitOnEose__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ReqExitPolicy'; - readonly tag = ReqExitPolicy_Tags.ExitOnEose; - constructor() { - super('ReqExitPolicy', 'ExitOnEose'); - } - - static new(): ExitOnEose_ { - return new ExitOnEose_(); - } - - static instanceOf(obj: any): obj is ExitOnEose_ { - return obj.tag === ReqExitPolicy_Tags.ExitOnEose; - } - } - - type WaitForEvents__interface = { - tag: ReqExitPolicy_Tags.WaitForEvents; - inner: Readonly<{ num: /*u16*/ number }>; - }; - - /** - * Wait to receive N events and then exit. - */ - class WaitForEvents_ extends UniffiEnum implements WaitForEvents__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ReqExitPolicy'; - readonly tag = ReqExitPolicy_Tags.WaitForEvents; - readonly inner: Readonly<{ num: /*u16*/ number }>; - constructor(inner: { num: /*u16*/ number }) { - super('ReqExitPolicy', 'WaitForEvents'); - this.inner = Object.freeze(inner); - } - - static new(inner: { num: /*u16*/ number }): WaitForEvents_ { - return new WaitForEvents_(inner); - } - - static instanceOf(obj: any): obj is WaitForEvents_ { - return obj.tag === ReqExitPolicy_Tags.WaitForEvents; - } - } - - type WaitForEventsAfterEose__interface = { - tag: ReqExitPolicy_Tags.WaitForEventsAfterEose; - inner: Readonly<{ num: /*u16*/ number }>; - }; - - /** - * After EOSE is received, keep listening for N more events that match the filter. - */ - class WaitForEventsAfterEose_ - extends UniffiEnum - implements WaitForEventsAfterEose__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ReqExitPolicy'; - readonly tag = ReqExitPolicy_Tags.WaitForEventsAfterEose; - readonly inner: Readonly<{ num: /*u16*/ number }>; - constructor(inner: { num: /*u16*/ number }) { - super('ReqExitPolicy', 'WaitForEventsAfterEose'); - this.inner = Object.freeze(inner); - } - - static new(inner: { num: /*u16*/ number }): WaitForEventsAfterEose_ { - return new WaitForEventsAfterEose_(inner); - } - - static instanceOf(obj: any): obj is WaitForEventsAfterEose_ { - return obj.tag === ReqExitPolicy_Tags.WaitForEventsAfterEose; - } - } - - type WaitDurationAfterEose__interface = { - tag: ReqExitPolicy_Tags.WaitDurationAfterEose; - inner: Readonly<{ duration: UniffiDuration }>; - }; - - /** - * After EOSE is received, keep listening for matching events for `Duration` more time. - */ - class WaitDurationAfterEose_ - extends UniffiEnum - implements WaitDurationAfterEose__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ReqExitPolicy'; - readonly tag = ReqExitPolicy_Tags.WaitDurationAfterEose; - readonly inner: Readonly<{ duration: UniffiDuration }>; - constructor(inner: { duration: UniffiDuration }) { - super('ReqExitPolicy', 'WaitDurationAfterEose'); - this.inner = Object.freeze(inner); - } - - static new(inner: { duration: UniffiDuration }): WaitDurationAfterEose_ { - return new WaitDurationAfterEose_(inner); - } - - static instanceOf(obj: any): obj is WaitDurationAfterEose_ { - return obj.tag === ReqExitPolicy_Tags.WaitDurationAfterEose; - } - } - - function instanceOf(obj: any): obj is ReqExitPolicy { - return obj[uniffiTypeNameSymbol] === 'ReqExitPolicy'; - } - - return Object.freeze({ - instanceOf, - ExitOnEose: ExitOnEose_, - WaitForEvents: WaitForEvents_, - WaitForEventsAfterEose: WaitForEventsAfterEose_, - WaitDurationAfterEose: WaitDurationAfterEose_, - }); -})(); - -/** - * Request (REQ) exit policy - */ - -export type ReqExitPolicy = InstanceType< - (typeof ReqExitPolicy)[keyof Omit] ->; - -// FfiConverter for enum ReqExitPolicy -const FfiConverterTypeReqExitPolicy = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = ReqExitPolicy; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new ReqExitPolicy.ExitOnEose(); - case 2: - return new ReqExitPolicy.WaitForEvents({ - num: FfiConverterUInt16.read(from), - }); - case 3: - return new ReqExitPolicy.WaitForEventsAfterEose({ - num: FfiConverterUInt16.read(from), - }); - case 4: - return new ReqExitPolicy.WaitDurationAfterEose({ - duration: FfiConverterDuration.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case ReqExitPolicy_Tags.ExitOnEose: { - ordinalConverter.write(1, into); - return; - } - case ReqExitPolicy_Tags.WaitForEvents: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterUInt16.write(inner.num, into); - return; - } - case ReqExitPolicy_Tags.WaitForEventsAfterEose: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterUInt16.write(inner.num, into); - return; - } - case ReqExitPolicy_Tags.WaitDurationAfterEose: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterDuration.write(inner.duration, into); - return; - } - default: - // Throwing from here means that ReqExitPolicy_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case ReqExitPolicy_Tags.ExitOnEose: { - return ordinalConverter.allocationSize(1); - } - case ReqExitPolicy_Tags.WaitForEvents: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterUInt16.allocationSize(inner.num); - return size; - } - case ReqExitPolicy_Tags.WaitForEventsAfterEose: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterUInt16.allocationSize(inner.num); - return size; - } - case ReqExitPolicy_Tags.WaitDurationAfterEose: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterDuration.allocationSize(inner.duration); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Enum: RequestParams -export enum RequestParams_Tags { - PayInvoice = 'PayInvoice', - MultiPayInvoice = 'MultiPayInvoice', - PayKeysend = 'PayKeysend', - MultiPayKeysend = 'MultiPayKeysend', - MakeInvoice = 'MakeInvoice', - LookupInvoice = 'LookupInvoice', - ListTransactions = 'ListTransactions', - GetBalance = 'GetBalance', - GetInfo = 'GetInfo', -} -/** - * Nostr Wallet Connect Request Params - */ -export const RequestParams = (() => { - type PayInvoice__interface = { - tag: RequestParams_Tags.PayInvoice; - inner: Readonly<{ payInvoice: PayInvoiceRequest }>; - }; - - /** - * Pay Invoice - */ - class PayInvoice_ extends UniffiEnum implements PayInvoice__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RequestParams'; - readonly tag = RequestParams_Tags.PayInvoice; - readonly inner: Readonly<{ payInvoice: PayInvoiceRequest }>; - constructor(inner: { payInvoice: PayInvoiceRequest }) { - super('RequestParams', 'PayInvoice'); - this.inner = Object.freeze(inner); - } - - static new(inner: { payInvoice: PayInvoiceRequest }): PayInvoice_ { - return new PayInvoice_(inner); - } - - static instanceOf(obj: any): obj is PayInvoice_ { - return obj.tag === RequestParams_Tags.PayInvoice; - } - } - - type MultiPayInvoice__interface = { - tag: RequestParams_Tags.MultiPayInvoice; - inner: Readonly<{ multiPayInvoice: MultiPayInvoiceRequest }>; - }; - - /** - * Multi Pay Invoice - */ - class MultiPayInvoice_ - extends UniffiEnum - implements MultiPayInvoice__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RequestParams'; - readonly tag = RequestParams_Tags.MultiPayInvoice; - readonly inner: Readonly<{ multiPayInvoice: MultiPayInvoiceRequest }>; - constructor(inner: { multiPayInvoice: MultiPayInvoiceRequest }) { - super('RequestParams', 'MultiPayInvoice'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - multiPayInvoice: MultiPayInvoiceRequest; - }): MultiPayInvoice_ { - return new MultiPayInvoice_(inner); - } - - static instanceOf(obj: any): obj is MultiPayInvoice_ { - return obj.tag === RequestParams_Tags.MultiPayInvoice; - } - } - - type PayKeysend__interface = { - tag: RequestParams_Tags.PayKeysend; - inner: Readonly<{ payKeysend: PayKeysendRequest }>; - }; - - /** - * Pay Keysend - */ - class PayKeysend_ extends UniffiEnum implements PayKeysend__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RequestParams'; - readonly tag = RequestParams_Tags.PayKeysend; - readonly inner: Readonly<{ payKeysend: PayKeysendRequest }>; - constructor(inner: { payKeysend: PayKeysendRequest }) { - super('RequestParams', 'PayKeysend'); - this.inner = Object.freeze(inner); - } - - static new(inner: { payKeysend: PayKeysendRequest }): PayKeysend_ { - return new PayKeysend_(inner); - } - - static instanceOf(obj: any): obj is PayKeysend_ { - return obj.tag === RequestParams_Tags.PayKeysend; - } - } - - type MultiPayKeysend__interface = { - tag: RequestParams_Tags.MultiPayKeysend; - inner: Readonly<{ multiPayKeysend: MultiPayKeysendRequest }>; - }; - - /** - * Multi Pay Keysend - */ - class MultiPayKeysend_ - extends UniffiEnum - implements MultiPayKeysend__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RequestParams'; - readonly tag = RequestParams_Tags.MultiPayKeysend; - readonly inner: Readonly<{ multiPayKeysend: MultiPayKeysendRequest }>; - constructor(inner: { multiPayKeysend: MultiPayKeysendRequest }) { - super('RequestParams', 'MultiPayKeysend'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - multiPayKeysend: MultiPayKeysendRequest; - }): MultiPayKeysend_ { - return new MultiPayKeysend_(inner); - } - - static instanceOf(obj: any): obj is MultiPayKeysend_ { - return obj.tag === RequestParams_Tags.MultiPayKeysend; - } - } - - type MakeInvoice__interface = { - tag: RequestParams_Tags.MakeInvoice; - inner: Readonly<{ makeInvoice: MakeInvoiceRequest }>; - }; - - /** - * Make Invoice - */ - class MakeInvoice_ extends UniffiEnum implements MakeInvoice__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RequestParams'; - readonly tag = RequestParams_Tags.MakeInvoice; - readonly inner: Readonly<{ makeInvoice: MakeInvoiceRequest }>; - constructor(inner: { makeInvoice: MakeInvoiceRequest }) { - super('RequestParams', 'MakeInvoice'); - this.inner = Object.freeze(inner); - } - - static new(inner: { makeInvoice: MakeInvoiceRequest }): MakeInvoice_ { - return new MakeInvoice_(inner); - } - - static instanceOf(obj: any): obj is MakeInvoice_ { - return obj.tag === RequestParams_Tags.MakeInvoice; - } - } - - type LookupInvoice__interface = { - tag: RequestParams_Tags.LookupInvoice; - inner: Readonly<{ lookupInvoice: LookupInvoiceRequest }>; - }; - - /** - * Lookup Invoice - */ - class LookupInvoice_ extends UniffiEnum implements LookupInvoice__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RequestParams'; - readonly tag = RequestParams_Tags.LookupInvoice; - readonly inner: Readonly<{ lookupInvoice: LookupInvoiceRequest }>; - constructor(inner: { lookupInvoice: LookupInvoiceRequest }) { - super('RequestParams', 'LookupInvoice'); - this.inner = Object.freeze(inner); - } - - static new(inner: { lookupInvoice: LookupInvoiceRequest }): LookupInvoice_ { - return new LookupInvoice_(inner); - } - - static instanceOf(obj: any): obj is LookupInvoice_ { - return obj.tag === RequestParams_Tags.LookupInvoice; - } - } - - type ListTransactions__interface = { - tag: RequestParams_Tags.ListTransactions; - inner: Readonly<{ listTransactions: ListTransactionsRequest }>; - }; - - /** - * List Transactions - */ - class ListTransactions_ - extends UniffiEnum - implements ListTransactions__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RequestParams'; - readonly tag = RequestParams_Tags.ListTransactions; - readonly inner: Readonly<{ listTransactions: ListTransactionsRequest }>; - constructor(inner: { listTransactions: ListTransactionsRequest }) { - super('RequestParams', 'ListTransactions'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - listTransactions: ListTransactionsRequest; - }): ListTransactions_ { - return new ListTransactions_(inner); - } - - static instanceOf(obj: any): obj is ListTransactions_ { - return obj.tag === RequestParams_Tags.ListTransactions; - } - } - - type GetBalance__interface = { - tag: RequestParams_Tags.GetBalance; - }; - - /** - * Get Balance - */ - class GetBalance_ extends UniffiEnum implements GetBalance__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RequestParams'; - readonly tag = RequestParams_Tags.GetBalance; - constructor() { - super('RequestParams', 'GetBalance'); - } - - static new(): GetBalance_ { - return new GetBalance_(); - } - - static instanceOf(obj: any): obj is GetBalance_ { - return obj.tag === RequestParams_Tags.GetBalance; - } - } - - type GetInfo__interface = { - tag: RequestParams_Tags.GetInfo; - }; - - /** - * Get Info - */ - class GetInfo_ extends UniffiEnum implements GetInfo__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RequestParams'; - readonly tag = RequestParams_Tags.GetInfo; - constructor() { - super('RequestParams', 'GetInfo'); - } - - static new(): GetInfo_ { - return new GetInfo_(); - } - - static instanceOf(obj: any): obj is GetInfo_ { - return obj.tag === RequestParams_Tags.GetInfo; - } - } - - function instanceOf(obj: any): obj is RequestParams { - return obj[uniffiTypeNameSymbol] === 'RequestParams'; - } - - return Object.freeze({ - instanceOf, - PayInvoice: PayInvoice_, - MultiPayInvoice: MultiPayInvoice_, - PayKeysend: PayKeysend_, - MultiPayKeysend: MultiPayKeysend_, - MakeInvoice: MakeInvoice_, - LookupInvoice: LookupInvoice_, - ListTransactions: ListTransactions_, - GetBalance: GetBalance_, - GetInfo: GetInfo_, - }); -})(); - -/** - * Nostr Wallet Connect Request Params - */ - -export type RequestParams = InstanceType< - (typeof RequestParams)[keyof Omit] ->; - -// FfiConverter for enum RequestParams -const FfiConverterTypeRequestParams = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = RequestParams; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new RequestParams.PayInvoice({ - payInvoice: FfiConverterTypePayInvoiceRequest.read(from), - }); - case 2: - return new RequestParams.MultiPayInvoice({ - multiPayInvoice: FfiConverterTypeMultiPayInvoiceRequest.read(from), - }); - case 3: - return new RequestParams.PayKeysend({ - payKeysend: FfiConverterTypePayKeysendRequest.read(from), - }); - case 4: - return new RequestParams.MultiPayKeysend({ - multiPayKeysend: FfiConverterTypeMultiPayKeysendRequest.read(from), - }); - case 5: - return new RequestParams.MakeInvoice({ - makeInvoice: FfiConverterTypeMakeInvoiceRequest.read(from), - }); - case 6: - return new RequestParams.LookupInvoice({ - lookupInvoice: FfiConverterTypeLookupInvoiceRequest.read(from), - }); - case 7: - return new RequestParams.ListTransactions({ - listTransactions: - FfiConverterTypeListTransactionsRequest.read(from), - }); - case 8: - return new RequestParams.GetBalance(); - case 9: - return new RequestParams.GetInfo(); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case RequestParams_Tags.PayInvoice: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterTypePayInvoiceRequest.write(inner.payInvoice, into); - return; - } - case RequestParams_Tags.MultiPayInvoice: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterTypeMultiPayInvoiceRequest.write( - inner.multiPayInvoice, - into - ); - return; - } - case RequestParams_Tags.PayKeysend: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterTypePayKeysendRequest.write(inner.payKeysend, into); - return; - } - case RequestParams_Tags.MultiPayKeysend: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterTypeMultiPayKeysendRequest.write( - inner.multiPayKeysend, - into - ); - return; - } - case RequestParams_Tags.MakeInvoice: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterTypeMakeInvoiceRequest.write(inner.makeInvoice, into); - return; - } - case RequestParams_Tags.LookupInvoice: { - ordinalConverter.write(6, into); - const inner = value.inner; - FfiConverterTypeLookupInvoiceRequest.write(inner.lookupInvoice, into); - return; - } - case RequestParams_Tags.ListTransactions: { - ordinalConverter.write(7, into); - const inner = value.inner; - FfiConverterTypeListTransactionsRequest.write( - inner.listTransactions, - into - ); - return; - } - case RequestParams_Tags.GetBalance: { - ordinalConverter.write(8, into); - return; - } - case RequestParams_Tags.GetInfo: { - ordinalConverter.write(9, into); - return; - } - default: - // Throwing from here means that RequestParams_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case RequestParams_Tags.PayInvoice: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterTypePayInvoiceRequest.allocationSize( - inner.payInvoice - ); - return size; - } - case RequestParams_Tags.MultiPayInvoice: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterTypeMultiPayInvoiceRequest.allocationSize( - inner.multiPayInvoice - ); - return size; - } - case RequestParams_Tags.PayKeysend: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterTypePayKeysendRequest.allocationSize( - inner.payKeysend - ); - return size; - } - case RequestParams_Tags.MultiPayKeysend: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterTypeMultiPayKeysendRequest.allocationSize( - inner.multiPayKeysend - ); - return size; - } - case RequestParams_Tags.MakeInvoice: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterTypeMakeInvoiceRequest.allocationSize( - inner.makeInvoice - ); - return size; - } - case RequestParams_Tags.LookupInvoice: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(6); - size += FfiConverterTypeLookupInvoiceRequest.allocationSize( - inner.lookupInvoice - ); - return size; - } - case RequestParams_Tags.ListTransactions: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(7); - size += FfiConverterTypeListTransactionsRequest.allocationSize( - inner.listTransactions - ); - return size; - } - case RequestParams_Tags.GetBalance: { - return ordinalConverter.allocationSize(8); - } - case RequestParams_Tags.GetInfo: { - return ordinalConverter.allocationSize(9); - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Enum: ResponseResult -export enum ResponseResult_Tags { - PayInvoice = 'PayInvoice', - MultiPayInvoice = 'MultiPayInvoice', - PayKeysend = 'PayKeysend', - MultiPayKeysend = 'MultiPayKeysend', - MakeInvoice = 'MakeInvoice', - LookupInvoice = 'LookupInvoice', - ListTransactions = 'ListTransactions', - GetBalance = 'GetBalance', - GetInfo = 'GetInfo', -} -/** - * NIP47 Response Result - */ -export const ResponseResult = (() => { - type PayInvoice__interface = { - tag: ResponseResult_Tags.PayInvoice; - inner: Readonly<{ payInvoice: PayInvoiceResponse }>; - }; - - /** - * Pay Invoice - */ - class PayInvoice_ extends UniffiEnum implements PayInvoice__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ResponseResult'; - readonly tag = ResponseResult_Tags.PayInvoice; - readonly inner: Readonly<{ payInvoice: PayInvoiceResponse }>; - constructor(inner: { payInvoice: PayInvoiceResponse }) { - super('ResponseResult', 'PayInvoice'); - this.inner = Object.freeze(inner); - } - - static new(inner: { payInvoice: PayInvoiceResponse }): PayInvoice_ { - return new PayInvoice_(inner); - } - - static instanceOf(obj: any): obj is PayInvoice_ { - return obj.tag === ResponseResult_Tags.PayInvoice; - } - } - - type MultiPayInvoice__interface = { - tag: ResponseResult_Tags.MultiPayInvoice; - inner: Readonly<{ payInvoice: PayInvoiceResponse }>; - }; - - /** - * Multi Pay Invoice - */ - class MultiPayInvoice_ - extends UniffiEnum - implements MultiPayInvoice__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ResponseResult'; - readonly tag = ResponseResult_Tags.MultiPayInvoice; - readonly inner: Readonly<{ payInvoice: PayInvoiceResponse }>; - constructor(inner: { payInvoice: PayInvoiceResponse }) { - super('ResponseResult', 'MultiPayInvoice'); - this.inner = Object.freeze(inner); - } - - static new(inner: { payInvoice: PayInvoiceResponse }): MultiPayInvoice_ { - return new MultiPayInvoice_(inner); - } - - static instanceOf(obj: any): obj is MultiPayInvoice_ { - return obj.tag === ResponseResult_Tags.MultiPayInvoice; - } - } - - type PayKeysend__interface = { - tag: ResponseResult_Tags.PayKeysend; - inner: Readonly<{ payKeysend: PayKeysendResponse }>; - }; - - /** - * Pay Keysend - */ - class PayKeysend_ extends UniffiEnum implements PayKeysend__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ResponseResult'; - readonly tag = ResponseResult_Tags.PayKeysend; - readonly inner: Readonly<{ payKeysend: PayKeysendResponse }>; - constructor(inner: { payKeysend: PayKeysendResponse }) { - super('ResponseResult', 'PayKeysend'); - this.inner = Object.freeze(inner); - } - - static new(inner: { payKeysend: PayKeysendResponse }): PayKeysend_ { - return new PayKeysend_(inner); - } - - static instanceOf(obj: any): obj is PayKeysend_ { - return obj.tag === ResponseResult_Tags.PayKeysend; - } - } - - type MultiPayKeysend__interface = { - tag: ResponseResult_Tags.MultiPayKeysend; - inner: Readonly<{ payKeysend: PayKeysendResponse }>; - }; - - /** - * Multi Pay Keysend - */ - class MultiPayKeysend_ - extends UniffiEnum - implements MultiPayKeysend__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ResponseResult'; - readonly tag = ResponseResult_Tags.MultiPayKeysend; - readonly inner: Readonly<{ payKeysend: PayKeysendResponse }>; - constructor(inner: { payKeysend: PayKeysendResponse }) { - super('ResponseResult', 'MultiPayKeysend'); - this.inner = Object.freeze(inner); - } - - static new(inner: { payKeysend: PayKeysendResponse }): MultiPayKeysend_ { - return new MultiPayKeysend_(inner); - } - - static instanceOf(obj: any): obj is MultiPayKeysend_ { - return obj.tag === ResponseResult_Tags.MultiPayKeysend; - } - } - - type MakeInvoice__interface = { - tag: ResponseResult_Tags.MakeInvoice; - inner: Readonly<{ makeInvoice: MakeInvoiceResponse }>; - }; - - /** - * Make Invoice - */ - class MakeInvoice_ extends UniffiEnum implements MakeInvoice__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ResponseResult'; - readonly tag = ResponseResult_Tags.MakeInvoice; - readonly inner: Readonly<{ makeInvoice: MakeInvoiceResponse }>; - constructor(inner: { makeInvoice: MakeInvoiceResponse }) { - super('ResponseResult', 'MakeInvoice'); - this.inner = Object.freeze(inner); - } - - static new(inner: { makeInvoice: MakeInvoiceResponse }): MakeInvoice_ { - return new MakeInvoice_(inner); - } - - static instanceOf(obj: any): obj is MakeInvoice_ { - return obj.tag === ResponseResult_Tags.MakeInvoice; - } - } - - type LookupInvoice__interface = { - tag: ResponseResult_Tags.LookupInvoice; - inner: Readonly<{ lookupInvoice: LookupInvoiceResponse }>; - }; - - /** - * Lookup Invoice - */ - class LookupInvoice_ extends UniffiEnum implements LookupInvoice__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ResponseResult'; - readonly tag = ResponseResult_Tags.LookupInvoice; - readonly inner: Readonly<{ lookupInvoice: LookupInvoiceResponse }>; - constructor(inner: { lookupInvoice: LookupInvoiceResponse }) { - super('ResponseResult', 'LookupInvoice'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - lookupInvoice: LookupInvoiceResponse; - }): LookupInvoice_ { - return new LookupInvoice_(inner); - } - - static instanceOf(obj: any): obj is LookupInvoice_ { - return obj.tag === ResponseResult_Tags.LookupInvoice; - } - } - - type ListTransactions__interface = { - tag: ResponseResult_Tags.ListTransactions; - inner: Readonly<{ listTransactions: Array }>; - }; - - /** - * List Transactions - */ - class ListTransactions_ - extends UniffiEnum - implements ListTransactions__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ResponseResult'; - readonly tag = ResponseResult_Tags.ListTransactions; - readonly inner: Readonly<{ - listTransactions: Array; - }>; - constructor(inner: { listTransactions: Array }) { - super('ResponseResult', 'ListTransactions'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - listTransactions: Array; - }): ListTransactions_ { - return new ListTransactions_(inner); - } - - static instanceOf(obj: any): obj is ListTransactions_ { - return obj.tag === ResponseResult_Tags.ListTransactions; - } - } - - type GetBalance__interface = { - tag: ResponseResult_Tags.GetBalance; - inner: Readonly<{ getBalance: GetBalanceResponse }>; - }; - - /** - * Get Balance - */ - class GetBalance_ extends UniffiEnum implements GetBalance__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ResponseResult'; - readonly tag = ResponseResult_Tags.GetBalance; - readonly inner: Readonly<{ getBalance: GetBalanceResponse }>; - constructor(inner: { getBalance: GetBalanceResponse }) { - super('ResponseResult', 'GetBalance'); - this.inner = Object.freeze(inner); - } - - static new(inner: { getBalance: GetBalanceResponse }): GetBalance_ { - return new GetBalance_(inner); - } - - static instanceOf(obj: any): obj is GetBalance_ { - return obj.tag === ResponseResult_Tags.GetBalance; - } - } - - type GetInfo__interface = { - tag: ResponseResult_Tags.GetInfo; - inner: Readonly<{ getInfo: GetInfoResponse }>; - }; - - /** - * Get Info - */ - class GetInfo_ extends UniffiEnum implements GetInfo__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'ResponseResult'; - readonly tag = ResponseResult_Tags.GetInfo; - readonly inner: Readonly<{ getInfo: GetInfoResponse }>; - constructor(inner: { getInfo: GetInfoResponse }) { - super('ResponseResult', 'GetInfo'); - this.inner = Object.freeze(inner); - } - - static new(inner: { getInfo: GetInfoResponse }): GetInfo_ { - return new GetInfo_(inner); - } - - static instanceOf(obj: any): obj is GetInfo_ { - return obj.tag === ResponseResult_Tags.GetInfo; - } - } - - function instanceOf(obj: any): obj is ResponseResult { - return obj[uniffiTypeNameSymbol] === 'ResponseResult'; - } - - return Object.freeze({ - instanceOf, - PayInvoice: PayInvoice_, - MultiPayInvoice: MultiPayInvoice_, - PayKeysend: PayKeysend_, - MultiPayKeysend: MultiPayKeysend_, - MakeInvoice: MakeInvoice_, - LookupInvoice: LookupInvoice_, - ListTransactions: ListTransactions_, - GetBalance: GetBalance_, - GetInfo: GetInfo_, - }); -})(); - -/** - * NIP47 Response Result - */ - -export type ResponseResult = InstanceType< - (typeof ResponseResult)[keyof Omit] ->; - -// FfiConverter for enum ResponseResult -const FfiConverterTypeResponseResult = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = ResponseResult; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new ResponseResult.PayInvoice({ - payInvoice: FfiConverterTypePayInvoiceResponse.read(from), - }); - case 2: - return new ResponseResult.MultiPayInvoice({ - payInvoice: FfiConverterTypePayInvoiceResponse.read(from), - }); - case 3: - return new ResponseResult.PayKeysend({ - payKeysend: FfiConverterTypePayKeysendResponse.read(from), - }); - case 4: - return new ResponseResult.MultiPayKeysend({ - payKeysend: FfiConverterTypePayKeysendResponse.read(from), - }); - case 5: - return new ResponseResult.MakeInvoice({ - makeInvoice: FfiConverterTypeMakeInvoiceResponse.read(from), - }); - case 6: - return new ResponseResult.LookupInvoice({ - lookupInvoice: FfiConverterTypeLookupInvoiceResponse.read(from), - }); - case 7: - return new ResponseResult.ListTransactions({ - listTransactions: - FfiConverterArrayTypeLookupInvoiceResponse.read(from), - }); - case 8: - return new ResponseResult.GetBalance({ - getBalance: FfiConverterTypeGetBalanceResponse.read(from), - }); - case 9: - return new ResponseResult.GetInfo({ - getInfo: FfiConverterTypeGetInfoResponse.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case ResponseResult_Tags.PayInvoice: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterTypePayInvoiceResponse.write(inner.payInvoice, into); - return; - } - case ResponseResult_Tags.MultiPayInvoice: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterTypePayInvoiceResponse.write(inner.payInvoice, into); - return; - } - case ResponseResult_Tags.PayKeysend: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterTypePayKeysendResponse.write(inner.payKeysend, into); - return; - } - case ResponseResult_Tags.MultiPayKeysend: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterTypePayKeysendResponse.write(inner.payKeysend, into); - return; - } - case ResponseResult_Tags.MakeInvoice: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterTypeMakeInvoiceResponse.write(inner.makeInvoice, into); - return; - } - case ResponseResult_Tags.LookupInvoice: { - ordinalConverter.write(6, into); - const inner = value.inner; - FfiConverterTypeLookupInvoiceResponse.write( - inner.lookupInvoice, - into - ); - return; - } - case ResponseResult_Tags.ListTransactions: { - ordinalConverter.write(7, into); - const inner = value.inner; - FfiConverterArrayTypeLookupInvoiceResponse.write( - inner.listTransactions, - into - ); - return; - } - case ResponseResult_Tags.GetBalance: { - ordinalConverter.write(8, into); - const inner = value.inner; - FfiConverterTypeGetBalanceResponse.write(inner.getBalance, into); - return; - } - case ResponseResult_Tags.GetInfo: { - ordinalConverter.write(9, into); - const inner = value.inner; - FfiConverterTypeGetInfoResponse.write(inner.getInfo, into); - return; - } - default: - // Throwing from here means that ResponseResult_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case ResponseResult_Tags.PayInvoice: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterTypePayInvoiceResponse.allocationSize( - inner.payInvoice - ); - return size; - } - case ResponseResult_Tags.MultiPayInvoice: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterTypePayInvoiceResponse.allocationSize( - inner.payInvoice - ); - return size; - } - case ResponseResult_Tags.PayKeysend: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterTypePayKeysendResponse.allocationSize( - inner.payKeysend - ); - return size; - } - case ResponseResult_Tags.MultiPayKeysend: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterTypePayKeysendResponse.allocationSize( - inner.payKeysend - ); - return size; - } - case ResponseResult_Tags.MakeInvoice: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterTypeMakeInvoiceResponse.allocationSize( - inner.makeInvoice - ); - return size; - } - case ResponseResult_Tags.LookupInvoice: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(6); - size += FfiConverterTypeLookupInvoiceResponse.allocationSize( - inner.lookupInvoice - ); - return size; - } - case ResponseResult_Tags.ListTransactions: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(7); - size += FfiConverterArrayTypeLookupInvoiceResponse.allocationSize( - inner.listTransactions - ); - return size; - } - case ResponseResult_Tags.GetBalance: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(8); - size += FfiConverterTypeGetBalanceResponse.allocationSize( - inner.getBalance - ); - return size; - } - case ResponseResult_Tags.GetInfo: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(9); - size += FfiConverterTypeGetInfoResponse.allocationSize(inner.getInfo); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Enum: RetentionKind -export enum RetentionKind_Tags { - Single = 'Single', - Range = 'Range', -} -export const RetentionKind = (() => { - type Single__interface = { - tag: RetentionKind_Tags.Single; - inner: Readonly<{ single: /*u64*/ bigint }>; - }; - - class Single_ extends UniffiEnum implements Single__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RetentionKind'; - readonly tag = RetentionKind_Tags.Single; - readonly inner: Readonly<{ single: /*u64*/ bigint }>; - constructor(inner: { single: /*u64*/ bigint }) { - super('RetentionKind', 'Single'); - this.inner = Object.freeze(inner); - } - - static new(inner: { single: /*u64*/ bigint }): Single_ { - return new Single_(inner); - } - - static instanceOf(obj: any): obj is Single_ { - return obj.tag === RetentionKind_Tags.Single; - } - } - - type Range__interface = { - tag: RetentionKind_Tags.Range; - inner: Readonly<{ start: /*u64*/ bigint; end: /*u64*/ bigint }>; - }; - - class Range_ extends UniffiEnum implements Range__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'RetentionKind'; - readonly tag = RetentionKind_Tags.Range; - readonly inner: Readonly<{ start: /*u64*/ bigint; end: /*u64*/ bigint }>; - constructor(inner: { start: /*u64*/ bigint; end: /*u64*/ bigint }) { - super('RetentionKind', 'Range'); - this.inner = Object.freeze(inner); - } - - static new(inner: { start: /*u64*/ bigint; end: /*u64*/ bigint }): Range_ { - return new Range_(inner); - } - - static instanceOf(obj: any): obj is Range_ { - return obj.tag === RetentionKind_Tags.Range; - } - } - - function instanceOf(obj: any): obj is RetentionKind { - return obj[uniffiTypeNameSymbol] === 'RetentionKind'; - } - - return Object.freeze({ - instanceOf, - Single: Single_, - Range: Range_, - }); -})(); - -export type RetentionKind = InstanceType< - (typeof RetentionKind)[keyof Omit] ->; - -// FfiConverter for enum RetentionKind -const FfiConverterTypeRetentionKind = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = RetentionKind; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new RetentionKind.Single({ - single: FfiConverterUInt64.read(from), - }); - case 2: - return new RetentionKind.Range({ - start: FfiConverterUInt64.read(from), - end: FfiConverterUInt64.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case RetentionKind_Tags.Single: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterUInt64.write(inner.single, into); - return; - } - case RetentionKind_Tags.Range: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterUInt64.write(inner.start, into); - FfiConverterUInt64.write(inner.end, into); - return; - } - default: - // Throwing from here means that RetentionKind_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case RetentionKind_Tags.Single: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterUInt64.allocationSize(inner.single); - return size; - } - case RetentionKind_Tags.Range: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterUInt64.allocationSize(inner.start); - size += FfiConverterUInt64.allocationSize(inner.end); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Enum: SaveEventStatus -export enum SaveEventStatus_Tags { - Success = 'Success', - Rejected = 'Rejected', -} -/** - * Save event status - */ -export const SaveEventStatus = (() => { - type Success__interface = { - tag: SaveEventStatus_Tags.Success; - }; - - /** - * The event has been successfully saved - */ - class Success_ extends UniffiEnum implements Success__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'SaveEventStatus'; - readonly tag = SaveEventStatus_Tags.Success; - constructor() { - super('SaveEventStatus', 'Success'); - } - - static new(): Success_ { - return new Success_(); - } - - static instanceOf(obj: any): obj is Success_ { - return obj.tag === SaveEventStatus_Tags.Success; - } - } - - type Rejected__interface = { - tag: SaveEventStatus_Tags.Rejected; - inner: Readonly<[RejectedReason]>; - }; - - /** - * The event has been rejected - */ - class Rejected_ extends UniffiEnum implements Rejected__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'SaveEventStatus'; - readonly tag = SaveEventStatus_Tags.Rejected; - readonly inner: Readonly<[RejectedReason]>; - constructor(v0: RejectedReason) { - super('SaveEventStatus', 'Rejected'); - this.inner = Object.freeze([v0]); - } - - static new(v0: RejectedReason): Rejected_ { - return new Rejected_(v0); - } - - static instanceOf(obj: any): obj is Rejected_ { - return obj.tag === SaveEventStatus_Tags.Rejected; - } - } - - function instanceOf(obj: any): obj is SaveEventStatus { - return obj[uniffiTypeNameSymbol] === 'SaveEventStatus'; - } - - return Object.freeze({ - instanceOf, - Success: Success_, - Rejected: Rejected_, - }); -})(); - -/** - * Save event status - */ - -export type SaveEventStatus = InstanceType< - (typeof SaveEventStatus)[keyof Omit] ->; - -// FfiConverter for enum SaveEventStatus -const FfiConverterTypeSaveEventStatus = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = SaveEventStatus; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new SaveEventStatus.Success(); - case 2: - return new SaveEventStatus.Rejected( - FfiConverterTypeRejectedReason.read(from) - ); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case SaveEventStatus_Tags.Success: { - ordinalConverter.write(1, into); - return; - } - case SaveEventStatus_Tags.Rejected: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterTypeRejectedReason.write(inner[0], into); - return; - } - default: - // Throwing from here means that SaveEventStatus_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case SaveEventStatus_Tags.Success: { - return ordinalConverter.allocationSize(1); - } - case SaveEventStatus_Tags.Rejected: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterTypeRejectedReason.allocationSize(inner[0]); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Enum: SignerBackend -export enum SignerBackend_Tags { - Keys = 'Keys', - BrowserExtension = 'BrowserExtension', - NostrConnect = 'NostrConnect', - Custom = 'Custom', -} -export const SignerBackend = (() => { - type Keys__interface = { - tag: SignerBackend_Tags.Keys; - }; - - /** - * Secret key - */ - class Keys_ extends UniffiEnum implements Keys__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'SignerBackend'; - readonly tag = SignerBackend_Tags.Keys; - constructor() { - super('SignerBackend', 'Keys'); - } - - static new(): Keys_ { - return new Keys_(); - } - - static instanceOf(obj: any): obj is Keys_ { - return obj.tag === SignerBackend_Tags.Keys; - } - } - - type BrowserExtension__interface = { - tag: SignerBackend_Tags.BrowserExtension; - }; - - /** - * Browser extension (NIP07) - * - * - */ - class BrowserExtension_ - extends UniffiEnum - implements BrowserExtension__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'SignerBackend'; - readonly tag = SignerBackend_Tags.BrowserExtension; - constructor() { - super('SignerBackend', 'BrowserExtension'); - } - - static new(): BrowserExtension_ { - return new BrowserExtension_(); - } - - static instanceOf(obj: any): obj is BrowserExtension_ { - return obj.tag === SignerBackend_Tags.BrowserExtension; - } - } - - type NostrConnect__interface = { - tag: SignerBackend_Tags.NostrConnect; - }; - - /** - * Nostr Connect (NIP46) - * - * - */ - class NostrConnect_ extends UniffiEnum implements NostrConnect__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'SignerBackend'; - readonly tag = SignerBackend_Tags.NostrConnect; - constructor() { - super('SignerBackend', 'NostrConnect'); - } - - static new(): NostrConnect_ { - return new NostrConnect_(); - } - - static instanceOf(obj: any): obj is NostrConnect_ { - return obj.tag === SignerBackend_Tags.NostrConnect; - } - } - - type Custom__interface = { - tag: SignerBackend_Tags.Custom; - inner: Readonly<{ backend: string }>; - }; - - /** - * Custom - */ - class Custom_ extends UniffiEnum implements Custom__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'SignerBackend'; - readonly tag = SignerBackend_Tags.Custom; - readonly inner: Readonly<{ backend: string }>; - constructor(inner: { backend: string }) { - super('SignerBackend', 'Custom'); - this.inner = Object.freeze(inner); - } - - static new(inner: { backend: string }): Custom_ { - return new Custom_(inner); - } - - static instanceOf(obj: any): obj is Custom_ { - return obj.tag === SignerBackend_Tags.Custom; - } - } - - function instanceOf(obj: any): obj is SignerBackend { - return obj[uniffiTypeNameSymbol] === 'SignerBackend'; - } - - return Object.freeze({ - instanceOf, - Keys: Keys_, - BrowserExtension: BrowserExtension_, - NostrConnect: NostrConnect_, - Custom: Custom_, - }); -})(); - -export type SignerBackend = InstanceType< - (typeof SignerBackend)[keyof Omit] ->; - -// FfiConverter for enum SignerBackend -const FfiConverterTypeSignerBackend = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = SignerBackend; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new SignerBackend.Keys(); - case 2: - return new SignerBackend.BrowserExtension(); - case 3: - return new SignerBackend.NostrConnect(); - case 4: - return new SignerBackend.Custom({ - backend: FfiConverterString.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case SignerBackend_Tags.Keys: { - ordinalConverter.write(1, into); - return; - } - case SignerBackend_Tags.BrowserExtension: { - ordinalConverter.write(2, into); - return; - } - case SignerBackend_Tags.NostrConnect: { - ordinalConverter.write(3, into); - return; - } - case SignerBackend_Tags.Custom: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterString.write(inner.backend, into); - return; - } - default: - // Throwing from here means that SignerBackend_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case SignerBackend_Tags.Keys: { - return ordinalConverter.allocationSize(1); - } - case SignerBackend_Tags.BrowserExtension: { - return ordinalConverter.allocationSize(2); - } - case SignerBackend_Tags.NostrConnect: { - return ordinalConverter.allocationSize(3); - } - case SignerBackend_Tags.Custom: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterString.allocationSize(inner.backend); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -export enum SyncDirection { - Up, - Down, - Both, -} - -const FfiConverterTypeSyncDirection = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = SyncDirection; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return SyncDirection.Up; - case 2: - return SyncDirection.Down; - case 3: - return SyncDirection.Both; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case SyncDirection.Up: - return ordinalConverter.write(1, into); - case SyncDirection.Down: - return ordinalConverter.write(2, into); - case SyncDirection.Both: - return ordinalConverter.write(3, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: TagKind -export enum TagKind_Tags { - Alt = 'Alt', - Client = 'Client', - Clone = 'Clone', - Commit = 'Commit', - Maintainers = 'Maintainers', - Protected = 'Protected', - RelayUrl = 'RelayUrl', - Nonce = 'Nonce', - Delegation = 'Delegation', - ContentWarning = 'ContentWarning', - Expiration = 'Expiration', - Subject = 'Subject', - Challenge = 'Challenge', - Title = 'Title', - Image = 'Image', - Thumb = 'Thumb', - Summary = 'Summary', - PublishedAt = 'PublishedAt', - Description = 'Description', - Bolt11 = 'Bolt11', - Preimage = 'Preimage', - Relays = 'Relays', - Amount = 'Amount', - Lnurl = 'Lnurl', - MlsProtocolVersion = 'MlsProtocolVersion', - MlsCiphersuite = 'MlsCiphersuite', - MlsExtensions = 'MlsExtensions', - Name = 'Name', - Url = 'Url', - Aes256Gcm = 'Aes256Gcm', - Size = 'Size', - Dim = 'Dim', - File = 'File', - Magnet = 'Magnet', - Blurhash = 'Blurhash', - Streaming = 'Streaming', - Recording = 'Recording', - Starts = 'Starts', - Ends = 'Ends', - Status = 'Status', - CurrentParticipants = 'CurrentParticipants', - TotalParticipants = 'TotalParticipants', - Tracker = 'Tracker', - Method = 'Method', - Payload = 'Payload', - Anon = 'Anon', - Proxy = 'Proxy', - Emoji = 'Emoji', - Encrypted = 'Encrypted', - Request = 'Request', - Web = 'Web', - Word = 'Word', - SingleLetter = 'SingleLetter', - Unknown = 'Unknown', -} -export const TagKind = (() => { - type Alt__interface = { - tag: TagKind_Tags.Alt; - }; - - /** - * Human-readable plaintext summary of what that event is about - * - * - */ - class Alt_ extends UniffiEnum implements Alt__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Alt; - constructor() { - super('TagKind', 'Alt'); - } - - static new(): Alt_ { - return new Alt_(); - } - - static instanceOf(obj: any): obj is Alt_ { - return obj.tag === TagKind_Tags.Alt; - } - } - - type Client__interface = { - tag: TagKind_Tags.Client; - }; - - /** - * Client - * - * - */ - class Client_ extends UniffiEnum implements Client__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Client; - constructor() { - super('TagKind', 'Client'); - } - - static new(): Client_ { - return new Client_(); - } - - static instanceOf(obj: any): obj is Client_ { - return obj.tag === TagKind_Tags.Client; - } - } - - type Clone__interface = { - tag: TagKind_Tags.Clone; - }; - - class Clone_ extends UniffiEnum implements Clone__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Clone; - constructor() { - super('TagKind', 'Clone'); - } - - static new(): Clone_ { - return new Clone_(); - } - - static instanceOf(obj: any): obj is Clone_ { - return obj.tag === TagKind_Tags.Clone; - } - } - - type Commit__interface = { - tag: TagKind_Tags.Commit; - }; - - /** - * Commit - * - * - */ - class Commit_ extends UniffiEnum implements Commit__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Commit; - constructor() { - super('TagKind', 'Commit'); - } - - static new(): Commit_ { - return new Commit_(); - } - - static instanceOf(obj: any): obj is Commit_ { - return obj.tag === TagKind_Tags.Commit; - } - } - - type Maintainers__interface = { - tag: TagKind_Tags.Maintainers; - }; - - /** - * Maintainers - */ - class Maintainers_ extends UniffiEnum implements Maintainers__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Maintainers; - constructor() { - super('TagKind', 'Maintainers'); - } - - static new(): Maintainers_ { - return new Maintainers_(); - } - - static instanceOf(obj: any): obj is Maintainers_ { - return obj.tag === TagKind_Tags.Maintainers; - } - } - - type Protected__interface = { - tag: TagKind_Tags.Protected; - }; - - /** - * Protected event - * - * - */ - class Protected_ extends UniffiEnum implements Protected__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Protected; - constructor() { - super('TagKind', 'Protected'); - } - - static new(): Protected_ { - return new Protected_(); - } - - static instanceOf(obj: any): obj is Protected_ { - return obj.tag === TagKind_Tags.Protected; - } - } - - type RelayUrl__interface = { - tag: TagKind_Tags.RelayUrl; - }; - - /** - * Relay - */ - class RelayUrl_ extends UniffiEnum implements RelayUrl__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.RelayUrl; - constructor() { - super('TagKind', 'RelayUrl'); - } - - static new(): RelayUrl_ { - return new RelayUrl_(); - } - - static instanceOf(obj: any): obj is RelayUrl_ { - return obj.tag === TagKind_Tags.RelayUrl; - } - } - - type Nonce__interface = { - tag: TagKind_Tags.Nonce; - }; - - /** - * Nonce - */ - class Nonce_ extends UniffiEnum implements Nonce__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Nonce; - constructor() { - super('TagKind', 'Nonce'); - } - - static new(): Nonce_ { - return new Nonce_(); - } - - static instanceOf(obj: any): obj is Nonce_ { - return obj.tag === TagKind_Tags.Nonce; - } - } - - type Delegation__interface = { - tag: TagKind_Tags.Delegation; - }; - - /** - * Delegation - */ - class Delegation_ extends UniffiEnum implements Delegation__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Delegation; - constructor() { - super('TagKind', 'Delegation'); - } - - static new(): Delegation_ { - return new Delegation_(); - } - - static instanceOf(obj: any): obj is Delegation_ { - return obj.tag === TagKind_Tags.Delegation; - } - } - - type ContentWarning__interface = { - tag: TagKind_Tags.ContentWarning; - }; - - /** - * Content warning - */ - class ContentWarning_ - extends UniffiEnum - implements ContentWarning__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.ContentWarning; - constructor() { - super('TagKind', 'ContentWarning'); - } - - static new(): ContentWarning_ { - return new ContentWarning_(); - } - - static instanceOf(obj: any): obj is ContentWarning_ { - return obj.tag === TagKind_Tags.ContentWarning; - } - } - - type Expiration__interface = { - tag: TagKind_Tags.Expiration; - }; - - /** - * Expiration - */ - class Expiration_ extends UniffiEnum implements Expiration__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Expiration; - constructor() { - super('TagKind', 'Expiration'); - } - - static new(): Expiration_ { - return new Expiration_(); - } - - static instanceOf(obj: any): obj is Expiration_ { - return obj.tag === TagKind_Tags.Expiration; - } - } - - type Subject__interface = { - tag: TagKind_Tags.Subject; - }; - - /** - * Subject - */ - class Subject_ extends UniffiEnum implements Subject__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Subject; - constructor() { - super('TagKind', 'Subject'); - } - - static new(): Subject_ { - return new Subject_(); - } - - static instanceOf(obj: any): obj is Subject_ { - return obj.tag === TagKind_Tags.Subject; - } - } - - type Challenge__interface = { - tag: TagKind_Tags.Challenge; - }; - - /** - * Auth challenge - */ - class Challenge_ extends UniffiEnum implements Challenge__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Challenge; - constructor() { - super('TagKind', 'Challenge'); - } - - static new(): Challenge_ { - return new Challenge_(); - } - - static instanceOf(obj: any): obj is Challenge_ { - return obj.tag === TagKind_Tags.Challenge; - } - } - - type Title__interface = { - tag: TagKind_Tags.Title; - }; - - /** - * Title (NIP23) - */ - class Title_ extends UniffiEnum implements Title__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Title; - constructor() { - super('TagKind', 'Title'); - } - - static new(): Title_ { - return new Title_(); - } - - static instanceOf(obj: any): obj is Title_ { - return obj.tag === TagKind_Tags.Title; - } - } - - type Image__interface = { - tag: TagKind_Tags.Image; - }; - - /** - * Image (NIP23) - */ - class Image_ extends UniffiEnum implements Image__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Image; - constructor() { - super('TagKind', 'Image'); - } - - static new(): Image_ { - return new Image_(); - } - - static instanceOf(obj: any): obj is Image_ { - return obj.tag === TagKind_Tags.Image; - } - } - - type Thumb__interface = { - tag: TagKind_Tags.Thumb; - }; - - /** - * Thumbnail - */ - class Thumb_ extends UniffiEnum implements Thumb__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Thumb; - constructor() { - super('TagKind', 'Thumb'); - } - - static new(): Thumb_ { - return new Thumb_(); - } - - static instanceOf(obj: any): obj is Thumb_ { - return obj.tag === TagKind_Tags.Thumb; - } - } - - type Summary__interface = { - tag: TagKind_Tags.Summary; - }; - - /** - * Summary (NIP23) - */ - class Summary_ extends UniffiEnum implements Summary__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Summary; - constructor() { - super('TagKind', 'Summary'); - } - - static new(): Summary_ { - return new Summary_(); - } - - static instanceOf(obj: any): obj is Summary_ { - return obj.tag === TagKind_Tags.Summary; - } - } - - type PublishedAt__interface = { - tag: TagKind_Tags.PublishedAt; - }; - - /** - * PublishedAt (NIP23) - */ - class PublishedAt_ extends UniffiEnum implements PublishedAt__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.PublishedAt; - constructor() { - super('TagKind', 'PublishedAt'); - } - - static new(): PublishedAt_ { - return new PublishedAt_(); - } - - static instanceOf(obj: any): obj is PublishedAt_ { - return obj.tag === TagKind_Tags.PublishedAt; - } - } - - type Description__interface = { - tag: TagKind_Tags.Description; - }; - - /** - * Description (NIP57) - */ - class Description_ extends UniffiEnum implements Description__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Description; - constructor() { - super('TagKind', 'Description'); - } - - static new(): Description_ { - return new Description_(); - } - - static instanceOf(obj: any): obj is Description_ { - return obj.tag === TagKind_Tags.Description; - } - } - - type Bolt11__interface = { - tag: TagKind_Tags.Bolt11; - }; - - /** - * Bolt11 Invoice (NIP57) - */ - class Bolt11_ extends UniffiEnum implements Bolt11__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Bolt11; - constructor() { - super('TagKind', 'Bolt11'); - } - - static new(): Bolt11_ { - return new Bolt11_(); - } - - static instanceOf(obj: any): obj is Bolt11_ { - return obj.tag === TagKind_Tags.Bolt11; - } - } - - type Preimage__interface = { - tag: TagKind_Tags.Preimage; - }; - - /** - * Preimage (NIP57) - */ - class Preimage_ extends UniffiEnum implements Preimage__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Preimage; - constructor() { - super('TagKind', 'Preimage'); - } - - static new(): Preimage_ { - return new Preimage_(); - } - - static instanceOf(obj: any): obj is Preimage_ { - return obj.tag === TagKind_Tags.Preimage; - } - } - - type Relays__interface = { - tag: TagKind_Tags.Relays; - }; - - /** - * Relays (NIP57) - */ - class Relays_ extends UniffiEnum implements Relays__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Relays; - constructor() { - super('TagKind', 'Relays'); - } - - static new(): Relays_ { - return new Relays_(); - } - - static instanceOf(obj: any): obj is Relays_ { - return obj.tag === TagKind_Tags.Relays; - } - } - - type Amount__interface = { - tag: TagKind_Tags.Amount; - }; - - /** - * Amount (NIP57) - */ - class Amount_ extends UniffiEnum implements Amount__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Amount; - constructor() { - super('TagKind', 'Amount'); - } - - static new(): Amount_ { - return new Amount_(); - } - - static instanceOf(obj: any): obj is Amount_ { - return obj.tag === TagKind_Tags.Amount; - } - } - - type Lnurl__interface = { - tag: TagKind_Tags.Lnurl; - }; - - /** - * Lnurl (NIP57) - */ - class Lnurl_ extends UniffiEnum implements Lnurl__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Lnurl; - constructor() { - super('TagKind', 'Lnurl'); - } - - static new(): Lnurl_ { - return new Lnurl_(); - } - - static instanceOf(obj: any): obj is Lnurl_ { - return obj.tag === TagKind_Tags.Lnurl; - } - } - - type MlsProtocolVersion__interface = { - tag: TagKind_Tags.MlsProtocolVersion; - }; - - /** - * MLS Protocol Version (NIP104) - */ - class MlsProtocolVersion_ - extends UniffiEnum - implements MlsProtocolVersion__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.MlsProtocolVersion; - constructor() { - super('TagKind', 'MlsProtocolVersion'); - } - - static new(): MlsProtocolVersion_ { - return new MlsProtocolVersion_(); - } - - static instanceOf(obj: any): obj is MlsProtocolVersion_ { - return obj.tag === TagKind_Tags.MlsProtocolVersion; - } - } - - type MlsCiphersuite__interface = { - tag: TagKind_Tags.MlsCiphersuite; - }; - - /** - * MLS Cipher Suite (NIP104) - */ - class MlsCiphersuite_ - extends UniffiEnum - implements MlsCiphersuite__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.MlsCiphersuite; - constructor() { - super('TagKind', 'MlsCiphersuite'); - } - - static new(): MlsCiphersuite_ { - return new MlsCiphersuite_(); - } - - static instanceOf(obj: any): obj is MlsCiphersuite_ { - return obj.tag === TagKind_Tags.MlsCiphersuite; - } - } - - type MlsExtensions__interface = { - tag: TagKind_Tags.MlsExtensions; - }; - - /** - * MLS Extensions (NIP104) - */ - class MlsExtensions_ extends UniffiEnum implements MlsExtensions__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.MlsExtensions; - constructor() { - super('TagKind', 'MlsExtensions'); - } - - static new(): MlsExtensions_ { - return new MlsExtensions_(); - } - - static instanceOf(obj: any): obj is MlsExtensions_ { - return obj.tag === TagKind_Tags.MlsExtensions; - } - } - - type Name__interface = { - tag: TagKind_Tags.Name; - }; - - /** - * Name tag - */ - class Name_ extends UniffiEnum implements Name__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Name; - constructor() { - super('TagKind', 'Name'); - } - - static new(): Name_ { - return new Name_(); - } - - static instanceOf(obj: any): obj is Name_ { - return obj.tag === TagKind_Tags.Name; - } - } - - type Url__interface = { - tag: TagKind_Tags.Url; - }; - - /** - * Url - */ - class Url_ extends UniffiEnum implements Url__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Url; - constructor() { - super('TagKind', 'Url'); - } - - static new(): Url_ { - return new Url_(); - } - - static instanceOf(obj: any): obj is Url_ { - return obj.tag === TagKind_Tags.Url; - } - } - - type Aes256Gcm__interface = { - tag: TagKind_Tags.Aes256Gcm; - }; - - /** - * AES 256 GCM - */ - class Aes256Gcm_ extends UniffiEnum implements Aes256Gcm__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Aes256Gcm; - constructor() { - super('TagKind', 'Aes256Gcm'); - } - - static new(): Aes256Gcm_ { - return new Aes256Gcm_(); - } - - static instanceOf(obj: any): obj is Aes256Gcm_ { - return obj.tag === TagKind_Tags.Aes256Gcm; - } - } - - type Size__interface = { - tag: TagKind_Tags.Size; - }; - - /** - * Size of file in bytes - */ - class Size_ extends UniffiEnum implements Size__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Size; - constructor() { - super('TagKind', 'Size'); - } - - static new(): Size_ { - return new Size_(); - } - - static instanceOf(obj: any): obj is Size_ { - return obj.tag === TagKind_Tags.Size; - } - } - - type Dim__interface = { - tag: TagKind_Tags.Dim; - }; - - /** - * Size of file in pixels - */ - class Dim_ extends UniffiEnum implements Dim__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Dim; - constructor() { - super('TagKind', 'Dim'); - } - - static new(): Dim_ { - return new Dim_(); - } - - static instanceOf(obj: any): obj is Dim_ { - return obj.tag === TagKind_Tags.Dim; - } - } - - type File__interface = { - tag: TagKind_Tags.File; - }; - - class File_ extends UniffiEnum implements File__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.File; - constructor() { - super('TagKind', 'File'); - } - - static new(): File_ { - return new File_(); - } - - static instanceOf(obj: any): obj is File_ { - return obj.tag === TagKind_Tags.File; - } - } - - type Magnet__interface = { - tag: TagKind_Tags.Magnet; - }; - - /** - * Magnet - */ - class Magnet_ extends UniffiEnum implements Magnet__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Magnet; - constructor() { - super('TagKind', 'Magnet'); - } - - static new(): Magnet_ { - return new Magnet_(); - } - - static instanceOf(obj: any): obj is Magnet_ { - return obj.tag === TagKind_Tags.Magnet; - } - } - - type Blurhash__interface = { - tag: TagKind_Tags.Blurhash; - }; - - /** - * Blurhash - */ - class Blurhash_ extends UniffiEnum implements Blurhash__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Blurhash; - constructor() { - super('TagKind', 'Blurhash'); - } - - static new(): Blurhash_ { - return new Blurhash_(); - } - - static instanceOf(obj: any): obj is Blurhash_ { - return obj.tag === TagKind_Tags.Blurhash; - } - } - - type Streaming__interface = { - tag: TagKind_Tags.Streaming; - }; - - /** - * Streaming - */ - class Streaming_ extends UniffiEnum implements Streaming__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Streaming; - constructor() { - super('TagKind', 'Streaming'); - } - - static new(): Streaming_ { - return new Streaming_(); - } - - static instanceOf(obj: any): obj is Streaming_ { - return obj.tag === TagKind_Tags.Streaming; - } - } - - type Recording__interface = { - tag: TagKind_Tags.Recording; - }; - - /** - * Recording - */ - class Recording_ extends UniffiEnum implements Recording__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Recording; - constructor() { - super('TagKind', 'Recording'); - } - - static new(): Recording_ { - return new Recording_(); - } - - static instanceOf(obj: any): obj is Recording_ { - return obj.tag === TagKind_Tags.Recording; - } - } - - type Starts__interface = { - tag: TagKind_Tags.Starts; - }; - - /** - * Starts - */ - class Starts_ extends UniffiEnum implements Starts__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Starts; - constructor() { - super('TagKind', 'Starts'); - } - - static new(): Starts_ { - return new Starts_(); - } - - static instanceOf(obj: any): obj is Starts_ { - return obj.tag === TagKind_Tags.Starts; - } - } - - type Ends__interface = { - tag: TagKind_Tags.Ends; - }; - - /** - * Ends - */ - class Ends_ extends UniffiEnum implements Ends__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Ends; - constructor() { - super('TagKind', 'Ends'); - } - - static new(): Ends_ { - return new Ends_(); - } - - static instanceOf(obj: any): obj is Ends_ { - return obj.tag === TagKind_Tags.Ends; - } - } - - type Status__interface = { - tag: TagKind_Tags.Status; - }; - - /** - * Status - */ - class Status_ extends UniffiEnum implements Status__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Status; - constructor() { - super('TagKind', 'Status'); - } - - static new(): Status_ { - return new Status_(); - } - - static instanceOf(obj: any): obj is Status_ { - return obj.tag === TagKind_Tags.Status; - } - } - - type CurrentParticipants__interface = { - tag: TagKind_Tags.CurrentParticipants; - }; - - /** - * Current participants - */ - class CurrentParticipants_ - extends UniffiEnum - implements CurrentParticipants__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.CurrentParticipants; - constructor() { - super('TagKind', 'CurrentParticipants'); - } - - static new(): CurrentParticipants_ { - return new CurrentParticipants_(); - } - - static instanceOf(obj: any): obj is CurrentParticipants_ { - return obj.tag === TagKind_Tags.CurrentParticipants; - } - } - - type TotalParticipants__interface = { - tag: TagKind_Tags.TotalParticipants; - }; - - /** - * Total participants - */ - class TotalParticipants_ - extends UniffiEnum - implements TotalParticipants__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.TotalParticipants; - constructor() { - super('TagKind', 'TotalParticipants'); - } - - static new(): TotalParticipants_ { - return new TotalParticipants_(); - } - - static instanceOf(obj: any): obj is TotalParticipants_ { - return obj.tag === TagKind_Tags.TotalParticipants; - } - } - - type Tracker__interface = { - tag: TagKind_Tags.Tracker; - }; - - class Tracker_ extends UniffiEnum implements Tracker__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Tracker; - constructor() { - super('TagKind', 'Tracker'); - } - - static new(): Tracker_ { - return new Tracker_(); - } - - static instanceOf(obj: any): obj is Tracker_ { - return obj.tag === TagKind_Tags.Tracker; - } - } - - type Method__interface = { - tag: TagKind_Tags.Method; - }; - - /** - * HTTP Method Request - */ - class Method_ extends UniffiEnum implements Method__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Method; - constructor() { - super('TagKind', 'Method'); - } - - static new(): Method_ { - return new Method_(); - } - - static instanceOf(obj: any): obj is Method_ { - return obj.tag === TagKind_Tags.Method; - } - } - - type Payload__interface = { - tag: TagKind_Tags.Payload; - }; - - /** - * Payload HASH - */ - class Payload_ extends UniffiEnum implements Payload__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Payload; - constructor() { - super('TagKind', 'Payload'); - } - - static new(): Payload_ { - return new Payload_(); - } - - static instanceOf(obj: any): obj is Payload_ { - return obj.tag === TagKind_Tags.Payload; - } - } - - type Anon__interface = { - tag: TagKind_Tags.Anon; - }; - - class Anon_ extends UniffiEnum implements Anon__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Anon; - constructor() { - super('TagKind', 'Anon'); - } - - static new(): Anon_ { - return new Anon_(); - } - - static instanceOf(obj: any): obj is Anon_ { - return obj.tag === TagKind_Tags.Anon; - } - } - - type Proxy__interface = { - tag: TagKind_Tags.Proxy; - }; - - class Proxy_ extends UniffiEnum implements Proxy__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Proxy; - constructor() { - super('TagKind', 'Proxy'); - } - - static new(): Proxy_ { - return new Proxy_(); - } - - static instanceOf(obj: any): obj is Proxy_ { - return obj.tag === TagKind_Tags.Proxy; - } - } - - type Emoji__interface = { - tag: TagKind_Tags.Emoji; - }; - - class Emoji_ extends UniffiEnum implements Emoji__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Emoji; - constructor() { - super('TagKind', 'Emoji'); - } - - static new(): Emoji_ { - return new Emoji_(); - } - - static instanceOf(obj: any): obj is Emoji_ { - return obj.tag === TagKind_Tags.Emoji; - } - } - - type Encrypted__interface = { - tag: TagKind_Tags.Encrypted; - }; - - /** - * Encrypted - */ - class Encrypted_ extends UniffiEnum implements Encrypted__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Encrypted; - constructor() { - super('TagKind', 'Encrypted'); - } - - static new(): Encrypted_ { - return new Encrypted_(); - } - - static instanceOf(obj: any): obj is Encrypted_ { - return obj.tag === TagKind_Tags.Encrypted; - } - } - - type Request__interface = { - tag: TagKind_Tags.Request; - }; - - class Request_ extends UniffiEnum implements Request__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Request; - constructor() { - super('TagKind', 'Request'); - } - - static new(): Request_ { - return new Request_(); - } - - static instanceOf(obj: any): obj is Request_ { - return obj.tag === TagKind_Tags.Request; - } - } - - type Web__interface = { - tag: TagKind_Tags.Web; - }; - - class Web_ extends UniffiEnum implements Web__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Web; - constructor() { - super('TagKind', 'Web'); - } - - static new(): Web_ { - return new Web_(); - } - - static instanceOf(obj: any): obj is Web_ { - return obj.tag === TagKind_Tags.Web; - } - } - - type Word__interface = { - tag: TagKind_Tags.Word; - }; - - class Word_ extends UniffiEnum implements Word__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Word; - constructor() { - super('TagKind', 'Word'); - } - - static new(): Word_ { - return new Word_(); - } - - static instanceOf(obj: any): obj is Word_ { - return obj.tag === TagKind_Tags.Word; - } - } - - type SingleLetter__interface = { - tag: TagKind_Tags.SingleLetter; - inner: Readonly<{ singleLetter: SingleLetterTagInterface }>; - }; - - class SingleLetter_ extends UniffiEnum implements SingleLetter__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.SingleLetter; - readonly inner: Readonly<{ singleLetter: SingleLetterTagInterface }>; - constructor(inner: { singleLetter: SingleLetterTagInterface }) { - super('TagKind', 'SingleLetter'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - singleLetter: SingleLetterTagInterface; - }): SingleLetter_ { - return new SingleLetter_(inner); - } - - static instanceOf(obj: any): obj is SingleLetter_ { - return obj.tag === TagKind_Tags.SingleLetter; - } - } - - type Unknown__interface = { - tag: TagKind_Tags.Unknown; - inner: Readonly<{ unknown: string }>; - }; - - class Unknown_ extends UniffiEnum implements Unknown__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagKind'; - readonly tag = TagKind_Tags.Unknown; - readonly inner: Readonly<{ unknown: string }>; - constructor(inner: { unknown: string }) { - super('TagKind', 'Unknown'); - this.inner = Object.freeze(inner); - } - - static new(inner: { unknown: string }): Unknown_ { - return new Unknown_(inner); - } - - static instanceOf(obj: any): obj is Unknown_ { - return obj.tag === TagKind_Tags.Unknown; - } - } - - function instanceOf(obj: any): obj is TagKind { - return obj[uniffiTypeNameSymbol] === 'TagKind'; - } - - return Object.freeze({ - instanceOf, - Alt: Alt_, - Client: Client_, - Clone: Clone_, - Commit: Commit_, - Maintainers: Maintainers_, - Protected: Protected_, - RelayUrl: RelayUrl_, - Nonce: Nonce_, - Delegation: Delegation_, - ContentWarning: ContentWarning_, - Expiration: Expiration_, - Subject: Subject_, - Challenge: Challenge_, - Title: Title_, - Image: Image_, - Thumb: Thumb_, - Summary: Summary_, - PublishedAt: PublishedAt_, - Description: Description_, - Bolt11: Bolt11_, - Preimage: Preimage_, - Relays: Relays_, - Amount: Amount_, - Lnurl: Lnurl_, - MlsProtocolVersion: MlsProtocolVersion_, - MlsCiphersuite: MlsCiphersuite_, - MlsExtensions: MlsExtensions_, - Name: Name_, - Url: Url_, - Aes256Gcm: Aes256Gcm_, - Size: Size_, - Dim: Dim_, - File: File_, - Magnet: Magnet_, - Blurhash: Blurhash_, - Streaming: Streaming_, - Recording: Recording_, - Starts: Starts_, - Ends: Ends_, - Status: Status_, - CurrentParticipants: CurrentParticipants_, - TotalParticipants: TotalParticipants_, - Tracker: Tracker_, - Method: Method_, - Payload: Payload_, - Anon: Anon_, - Proxy: Proxy_, - Emoji: Emoji_, - Encrypted: Encrypted_, - Request: Request_, - Web: Web_, - Word: Word_, - SingleLetter: SingleLetter_, - Unknown: Unknown_, - }); -})(); - -export type TagKind = InstanceType< - (typeof TagKind)[keyof Omit] ->; - -// FfiConverter for enum TagKind -const FfiConverterTypeTagKind = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = TagKind; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new TagKind.Alt(); - case 2: - return new TagKind.Client(); - case 3: - return new TagKind.Clone(); - case 4: - return new TagKind.Commit(); - case 5: - return new TagKind.Maintainers(); - case 6: - return new TagKind.Protected(); - case 7: - return new TagKind.RelayUrl(); - case 8: - return new TagKind.Nonce(); - case 9: - return new TagKind.Delegation(); - case 10: - return new TagKind.ContentWarning(); - case 11: - return new TagKind.Expiration(); - case 12: - return new TagKind.Subject(); - case 13: - return new TagKind.Challenge(); - case 14: - return new TagKind.Title(); - case 15: - return new TagKind.Image(); - case 16: - return new TagKind.Thumb(); - case 17: - return new TagKind.Summary(); - case 18: - return new TagKind.PublishedAt(); - case 19: - return new TagKind.Description(); - case 20: - return new TagKind.Bolt11(); - case 21: - return new TagKind.Preimage(); - case 22: - return new TagKind.Relays(); - case 23: - return new TagKind.Amount(); - case 24: - return new TagKind.Lnurl(); - case 25: - return new TagKind.MlsProtocolVersion(); - case 26: - return new TagKind.MlsCiphersuite(); - case 27: - return new TagKind.MlsExtensions(); - case 28: - return new TagKind.Name(); - case 29: - return new TagKind.Url(); - case 30: - return new TagKind.Aes256Gcm(); - case 31: - return new TagKind.Size(); - case 32: - return new TagKind.Dim(); - case 33: - return new TagKind.File(); - case 34: - return new TagKind.Magnet(); - case 35: - return new TagKind.Blurhash(); - case 36: - return new TagKind.Streaming(); - case 37: - return new TagKind.Recording(); - case 38: - return new TagKind.Starts(); - case 39: - return new TagKind.Ends(); - case 40: - return new TagKind.Status(); - case 41: - return new TagKind.CurrentParticipants(); - case 42: - return new TagKind.TotalParticipants(); - case 43: - return new TagKind.Tracker(); - case 44: - return new TagKind.Method(); - case 45: - return new TagKind.Payload(); - case 46: - return new TagKind.Anon(); - case 47: - return new TagKind.Proxy(); - case 48: - return new TagKind.Emoji(); - case 49: - return new TagKind.Encrypted(); - case 50: - return new TagKind.Request(); - case 51: - return new TagKind.Web(); - case 52: - return new TagKind.Word(); - case 53: - return new TagKind.SingleLetter({ - singleLetter: FfiConverterTypeSingleLetterTag.read(from), - }); - case 54: - return new TagKind.Unknown({ - unknown: FfiConverterString.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case TagKind_Tags.Alt: { - ordinalConverter.write(1, into); - return; - } - case TagKind_Tags.Client: { - ordinalConverter.write(2, into); - return; - } - case TagKind_Tags.Clone: { - ordinalConverter.write(3, into); - return; - } - case TagKind_Tags.Commit: { - ordinalConverter.write(4, into); - return; - } - case TagKind_Tags.Maintainers: { - ordinalConverter.write(5, into); - return; - } - case TagKind_Tags.Protected: { - ordinalConverter.write(6, into); - return; - } - case TagKind_Tags.RelayUrl: { - ordinalConverter.write(7, into); - return; - } - case TagKind_Tags.Nonce: { - ordinalConverter.write(8, into); - return; - } - case TagKind_Tags.Delegation: { - ordinalConverter.write(9, into); - return; - } - case TagKind_Tags.ContentWarning: { - ordinalConverter.write(10, into); - return; - } - case TagKind_Tags.Expiration: { - ordinalConverter.write(11, into); - return; - } - case TagKind_Tags.Subject: { - ordinalConverter.write(12, into); - return; - } - case TagKind_Tags.Challenge: { - ordinalConverter.write(13, into); - return; - } - case TagKind_Tags.Title: { - ordinalConverter.write(14, into); - return; - } - case TagKind_Tags.Image: { - ordinalConverter.write(15, into); - return; - } - case TagKind_Tags.Thumb: { - ordinalConverter.write(16, into); - return; - } - case TagKind_Tags.Summary: { - ordinalConverter.write(17, into); - return; - } - case TagKind_Tags.PublishedAt: { - ordinalConverter.write(18, into); - return; - } - case TagKind_Tags.Description: { - ordinalConverter.write(19, into); - return; - } - case TagKind_Tags.Bolt11: { - ordinalConverter.write(20, into); - return; - } - case TagKind_Tags.Preimage: { - ordinalConverter.write(21, into); - return; - } - case TagKind_Tags.Relays: { - ordinalConverter.write(22, into); - return; - } - case TagKind_Tags.Amount: { - ordinalConverter.write(23, into); - return; - } - case TagKind_Tags.Lnurl: { - ordinalConverter.write(24, into); - return; - } - case TagKind_Tags.MlsProtocolVersion: { - ordinalConverter.write(25, into); - return; - } - case TagKind_Tags.MlsCiphersuite: { - ordinalConverter.write(26, into); - return; - } - case TagKind_Tags.MlsExtensions: { - ordinalConverter.write(27, into); - return; - } - case TagKind_Tags.Name: { - ordinalConverter.write(28, into); - return; - } - case TagKind_Tags.Url: { - ordinalConverter.write(29, into); - return; - } - case TagKind_Tags.Aes256Gcm: { - ordinalConverter.write(30, into); - return; - } - case TagKind_Tags.Size: { - ordinalConverter.write(31, into); - return; - } - case TagKind_Tags.Dim: { - ordinalConverter.write(32, into); - return; - } - case TagKind_Tags.File: { - ordinalConverter.write(33, into); - return; - } - case TagKind_Tags.Magnet: { - ordinalConverter.write(34, into); - return; - } - case TagKind_Tags.Blurhash: { - ordinalConverter.write(35, into); - return; - } - case TagKind_Tags.Streaming: { - ordinalConverter.write(36, into); - return; - } - case TagKind_Tags.Recording: { - ordinalConverter.write(37, into); - return; - } - case TagKind_Tags.Starts: { - ordinalConverter.write(38, into); - return; - } - case TagKind_Tags.Ends: { - ordinalConverter.write(39, into); - return; - } - case TagKind_Tags.Status: { - ordinalConverter.write(40, into); - return; - } - case TagKind_Tags.CurrentParticipants: { - ordinalConverter.write(41, into); - return; - } - case TagKind_Tags.TotalParticipants: { - ordinalConverter.write(42, into); - return; - } - case TagKind_Tags.Tracker: { - ordinalConverter.write(43, into); - return; - } - case TagKind_Tags.Method: { - ordinalConverter.write(44, into); - return; - } - case TagKind_Tags.Payload: { - ordinalConverter.write(45, into); - return; - } - case TagKind_Tags.Anon: { - ordinalConverter.write(46, into); - return; - } - case TagKind_Tags.Proxy: { - ordinalConverter.write(47, into); - return; - } - case TagKind_Tags.Emoji: { - ordinalConverter.write(48, into); - return; - } - case TagKind_Tags.Encrypted: { - ordinalConverter.write(49, into); - return; - } - case TagKind_Tags.Request: { - ordinalConverter.write(50, into); - return; - } - case TagKind_Tags.Web: { - ordinalConverter.write(51, into); - return; - } - case TagKind_Tags.Word: { - ordinalConverter.write(52, into); - return; - } - case TagKind_Tags.SingleLetter: { - ordinalConverter.write(53, into); - const inner = value.inner; - FfiConverterTypeSingleLetterTag.write(inner.singleLetter, into); - return; - } - case TagKind_Tags.Unknown: { - ordinalConverter.write(54, into); - const inner = value.inner; - FfiConverterString.write(inner.unknown, into); - return; - } - default: - // Throwing from here means that TagKind_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case TagKind_Tags.Alt: { - return ordinalConverter.allocationSize(1); - } - case TagKind_Tags.Client: { - return ordinalConverter.allocationSize(2); - } - case TagKind_Tags.Clone: { - return ordinalConverter.allocationSize(3); - } - case TagKind_Tags.Commit: { - return ordinalConverter.allocationSize(4); - } - case TagKind_Tags.Maintainers: { - return ordinalConverter.allocationSize(5); - } - case TagKind_Tags.Protected: { - return ordinalConverter.allocationSize(6); - } - case TagKind_Tags.RelayUrl: { - return ordinalConverter.allocationSize(7); - } - case TagKind_Tags.Nonce: { - return ordinalConverter.allocationSize(8); - } - case TagKind_Tags.Delegation: { - return ordinalConverter.allocationSize(9); - } - case TagKind_Tags.ContentWarning: { - return ordinalConverter.allocationSize(10); - } - case TagKind_Tags.Expiration: { - return ordinalConverter.allocationSize(11); - } - case TagKind_Tags.Subject: { - return ordinalConverter.allocationSize(12); - } - case TagKind_Tags.Challenge: { - return ordinalConverter.allocationSize(13); - } - case TagKind_Tags.Title: { - return ordinalConverter.allocationSize(14); - } - case TagKind_Tags.Image: { - return ordinalConverter.allocationSize(15); - } - case TagKind_Tags.Thumb: { - return ordinalConverter.allocationSize(16); - } - case TagKind_Tags.Summary: { - return ordinalConverter.allocationSize(17); - } - case TagKind_Tags.PublishedAt: { - return ordinalConverter.allocationSize(18); - } - case TagKind_Tags.Description: { - return ordinalConverter.allocationSize(19); - } - case TagKind_Tags.Bolt11: { - return ordinalConverter.allocationSize(20); - } - case TagKind_Tags.Preimage: { - return ordinalConverter.allocationSize(21); - } - case TagKind_Tags.Relays: { - return ordinalConverter.allocationSize(22); - } - case TagKind_Tags.Amount: { - return ordinalConverter.allocationSize(23); - } - case TagKind_Tags.Lnurl: { - return ordinalConverter.allocationSize(24); - } - case TagKind_Tags.MlsProtocolVersion: { - return ordinalConverter.allocationSize(25); - } - case TagKind_Tags.MlsCiphersuite: { - return ordinalConverter.allocationSize(26); - } - case TagKind_Tags.MlsExtensions: { - return ordinalConverter.allocationSize(27); - } - case TagKind_Tags.Name: { - return ordinalConverter.allocationSize(28); - } - case TagKind_Tags.Url: { - return ordinalConverter.allocationSize(29); - } - case TagKind_Tags.Aes256Gcm: { - return ordinalConverter.allocationSize(30); - } - case TagKind_Tags.Size: { - return ordinalConverter.allocationSize(31); - } - case TagKind_Tags.Dim: { - return ordinalConverter.allocationSize(32); - } - case TagKind_Tags.File: { - return ordinalConverter.allocationSize(33); - } - case TagKind_Tags.Magnet: { - return ordinalConverter.allocationSize(34); - } - case TagKind_Tags.Blurhash: { - return ordinalConverter.allocationSize(35); - } - case TagKind_Tags.Streaming: { - return ordinalConverter.allocationSize(36); - } - case TagKind_Tags.Recording: { - return ordinalConverter.allocationSize(37); - } - case TagKind_Tags.Starts: { - return ordinalConverter.allocationSize(38); - } - case TagKind_Tags.Ends: { - return ordinalConverter.allocationSize(39); - } - case TagKind_Tags.Status: { - return ordinalConverter.allocationSize(40); - } - case TagKind_Tags.CurrentParticipants: { - return ordinalConverter.allocationSize(41); - } - case TagKind_Tags.TotalParticipants: { - return ordinalConverter.allocationSize(42); - } - case TagKind_Tags.Tracker: { - return ordinalConverter.allocationSize(43); - } - case TagKind_Tags.Method: { - return ordinalConverter.allocationSize(44); - } - case TagKind_Tags.Payload: { - return ordinalConverter.allocationSize(45); - } - case TagKind_Tags.Anon: { - return ordinalConverter.allocationSize(46); - } - case TagKind_Tags.Proxy: { - return ordinalConverter.allocationSize(47); - } - case TagKind_Tags.Emoji: { - return ordinalConverter.allocationSize(48); - } - case TagKind_Tags.Encrypted: { - return ordinalConverter.allocationSize(49); - } - case TagKind_Tags.Request: { - return ordinalConverter.allocationSize(50); - } - case TagKind_Tags.Web: { - return ordinalConverter.allocationSize(51); - } - case TagKind_Tags.Word: { - return ordinalConverter.allocationSize(52); - } - case TagKind_Tags.SingleLetter: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(53); - size += FfiConverterTypeSingleLetterTag.allocationSize( - inner.singleLetter - ); - return size; - } - case TagKind_Tags.Unknown: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(54); - size += FfiConverterString.allocationSize(inner.unknown); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -// Enum: TagStandard -export enum TagStandard_Tags { - EventTag = 'EventTag', - Quote = 'Quote', - GitClone = 'GitClone', - GitCommit = 'GitCommit', - GitEarliestUniqueCommitId = 'GitEarliestUniqueCommitId', - GitMaintainers = 'GitMaintainers', - PublicKeyTag = 'PublicKeyTag', - EventReport = 'EventReport', - PubKeyReport = 'PubKeyReport', - PublicKeyLiveEvent = 'PublicKeyLiveEvent', - Reference = 'Reference', - RelayMetadataTag = 'RelayMetadataTag', - Hashtag = 'Hashtag', - Geohash = 'Geohash', - Identifier = 'Identifier', - ExternalContent = 'ExternalContent', - ExternalIdentity = 'ExternalIdentity', - CoordinateTag = 'CoordinateTag', - KindTag = 'KindTag', - RelayUrl = 'RelayUrl', - AllRelays = 'AllRelays', - Pow = 'POW', - Client = 'Client', - Delegation = 'Delegation', - ContentWarning = 'ContentWarning', - Expiration = 'Expiration', - Subject = 'Subject', - Challenge = 'Challenge', - Title = 'Title', - Image = 'Image', - Thumb = 'Thumb', - Summary = 'Summary', - Description = 'Description', - Bolt11 = 'Bolt11', - Preimage = 'Preimage', - Relays = 'Relays', - Amount = 'Amount', - Lnurl = 'Lnurl', - Name = 'Name', - PublishedAt = 'PublishedAt', - UrlTag = 'UrlTag', - MimeType = 'MimeType', - Aes256Gcm = 'Aes256Gcm', - Sha256 = 'Sha256', - Size = 'Size', - Dim = 'Dim', - Magnet = 'Magnet', - Blurhash = 'Blurhash', - Streaming = 'Streaming', - Recording = 'Recording', - Starts = 'Starts', - Ends = 'Ends', - LiveEventStatusTag = 'LiveEventStatusTag', - CurrentParticipants = 'CurrentParticipants', - TotalParticipants = 'TotalParticipants', - AbsoluteUrl = 'AbsoluteURL', - Method = 'Method', - Payload = 'Payload', - Anon = 'Anon', - Proxy = 'Proxy', - Emoji = 'Emoji', - Encrypted = 'Encrypted', - Request = 'Request', - DataVendingMachineStatusTag = 'DataVendingMachineStatusTag', - LabelNamespace = 'LabelNamespace', - Label = 'Label', - Protected = 'Protected', - Alt = 'Alt', - Word = 'Word', - Web = 'Web', -} -/** - * Standardized tag - */ -export const TagStandard = (() => { - type EventTag__interface = { - tag: TagStandard_Tags.EventTag; - inner: Readonly<{ - eventId: EventIdInterface; - relayUrl: string | undefined; - marker: Marker | undefined; - publicKey: PublicKeyInterface | undefined; - uppercase: boolean; - }>; - }; - - class EventTag_ extends UniffiEnum implements EventTag__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.EventTag; - readonly inner: Readonly<{ - eventId: EventIdInterface; - relayUrl: string | undefined; - marker: Marker | undefined; - publicKey: PublicKeyInterface | undefined; - uppercase: boolean; - }>; - constructor(inner: { - eventId: EventIdInterface; - relayUrl: string | undefined; - marker: Marker | undefined; - /** - * Should be the public key of the author of the referenced event - */ publicKey: PublicKeyInterface | undefined; - /** - * Whether the e tag is an uppercase E or not - */ uppercase: boolean; - }) { - super('TagStandard', 'EventTag'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - eventId: EventIdInterface; - relayUrl: string | undefined; - marker: Marker | undefined; - /** - * Should be the public key of the author of the referenced event - */ publicKey: PublicKeyInterface | undefined; - /** - * Whether the e tag is an uppercase E or not - */ uppercase: boolean; - }): EventTag_ { - return new EventTag_(inner); - } - - static instanceOf(obj: any): obj is EventTag_ { - return obj.tag === TagStandard_Tags.EventTag; - } - } - - type Quote__interface = { - tag: TagStandard_Tags.Quote; - inner: Readonly<{ - eventId: EventIdInterface; - relayUrl: string | undefined; - publicKey: PublicKeyInterface | undefined; - }>; - }; - - class Quote_ extends UniffiEnum implements Quote__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Quote; - readonly inner: Readonly<{ - eventId: EventIdInterface; - relayUrl: string | undefined; - publicKey: PublicKeyInterface | undefined; - }>; - constructor(inner: { - eventId: EventIdInterface; - relayUrl: string | undefined; - /** - * Should be the public key of the author of the referenced event - */ publicKey: PublicKeyInterface | undefined; - }) { - super('TagStandard', 'Quote'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - eventId: EventIdInterface; - relayUrl: string | undefined; - /** - * Should be the public key of the author of the referenced event - */ publicKey: PublicKeyInterface | undefined; - }): Quote_ { - return new Quote_(inner); - } - - static instanceOf(obj: any): obj is Quote_ { - return obj.tag === TagStandard_Tags.Quote; - } - } - - type GitClone__interface = { - tag: TagStandard_Tags.GitClone; - inner: Readonly<{ urls: Array }>; - }; - - /** - * Git clone (`clone` tag) - * - * - */ - class GitClone_ extends UniffiEnum implements GitClone__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.GitClone; - readonly inner: Readonly<{ urls: Array }>; - constructor(inner: { urls: Array }) { - super('TagStandard', 'GitClone'); - this.inner = Object.freeze(inner); - } - - static new(inner: { urls: Array }): GitClone_ { - return new GitClone_(inner); - } - - static instanceOf(obj: any): obj is GitClone_ { - return obj.tag === TagStandard_Tags.GitClone; - } - } - - type GitCommit__interface = { - tag: TagStandard_Tags.GitCommit; - inner: Readonly<{ hash: string }>; - }; - - /** - * Git commit - * - * - */ - class GitCommit_ extends UniffiEnum implements GitCommit__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.GitCommit; - readonly inner: Readonly<{ hash: string }>; - constructor(inner: { hash: string }) { - super('TagStandard', 'GitCommit'); - this.inner = Object.freeze(inner); - } - - static new(inner: { hash: string }): GitCommit_ { - return new GitCommit_(inner); - } - - static instanceOf(obj: any): obj is GitCommit_ { - return obj.tag === TagStandard_Tags.GitCommit; - } - } - - type GitEarliestUniqueCommitId__interface = { - tag: TagStandard_Tags.GitEarliestUniqueCommitId; - inner: Readonly<{ commit: string }>; - }; - - /** - * Git earliest unique commit ID - * - * - */ - class GitEarliestUniqueCommitId_ - extends UniffiEnum - implements GitEarliestUniqueCommitId__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.GitEarliestUniqueCommitId; - readonly inner: Readonly<{ commit: string }>; - constructor(inner: { commit: string }) { - super('TagStandard', 'GitEarliestUniqueCommitId'); - this.inner = Object.freeze(inner); - } - - static new(inner: { commit: string }): GitEarliestUniqueCommitId_ { - return new GitEarliestUniqueCommitId_(inner); - } - - static instanceOf(obj: any): obj is GitEarliestUniqueCommitId_ { - return obj.tag === TagStandard_Tags.GitEarliestUniqueCommitId; - } - } - - type GitMaintainers__interface = { - tag: TagStandard_Tags.GitMaintainers; - inner: Readonly<{ publicKeys: Array }>; - }; - - /** - * Git repo maintainers - * - * - */ - class GitMaintainers_ - extends UniffiEnum - implements GitMaintainers__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.GitMaintainers; - readonly inner: Readonly<{ publicKeys: Array }>; - constructor(inner: { publicKeys: Array }) { - super('TagStandard', 'GitMaintainers'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - publicKeys: Array; - }): GitMaintainers_ { - return new GitMaintainers_(inner); - } - - static instanceOf(obj: any): obj is GitMaintainers_ { - return obj.tag === TagStandard_Tags.GitMaintainers; - } - } - - type PublicKeyTag__interface = { - tag: TagStandard_Tags.PublicKeyTag; - inner: Readonly<{ - publicKey: PublicKeyInterface; - relayUrl: string | undefined; - alias: string | undefined; - uppercase: boolean; - }>; - }; - - class PublicKeyTag_ extends UniffiEnum implements PublicKeyTag__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.PublicKeyTag; - readonly inner: Readonly<{ - publicKey: PublicKeyInterface; - relayUrl: string | undefined; - alias: string | undefined; - uppercase: boolean; - }>; - constructor(inner: { - publicKey: PublicKeyInterface; - relayUrl: string | undefined; - alias: string | undefined; - /** - * Whether the p tag is an uppercase P or not - */ uppercase: boolean; - }) { - super('TagStandard', 'PublicKeyTag'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - publicKey: PublicKeyInterface; - relayUrl: string | undefined; - alias: string | undefined; - /** - * Whether the p tag is an uppercase P or not - */ uppercase: boolean; - }): PublicKeyTag_ { - return new PublicKeyTag_(inner); - } - - static instanceOf(obj: any): obj is PublicKeyTag_ { - return obj.tag === TagStandard_Tags.PublicKeyTag; - } - } - - type EventReport__interface = { - tag: TagStandard_Tags.EventReport; - inner: Readonly<{ eventId: EventIdInterface; report: Report }>; - }; - - class EventReport_ extends UniffiEnum implements EventReport__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.EventReport; - readonly inner: Readonly<{ eventId: EventIdInterface; report: Report }>; - constructor(inner: { eventId: EventIdInterface; report: Report }) { - super('TagStandard', 'EventReport'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - eventId: EventIdInterface; - report: Report; - }): EventReport_ { - return new EventReport_(inner); - } - - static instanceOf(obj: any): obj is EventReport_ { - return obj.tag === TagStandard_Tags.EventReport; - } - } - - type PubKeyReport__interface = { - tag: TagStandard_Tags.PubKeyReport; - inner: Readonly<{ publicKey: PublicKeyInterface; report: Report }>; - }; - - class PubKeyReport_ extends UniffiEnum implements PubKeyReport__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.PubKeyReport; - readonly inner: Readonly<{ publicKey: PublicKeyInterface; report: Report }>; - constructor(inner: { publicKey: PublicKeyInterface; report: Report }) { - super('TagStandard', 'PubKeyReport'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - publicKey: PublicKeyInterface; - report: Report; - }): PubKeyReport_ { - return new PubKeyReport_(inner); - } - - static instanceOf(obj: any): obj is PubKeyReport_ { - return obj.tag === TagStandard_Tags.PubKeyReport; - } - } - - type PublicKeyLiveEvent__interface = { - tag: TagStandard_Tags.PublicKeyLiveEvent; - inner: Readonly<{ - publicKey: PublicKeyInterface; - relayUrl: string | undefined; - marker: LiveEventMarker; - proof: string | undefined; - }>; - }; - - class PublicKeyLiveEvent_ - extends UniffiEnum - implements PublicKeyLiveEvent__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.PublicKeyLiveEvent; - readonly inner: Readonly<{ - publicKey: PublicKeyInterface; - relayUrl: string | undefined; - marker: LiveEventMarker; - proof: string | undefined; - }>; - constructor(inner: { - publicKey: PublicKeyInterface; - relayUrl: string | undefined; - marker: LiveEventMarker; - proof: string | undefined; - }) { - super('TagStandard', 'PublicKeyLiveEvent'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - publicKey: PublicKeyInterface; - relayUrl: string | undefined; - marker: LiveEventMarker; - proof: string | undefined; - }): PublicKeyLiveEvent_ { - return new PublicKeyLiveEvent_(inner); - } - - static instanceOf(obj: any): obj is PublicKeyLiveEvent_ { - return obj.tag === TagStandard_Tags.PublicKeyLiveEvent; - } - } - - type Reference__interface = { - tag: TagStandard_Tags.Reference; - inner: Readonly<{ reference: string }>; - }; - - class Reference_ extends UniffiEnum implements Reference__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Reference; - readonly inner: Readonly<{ reference: string }>; - constructor(inner: { reference: string }) { - super('TagStandard', 'Reference'); - this.inner = Object.freeze(inner); - } - - static new(inner: { reference: string }): Reference_ { - return new Reference_(inner); - } - - static instanceOf(obj: any): obj is Reference_ { - return obj.tag === TagStandard_Tags.Reference; - } - } - - type RelayMetadataTag__interface = { - tag: TagStandard_Tags.RelayMetadataTag; - inner: Readonly<{ relayUrl: string; rw: RelayMetadata | undefined }>; - }; - - class RelayMetadataTag_ - extends UniffiEnum - implements RelayMetadataTag__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.RelayMetadataTag; - readonly inner: Readonly<{ - relayUrl: string; - rw: RelayMetadata | undefined; - }>; - constructor(inner: { relayUrl: string; rw: RelayMetadata | undefined }) { - super('TagStandard', 'RelayMetadataTag'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - relayUrl: string; - rw: RelayMetadata | undefined; - }): RelayMetadataTag_ { - return new RelayMetadataTag_(inner); - } - - static instanceOf(obj: any): obj is RelayMetadataTag_ { - return obj.tag === TagStandard_Tags.RelayMetadataTag; - } - } - - type Hashtag__interface = { - tag: TagStandard_Tags.Hashtag; - inner: Readonly<{ hashtag: string }>; - }; - - class Hashtag_ extends UniffiEnum implements Hashtag__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Hashtag; - readonly inner: Readonly<{ hashtag: string }>; - constructor(inner: { hashtag: string }) { - super('TagStandard', 'Hashtag'); - this.inner = Object.freeze(inner); - } - - static new(inner: { hashtag: string }): Hashtag_ { - return new Hashtag_(inner); - } - - static instanceOf(obj: any): obj is Hashtag_ { - return obj.tag === TagStandard_Tags.Hashtag; - } - } - - type Geohash__interface = { - tag: TagStandard_Tags.Geohash; - inner: Readonly<{ geohash: string }>; - }; - - class Geohash_ extends UniffiEnum implements Geohash__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Geohash; - readonly inner: Readonly<{ geohash: string }>; - constructor(inner: { geohash: string }) { - super('TagStandard', 'Geohash'); - this.inner = Object.freeze(inner); - } - - static new(inner: { geohash: string }): Geohash_ { - return new Geohash_(inner); - } - - static instanceOf(obj: any): obj is Geohash_ { - return obj.tag === TagStandard_Tags.Geohash; - } - } - - type Identifier__interface = { - tag: TagStandard_Tags.Identifier; - inner: Readonly<{ identifier: string }>; - }; - - class Identifier_ extends UniffiEnum implements Identifier__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Identifier; - readonly inner: Readonly<{ identifier: string }>; - constructor(inner: { identifier: string }) { - super('TagStandard', 'Identifier'); - this.inner = Object.freeze(inner); - } - - static new(inner: { identifier: string }): Identifier_ { - return new Identifier_(inner); - } - - static instanceOf(obj: any): obj is Identifier_ { - return obj.tag === TagStandard_Tags.Identifier; - } - } - - type ExternalContent__interface = { - tag: TagStandard_Tags.ExternalContent; - inner: Readonly<{ - content: ExternalContentId; - hint: string | undefined; - uppercase: boolean; - }>; - }; - - class ExternalContent_ - extends UniffiEnum - implements ExternalContent__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.ExternalContent; - readonly inner: Readonly<{ - content: ExternalContentId; - hint: string | undefined; - uppercase: boolean; - }>; - constructor(inner: { - content: ExternalContentId; - /** - * Hint URL - */ hint: string | undefined; - uppercase: boolean; - }) { - super('TagStandard', 'ExternalContent'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - content: ExternalContentId; - /** - * Hint URL - */ hint: string | undefined; - uppercase: boolean; - }): ExternalContent_ { - return new ExternalContent_(inner); - } - - static instanceOf(obj: any): obj is ExternalContent_ { - return obj.tag === TagStandard_Tags.ExternalContent; - } - } - - type ExternalIdentity__interface = { - tag: TagStandard_Tags.ExternalIdentity; - inner: Readonly<{ identity: Identity }>; - }; - - class ExternalIdentity_ - extends UniffiEnum - implements ExternalIdentity__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.ExternalIdentity; - readonly inner: Readonly<{ identity: Identity }>; - constructor(inner: { identity: Identity }) { - super('TagStandard', 'ExternalIdentity'); - this.inner = Object.freeze(inner); - } - - static new(inner: { identity: Identity }): ExternalIdentity_ { - return new ExternalIdentity_(inner); - } - - static instanceOf(obj: any): obj is ExternalIdentity_ { - return obj.tag === TagStandard_Tags.ExternalIdentity; - } - } - - type CoordinateTag__interface = { - tag: TagStandard_Tags.CoordinateTag; - inner: Readonly<{ - coordinate: CoordinateInterface; - relayUrl: string | undefined; - uppercase: boolean; - }>; - }; - - class CoordinateTag_ extends UniffiEnum implements CoordinateTag__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.CoordinateTag; - readonly inner: Readonly<{ - coordinate: CoordinateInterface; - relayUrl: string | undefined; - uppercase: boolean; - }>; - constructor(inner: { - coordinate: CoordinateInterface; - relayUrl: string | undefined; - /** - * Whether the a tag is an uppercase A or not - */ uppercase: boolean; - }) { - super('TagStandard', 'CoordinateTag'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - coordinate: CoordinateInterface; - relayUrl: string | undefined; - /** - * Whether the a tag is an uppercase A or not - */ uppercase: boolean; - }): CoordinateTag_ { - return new CoordinateTag_(inner); - } - - static instanceOf(obj: any): obj is CoordinateTag_ { - return obj.tag === TagStandard_Tags.CoordinateTag; - } - } - - type KindTag__interface = { - tag: TagStandard_Tags.KindTag; - inner: Readonly<{ kind: KindInterface; uppercase: boolean }>; - }; - - class KindTag_ extends UniffiEnum implements KindTag__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.KindTag; - readonly inner: Readonly<{ kind: KindInterface; uppercase: boolean }>; - constructor(inner: { - kind: KindInterface; - /** - * Whether the k tag is an uppercase K or not - */ uppercase: boolean; - }) { - super('TagStandard', 'KindTag'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - kind: KindInterface; - /** - * Whether the k tag is an uppercase K or not - */ uppercase: boolean; - }): KindTag_ { - return new KindTag_(inner); - } - - static instanceOf(obj: any): obj is KindTag_ { - return obj.tag === TagStandard_Tags.KindTag; - } - } - - type RelayUrl__interface = { - tag: TagStandard_Tags.RelayUrl; - inner: Readonly<{ relayUrl: string }>; - }; - - class RelayUrl_ extends UniffiEnum implements RelayUrl__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.RelayUrl; - readonly inner: Readonly<{ relayUrl: string }>; - constructor(inner: { relayUrl: string }) { - super('TagStandard', 'RelayUrl'); - this.inner = Object.freeze(inner); - } - - static new(inner: { relayUrl: string }): RelayUrl_ { - return new RelayUrl_(inner); - } - - static instanceOf(obj: any): obj is RelayUrl_ { - return obj.tag === TagStandard_Tags.RelayUrl; - } - } - - type AllRelays__interface = { - tag: TagStandard_Tags.AllRelays; - }; - - /** - * All relays tag - * - * - */ - class AllRelays_ extends UniffiEnum implements AllRelays__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.AllRelays; - constructor() { - super('TagStandard', 'AllRelays'); - } - - static new(): AllRelays_ { - return new AllRelays_(); - } - - static instanceOf(obj: any): obj is AllRelays_ { - return obj.tag === TagStandard_Tags.AllRelays; - } - } - - type Pow__interface = { - tag: TagStandard_Tags.Pow; - inner: Readonly<{ nonce: string; difficulty: /*u8*/ number }>; - }; - - class Pow_ extends UniffiEnum implements Pow__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Pow; - readonly inner: Readonly<{ nonce: string; difficulty: /*u8*/ number }>; - constructor(inner: { nonce: string; difficulty: /*u8*/ number }) { - super('TagStandard', 'Pow'); - this.inner = Object.freeze(inner); - } - - static new(inner: { nonce: string; difficulty: /*u8*/ number }): Pow_ { - return new Pow_(inner); - } - - static instanceOf(obj: any): obj is Pow_ { - return obj.tag === TagStandard_Tags.Pow; - } - } - - type Client__interface = { - tag: TagStandard_Tags.Client; - inner: Readonly<{ name: string; address: TagClientAddress | undefined }>; - }; - - class Client_ extends UniffiEnum implements Client__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Client; - readonly inner: Readonly<{ - name: string; - address: TagClientAddress | undefined; - }>; - constructor(inner: { - name: string; - address: TagClientAddress | undefined; - }) { - super('TagStandard', 'Client'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - name: string; - address: TagClientAddress | undefined; - }): Client_ { - return new Client_(inner); - } - - static instanceOf(obj: any): obj is Client_ { - return obj.tag === TagStandard_Tags.Client; - } - } - - type Delegation__interface = { - tag: TagStandard_Tags.Delegation; - inner: Readonly<{ - delegator: PublicKeyInterface; - conditions: string; - sig: string; - }>; - }; - - class Delegation_ extends UniffiEnum implements Delegation__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Delegation; - readonly inner: Readonly<{ - delegator: PublicKeyInterface; - conditions: string; - sig: string; - }>; - constructor(inner: { - delegator: PublicKeyInterface; - conditions: string; - sig: string; - }) { - super('TagStandard', 'Delegation'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - delegator: PublicKeyInterface; - conditions: string; - sig: string; - }): Delegation_ { - return new Delegation_(inner); - } - - static instanceOf(obj: any): obj is Delegation_ { - return obj.tag === TagStandard_Tags.Delegation; - } - } - - type ContentWarning__interface = { - tag: TagStandard_Tags.ContentWarning; - inner: Readonly<{ reason: string | undefined }>; - }; - - class ContentWarning_ - extends UniffiEnum - implements ContentWarning__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.ContentWarning; - readonly inner: Readonly<{ reason: string | undefined }>; - constructor(inner: { reason: string | undefined }) { - super('TagStandard', 'ContentWarning'); - this.inner = Object.freeze(inner); - } - - static new(inner: { reason: string | undefined }): ContentWarning_ { - return new ContentWarning_(inner); - } - - static instanceOf(obj: any): obj is ContentWarning_ { - return obj.tag === TagStandard_Tags.ContentWarning; - } - } - - type Expiration__interface = { - tag: TagStandard_Tags.Expiration; - inner: Readonly<{ timestamp: TimestampInterface }>; - }; - - class Expiration_ extends UniffiEnum implements Expiration__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Expiration; - readonly inner: Readonly<{ timestamp: TimestampInterface }>; - constructor(inner: { timestamp: TimestampInterface }) { - super('TagStandard', 'Expiration'); - this.inner = Object.freeze(inner); - } - - static new(inner: { timestamp: TimestampInterface }): Expiration_ { - return new Expiration_(inner); - } - - static instanceOf(obj: any): obj is Expiration_ { - return obj.tag === TagStandard_Tags.Expiration; - } - } - - type Subject__interface = { - tag: TagStandard_Tags.Subject; - inner: Readonly<{ subject: string }>; - }; - - class Subject_ extends UniffiEnum implements Subject__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Subject; - readonly inner: Readonly<{ subject: string }>; - constructor(inner: { subject: string }) { - super('TagStandard', 'Subject'); - this.inner = Object.freeze(inner); - } - - static new(inner: { subject: string }): Subject_ { - return new Subject_(inner); - } - - static instanceOf(obj: any): obj is Subject_ { - return obj.tag === TagStandard_Tags.Subject; - } - } - - type Challenge__interface = { - tag: TagStandard_Tags.Challenge; - inner: Readonly<{ challenge: string }>; - }; - - class Challenge_ extends UniffiEnum implements Challenge__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Challenge; - readonly inner: Readonly<{ challenge: string }>; - constructor(inner: { challenge: string }) { - super('TagStandard', 'Challenge'); - this.inner = Object.freeze(inner); - } - - static new(inner: { challenge: string }): Challenge_ { - return new Challenge_(inner); - } - - static instanceOf(obj: any): obj is Challenge_ { - return obj.tag === TagStandard_Tags.Challenge; - } - } - - type Title__interface = { - tag: TagStandard_Tags.Title; - inner: Readonly<{ title: string }>; - }; - - class Title_ extends UniffiEnum implements Title__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Title; - readonly inner: Readonly<{ title: string }>; - constructor(inner: { title: string }) { - super('TagStandard', 'Title'); - this.inner = Object.freeze(inner); - } - - static new(inner: { title: string }): Title_ { - return new Title_(inner); - } - - static instanceOf(obj: any): obj is Title_ { - return obj.tag === TagStandard_Tags.Title; - } - } - - type Image__interface = { - tag: TagStandard_Tags.Image; - inner: Readonly<{ url: string; dimensions: ImageDimensions | undefined }>; - }; - - class Image_ extends UniffiEnum implements Image__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Image; - readonly inner: Readonly<{ - url: string; - dimensions: ImageDimensions | undefined; - }>; - constructor(inner: { - url: string; - dimensions: ImageDimensions | undefined; - }) { - super('TagStandard', 'Image'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - url: string; - dimensions: ImageDimensions | undefined; - }): Image_ { - return new Image_(inner); - } - - static instanceOf(obj: any): obj is Image_ { - return obj.tag === TagStandard_Tags.Image; - } - } - - type Thumb__interface = { - tag: TagStandard_Tags.Thumb; - inner: Readonly<{ url: string; dimensions: ImageDimensions | undefined }>; - }; - - class Thumb_ extends UniffiEnum implements Thumb__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Thumb; - readonly inner: Readonly<{ - url: string; - dimensions: ImageDimensions | undefined; - }>; - constructor(inner: { - url: string; - dimensions: ImageDimensions | undefined; - }) { - super('TagStandard', 'Thumb'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - url: string; - dimensions: ImageDimensions | undefined; - }): Thumb_ { - return new Thumb_(inner); - } - - static instanceOf(obj: any): obj is Thumb_ { - return obj.tag === TagStandard_Tags.Thumb; - } - } - - type Summary__interface = { - tag: TagStandard_Tags.Summary; - inner: Readonly<{ summary: string }>; - }; - - class Summary_ extends UniffiEnum implements Summary__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Summary; - readonly inner: Readonly<{ summary: string }>; - constructor(inner: { summary: string }) { - super('TagStandard', 'Summary'); - this.inner = Object.freeze(inner); - } - - static new(inner: { summary: string }): Summary_ { - return new Summary_(inner); - } - - static instanceOf(obj: any): obj is Summary_ { - return obj.tag === TagStandard_Tags.Summary; - } - } - - type Description__interface = { - tag: TagStandard_Tags.Description; - inner: Readonly<{ desc: string }>; - }; - - class Description_ extends UniffiEnum implements Description__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Description; - readonly inner: Readonly<{ desc: string }>; - constructor(inner: { desc: string }) { - super('TagStandard', 'Description'); - this.inner = Object.freeze(inner); - } - - static new(inner: { desc: string }): Description_ { - return new Description_(inner); - } - - static instanceOf(obj: any): obj is Description_ { - return obj.tag === TagStandard_Tags.Description; - } - } - - type Bolt11__interface = { - tag: TagStandard_Tags.Bolt11; - inner: Readonly<{ bolt11: string }>; - }; - - class Bolt11_ extends UniffiEnum implements Bolt11__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Bolt11; - readonly inner: Readonly<{ bolt11: string }>; - constructor(inner: { bolt11: string }) { - super('TagStandard', 'Bolt11'); - this.inner = Object.freeze(inner); - } - - static new(inner: { bolt11: string }): Bolt11_ { - return new Bolt11_(inner); - } - - static instanceOf(obj: any): obj is Bolt11_ { - return obj.tag === TagStandard_Tags.Bolt11; - } - } - - type Preimage__interface = { - tag: TagStandard_Tags.Preimage; - inner: Readonly<{ preimage: string }>; - }; - - class Preimage_ extends UniffiEnum implements Preimage__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Preimage; - readonly inner: Readonly<{ preimage: string }>; - constructor(inner: { preimage: string }) { - super('TagStandard', 'Preimage'); - this.inner = Object.freeze(inner); - } - - static new(inner: { preimage: string }): Preimage_ { - return new Preimage_(inner); - } - - static instanceOf(obj: any): obj is Preimage_ { - return obj.tag === TagStandard_Tags.Preimage; - } - } - - type Relays__interface = { - tag: TagStandard_Tags.Relays; - inner: Readonly<{ urls: Array }>; - }; - - class Relays_ extends UniffiEnum implements Relays__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Relays; - readonly inner: Readonly<{ urls: Array }>; - constructor(inner: { urls: Array }) { - super('TagStandard', 'Relays'); - this.inner = Object.freeze(inner); - } - - static new(inner: { urls: Array }): Relays_ { - return new Relays_(inner); - } - - static instanceOf(obj: any): obj is Relays_ { - return obj.tag === TagStandard_Tags.Relays; - } - } - - type Amount__interface = { - tag: TagStandard_Tags.Amount; - inner: Readonly<{ millisats: /*u64*/ bigint; bolt11: string | undefined }>; - }; - - class Amount_ extends UniffiEnum implements Amount__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Amount; - readonly inner: Readonly<{ - millisats: /*u64*/ bigint; - bolt11: string | undefined; - }>; - constructor(inner: { - millisats: /*u64*/ bigint; - bolt11: string | undefined; - }) { - super('TagStandard', 'Amount'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - millisats: /*u64*/ bigint; - bolt11: string | undefined; - }): Amount_ { - return new Amount_(inner); - } - - static instanceOf(obj: any): obj is Amount_ { - return obj.tag === TagStandard_Tags.Amount; - } - } - - type Lnurl__interface = { - tag: TagStandard_Tags.Lnurl; - inner: Readonly<{ lnurl: string }>; - }; - - class Lnurl_ extends UniffiEnum implements Lnurl__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Lnurl; - readonly inner: Readonly<{ lnurl: string }>; - constructor(inner: { lnurl: string }) { - super('TagStandard', 'Lnurl'); - this.inner = Object.freeze(inner); - } - - static new(inner: { lnurl: string }): Lnurl_ { - return new Lnurl_(inner); - } - - static instanceOf(obj: any): obj is Lnurl_ { - return obj.tag === TagStandard_Tags.Lnurl; - } - } - - type Name__interface = { - tag: TagStandard_Tags.Name; - inner: Readonly<{ name: string }>; - }; - - class Name_ extends UniffiEnum implements Name__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Name; - readonly inner: Readonly<{ name: string }>; - constructor(inner: { name: string }) { - super('TagStandard', 'Name'); - this.inner = Object.freeze(inner); - } - - static new(inner: { name: string }): Name_ { - return new Name_(inner); - } - - static instanceOf(obj: any): obj is Name_ { - return obj.tag === TagStandard_Tags.Name; - } - } - - type PublishedAt__interface = { - tag: TagStandard_Tags.PublishedAt; - inner: Readonly<{ timestamp: TimestampInterface }>; - }; - - class PublishedAt_ extends UniffiEnum implements PublishedAt__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.PublishedAt; - readonly inner: Readonly<{ timestamp: TimestampInterface }>; - constructor(inner: { timestamp: TimestampInterface }) { - super('TagStandard', 'PublishedAt'); - this.inner = Object.freeze(inner); - } - - static new(inner: { timestamp: TimestampInterface }): PublishedAt_ { - return new PublishedAt_(inner); - } - - static instanceOf(obj: any): obj is PublishedAt_ { - return obj.tag === TagStandard_Tags.PublishedAt; - } - } - - type UrlTag__interface = { - tag: TagStandard_Tags.UrlTag; - inner: Readonly<{ url: string }>; - }; - - class UrlTag_ extends UniffiEnum implements UrlTag__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.UrlTag; - readonly inner: Readonly<{ url: string }>; - constructor(inner: { url: string }) { - super('TagStandard', 'UrlTag'); - this.inner = Object.freeze(inner); - } - - static new(inner: { url: string }): UrlTag_ { - return new UrlTag_(inner); - } - - static instanceOf(obj: any): obj is UrlTag_ { - return obj.tag === TagStandard_Tags.UrlTag; - } - } - - type MimeType__interface = { - tag: TagStandard_Tags.MimeType; - inner: Readonly<{ mime: string }>; - }; - - class MimeType_ extends UniffiEnum implements MimeType__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.MimeType; - readonly inner: Readonly<{ mime: string }>; - constructor(inner: { mime: string }) { - super('TagStandard', 'MimeType'); - this.inner = Object.freeze(inner); - } - - static new(inner: { mime: string }): MimeType_ { - return new MimeType_(inner); - } - - static instanceOf(obj: any): obj is MimeType_ { - return obj.tag === TagStandard_Tags.MimeType; - } - } - - type Aes256Gcm__interface = { - tag: TagStandard_Tags.Aes256Gcm; - inner: Readonly<{ key: string; iv: string }>; - }; - - class Aes256Gcm_ extends UniffiEnum implements Aes256Gcm__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Aes256Gcm; - readonly inner: Readonly<{ key: string; iv: string }>; - constructor(inner: { key: string; iv: string }) { - super('TagStandard', 'Aes256Gcm'); - this.inner = Object.freeze(inner); - } - - static new(inner: { key: string; iv: string }): Aes256Gcm_ { - return new Aes256Gcm_(inner); - } - - static instanceOf(obj: any): obj is Aes256Gcm_ { - return obj.tag === TagStandard_Tags.Aes256Gcm; - } - } - - type Sha256__interface = { - tag: TagStandard_Tags.Sha256; - inner: Readonly<{ hash: string }>; - }; - - class Sha256_ extends UniffiEnum implements Sha256__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Sha256; - readonly inner: Readonly<{ hash: string }>; - constructor(inner: { hash: string }) { - super('TagStandard', 'Sha256'); - this.inner = Object.freeze(inner); - } - - static new(inner: { hash: string }): Sha256_ { - return new Sha256_(inner); - } - - static instanceOf(obj: any): obj is Sha256_ { - return obj.tag === TagStandard_Tags.Sha256; - } - } - - type Size__interface = { - tag: TagStandard_Tags.Size; - inner: Readonly<{ size: /*u64*/ bigint }>; - }; - - class Size_ extends UniffiEnum implements Size__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Size; - readonly inner: Readonly<{ size: /*u64*/ bigint }>; - constructor(inner: { size: /*u64*/ bigint }) { - super('TagStandard', 'Size'); - this.inner = Object.freeze(inner); - } - - static new(inner: { size: /*u64*/ bigint }): Size_ { - return new Size_(inner); - } - - static instanceOf(obj: any): obj is Size_ { - return obj.tag === TagStandard_Tags.Size; - } - } - - type Dim__interface = { - tag: TagStandard_Tags.Dim; - inner: Readonly<{ dimensions: ImageDimensions }>; - }; - - /** - * Size of file in pixels - */ - class Dim_ extends UniffiEnum implements Dim__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Dim; - readonly inner: Readonly<{ dimensions: ImageDimensions }>; - constructor(inner: { dimensions: ImageDimensions }) { - super('TagStandard', 'Dim'); - this.inner = Object.freeze(inner); - } - - static new(inner: { dimensions: ImageDimensions }): Dim_ { - return new Dim_(inner); - } - - static instanceOf(obj: any): obj is Dim_ { - return obj.tag === TagStandard_Tags.Dim; - } - } - - type Magnet__interface = { - tag: TagStandard_Tags.Magnet; - inner: Readonly<{ uri: string }>; - }; - - class Magnet_ extends UniffiEnum implements Magnet__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Magnet; - readonly inner: Readonly<{ uri: string }>; - constructor(inner: { uri: string }) { - super('TagStandard', 'Magnet'); - this.inner = Object.freeze(inner); - } - - static new(inner: { uri: string }): Magnet_ { - return new Magnet_(inner); - } - - static instanceOf(obj: any): obj is Magnet_ { - return obj.tag === TagStandard_Tags.Magnet; - } - } - - type Blurhash__interface = { - tag: TagStandard_Tags.Blurhash; - inner: Readonly<{ blurhash: string }>; - }; - - class Blurhash_ extends UniffiEnum implements Blurhash__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Blurhash; - readonly inner: Readonly<{ blurhash: string }>; - constructor(inner: { blurhash: string }) { - super('TagStandard', 'Blurhash'); - this.inner = Object.freeze(inner); - } - - static new(inner: { blurhash: string }): Blurhash_ { - return new Blurhash_(inner); - } - - static instanceOf(obj: any): obj is Blurhash_ { - return obj.tag === TagStandard_Tags.Blurhash; - } - } - - type Streaming__interface = { - tag: TagStandard_Tags.Streaming; - inner: Readonly<{ url: string }>; - }; - - class Streaming_ extends UniffiEnum implements Streaming__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Streaming; - readonly inner: Readonly<{ url: string }>; - constructor(inner: { url: string }) { - super('TagStandard', 'Streaming'); - this.inner = Object.freeze(inner); - } - - static new(inner: { url: string }): Streaming_ { - return new Streaming_(inner); - } - - static instanceOf(obj: any): obj is Streaming_ { - return obj.tag === TagStandard_Tags.Streaming; - } - } - - type Recording__interface = { - tag: TagStandard_Tags.Recording; - inner: Readonly<{ url: string }>; - }; - - class Recording_ extends UniffiEnum implements Recording__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Recording; - readonly inner: Readonly<{ url: string }>; - constructor(inner: { url: string }) { - super('TagStandard', 'Recording'); - this.inner = Object.freeze(inner); - } - - static new(inner: { url: string }): Recording_ { - return new Recording_(inner); - } - - static instanceOf(obj: any): obj is Recording_ { - return obj.tag === TagStandard_Tags.Recording; - } - } - - type Starts__interface = { - tag: TagStandard_Tags.Starts; - inner: Readonly<{ timestamp: TimestampInterface }>; - }; - - class Starts_ extends UniffiEnum implements Starts__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Starts; - readonly inner: Readonly<{ timestamp: TimestampInterface }>; - constructor(inner: { timestamp: TimestampInterface }) { - super('TagStandard', 'Starts'); - this.inner = Object.freeze(inner); - } - - static new(inner: { timestamp: TimestampInterface }): Starts_ { - return new Starts_(inner); - } - - static instanceOf(obj: any): obj is Starts_ { - return obj.tag === TagStandard_Tags.Starts; - } - } - - type Ends__interface = { - tag: TagStandard_Tags.Ends; - inner: Readonly<{ timestamp: TimestampInterface }>; - }; - - class Ends_ extends UniffiEnum implements Ends__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Ends; - readonly inner: Readonly<{ timestamp: TimestampInterface }>; - constructor(inner: { timestamp: TimestampInterface }) { - super('TagStandard', 'Ends'); - this.inner = Object.freeze(inner); - } - - static new(inner: { timestamp: TimestampInterface }): Ends_ { - return new Ends_(inner); - } - - static instanceOf(obj: any): obj is Ends_ { - return obj.tag === TagStandard_Tags.Ends; - } - } - - type LiveEventStatusTag__interface = { - tag: TagStandard_Tags.LiveEventStatusTag; - inner: Readonly<{ status: LiveEventStatus }>; - }; - - class LiveEventStatusTag_ - extends UniffiEnum - implements LiveEventStatusTag__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.LiveEventStatusTag; - readonly inner: Readonly<{ status: LiveEventStatus }>; - constructor(inner: { status: LiveEventStatus }) { - super('TagStandard', 'LiveEventStatusTag'); - this.inner = Object.freeze(inner); - } - - static new(inner: { status: LiveEventStatus }): LiveEventStatusTag_ { - return new LiveEventStatusTag_(inner); - } - - static instanceOf(obj: any): obj is LiveEventStatusTag_ { - return obj.tag === TagStandard_Tags.LiveEventStatusTag; - } - } - - type CurrentParticipants__interface = { - tag: TagStandard_Tags.CurrentParticipants; - inner: Readonly<{ num: /*u64*/ bigint }>; - }; - - class CurrentParticipants_ - extends UniffiEnum - implements CurrentParticipants__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.CurrentParticipants; - readonly inner: Readonly<{ num: /*u64*/ bigint }>; - constructor(inner: { num: /*u64*/ bigint }) { - super('TagStandard', 'CurrentParticipants'); - this.inner = Object.freeze(inner); - } - - static new(inner: { num: /*u64*/ bigint }): CurrentParticipants_ { - return new CurrentParticipants_(inner); - } - - static instanceOf(obj: any): obj is CurrentParticipants_ { - return obj.tag === TagStandard_Tags.CurrentParticipants; - } - } - - type TotalParticipants__interface = { - tag: TagStandard_Tags.TotalParticipants; - inner: Readonly<{ num: /*u64*/ bigint }>; - }; - - class TotalParticipants_ - extends UniffiEnum - implements TotalParticipants__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.TotalParticipants; - readonly inner: Readonly<{ num: /*u64*/ bigint }>; - constructor(inner: { num: /*u64*/ bigint }) { - super('TagStandard', 'TotalParticipants'); - this.inner = Object.freeze(inner); - } - - static new(inner: { num: /*u64*/ bigint }): TotalParticipants_ { - return new TotalParticipants_(inner); - } - - static instanceOf(obj: any): obj is TotalParticipants_ { - return obj.tag === TagStandard_Tags.TotalParticipants; - } - } - - type AbsoluteUrl__interface = { - tag: TagStandard_Tags.AbsoluteUrl; - inner: Readonly<{ url: string }>; - }; - - class AbsoluteUrl_ extends UniffiEnum implements AbsoluteUrl__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.AbsoluteUrl; - readonly inner: Readonly<{ url: string }>; - constructor(inner: { url: string }) { - super('TagStandard', 'AbsoluteUrl'); - this.inner = Object.freeze(inner); - } - - static new(inner: { url: string }): AbsoluteUrl_ { - return new AbsoluteUrl_(inner); - } - - static instanceOf(obj: any): obj is AbsoluteUrl_ { - return obj.tag === TagStandard_Tags.AbsoluteUrl; - } - } - - type Method__interface = { - tag: TagStandard_Tags.Method; - inner: Readonly<{ method: HttpMethod }>; - }; - - class Method_ extends UniffiEnum implements Method__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Method; - readonly inner: Readonly<{ method: HttpMethod }>; - constructor(inner: { method: HttpMethod }) { - super('TagStandard', 'Method'); - this.inner = Object.freeze(inner); - } - - static new(inner: { method: HttpMethod }): Method_ { - return new Method_(inner); - } - - static instanceOf(obj: any): obj is Method_ { - return obj.tag === TagStandard_Tags.Method; - } - } - - type Payload__interface = { - tag: TagStandard_Tags.Payload; - inner: Readonly<{ hash: string }>; - }; - - class Payload_ extends UniffiEnum implements Payload__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Payload; - readonly inner: Readonly<{ hash: string }>; - constructor(inner: { hash: string }) { - super('TagStandard', 'Payload'); - this.inner = Object.freeze(inner); - } - - static new(inner: { hash: string }): Payload_ { - return new Payload_(inner); - } - - static instanceOf(obj: any): obj is Payload_ { - return obj.tag === TagStandard_Tags.Payload; - } - } - - type Anon__interface = { - tag: TagStandard_Tags.Anon; - inner: Readonly<{ msg: string | undefined }>; - }; - - class Anon_ extends UniffiEnum implements Anon__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Anon; - readonly inner: Readonly<{ msg: string | undefined }>; - constructor(inner: { msg: string | undefined }) { - super('TagStandard', 'Anon'); - this.inner = Object.freeze(inner); - } - - static new(inner: { msg: string | undefined }): Anon_ { - return new Anon_(inner); - } - - static instanceOf(obj: any): obj is Anon_ { - return obj.tag === TagStandard_Tags.Anon; - } - } - - type Proxy__interface = { - tag: TagStandard_Tags.Proxy; - inner: Readonly<{ id: string; protocol: Protocol }>; - }; - - class Proxy_ extends UniffiEnum implements Proxy__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Proxy; - readonly inner: Readonly<{ id: string; protocol: Protocol }>; - constructor(inner: { id: string; protocol: Protocol }) { - super('TagStandard', 'Proxy'); - this.inner = Object.freeze(inner); - } - - static new(inner: { id: string; protocol: Protocol }): Proxy_ { - return new Proxy_(inner); - } - - static instanceOf(obj: any): obj is Proxy_ { - return obj.tag === TagStandard_Tags.Proxy; - } - } - - type Emoji__interface = { - tag: TagStandard_Tags.Emoji; - inner: Readonly<{ shortcode: string; url: string }>; - }; - - class Emoji_ extends UniffiEnum implements Emoji__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Emoji; - readonly inner: Readonly<{ shortcode: string; url: string }>; - constructor(inner: { shortcode: string; url: string }) { - super('TagStandard', 'Emoji'); - this.inner = Object.freeze(inner); - } - - static new(inner: { shortcode: string; url: string }): Emoji_ { - return new Emoji_(inner); - } - - static instanceOf(obj: any): obj is Emoji_ { - return obj.tag === TagStandard_Tags.Emoji; - } - } - - type Encrypted__interface = { - tag: TagStandard_Tags.Encrypted; - }; - - class Encrypted_ extends UniffiEnum implements Encrypted__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Encrypted; - constructor() { - super('TagStandard', 'Encrypted'); - } - - static new(): Encrypted_ { - return new Encrypted_(); - } - - static instanceOf(obj: any): obj is Encrypted_ { - return obj.tag === TagStandard_Tags.Encrypted; - } - } - - type Request__interface = { - tag: TagStandard_Tags.Request; - inner: Readonly<{ event: EventInterface }>; - }; - - class Request_ extends UniffiEnum implements Request__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Request; - readonly inner: Readonly<{ event: EventInterface }>; - constructor(inner: { event: EventInterface }) { - super('TagStandard', 'Request'); - this.inner = Object.freeze(inner); - } - - static new(inner: { event: EventInterface }): Request_ { - return new Request_(inner); - } - - static instanceOf(obj: any): obj is Request_ { - return obj.tag === TagStandard_Tags.Request; - } - } - - type DataVendingMachineStatusTag__interface = { - tag: TagStandard_Tags.DataVendingMachineStatusTag; - inner: Readonly<{ - status: DataVendingMachineStatus; - extraInfo: string | undefined; - }>; - }; - - class DataVendingMachineStatusTag_ - extends UniffiEnum - implements DataVendingMachineStatusTag__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.DataVendingMachineStatusTag; - readonly inner: Readonly<{ - status: DataVendingMachineStatus; - extraInfo: string | undefined; - }>; - constructor(inner: { - status: DataVendingMachineStatus; - extraInfo: string | undefined; - }) { - super('TagStandard', 'DataVendingMachineStatusTag'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - status: DataVendingMachineStatus; - extraInfo: string | undefined; - }): DataVendingMachineStatusTag_ { - return new DataVendingMachineStatusTag_(inner); - } - - static instanceOf(obj: any): obj is DataVendingMachineStatusTag_ { - return obj.tag === TagStandard_Tags.DataVendingMachineStatusTag; - } - } - - type LabelNamespace__interface = { - tag: TagStandard_Tags.LabelNamespace; - inner: Readonly<{ namespace: string }>; - }; - - class LabelNamespace_ - extends UniffiEnum - implements LabelNamespace__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.LabelNamespace; - readonly inner: Readonly<{ namespace: string }>; - constructor(inner: { namespace: string }) { - super('TagStandard', 'LabelNamespace'); - this.inner = Object.freeze(inner); - } - - static new(inner: { namespace: string }): LabelNamespace_ { - return new LabelNamespace_(inner); - } - - static instanceOf(obj: any): obj is LabelNamespace_ { - return obj.tag === TagStandard_Tags.LabelNamespace; - } - } - - type Label__interface = { - tag: TagStandard_Tags.Label; - inner: Readonly<{ label: Array }>; - }; - - class Label_ extends UniffiEnum implements Label__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Label; - readonly inner: Readonly<{ label: Array }>; - constructor(inner: { label: Array }) { - super('TagStandard', 'Label'); - this.inner = Object.freeze(inner); - } - - static new(inner: { label: Array }): Label_ { - return new Label_(inner); - } - - static instanceOf(obj: any): obj is Label_ { - return obj.tag === TagStandard_Tags.Label; - } - } - - type Protected__interface = { - tag: TagStandard_Tags.Protected; - }; - - /** - * Protected event - * - * - */ - class Protected_ extends UniffiEnum implements Protected__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Protected; - constructor() { - super('TagStandard', 'Protected'); - } - - static new(): Protected_ { - return new Protected_(); - } - - static instanceOf(obj: any): obj is Protected_ { - return obj.tag === TagStandard_Tags.Protected; - } - } - - type Alt__interface = { - tag: TagStandard_Tags.Alt; - inner: Readonly<{ summary: string }>; - }; - - /** - * A short human-readable plaintext summary of what that event is about - * - * - */ - class Alt_ extends UniffiEnum implements Alt__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Alt; - readonly inner: Readonly<{ summary: string }>; - constructor(inner: { summary: string }) { - super('TagStandard', 'Alt'); - this.inner = Object.freeze(inner); - } - - static new(inner: { summary: string }): Alt_ { - return new Alt_(inner); - } - - static instanceOf(obj: any): obj is Alt_ { - return obj.tag === TagStandard_Tags.Alt; - } - } - - type Word__interface = { - tag: TagStandard_Tags.Word; - inner: Readonly<{ word: string }>; - }; - - class Word_ extends UniffiEnum implements Word__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Word; - readonly inner: Readonly<{ word: string }>; - constructor(inner: { word: string }) { - super('TagStandard', 'Word'); - this.inner = Object.freeze(inner); - } - - static new(inner: { word: string }): Word_ { - return new Word_(inner); - } - - static instanceOf(obj: any): obj is Word_ { - return obj.tag === TagStandard_Tags.Word; - } - } - - type Web__interface = { - tag: TagStandard_Tags.Web; - inner: Readonly<{ urls: Array }>; - }; - - class Web_ extends UniffiEnum implements Web__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'TagStandard'; - readonly tag = TagStandard_Tags.Web; - readonly inner: Readonly<{ urls: Array }>; - constructor(inner: { urls: Array }) { - super('TagStandard', 'Web'); - this.inner = Object.freeze(inner); - } - - static new(inner: { urls: Array }): Web_ { - return new Web_(inner); - } - - static instanceOf(obj: any): obj is Web_ { - return obj.tag === TagStandard_Tags.Web; - } - } - - function instanceOf(obj: any): obj is TagStandard { - return obj[uniffiTypeNameSymbol] === 'TagStandard'; - } - - return Object.freeze({ - instanceOf, - EventTag: EventTag_, - Quote: Quote_, - GitClone: GitClone_, - GitCommit: GitCommit_, - GitEarliestUniqueCommitId: GitEarliestUniqueCommitId_, - GitMaintainers: GitMaintainers_, - PublicKeyTag: PublicKeyTag_, - EventReport: EventReport_, - PubKeyReport: PubKeyReport_, - PublicKeyLiveEvent: PublicKeyLiveEvent_, - Reference: Reference_, - RelayMetadataTag: RelayMetadataTag_, - Hashtag: Hashtag_, - Geohash: Geohash_, - Identifier: Identifier_, - ExternalContent: ExternalContent_, - ExternalIdentity: ExternalIdentity_, - CoordinateTag: CoordinateTag_, - KindTag: KindTag_, - RelayUrl: RelayUrl_, - AllRelays: AllRelays_, - Pow: Pow_, - Client: Client_, - Delegation: Delegation_, - ContentWarning: ContentWarning_, - Expiration: Expiration_, - Subject: Subject_, - Challenge: Challenge_, - Title: Title_, - Image: Image_, - Thumb: Thumb_, - Summary: Summary_, - Description: Description_, - Bolt11: Bolt11_, - Preimage: Preimage_, - Relays: Relays_, - Amount: Amount_, - Lnurl: Lnurl_, - Name: Name_, - PublishedAt: PublishedAt_, - UrlTag: UrlTag_, - MimeType: MimeType_, - Aes256Gcm: Aes256Gcm_, - Sha256: Sha256_, - Size: Size_, - Dim: Dim_, - Magnet: Magnet_, - Blurhash: Blurhash_, - Streaming: Streaming_, - Recording: Recording_, - Starts: Starts_, - Ends: Ends_, - LiveEventStatusTag: LiveEventStatusTag_, - CurrentParticipants: CurrentParticipants_, - TotalParticipants: TotalParticipants_, - AbsoluteUrl: AbsoluteUrl_, - Method: Method_, - Payload: Payload_, - Anon: Anon_, - Proxy: Proxy_, - Emoji: Emoji_, - Encrypted: Encrypted_, - Request: Request_, - DataVendingMachineStatusTag: DataVendingMachineStatusTag_, - LabelNamespace: LabelNamespace_, - Label: Label_, - Protected: Protected_, - Alt: Alt_, - Word: Word_, - Web: Web_, - }); -})(); - -/** - * Standardized tag - */ - -export type TagStandard = InstanceType< - (typeof TagStandard)[keyof Omit] ->; - -// FfiConverter for enum TagStandard -const FfiConverterTypeTagStandard = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = TagStandard; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new TagStandard.EventTag({ - eventId: FfiConverterTypeEventId.read(from), - relayUrl: FfiConverterOptionalString.read(from), - marker: FfiConverterOptionalTypeMarker.read(from), - publicKey: FfiConverterOptionalTypePublicKey.read(from), - uppercase: FfiConverterBool.read(from), - }); - case 2: - return new TagStandard.Quote({ - eventId: FfiConverterTypeEventId.read(from), - relayUrl: FfiConverterOptionalString.read(from), - publicKey: FfiConverterOptionalTypePublicKey.read(from), - }); - case 3: - return new TagStandard.GitClone({ - urls: FfiConverterArrayString.read(from), - }); - case 4: - return new TagStandard.GitCommit({ - hash: FfiConverterString.read(from), - }); - case 5: - return new TagStandard.GitEarliestUniqueCommitId({ - commit: FfiConverterString.read(from), - }); - case 6: - return new TagStandard.GitMaintainers({ - publicKeys: FfiConverterArrayTypePublicKey.read(from), - }); - case 7: - return new TagStandard.PublicKeyTag({ - publicKey: FfiConverterTypePublicKey.read(from), - relayUrl: FfiConverterOptionalString.read(from), - alias: FfiConverterOptionalString.read(from), - uppercase: FfiConverterBool.read(from), - }); - case 8: - return new TagStandard.EventReport({ - eventId: FfiConverterTypeEventId.read(from), - report: FfiConverterTypeReport.read(from), - }); - case 9: - return new TagStandard.PubKeyReport({ - publicKey: FfiConverterTypePublicKey.read(from), - report: FfiConverterTypeReport.read(from), - }); - case 10: - return new TagStandard.PublicKeyLiveEvent({ - publicKey: FfiConverterTypePublicKey.read(from), - relayUrl: FfiConverterOptionalString.read(from), - marker: FfiConverterTypeLiveEventMarker.read(from), - proof: FfiConverterOptionalString.read(from), - }); - case 11: - return new TagStandard.Reference({ - reference: FfiConverterString.read(from), - }); - case 12: - return new TagStandard.RelayMetadataTag({ - relayUrl: FfiConverterString.read(from), - rw: FfiConverterOptionalTypeRelayMetadata.read(from), - }); - case 13: - return new TagStandard.Hashtag({ - hashtag: FfiConverterString.read(from), - }); - case 14: - return new TagStandard.Geohash({ - geohash: FfiConverterString.read(from), - }); - case 15: - return new TagStandard.Identifier({ - identifier: FfiConverterString.read(from), - }); - case 16: - return new TagStandard.ExternalContent({ - content: FfiConverterTypeExternalContentId.read(from), - hint: FfiConverterOptionalString.read(from), - uppercase: FfiConverterBool.read(from), - }); - case 17: - return new TagStandard.ExternalIdentity({ - identity: FfiConverterTypeIdentity.read(from), - }); - case 18: - return new TagStandard.CoordinateTag({ - coordinate: FfiConverterTypeCoordinate.read(from), - relayUrl: FfiConverterOptionalString.read(from), - uppercase: FfiConverterBool.read(from), - }); - case 19: - return new TagStandard.KindTag({ - kind: FfiConverterTypeKind.read(from), - uppercase: FfiConverterBool.read(from), - }); - case 20: - return new TagStandard.RelayUrl({ - relayUrl: FfiConverterString.read(from), - }); - case 21: - return new TagStandard.AllRelays(); - case 22: - return new TagStandard.Pow({ - nonce: FfiConverterString.read(from), - difficulty: FfiConverterUInt8.read(from), - }); - case 23: - return new TagStandard.Client({ - name: FfiConverterString.read(from), - address: FfiConverterOptionalTypeTagClientAddress.read(from), - }); - case 24: - return new TagStandard.Delegation({ - delegator: FfiConverterTypePublicKey.read(from), - conditions: FfiConverterString.read(from), - sig: FfiConverterString.read(from), - }); - case 25: - return new TagStandard.ContentWarning({ - reason: FfiConverterOptionalString.read(from), - }); - case 26: - return new TagStandard.Expiration({ - timestamp: FfiConverterTypeTimestamp.read(from), - }); - case 27: - return new TagStandard.Subject({ - subject: FfiConverterString.read(from), - }); - case 28: - return new TagStandard.Challenge({ - challenge: FfiConverterString.read(from), - }); - case 29: - return new TagStandard.Title({ - title: FfiConverterString.read(from), - }); - case 30: - return new TagStandard.Image({ - url: FfiConverterString.read(from), - dimensions: FfiConverterOptionalTypeImageDimensions.read(from), - }); - case 31: - return new TagStandard.Thumb({ - url: FfiConverterString.read(from), - dimensions: FfiConverterOptionalTypeImageDimensions.read(from), - }); - case 32: - return new TagStandard.Summary({ - summary: FfiConverterString.read(from), - }); - case 33: - return new TagStandard.Description({ - desc: FfiConverterString.read(from), - }); - case 34: - return new TagStandard.Bolt11({ - bolt11: FfiConverterString.read(from), - }); - case 35: - return new TagStandard.Preimage({ - preimage: FfiConverterString.read(from), - }); - case 36: - return new TagStandard.Relays({ - urls: FfiConverterArrayString.read(from), - }); - case 37: - return new TagStandard.Amount({ - millisats: FfiConverterUInt64.read(from), - bolt11: FfiConverterOptionalString.read(from), - }); - case 38: - return new TagStandard.Lnurl({ - lnurl: FfiConverterString.read(from), - }); - case 39: - return new TagStandard.Name({ name: FfiConverterString.read(from) }); - case 40: - return new TagStandard.PublishedAt({ - timestamp: FfiConverterTypeTimestamp.read(from), - }); - case 41: - return new TagStandard.UrlTag({ url: FfiConverterString.read(from) }); - case 42: - return new TagStandard.MimeType({ - mime: FfiConverterString.read(from), - }); - case 43: - return new TagStandard.Aes256Gcm({ - key: FfiConverterString.read(from), - iv: FfiConverterString.read(from), - }); - case 44: - return new TagStandard.Sha256({ - hash: FfiConverterString.read(from), - }); - case 45: - return new TagStandard.Size({ size: FfiConverterUInt64.read(from) }); - case 46: - return new TagStandard.Dim({ - dimensions: FfiConverterTypeImageDimensions.read(from), - }); - case 47: - return new TagStandard.Magnet({ uri: FfiConverterString.read(from) }); - case 48: - return new TagStandard.Blurhash({ - blurhash: FfiConverterString.read(from), - }); - case 49: - return new TagStandard.Streaming({ - url: FfiConverterString.read(from), - }); - case 50: - return new TagStandard.Recording({ - url: FfiConverterString.read(from), - }); - case 51: - return new TagStandard.Starts({ - timestamp: FfiConverterTypeTimestamp.read(from), - }); - case 52: - return new TagStandard.Ends({ - timestamp: FfiConverterTypeTimestamp.read(from), - }); - case 53: - return new TagStandard.LiveEventStatusTag({ - status: FfiConverterTypeLiveEventStatus.read(from), - }); - case 54: - return new TagStandard.CurrentParticipants({ - num: FfiConverterUInt64.read(from), - }); - case 55: - return new TagStandard.TotalParticipants({ - num: FfiConverterUInt64.read(from), - }); - case 56: - return new TagStandard.AbsoluteUrl({ - url: FfiConverterString.read(from), - }); - case 57: - return new TagStandard.Method({ - method: FfiConverterTypeHttpMethod.read(from), - }); - case 58: - return new TagStandard.Payload({ - hash: FfiConverterString.read(from), - }); - case 59: - return new TagStandard.Anon({ - msg: FfiConverterOptionalString.read(from), - }); - case 60: - return new TagStandard.Proxy({ - id: FfiConverterString.read(from), - protocol: FfiConverterTypeProtocol.read(from), - }); - case 61: - return new TagStandard.Emoji({ - shortcode: FfiConverterString.read(from), - url: FfiConverterString.read(from), - }); - case 62: - return new TagStandard.Encrypted(); - case 63: - return new TagStandard.Request({ - event: FfiConverterTypeEvent.read(from), - }); - case 64: - return new TagStandard.DataVendingMachineStatusTag({ - status: FfiConverterTypeDataVendingMachineStatus.read(from), - extraInfo: FfiConverterOptionalString.read(from), - }); - case 65: - return new TagStandard.LabelNamespace({ - namespace: FfiConverterString.read(from), - }); - case 66: - return new TagStandard.Label({ - label: FfiConverterArrayString.read(from), - }); - case 67: - return new TagStandard.Protected(); - case 68: - return new TagStandard.Alt({ - summary: FfiConverterString.read(from), - }); - case 69: - return new TagStandard.Word({ word: FfiConverterString.read(from) }); - case 70: - return new TagStandard.Web({ - urls: FfiConverterArrayString.read(from), - }); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case TagStandard_Tags.EventTag: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterTypeEventId.write(inner.eventId, into); - FfiConverterOptionalString.write(inner.relayUrl, into); - FfiConverterOptionalTypeMarker.write(inner.marker, into); - FfiConverterOptionalTypePublicKey.write(inner.publicKey, into); - FfiConverterBool.write(inner.uppercase, into); - return; - } - case TagStandard_Tags.Quote: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterTypeEventId.write(inner.eventId, into); - FfiConverterOptionalString.write(inner.relayUrl, into); - FfiConverterOptionalTypePublicKey.write(inner.publicKey, into); - return; - } - case TagStandard_Tags.GitClone: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterArrayString.write(inner.urls, into); - return; - } - case TagStandard_Tags.GitCommit: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterString.write(inner.hash, into); - return; - } - case TagStandard_Tags.GitEarliestUniqueCommitId: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterString.write(inner.commit, into); - return; - } - case TagStandard_Tags.GitMaintainers: { - ordinalConverter.write(6, into); - const inner = value.inner; - FfiConverterArrayTypePublicKey.write(inner.publicKeys, into); - return; - } - case TagStandard_Tags.PublicKeyTag: { - ordinalConverter.write(7, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.publicKey, into); - FfiConverterOptionalString.write(inner.relayUrl, into); - FfiConverterOptionalString.write(inner.alias, into); - FfiConverterBool.write(inner.uppercase, into); - return; - } - case TagStandard_Tags.EventReport: { - ordinalConverter.write(8, into); - const inner = value.inner; - FfiConverterTypeEventId.write(inner.eventId, into); - FfiConverterTypeReport.write(inner.report, into); - return; - } - case TagStandard_Tags.PubKeyReport: { - ordinalConverter.write(9, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.publicKey, into); - FfiConverterTypeReport.write(inner.report, into); - return; - } - case TagStandard_Tags.PublicKeyLiveEvent: { - ordinalConverter.write(10, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.publicKey, into); - FfiConverterOptionalString.write(inner.relayUrl, into); - FfiConverterTypeLiveEventMarker.write(inner.marker, into); - FfiConverterOptionalString.write(inner.proof, into); - return; - } - case TagStandard_Tags.Reference: { - ordinalConverter.write(11, into); - const inner = value.inner; - FfiConverterString.write(inner.reference, into); - return; - } - case TagStandard_Tags.RelayMetadataTag: { - ordinalConverter.write(12, into); - const inner = value.inner; - FfiConverterString.write(inner.relayUrl, into); - FfiConverterOptionalTypeRelayMetadata.write(inner.rw, into); - return; - } - case TagStandard_Tags.Hashtag: { - ordinalConverter.write(13, into); - const inner = value.inner; - FfiConverterString.write(inner.hashtag, into); - return; - } - case TagStandard_Tags.Geohash: { - ordinalConverter.write(14, into); - const inner = value.inner; - FfiConverterString.write(inner.geohash, into); - return; - } - case TagStandard_Tags.Identifier: { - ordinalConverter.write(15, into); - const inner = value.inner; - FfiConverterString.write(inner.identifier, into); - return; - } - case TagStandard_Tags.ExternalContent: { - ordinalConverter.write(16, into); - const inner = value.inner; - FfiConverterTypeExternalContentId.write(inner.content, into); - FfiConverterOptionalString.write(inner.hint, into); - FfiConverterBool.write(inner.uppercase, into); - return; - } - case TagStandard_Tags.ExternalIdentity: { - ordinalConverter.write(17, into); - const inner = value.inner; - FfiConverterTypeIdentity.write(inner.identity, into); - return; - } - case TagStandard_Tags.CoordinateTag: { - ordinalConverter.write(18, into); - const inner = value.inner; - FfiConverterTypeCoordinate.write(inner.coordinate, into); - FfiConverterOptionalString.write(inner.relayUrl, into); - FfiConverterBool.write(inner.uppercase, into); - return; - } - case TagStandard_Tags.KindTag: { - ordinalConverter.write(19, into); - const inner = value.inner; - FfiConverterTypeKind.write(inner.kind, into); - FfiConverterBool.write(inner.uppercase, into); - return; - } - case TagStandard_Tags.RelayUrl: { - ordinalConverter.write(20, into); - const inner = value.inner; - FfiConverterString.write(inner.relayUrl, into); - return; - } - case TagStandard_Tags.AllRelays: { - ordinalConverter.write(21, into); - return; - } - case TagStandard_Tags.Pow: { - ordinalConverter.write(22, into); - const inner = value.inner; - FfiConverterString.write(inner.nonce, into); - FfiConverterUInt8.write(inner.difficulty, into); - return; - } - case TagStandard_Tags.Client: { - ordinalConverter.write(23, into); - const inner = value.inner; - FfiConverterString.write(inner.name, into); - FfiConverterOptionalTypeTagClientAddress.write(inner.address, into); - return; - } - case TagStandard_Tags.Delegation: { - ordinalConverter.write(24, into); - const inner = value.inner; - FfiConverterTypePublicKey.write(inner.delegator, into); - FfiConverterString.write(inner.conditions, into); - FfiConverterString.write(inner.sig, into); - return; - } - case TagStandard_Tags.ContentWarning: { - ordinalConverter.write(25, into); - const inner = value.inner; - FfiConverterOptionalString.write(inner.reason, into); - return; - } - case TagStandard_Tags.Expiration: { - ordinalConverter.write(26, into); - const inner = value.inner; - FfiConverterTypeTimestamp.write(inner.timestamp, into); - return; - } - case TagStandard_Tags.Subject: { - ordinalConverter.write(27, into); - const inner = value.inner; - FfiConverterString.write(inner.subject, into); - return; - } - case TagStandard_Tags.Challenge: { - ordinalConverter.write(28, into); - const inner = value.inner; - FfiConverterString.write(inner.challenge, into); - return; - } - case TagStandard_Tags.Title: { - ordinalConverter.write(29, into); - const inner = value.inner; - FfiConverterString.write(inner.title, into); - return; - } - case TagStandard_Tags.Image: { - ordinalConverter.write(30, into); - const inner = value.inner; - FfiConverterString.write(inner.url, into); - FfiConverterOptionalTypeImageDimensions.write(inner.dimensions, into); - return; - } - case TagStandard_Tags.Thumb: { - ordinalConverter.write(31, into); - const inner = value.inner; - FfiConverterString.write(inner.url, into); - FfiConverterOptionalTypeImageDimensions.write(inner.dimensions, into); - return; - } - case TagStandard_Tags.Summary: { - ordinalConverter.write(32, into); - const inner = value.inner; - FfiConverterString.write(inner.summary, into); - return; - } - case TagStandard_Tags.Description: { - ordinalConverter.write(33, into); - const inner = value.inner; - FfiConverterString.write(inner.desc, into); - return; - } - case TagStandard_Tags.Bolt11: { - ordinalConverter.write(34, into); - const inner = value.inner; - FfiConverterString.write(inner.bolt11, into); - return; - } - case TagStandard_Tags.Preimage: { - ordinalConverter.write(35, into); - const inner = value.inner; - FfiConverterString.write(inner.preimage, into); - return; - } - case TagStandard_Tags.Relays: { - ordinalConverter.write(36, into); - const inner = value.inner; - FfiConverterArrayString.write(inner.urls, into); - return; - } - case TagStandard_Tags.Amount: { - ordinalConverter.write(37, into); - const inner = value.inner; - FfiConverterUInt64.write(inner.millisats, into); - FfiConverterOptionalString.write(inner.bolt11, into); - return; - } - case TagStandard_Tags.Lnurl: { - ordinalConverter.write(38, into); - const inner = value.inner; - FfiConverterString.write(inner.lnurl, into); - return; - } - case TagStandard_Tags.Name: { - ordinalConverter.write(39, into); - const inner = value.inner; - FfiConverterString.write(inner.name, into); - return; - } - case TagStandard_Tags.PublishedAt: { - ordinalConverter.write(40, into); - const inner = value.inner; - FfiConverterTypeTimestamp.write(inner.timestamp, into); - return; - } - case TagStandard_Tags.UrlTag: { - ordinalConverter.write(41, into); - const inner = value.inner; - FfiConverterString.write(inner.url, into); - return; - } - case TagStandard_Tags.MimeType: { - ordinalConverter.write(42, into); - const inner = value.inner; - FfiConverterString.write(inner.mime, into); - return; - } - case TagStandard_Tags.Aes256Gcm: { - ordinalConverter.write(43, into); - const inner = value.inner; - FfiConverterString.write(inner.key, into); - FfiConverterString.write(inner.iv, into); - return; - } - case TagStandard_Tags.Sha256: { - ordinalConverter.write(44, into); - const inner = value.inner; - FfiConverterString.write(inner.hash, into); - return; - } - case TagStandard_Tags.Size: { - ordinalConverter.write(45, into); - const inner = value.inner; - FfiConverterUInt64.write(inner.size, into); - return; - } - case TagStandard_Tags.Dim: { - ordinalConverter.write(46, into); - const inner = value.inner; - FfiConverterTypeImageDimensions.write(inner.dimensions, into); - return; - } - case TagStandard_Tags.Magnet: { - ordinalConverter.write(47, into); - const inner = value.inner; - FfiConverterString.write(inner.uri, into); - return; - } - case TagStandard_Tags.Blurhash: { - ordinalConverter.write(48, into); - const inner = value.inner; - FfiConverterString.write(inner.blurhash, into); - return; - } - case TagStandard_Tags.Streaming: { - ordinalConverter.write(49, into); - const inner = value.inner; - FfiConverterString.write(inner.url, into); - return; - } - case TagStandard_Tags.Recording: { - ordinalConverter.write(50, into); - const inner = value.inner; - FfiConverterString.write(inner.url, into); - return; - } - case TagStandard_Tags.Starts: { - ordinalConverter.write(51, into); - const inner = value.inner; - FfiConverterTypeTimestamp.write(inner.timestamp, into); - return; - } - case TagStandard_Tags.Ends: { - ordinalConverter.write(52, into); - const inner = value.inner; - FfiConverterTypeTimestamp.write(inner.timestamp, into); - return; - } - case TagStandard_Tags.LiveEventStatusTag: { - ordinalConverter.write(53, into); - const inner = value.inner; - FfiConverterTypeLiveEventStatus.write(inner.status, into); - return; - } - case TagStandard_Tags.CurrentParticipants: { - ordinalConverter.write(54, into); - const inner = value.inner; - FfiConverterUInt64.write(inner.num, into); - return; - } - case TagStandard_Tags.TotalParticipants: { - ordinalConverter.write(55, into); - const inner = value.inner; - FfiConverterUInt64.write(inner.num, into); - return; - } - case TagStandard_Tags.AbsoluteUrl: { - ordinalConverter.write(56, into); - const inner = value.inner; - FfiConverterString.write(inner.url, into); - return; - } - case TagStandard_Tags.Method: { - ordinalConverter.write(57, into); - const inner = value.inner; - FfiConverterTypeHttpMethod.write(inner.method, into); - return; - } - case TagStandard_Tags.Payload: { - ordinalConverter.write(58, into); - const inner = value.inner; - FfiConverterString.write(inner.hash, into); - return; - } - case TagStandard_Tags.Anon: { - ordinalConverter.write(59, into); - const inner = value.inner; - FfiConverterOptionalString.write(inner.msg, into); - return; - } - case TagStandard_Tags.Proxy: { - ordinalConverter.write(60, into); - const inner = value.inner; - FfiConverterString.write(inner.id, into); - FfiConverterTypeProtocol.write(inner.protocol, into); - return; - } - case TagStandard_Tags.Emoji: { - ordinalConverter.write(61, into); - const inner = value.inner; - FfiConverterString.write(inner.shortcode, into); - FfiConverterString.write(inner.url, into); - return; - } - case TagStandard_Tags.Encrypted: { - ordinalConverter.write(62, into); - return; - } - case TagStandard_Tags.Request: { - ordinalConverter.write(63, into); - const inner = value.inner; - FfiConverterTypeEvent.write(inner.event, into); - return; - } - case TagStandard_Tags.DataVendingMachineStatusTag: { - ordinalConverter.write(64, into); - const inner = value.inner; - FfiConverterTypeDataVendingMachineStatus.write(inner.status, into); - FfiConverterOptionalString.write(inner.extraInfo, into); - return; - } - case TagStandard_Tags.LabelNamespace: { - ordinalConverter.write(65, into); - const inner = value.inner; - FfiConverterString.write(inner.namespace, into); - return; - } - case TagStandard_Tags.Label: { - ordinalConverter.write(66, into); - const inner = value.inner; - FfiConverterArrayString.write(inner.label, into); - return; - } - case TagStandard_Tags.Protected: { - ordinalConverter.write(67, into); - return; - } - case TagStandard_Tags.Alt: { - ordinalConverter.write(68, into); - const inner = value.inner; - FfiConverterString.write(inner.summary, into); - return; - } - case TagStandard_Tags.Word: { - ordinalConverter.write(69, into); - const inner = value.inner; - FfiConverterString.write(inner.word, into); - return; - } - case TagStandard_Tags.Web: { - ordinalConverter.write(70, into); - const inner = value.inner; - FfiConverterArrayString.write(inner.urls, into); - return; - } - default: - // Throwing from here means that TagStandard_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case TagStandard_Tags.EventTag: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterTypeEventId.allocationSize(inner.eventId); - size += FfiConverterOptionalString.allocationSize(inner.relayUrl); - size += FfiConverterOptionalTypeMarker.allocationSize(inner.marker); - size += FfiConverterOptionalTypePublicKey.allocationSize( - inner.publicKey - ); - size += FfiConverterBool.allocationSize(inner.uppercase); - return size; - } - case TagStandard_Tags.Quote: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterTypeEventId.allocationSize(inner.eventId); - size += FfiConverterOptionalString.allocationSize(inner.relayUrl); - size += FfiConverterOptionalTypePublicKey.allocationSize( - inner.publicKey - ); - return size; - } - case TagStandard_Tags.GitClone: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterArrayString.allocationSize(inner.urls); - return size; - } - case TagStandard_Tags.GitCommit: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterString.allocationSize(inner.hash); - return size; - } - case TagStandard_Tags.GitEarliestUniqueCommitId: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterString.allocationSize(inner.commit); - return size; - } - case TagStandard_Tags.GitMaintainers: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(6); - size += FfiConverterArrayTypePublicKey.allocationSize( - inner.publicKeys - ); - return size; - } - case TagStandard_Tags.PublicKeyTag: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(7); - size += FfiConverterTypePublicKey.allocationSize(inner.publicKey); - size += FfiConverterOptionalString.allocationSize(inner.relayUrl); - size += FfiConverterOptionalString.allocationSize(inner.alias); - size += FfiConverterBool.allocationSize(inner.uppercase); - return size; - } - case TagStandard_Tags.EventReport: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(8); - size += FfiConverterTypeEventId.allocationSize(inner.eventId); - size += FfiConverterTypeReport.allocationSize(inner.report); - return size; - } - case TagStandard_Tags.PubKeyReport: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(9); - size += FfiConverterTypePublicKey.allocationSize(inner.publicKey); - size += FfiConverterTypeReport.allocationSize(inner.report); - return size; - } - case TagStandard_Tags.PublicKeyLiveEvent: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(10); - size += FfiConverterTypePublicKey.allocationSize(inner.publicKey); - size += FfiConverterOptionalString.allocationSize(inner.relayUrl); - size += FfiConverterTypeLiveEventMarker.allocationSize(inner.marker); - size += FfiConverterOptionalString.allocationSize(inner.proof); - return size; - } - case TagStandard_Tags.Reference: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(11); - size += FfiConverterString.allocationSize(inner.reference); - return size; - } - case TagStandard_Tags.RelayMetadataTag: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(12); - size += FfiConverterString.allocationSize(inner.relayUrl); - size += FfiConverterOptionalTypeRelayMetadata.allocationSize( - inner.rw - ); - return size; - } - case TagStandard_Tags.Hashtag: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(13); - size += FfiConverterString.allocationSize(inner.hashtag); - return size; - } - case TagStandard_Tags.Geohash: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(14); - size += FfiConverterString.allocationSize(inner.geohash); - return size; - } - case TagStandard_Tags.Identifier: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(15); - size += FfiConverterString.allocationSize(inner.identifier); - return size; - } - case TagStandard_Tags.ExternalContent: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(16); - size += FfiConverterTypeExternalContentId.allocationSize( - inner.content - ); - size += FfiConverterOptionalString.allocationSize(inner.hint); - size += FfiConverterBool.allocationSize(inner.uppercase); - return size; - } - case TagStandard_Tags.ExternalIdentity: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(17); - size += FfiConverterTypeIdentity.allocationSize(inner.identity); - return size; - } - case TagStandard_Tags.CoordinateTag: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(18); - size += FfiConverterTypeCoordinate.allocationSize(inner.coordinate); - size += FfiConverterOptionalString.allocationSize(inner.relayUrl); - size += FfiConverterBool.allocationSize(inner.uppercase); - return size; - } - case TagStandard_Tags.KindTag: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(19); - size += FfiConverterTypeKind.allocationSize(inner.kind); - size += FfiConverterBool.allocationSize(inner.uppercase); - return size; - } - case TagStandard_Tags.RelayUrl: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(20); - size += FfiConverterString.allocationSize(inner.relayUrl); - return size; - } - case TagStandard_Tags.AllRelays: { - return ordinalConverter.allocationSize(21); - } - case TagStandard_Tags.Pow: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(22); - size += FfiConverterString.allocationSize(inner.nonce); - size += FfiConverterUInt8.allocationSize(inner.difficulty); - return size; - } - case TagStandard_Tags.Client: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(23); - size += FfiConverterString.allocationSize(inner.name); - size += FfiConverterOptionalTypeTagClientAddress.allocationSize( - inner.address - ); - return size; - } - case TagStandard_Tags.Delegation: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(24); - size += FfiConverterTypePublicKey.allocationSize(inner.delegator); - size += FfiConverterString.allocationSize(inner.conditions); - size += FfiConverterString.allocationSize(inner.sig); - return size; - } - case TagStandard_Tags.ContentWarning: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(25); - size += FfiConverterOptionalString.allocationSize(inner.reason); - return size; - } - case TagStandard_Tags.Expiration: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(26); - size += FfiConverterTypeTimestamp.allocationSize(inner.timestamp); - return size; - } - case TagStandard_Tags.Subject: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(27); - size += FfiConverterString.allocationSize(inner.subject); - return size; - } - case TagStandard_Tags.Challenge: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(28); - size += FfiConverterString.allocationSize(inner.challenge); - return size; - } - case TagStandard_Tags.Title: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(29); - size += FfiConverterString.allocationSize(inner.title); - return size; - } - case TagStandard_Tags.Image: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(30); - size += FfiConverterString.allocationSize(inner.url); - size += FfiConverterOptionalTypeImageDimensions.allocationSize( - inner.dimensions - ); - return size; - } - case TagStandard_Tags.Thumb: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(31); - size += FfiConverterString.allocationSize(inner.url); - size += FfiConverterOptionalTypeImageDimensions.allocationSize( - inner.dimensions - ); - return size; - } - case TagStandard_Tags.Summary: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(32); - size += FfiConverterString.allocationSize(inner.summary); - return size; - } - case TagStandard_Tags.Description: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(33); - size += FfiConverterString.allocationSize(inner.desc); - return size; - } - case TagStandard_Tags.Bolt11: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(34); - size += FfiConverterString.allocationSize(inner.bolt11); - return size; - } - case TagStandard_Tags.Preimage: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(35); - size += FfiConverterString.allocationSize(inner.preimage); - return size; - } - case TagStandard_Tags.Relays: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(36); - size += FfiConverterArrayString.allocationSize(inner.urls); - return size; - } - case TagStandard_Tags.Amount: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(37); - size += FfiConverterUInt64.allocationSize(inner.millisats); - size += FfiConverterOptionalString.allocationSize(inner.bolt11); - return size; - } - case TagStandard_Tags.Lnurl: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(38); - size += FfiConverterString.allocationSize(inner.lnurl); - return size; - } - case TagStandard_Tags.Name: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(39); - size += FfiConverterString.allocationSize(inner.name); - return size; - } - case TagStandard_Tags.PublishedAt: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(40); - size += FfiConverterTypeTimestamp.allocationSize(inner.timestamp); - return size; - } - case TagStandard_Tags.UrlTag: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(41); - size += FfiConverterString.allocationSize(inner.url); - return size; - } - case TagStandard_Tags.MimeType: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(42); - size += FfiConverterString.allocationSize(inner.mime); - return size; - } - case TagStandard_Tags.Aes256Gcm: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(43); - size += FfiConverterString.allocationSize(inner.key); - size += FfiConverterString.allocationSize(inner.iv); - return size; - } - case TagStandard_Tags.Sha256: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(44); - size += FfiConverterString.allocationSize(inner.hash); - return size; - } - case TagStandard_Tags.Size: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(45); - size += FfiConverterUInt64.allocationSize(inner.size); - return size; - } - case TagStandard_Tags.Dim: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(46); - size += FfiConverterTypeImageDimensions.allocationSize( - inner.dimensions - ); - return size; - } - case TagStandard_Tags.Magnet: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(47); - size += FfiConverterString.allocationSize(inner.uri); - return size; - } - case TagStandard_Tags.Blurhash: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(48); - size += FfiConverterString.allocationSize(inner.blurhash); - return size; - } - case TagStandard_Tags.Streaming: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(49); - size += FfiConverterString.allocationSize(inner.url); - return size; - } - case TagStandard_Tags.Recording: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(50); - size += FfiConverterString.allocationSize(inner.url); - return size; - } - case TagStandard_Tags.Starts: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(51); - size += FfiConverterTypeTimestamp.allocationSize(inner.timestamp); - return size; - } - case TagStandard_Tags.Ends: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(52); - size += FfiConverterTypeTimestamp.allocationSize(inner.timestamp); - return size; - } - case TagStandard_Tags.LiveEventStatusTag: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(53); - size += FfiConverterTypeLiveEventStatus.allocationSize(inner.status); - return size; - } - case TagStandard_Tags.CurrentParticipants: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(54); - size += FfiConverterUInt64.allocationSize(inner.num); - return size; - } - case TagStandard_Tags.TotalParticipants: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(55); - size += FfiConverterUInt64.allocationSize(inner.num); - return size; - } - case TagStandard_Tags.AbsoluteUrl: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(56); - size += FfiConverterString.allocationSize(inner.url); - return size; - } - case TagStandard_Tags.Method: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(57); - size += FfiConverterTypeHttpMethod.allocationSize(inner.method); - return size; - } - case TagStandard_Tags.Payload: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(58); - size += FfiConverterString.allocationSize(inner.hash); - return size; - } - case TagStandard_Tags.Anon: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(59); - size += FfiConverterOptionalString.allocationSize(inner.msg); - return size; - } - case TagStandard_Tags.Proxy: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(60); - size += FfiConverterString.allocationSize(inner.id); - size += FfiConverterTypeProtocol.allocationSize(inner.protocol); - return size; - } - case TagStandard_Tags.Emoji: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(61); - size += FfiConverterString.allocationSize(inner.shortcode); - size += FfiConverterString.allocationSize(inner.url); - return size; - } - case TagStandard_Tags.Encrypted: { - return ordinalConverter.allocationSize(62); - } - case TagStandard_Tags.Request: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(63); - size += FfiConverterTypeEvent.allocationSize(inner.event); - return size; - } - case TagStandard_Tags.DataVendingMachineStatusTag: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(64); - size += FfiConverterTypeDataVendingMachineStatus.allocationSize( - inner.status - ); - size += FfiConverterOptionalString.allocationSize(inner.extraInfo); - return size; - } - case TagStandard_Tags.LabelNamespace: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(65); - size += FfiConverterString.allocationSize(inner.namespace); - return size; - } - case TagStandard_Tags.Label: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(66); - size += FfiConverterArrayString.allocationSize(inner.label); - return size; - } - case TagStandard_Tags.Protected: { - return ordinalConverter.allocationSize(67); - } - case TagStandard_Tags.Alt: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(68); - size += FfiConverterString.allocationSize(inner.summary); - return size; - } - case TagStandard_Tags.Word: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(69); - size += FfiConverterString.allocationSize(inner.word); - return size; - } - case TagStandard_Tags.Web: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(70); - size += FfiConverterArrayString.allocationSize(inner.urls); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -/** - * Transaction Type - */ -export enum TransactionType { - /** - * Incoming payments - */ - Incoming, - /** - * Outgoing payments - */ - Outgoing, -} - -const FfiConverterTypeTransactionType = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = TransactionType; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return TransactionType.Incoming; - case 2: - return TransactionType.Outgoing; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case TransactionType.Incoming: - return ordinalConverter.write(1, into); - case TransactionType.Outgoing: - return ordinalConverter.write(2, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// Enum: WebSocketMessage -export enum WebSocketMessage_Tags { - Text = 'Text', - Binary = 'Binary', - Ping = 'Ping', - Pong = 'Pong', - Close = 'Close', -} -export const WebSocketMessage = (() => { - type Text__interface = { - tag: WebSocketMessage_Tags.Text; - inner: Readonly<[string]>; - }; - - class Text_ extends UniffiEnum implements Text__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'WebSocketMessage'; - readonly tag = WebSocketMessage_Tags.Text; - readonly inner: Readonly<[string]>; - constructor(v0: string) { - super('WebSocketMessage', 'Text'); - this.inner = Object.freeze([v0]); - } - - static new(v0: string): Text_ { - return new Text_(v0); - } - - static instanceOf(obj: any): obj is Text_ { - return obj.tag === WebSocketMessage_Tags.Text; - } - } - - type Binary__interface = { - tag: WebSocketMessage_Tags.Binary; - inner: Readonly<[ArrayBuffer]>; - }; - - class Binary_ extends UniffiEnum implements Binary__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'WebSocketMessage'; - readonly tag = WebSocketMessage_Tags.Binary; - readonly inner: Readonly<[ArrayBuffer]>; - constructor(v0: ArrayBuffer) { - super('WebSocketMessage', 'Binary'); - this.inner = Object.freeze([v0]); - } - - static new(v0: ArrayBuffer): Binary_ { - return new Binary_(v0); - } - - static instanceOf(obj: any): obj is Binary_ { - return obj.tag === WebSocketMessage_Tags.Binary; - } - } - - type Ping__interface = { - tag: WebSocketMessage_Tags.Ping; - inner: Readonly<[ArrayBuffer]>; - }; - - class Ping_ extends UniffiEnum implements Ping__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'WebSocketMessage'; - readonly tag = WebSocketMessage_Tags.Ping; - readonly inner: Readonly<[ArrayBuffer]>; - constructor(v0: ArrayBuffer) { - super('WebSocketMessage', 'Ping'); - this.inner = Object.freeze([v0]); - } - - static new(v0: ArrayBuffer): Ping_ { - return new Ping_(v0); - } - - static instanceOf(obj: any): obj is Ping_ { - return obj.tag === WebSocketMessage_Tags.Ping; - } - } - - type Pong__interface = { - tag: WebSocketMessage_Tags.Pong; - inner: Readonly<[ArrayBuffer]>; - }; - - class Pong_ extends UniffiEnum implements Pong__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'WebSocketMessage'; - readonly tag = WebSocketMessage_Tags.Pong; - readonly inner: Readonly<[ArrayBuffer]>; - constructor(v0: ArrayBuffer) { - super('WebSocketMessage', 'Pong'); - this.inner = Object.freeze([v0]); - } - - static new(v0: ArrayBuffer): Pong_ { - return new Pong_(v0); - } - - static instanceOf(obj: any): obj is Pong_ { - return obj.tag === WebSocketMessage_Tags.Pong; - } - } - - type Close__interface = { - tag: WebSocketMessage_Tags.Close; - inner: Readonly<[WebSocketCloseFrame | undefined]>; - }; - - class Close_ extends UniffiEnum implements Close__interface { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'WebSocketMessage'; - readonly tag = WebSocketMessage_Tags.Close; - readonly inner: Readonly<[WebSocketCloseFrame | undefined]>; - constructor(v0: WebSocketCloseFrame | undefined) { - super('WebSocketMessage', 'Close'); - this.inner = Object.freeze([v0]); - } - - static new(v0: WebSocketCloseFrame | undefined): Close_ { - return new Close_(v0); - } - - static instanceOf(obj: any): obj is Close_ { - return obj.tag === WebSocketMessage_Tags.Close; - } - } - - function instanceOf(obj: any): obj is WebSocketMessage { - return obj[uniffiTypeNameSymbol] === 'WebSocketMessage'; - } - - return Object.freeze({ - instanceOf, - Text: Text_, - Binary: Binary_, - Ping: Ping_, - Pong: Pong_, - Close: Close_, - }); -})(); - -export type WebSocketMessage = InstanceType< - (typeof WebSocketMessage)[keyof Omit] ->; - -// FfiConverter for enum WebSocketMessage -const FfiConverterTypeWebSocketMessage = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = WebSocketMessage; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return new WebSocketMessage.Text(FfiConverterString.read(from)); - case 2: - return new WebSocketMessage.Binary( - FfiConverterArrayBuffer.read(from) - ); - case 3: - return new WebSocketMessage.Ping(FfiConverterArrayBuffer.read(from)); - case 4: - return new WebSocketMessage.Pong(FfiConverterArrayBuffer.read(from)); - case 5: - return new WebSocketMessage.Close( - FfiConverterOptionalTypeWebSocketCloseFrame.read(from) - ); - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value.tag) { - case WebSocketMessage_Tags.Text: { - ordinalConverter.write(1, into); - const inner = value.inner; - FfiConverterString.write(inner[0], into); - return; - } - case WebSocketMessage_Tags.Binary: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterArrayBuffer.write(inner[0], into); - return; - } - case WebSocketMessage_Tags.Ping: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterArrayBuffer.write(inner[0], into); - return; - } - case WebSocketMessage_Tags.Pong: { - ordinalConverter.write(4, into); - const inner = value.inner; - FfiConverterArrayBuffer.write(inner[0], into); - return; - } - case WebSocketMessage_Tags.Close: { - ordinalConverter.write(5, into); - const inner = value.inner; - FfiConverterOptionalTypeWebSocketCloseFrame.write(inner[0], into); - return; - } - default: - // Throwing from here means that WebSocketMessage_Tags hasn't matched an ordinal. - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - allocationSize(value: TypeName): number { - switch (value.tag) { - case WebSocketMessage_Tags.Text: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(1); - size += FfiConverterString.allocationSize(inner[0]); - return size; - } - case WebSocketMessage_Tags.Binary: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterArrayBuffer.allocationSize(inner[0]); - return size; - } - case WebSocketMessage_Tags.Ping: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterArrayBuffer.allocationSize(inner[0]); - return size; - } - case WebSocketMessage_Tags.Pong: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(4); - size += FfiConverterArrayBuffer.allocationSize(inner[0]); - return size; - } - case WebSocketMessage_Tags.Close: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(5); - size += FfiConverterOptionalTypeWebSocketCloseFrame.allocationSize( - inner[0] - ); - return size; - } - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - } - return new FFIConverter(); -})(); - -export enum ZapType { - /** - * Public - */ - Public, - /** - * Private - */ - Private, - /** - * Anonymous - */ - Anonymous, -} - -const FfiConverterTypeZapType = (() => { - const ordinalConverter = FfiConverterInt32; - type TypeName = ZapType; - class FFIConverter extends AbstractFfiConverterByteArray { - read(from: RustBuffer): TypeName { - switch (ordinalConverter.read(from)) { - case 1: - return ZapType.Public; - case 2: - return ZapType.Private; - case 3: - return ZapType.Anonymous; - default: - throw new UniffiInternalError.UnexpectedEnumCase(); - } - } - write(value: TypeName, into: RustBuffer): void { - switch (value) { - case ZapType.Public: - return ordinalConverter.write(1, into); - case ZapType.Private: - return ordinalConverter.write(2, into); - case ZapType.Anonymous: - return ordinalConverter.write(3, into); - } - } - allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); - } - } - return new FFIConverter(); -})(); - -// FfiConverter for Map -const FfiConverterMapStringString = new FfiConverterMap( - FfiConverterString, - FfiConverterString -); - -export interface AdmitPolicy { - /** - * Admit Event - * - * Returns `AdmitStatus::Success` if the event is admitted, otherwise `AdmitStatus::Rejected`. - */ - admitEvent( - relayUrl: string, - subscriptionId: string, - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; -} - -export class AdmitPolicyImpl - extends UniffiAbstractObject - implements AdmitPolicy -{ - readonly [uniffiTypeNameSymbol] = 'AdmitPolicyImpl'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeAdmitPolicyImplObjectFactory.bless(pointer); - } - - /** - * Admit Event - * - * Returns `AdmitStatus::Success` if the event is admitted, otherwise `AdmitStatus::Rejected`. - */ - public async admitEvent( - relayUrl: string, - subscriptionId: string, - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_admitpolicy_admit_event( - uniffiTypeAdmitPolicyImplObjectFactory.clonePointer(this), - FfiConverterString.lower(relayUrl), - FfiConverterString.lower(subscriptionId), - FfiConverterTypeEvent.lower(event) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeAdmitStatus.lift.bind( - FfiConverterTypeAdmitStatus - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeAdmitPolicyImplObjectFactory.pointer(this); - uniffiTypeAdmitPolicyImplObjectFactory.freePointer(pointer); - uniffiTypeAdmitPolicyImplObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is AdmitPolicyImpl { - return uniffiTypeAdmitPolicyImplObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeAdmitPolicyImplObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): AdmitPolicy { - const instance = Object.create(AdmitPolicyImpl.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'AdmitPolicyImpl'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_admitpolicy_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: AdmitPolicy): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: AdmitPolicy): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_admitpolicy( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_admitpolicy( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is AdmitPolicy { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'AdmitPolicyImpl' - ); - }, - }; -// FfiConverter for AdmitPolicy -const FfiConverterTypeAdmitPolicy = new FfiConverterObjectWithCallbacks( - uniffiTypeAdmitPolicyImplObjectFactory -); - -// Add a vtavble for the callbacks that go in AdmitPolicy. - -// Put the implementation in a struct so we don't pollute the top-level namespace -const uniffiCallbackInterfaceAdmitPolicy: { - vtable: UniffiVTableCallbackInterfaceAdmitPolicy; - register: () => void; -} = { - // Create the VTable using a series of closures. - // ts automatically converts these into C callback functions. - vtable: { - admitEvent: ( - uniffiHandle: bigint, - relayUrl: Uint8Array, - subscriptionId: Uint8Array, - event: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async ( - signal: AbortSignal - ): Promise => { - const jsCallback = FfiConverterTypeAdmitPolicy.lift(uniffiHandle); - return await jsCallback.admitEvent( - FfiConverterString.lift(relayUrl), - FfiConverterString.lift(subscriptionId), - FfiConverterTypeEvent.lift(event), - { signal } - ); - }; - const uniffiHandleSuccess = (returnValue: AdmitStatus) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: FfiConverterTypeAdmitStatus.lower(returnValue), - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: /*empty*/ new Uint8Array(0), - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - uniffiFree: (uniffiHandle: UniffiHandle): void => { - // AdmitPolicy: this will throw a stale handle error if the handle isn't found. - FfiConverterTypeAdmitPolicy.drop(uniffiHandle); - }, - }, - register: () => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_admitpolicy( - uniffiCallbackInterfaceAdmitPolicy.vtable - ); - }, -}; - -export interface ClientInterface { - /** - * Add discovery relay - * - * If relay already exists, this method automatically add the `DISCOVERY` flag to it and return `false`. - * - * - */ - addDiscoveryRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Add read relay - * - * If relay already exists, this method add the `READ` flag to it and return `false`. - */ - addReadRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Add new relay - * - * Relays added with this method will have both `READ` and `WRITE` flags enabled - * - * If the relay already exists, the flags will be updated and `false` returned. - * - * If are set pool subscriptions, the new added relay will inherit them. Use `subscribe_to` method instead of `subscribe`, - * to avoid to set pool subscriptions. - * - * This method use previously set or default `Options` to configure the `Relay` (ex. set proxy, set min POW, set relay limits, ...). - * - * Connection is **NOT** automatically started with relay, remember to call `connect` method! - */ - addRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Add new relay with custom options - */ - addRelayWithOpts( - url: string, - opts: RelayOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Add write relay - * - * If relay already exists, this method add the `WRITE` flag to it and return `false`. - */ - addWriteRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Auto authenticate to relays (default: true) - * - * - */ - automaticAuthentication(enable: boolean): void; - /** - * Connect to all added relays - * - * Attempts to initiate a connection for every relay currently in - * [`RelayStatus::Initialized`] or [`RelayStatus::Terminated`]. - * A background connection task is spawned for each such relay, which then tries - * to establish the connection. - * Any relay not in one of these two statuses is skipped. - * - * For further details, see the documentation of [`Relay::connect`]. - */ - connect(asyncOpts_?: { signal: AbortSignal }): Promise; - /** - * Connect to a previously added relay - */ - connectRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - database(): NostrDatabaseInterface; - /** - * Disconnect from all relays - */ - disconnect(asyncOpts_?: { signal: AbortSignal }): Promise; - disconnectRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Get events both from database and relays - * - * This is an auto-closing subscription and will be closed automatically on `EOSE`. - * - * You can obtain the same result by merging the `Events` from different type of sources. - * - * This method will be deprecated in the future! - * This is a temporary solution for who still want to query events both from database and relays and merge the result. - * The optimal solution is to execute a [`Client::sync`] to get all old events, [`Client::subscribe`] to get all - * new future events, [`NostrDatabase::query`] to query events and [`Client::handle_notifications`] to listen-for/handle new events (i.e. to know when update the UI). - * This will allow very fast queries, low bandwidth usage (depending on how many events the client have to sync) and a low load on relays. - * - * # Gossip - * - * If `gossip` is enabled (see [`Options::gossip`]) the events will be requested also to - * NIP65 relays (automatically discovered) of public keys included in filters (if any). - */ - fetchCombinedEvents( - filter: FilterInterface, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Fetch events from relays - * - * This is an auto-closing subscription and will be closed automatically on `EOSE`. - * - * # Gossip - * - * If `gossip` is enabled (see `Options`) the events will be requested also to - * NIP65 relays (automatically discovered) of public keys included in filters (if any). - */ - fetchEvents( - filter: FilterInterface, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Fetch events from specific relays - * - * This is an auto-closing subscription and will be closed automatically on `EOSE`. - */ - fetchEventsFrom( - urls: Array, - filter: FilterInterface, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Fetch the newest public key metadata from relays. - * - * Returns `None` if the `Metadata` of the `PublicKey` has not been found. - * - * Check `Client::fetch_events` for more details. - * - * If you only want to consult cached data, - * consider `client.database().profile(PUBKEY)`. - * - * - */ - fetchMetadata( - publicKey: PublicKeyInterface, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Disconnect and force remove all relays - */ - forceRemoveAllRelays(asyncOpts_?: { signal: AbortSignal }): Promise; - /** - * Force remove and disconnect relay - * - * Note: this method will remove the relay, also if it's in use for the gossip model or other service! - */ - forceRemoveRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Construct Gift Wrap and send to relays - * - * Check `send_event` method to know how sending events works. - * - * - */ - giftWrap( - receiver: PublicKeyInterface, - rumor: UnsignedEventInterface, - extraTags: Array, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Construct Gift Wrap and send to specific relays - * - * - */ - giftWrapTo( - urls: Array, - receiver: PublicKeyInterface, - rumor: UnsignedEventInterface, - extraTags: Array, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Handle notifications - */ - handleNotifications( - handler: HandleNotification, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - relay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Get relays with `READ` or `WRITE` flags - */ - relays(asyncOpts_?: { - signal: AbortSignal; - }): Promise>; - /** - * Disconnect and remove all relays - * - * Some relays used by some services could not be disconnected with this method - * (like the ones used for gossip). - * Use [`Client::force_remove_all_relays`] to remove every relay. - */ - removeAllRelays(asyncOpts_?: { signal: AbortSignal }): Promise; - /** - * Remove and disconnect relay - * - * If the relay has `GOSSIP` flag, it will not be removed from the pool and its - * flags will be updated (remove `READ`, `WRITE` and `DISCOVERY` flags). - */ - removeRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Send event - * - * Send event to all relays with `WRITE` flag. - * If `gossip` is enabled (see `Options`) the event will be sent also to NIP65 relays (automatically discovered). - */ - sendEvent( - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Take an `EventBuilder`, sign it by using the `NostrSigner` and broadcast to relays (check `send_event` method for more details) - * - * Rise an error if the `NostrSigner` is not set. - */ - sendEventBuilder( - builder: EventBuilderInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Take an `EventBuilder`, sign it by using the `NostrSigner` and broadcast to specific relays. - * - * Rise an error if the `NostrSigner` is not set. - */ - sendEventBuilderTo( - urls: Array, - builder: EventBuilderInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Send event to specific relays. - */ - sendEventTo( - urls: Array, - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - sendMsgTo( - urls: Array, - msg: ClientMessageInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Send a private direct message - * - * If gossip is enabled, the message will be sent to the NIP17 relays (automatically discovered). - * If gossip is not enabled will be sent to all relays with WRITE` relay service flag. - * - * - */ - sendPrivateMsg( - receiver: PublicKeyInterface, - message: string, - rumorExtraTags: Array, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Send private direct message to specific relays - * - * - */ - sendPrivateMsgTo( - urls: Array, - receiver: PublicKeyInterface, - message: string, - rumorExtraTags: Array, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - setMetadata( - metadata: MetadataInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - shutdown(asyncOpts_?: { signal: AbortSignal }): Promise; - /** - * Signs the `EventBuilder` into an `Event` using the `NostrSigner` - */ - signEventBuilder( - builder: EventBuilderInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - signer(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise; - /** - * Subscribe to filters - * - * If `gossip` is enabled (see `Options]) the events will be requested also to - * NIP65 relays (automatically discovered) of public keys included in filters (if any). - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeAutoCloseOptions`. - */ - subscribe( - filter: FilterInterface, - opts: SubscribeAutoCloseOptionsInterface | undefined, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Subscribe to filters to specific relays - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeAutoCloseOptions`. - */ - subscribeTo( - urls: Array, - filter: FilterInterface, - opts: SubscribeAutoCloseOptionsInterface | undefined, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Subscribe to filters with custom subscription ID - * - * If `gossip` is enabled (see `Options]) the events will be requested also to - * NIP65 relays (automatically discovered) of public keys included in filters (if any). - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeAutoCloseOptions`. - */ - subscribeWithId( - id: string, - filter: FilterInterface, - opts: SubscribeAutoCloseOptionsInterface | undefined, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Subscribe to filters with custom subscription ID to specific relays - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeAutoCloseOptions`. - */ - subscribeWithIdTo( - urls: Array, - id: string, - filter: FilterInterface, - opts: SubscribeAutoCloseOptionsInterface | undefined, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - subscription( - id: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise; - subscriptions(asyncOpts_?: { - signal: AbortSignal; - }): Promise>; - /** - * Sync events with relays (negentropy reconciliation) - * - * If `gossip` is enabled (see `Options`) the events will be reconciled also with - * NIP65 relays (automatically discovered) of public keys included in filters (if any). - * - * - */ - sync( - filter: FilterInterface, - opts: SyncOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Try to establish a connection with the relays. - * - * Attempts to establish a connection for every relay currently in - * [`RelayStatus::Initialized`] or [`RelayStatus::Terminated`] - * without spawning the connection task if it fails. - * This means that if the connection fails, no automatic retries are scheduled. - * Use [`Client::connect`] if you want to immediately spawn a connection task, - * regardless of whether the initial connection succeeds. - * - * For further details, see the documentation of [`Relay::try_connect`]. - */ - tryConnect( - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise; - unsubscribe( - subscriptionId: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise; - unsubscribeAll(asyncOpts_?: { signal: AbortSignal }): Promise; - /** - * Unwrap Gift Wrap event - * - * Internally verify the `seal` event - * - * - */ - unwrapGiftWrap( - giftWrap: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Waits for relays connections - * - * Wait for relays connections at most for the specified `timeout`. - * The code continues when the relays are connected or the `timeout` is reached. - */ - waitForConnection( - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise; -} - -export class Client extends UniffiAbstractObject implements ClientInterface { - readonly [uniffiTypeNameSymbol] = 'Client'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor(signer: NostrSignerInterface | undefined = undefined) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_client_new( - FfiConverterOptionalTypeNostrSigner.lower(signer), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeClientObjectFactory.bless(pointer); - } - - /** - * Add discovery relay - * - * If relay already exists, this method automatically add the `DISCOVERY` flag to it and return `false`. - * - * - */ - public async addDiscoveryRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_discovery_relay( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(url) - ); - }, - /*pollFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i8, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i8, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i8, - /*freeFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_free_i8, - /*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Add read relay - * - * If relay already exists, this method add the `READ` flag to it and return `false`. - */ - public async addReadRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_read_relay( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(url) - ); - }, - /*pollFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i8, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i8, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i8, - /*freeFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_free_i8, - /*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Add new relay - * - * Relays added with this method will have both `READ` and `WRITE` flags enabled - * - * If the relay already exists, the flags will be updated and `false` returned. - * - * If are set pool subscriptions, the new added relay will inherit them. Use `subscribe_to` method instead of `subscribe`, - * to avoid to set pool subscriptions. - * - * This method use previously set or default `Options` to configure the `Relay` (ex. set proxy, set min POW, set relay limits, ...). - * - * Connection is **NOT** automatically started with relay, remember to call `connect` method! - */ - public async addRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_relay( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(url) - ); - }, - /*pollFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i8, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i8, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i8, - /*freeFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_free_i8, - /*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Add new relay with custom options - */ - public async addRelayWithOpts( - url: string, - opts: RelayOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_relay_with_opts( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(url), - FfiConverterTypeRelayOptions.lower(opts) - ); - }, - /*pollFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i8, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i8, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i8, - /*freeFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_free_i8, - /*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Add write relay - * - * If relay already exists, this method add the `WRITE` flag to it and return `false`. - */ - public async addWriteRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_add_write_relay( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(url) - ); - }, - /*pollFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_poll_i8, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_i8, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_i8, - /*freeFunc:*/ nativeModule().ubrn_ffi_nostr_sdk_ffi_rust_future_free_i8, - /*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Auto authenticate to relays (default: true) - * - * - */ - public automaticAuthentication(enable: boolean): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_automatic_authentication( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterBool.lower(enable), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - } - - /** - * Connect to all added relays - * - * Attempts to initiate a connection for every relay currently in - * [`RelayStatus::Initialized`] or [`RelayStatus::Terminated`]. - * A background connection task is spawned for each such relay, which then tries - * to establish the connection. - * Any relay not in one of these two statuses is skipped. - * - * For further details, see the documentation of [`Relay::connect`]. - */ - public async connect(asyncOpts_?: { signal: AbortSignal }): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_connect( - uniffiTypeClientObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Connect to a previously added relay - */ - public async connectRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_connect_relay( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(url) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public database(): NostrDatabaseInterface { - return FfiConverterTypeNostrDatabase.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_database( - uniffiTypeClientObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Disconnect from all relays - */ - public async disconnect(asyncOpts_?: { signal: AbortSignal }): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_disconnect( - uniffiTypeClientObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async disconnectRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_disconnect_relay( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(url) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Get events both from database and relays - * - * This is an auto-closing subscription and will be closed automatically on `EOSE`. - * - * You can obtain the same result by merging the `Events` from different type of sources. - * - * This method will be deprecated in the future! - * This is a temporary solution for who still want to query events both from database and relays and merge the result. - * The optimal solution is to execute a [`Client::sync`] to get all old events, [`Client::subscribe`] to get all - * new future events, [`NostrDatabase::query`] to query events and [`Client::handle_notifications`] to listen-for/handle new events (i.e. to know when update the UI). - * This will allow very fast queries, low bandwidth usage (depending on how many events the client have to sync) and a low load on relays. - * - * # Gossip - * - * If `gossip` is enabled (see [`Options::gossip`]) the events will be requested also to - * NIP65 relays (automatically discovered) of public keys included in filters (if any). - */ - public async fetchCombinedEvents( - filter: FilterInterface, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_combined_events( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter), - FfiConverterDuration.lower(timeout) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvents.lift.bind(FfiConverterTypeEvents), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Fetch events from relays - * - * This is an auto-closing subscription and will be closed automatically on `EOSE`. - * - * # Gossip - * - * If `gossip` is enabled (see `Options`) the events will be requested also to - * NIP65 relays (automatically discovered) of public keys included in filters (if any). - */ - public async fetchEvents( - filter: FilterInterface, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter), - FfiConverterDuration.lower(timeout) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvents.lift.bind(FfiConverterTypeEvents), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Fetch events from specific relays - * - * This is an auto-closing subscription and will be closed automatically on `EOSE`. - */ - public async fetchEventsFrom( - urls: Array, - filter: FilterInterface, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_events_from( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(urls), - FfiConverterTypeFilter.lower(filter), - FfiConverterDuration.lower(timeout) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvents.lift.bind(FfiConverterTypeEvents), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Fetch the newest public key metadata from relays. - * - * Returns `None` if the `Metadata` of the `PublicKey` has not been found. - * - * Check `Client::fetch_events` for more details. - * - * If you only want to consult cached data, - * consider `client.database().profile(PUBKEY)`. - * - * - */ - public async fetchMetadata( - publicKey: PublicKeyInterface, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_fetch_metadata( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterDuration.lower(timeout) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalTypeMetadata.lift.bind( - FfiConverterOptionalTypeMetadata - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Disconnect and force remove all relays - */ - public async forceRemoveAllRelays(asyncOpts_?: { - signal: AbortSignal; - }): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_all_relays( - uniffiTypeClientObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Force remove and disconnect relay - * - * Note: this method will remove the relay, also if it's in use for the gossip model or other service! - */ - public async forceRemoveRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_force_remove_relay( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(url) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Construct Gift Wrap and send to relays - * - * Check `send_event` method to know how sending events works. - * - * - */ - public async giftWrap( - receiver: PublicKeyInterface, - rumor: UnsignedEventInterface, - extraTags: Array, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(receiver), - FfiConverterTypeUnsignedEvent.lower(rumor), - FfiConverterArrayTypeTag.lower(extraTags) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSendEventOutput.lift.bind( - FfiConverterTypeSendEventOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Construct Gift Wrap and send to specific relays - * - * - */ - public async giftWrapTo( - urls: Array, - receiver: PublicKeyInterface, - rumor: UnsignedEventInterface, - extraTags: Array, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_gift_wrap_to( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(urls), - FfiConverterTypePublicKey.lower(receiver), - FfiConverterTypeUnsignedEvent.lower(rumor), - FfiConverterArrayTypeTag.lower(extraTags) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSendEventOutput.lift.bind( - FfiConverterTypeSendEventOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Handle notifications - */ - public async handleNotifications( - handler: HandleNotification, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_handle_notifications( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeHandleNotification.lower(handler) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async relay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_relay( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(url) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeRelay.lift.bind(FfiConverterTypeRelay), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Get relays with `READ` or `WRITE` flags - */ - public async relays(asyncOpts_?: { - signal: AbortSignal; - }): Promise> { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_relays( - uniffiTypeClientObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterMapStringTypeRelay.lift.bind( - FfiConverterMapStringTypeRelay - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Disconnect and remove all relays - * - * Some relays used by some services could not be disconnected with this method - * (like the ones used for gossip). - * Use [`Client::force_remove_all_relays`] to remove every relay. - */ - public async removeAllRelays(asyncOpts_?: { - signal: AbortSignal; - }): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_remove_all_relays( - uniffiTypeClientObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Remove and disconnect relay - * - * If the relay has `GOSSIP` flag, it will not be removed from the pool and its - * flags will be updated (remove `READ`, `WRITE` and `DISCOVERY` flags). - */ - public async removeRelay( - url: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_remove_relay( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(url) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Send event - * - * Send event to all relays with `WRITE` flag. - * If `gossip` is enabled (see `Options`) the event will be sent also to NIP65 relays (automatically discovered). - */ - public async sendEvent( - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeEvent.lower(event) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSendEventOutput.lift.bind( - FfiConverterTypeSendEventOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Take an `EventBuilder`, sign it by using the `NostrSigner` and broadcast to relays (check `send_event` method for more details) - * - * Rise an error if the `NostrSigner` is not set. - */ - public async sendEventBuilder( - builder: EventBuilderInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeEventBuilder.lower(builder) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSendEventOutput.lift.bind( - FfiConverterTypeSendEventOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Take an `EventBuilder`, sign it by using the `NostrSigner` and broadcast to specific relays. - * - * Rise an error if the `NostrSigner` is not set. - */ - public async sendEventBuilderTo( - urls: Array, - builder: EventBuilderInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_builder_to( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(urls), - FfiConverterTypeEventBuilder.lower(builder) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSendEventOutput.lift.bind( - FfiConverterTypeSendEventOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Send event to specific relays. - */ - public async sendEventTo( - urls: Array, - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_event_to( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(urls), - FfiConverterTypeEvent.lower(event) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSendEventOutput.lift.bind( - FfiConverterTypeSendEventOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async sendMsgTo( - urls: Array, - msg: ClientMessageInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_msg_to( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(urls), - FfiConverterTypeClientMessage.lower(msg) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeOutput.lift.bind(FfiConverterTypeOutput), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Send a private direct message - * - * If gossip is enabled, the message will be sent to the NIP17 relays (automatically discovered). - * If gossip is not enabled will be sent to all relays with WRITE` relay service flag. - * - * - */ - public async sendPrivateMsg( - receiver: PublicKeyInterface, - message: string, - rumorExtraTags: Array = [], - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(receiver), - FfiConverterString.lower(message), - FfiConverterArrayTypeTag.lower(rumorExtraTags) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSendEventOutput.lift.bind( - FfiConverterTypeSendEventOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Send private direct message to specific relays - * - * - */ - public async sendPrivateMsgTo( - urls: Array, - receiver: PublicKeyInterface, - message: string, - rumorExtraTags: Array = [], - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_send_private_msg_to( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(urls), - FfiConverterTypePublicKey.lower(receiver), - FfiConverterString.lower(message), - FfiConverterArrayTypeTag.lower(rumorExtraTags) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSendEventOutput.lift.bind( - FfiConverterTypeSendEventOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async setMetadata( - metadata: MetadataInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_set_metadata( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeMetadata.lower(metadata) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSendEventOutput.lift.bind( - FfiConverterTypeSendEventOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async shutdown(asyncOpts_?: { signal: AbortSignal }): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_shutdown( - uniffiTypeClientObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Signs the `EventBuilder` into an `Event` using the `NostrSigner` - */ - public async signEventBuilder( - builder: EventBuilderInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_sign_event_builder( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeEventBuilder.lower(builder) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvent.lift.bind(FfiConverterTypeEvent), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async signer(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_signer( - uniffiTypeClientObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeNostrSigner.lift.bind( - FfiConverterTypeNostrSigner - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Subscribe to filters - * - * If `gossip` is enabled (see `Options]) the events will be requested also to - * NIP65 relays (automatically discovered) of public keys included in filters (if any). - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeAutoCloseOptions`. - */ - public async subscribe( - filter: FilterInterface, - opts: SubscribeAutoCloseOptionsInterface | undefined = undefined, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter), - FfiConverterOptionalTypeSubscribeAutoCloseOptions.lower(opts) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSubscribeOutput.lift.bind( - FfiConverterTypeSubscribeOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Subscribe to filters to specific relays - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeAutoCloseOptions`. - */ - public async subscribeTo( - urls: Array, - filter: FilterInterface, - opts: SubscribeAutoCloseOptionsInterface | undefined = undefined, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_to( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(urls), - FfiConverterTypeFilter.lower(filter), - FfiConverterOptionalTypeSubscribeAutoCloseOptions.lower(opts) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSubscribeOutput.lift.bind( - FfiConverterTypeSubscribeOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Subscribe to filters with custom subscription ID - * - * If `gossip` is enabled (see `Options]) the events will be requested also to - * NIP65 relays (automatically discovered) of public keys included in filters (if any). - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeAutoCloseOptions`. - */ - public async subscribeWithId( - id: string, - filter: FilterInterface, - opts: SubscribeAutoCloseOptionsInterface | undefined = undefined, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(id), - FfiConverterTypeFilter.lower(filter), - FfiConverterOptionalTypeSubscribeAutoCloseOptions.lower(opts) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeOutput.lift.bind(FfiConverterTypeOutput), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Subscribe to filters with custom subscription ID to specific relays - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeAutoCloseOptions`. - */ - public async subscribeWithIdTo( - urls: Array, - id: string, - filter: FilterInterface, - opts: SubscribeAutoCloseOptionsInterface | undefined = undefined, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscribe_with_id_to( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(urls), - FfiConverterString.lower(id), - FfiConverterTypeFilter.lower(filter), - FfiConverterOptionalTypeSubscribeAutoCloseOptions.lower(opts) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeOutput.lift.bind(FfiConverterTypeOutput), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async subscription( - id: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscription( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(id) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalTypeFilter.lift.bind( - FfiConverterOptionalTypeFilter - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async subscriptions(asyncOpts_?: { - signal: AbortSignal; - }): Promise> { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_subscriptions( - uniffiTypeClientObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterMapStringTypeFilter.lift.bind( - FfiConverterMapStringTypeFilter - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Sync events with relays (negentropy reconciliation) - * - * If `gossip` is enabled (see `Options`) the events will be reconciled also with - * NIP65 relays (automatically discovered) of public keys included in filters (if any). - * - * - */ - public async sync( - filter: FilterInterface, - opts: SyncOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_sync( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter), - FfiConverterTypeSyncOptions.lower(opts) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeReconciliationOutput.lift.bind( - FfiConverterTypeReconciliationOutput - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Try to establish a connection with the relays. - * - * Attempts to establish a connection for every relay currently in - * [`RelayStatus::Initialized`] or [`RelayStatus::Terminated`] - * without spawning the connection task if it fails. - * This means that if the connection fails, no automatic retries are scheduled. - * Use [`Client::connect`] if you want to immediately spawn a connection task, - * regardless of whether the initial connection succeeds. - * - * For further details, see the documentation of [`Relay::try_connect`]. - */ - public async tryConnect( - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_try_connect( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterDuration.lower(timeout) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeOutput.lift.bind(FfiConverterTypeOutput), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async unsubscribe( - subscriptionId: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(subscriptionId) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async unsubscribeAll(asyncOpts_?: { - signal: AbortSignal; - }): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unsubscribe_all( - uniffiTypeClientObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Unwrap Gift Wrap event - * - * Internally verify the `seal` event - * - * - */ - public async unwrapGiftWrap( - giftWrap: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_unwrap_gift_wrap( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeEvent.lower(giftWrap) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeUnwrappedGift.lift.bind( - FfiConverterTypeUnwrappedGift - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Waits for relays connections - * - * Wait for relays connections at most for the specified `timeout`. - * The code continues when the relays are connected or the `timeout` is reached. - */ - public async waitForConnection( - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_client_wait_for_connection( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterDuration.lower(timeout) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeClientObjectFactory.pointer(this); - uniffiTypeClientObjectFactory.freePointer(pointer); - uniffiTypeClientObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Client { - return uniffiTypeClientObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeClientObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): ClientInterface { - const instance = Object.create(Client.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Client'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_client_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: ClientInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: ClientInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_client( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_client( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is ClientInterface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Client'; - }, -}; -// FfiConverter for ClientInterface -const FfiConverterTypeClient = new FfiConverterObject( - uniffiTypeClientObjectFactory -); - -export interface ClientBuilderInterface { - /** - * Set an admission policy - */ - admitPolicy(policy: AdmitPolicy): ClientBuilderInterface; - /** - * Build [`Client`] - */ - build(): ClientInterface; - database(database: NostrDatabaseInterface): ClientBuilderInterface; - /** - * Set opts - */ - opts(opts: OptionsInterface): ClientBuilderInterface; - signer(signer: NostrSignerInterface): ClientBuilderInterface; - /** - * Set a custom WebSocket transport - */ - websocketTransport( - transport: CustomWebSocketTransport - ): ClientBuilderInterface; -} - -export class ClientBuilder - extends UniffiAbstractObject - implements ClientBuilderInterface -{ - readonly [uniffiTypeNameSymbol] = 'ClientBuilder'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * New client builder - */ - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientbuilder_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeClientBuilderObjectFactory.bless(pointer); - } - - /** - * Set an admission policy - */ - public admitPolicy(policy: AdmitPolicy): ClientBuilderInterface { - return FfiConverterTypeClientBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_admit_policy( - uniffiTypeClientBuilderObjectFactory.clonePointer(this), - FfiConverterTypeAdmitPolicy.lower(policy), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Build [`Client`] - */ - public build(): ClientInterface { - return FfiConverterTypeClient.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_build( - uniffiTypeClientBuilderObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public database(database: NostrDatabaseInterface): ClientBuilderInterface { - return FfiConverterTypeClientBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_database( - uniffiTypeClientBuilderObjectFactory.clonePointer(this), - FfiConverterTypeNostrDatabase.lower(database), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set opts - */ - public opts(opts: OptionsInterface): ClientBuilderInterface { - return FfiConverterTypeClientBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_opts( - uniffiTypeClientBuilderObjectFactory.clonePointer(this), - FfiConverterTypeOptions.lower(opts), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public signer(signer: NostrSignerInterface): ClientBuilderInterface { - return FfiConverterTypeClientBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_signer( - uniffiTypeClientBuilderObjectFactory.clonePointer(this), - FfiConverterTypeNostrSigner.lower(signer), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set a custom WebSocket transport - */ - public websocketTransport( - transport: CustomWebSocketTransport - ): ClientBuilderInterface { - return FfiConverterTypeClientBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_clientbuilder_websocket_transport( - uniffiTypeClientBuilderObjectFactory.clonePointer(this), - FfiConverterTypeCustomWebSocketTransport.lower(transport), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeClientBuilderObjectFactory.pointer(this); - uniffiTypeClientBuilderObjectFactory.freePointer(pointer); - uniffiTypeClientBuilderObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is ClientBuilder { - return uniffiTypeClientBuilderObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeClientBuilderObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): ClientBuilderInterface { - const instance = Object.create(ClientBuilder.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'ClientBuilder'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_clientbuilder_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: ClientBuilderInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: ClientBuilderInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_clientbuilder( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_clientbuilder( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is ClientBuilderInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'ClientBuilder' - ); - }, - }; -// FfiConverter for ClientBuilderInterface -const FfiConverterTypeClientBuilder = new FfiConverterObject( - uniffiTypeClientBuilderObjectFactory -); - -export interface ClientMessageInterface { - /** - * Clone `ClientMessage` and convert it to `ClientMessageEnum` - */ - asEnum(): ClientMessageEnum; - asJson() /*throws*/ : string; -} - -export class ClientMessage - extends UniffiAbstractObject - implements ClientMessageInterface -{ - readonly [uniffiTypeNameSymbol] = 'ClientMessage'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeClientMessageObjectFactory.bless(pointer); - } - - /** - * Create new `AUTH` message - */ - public static auth(event: EventInterface): ClientMessageInterface { - return FfiConverterTypeClientMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_auth( - FfiConverterTypeEvent.lower(event), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new `CLOSE` message - */ - public static close(subscriptionId: string): ClientMessageInterface { - return FfiConverterTypeClientMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_close( - FfiConverterString.lower(subscriptionId), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new `COUNT` message - */ - public static count( - subscriptionId: string, - filter: FilterInterface - ): ClientMessageInterface { - return FfiConverterTypeClientMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_count( - FfiConverterString.lower(subscriptionId), - FfiConverterTypeFilter.lower(filter), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new `EVENT` message - */ - public static event(event: EventInterface): ClientMessageInterface { - return FfiConverterTypeClientMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_event( - FfiConverterTypeEvent.lower(event), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Convert `ClientMessageEnum` to `ClientMessage` - */ - public static fromEnum(e: ClientMessageEnum): ClientMessageInterface { - return FfiConverterTypeClientMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_enum( - FfiConverterTypeClientMessageEnum.lower(e), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Deserialize `ClientMessage` from JSON string - * - * **This method NOT verify the event signature!** - */ - public static fromJson(json: string): ClientMessageInterface /*throws*/ { - return FfiConverterTypeClientMessage.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_from_json( - FfiConverterString.lower(json), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new `REQ` message - */ - public static req( - subscriptionId: string, - filter: FilterInterface - ): ClientMessageInterface { - return FfiConverterTypeClientMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_clientmessage_req( - FfiConverterString.lower(subscriptionId), - FfiConverterTypeFilter.lower(filter), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Clone `ClientMessage` and convert it to `ClientMessageEnum` - */ - public asEnum(): ClientMessageEnum { - return FfiConverterTypeClientMessageEnum.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_enum( - uniffiTypeClientMessageObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_as_json( - uniffiTypeClientMessageObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `ClientMessageInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_debug( - uniffiTypeClientMessageObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `ClientMessageInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `ClientMessageInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `ClientMessageInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: ClientMessage): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_clientmessage_uniffi_trait_eq_eq( - uniffiTypeClientMessageObjectFactory.clonePointer(this), - FfiConverterTypeClientMessage.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeClientMessageObjectFactory.pointer(this); - uniffiTypeClientMessageObjectFactory.freePointer(pointer); - uniffiTypeClientMessageObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is ClientMessage { - return uniffiTypeClientMessageObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeClientMessageObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): ClientMessageInterface { - const instance = Object.create(ClientMessage.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'ClientMessage'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_clientmessage_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: ClientMessageInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: ClientMessageInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_clientmessage( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_clientmessage( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is ClientMessageInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'ClientMessage' - ); - }, - }; -// FfiConverter for ClientMessageInterface -const FfiConverterTypeClientMessage = new FfiConverterObject( - uniffiTypeClientMessageObjectFactory -); - -/** - * Connection - */ -export interface ConnectionInterface { - /** - * Set proxy (ex. `127.0.0.1:9050`) - */ - addr(addr: string) /*throws*/ : ConnectionInterface; - /** - * Set connection mode (default: direct) - */ - mode(mode: ConnectionMode) /*throws*/ : ConnectionInterface; - /** - * Set connection target (default: all) - */ - target(target: ConnectionTarget): ConnectionInterface; -} - -/** - * Connection - */ -export class Connection - extends UniffiAbstractObject - implements ConnectionInterface -{ - readonly [uniffiTypeNameSymbol] = 'Connection'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_connection_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeConnectionObjectFactory.bless(pointer); - } - - /** - * Set proxy (ex. `127.0.0.1:9050`) - */ - public addr(addr: string): ConnectionInterface /*throws*/ { - return FfiConverterTypeConnection.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_addr( - uniffiTypeConnectionObjectFactory.clonePointer(this), - FfiConverterString.lower(addr), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set connection mode (default: direct) - */ - public mode(mode: ConnectionMode): ConnectionInterface /*throws*/ { - return FfiConverterTypeConnection.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_mode( - uniffiTypeConnectionObjectFactory.clonePointer(this), - FfiConverterTypeConnectionMode.lower(mode), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set connection target (default: all) - */ - public target(target: ConnectionTarget): ConnectionInterface { - return FfiConverterTypeConnection.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_target( - uniffiTypeConnectionObjectFactory.clonePointer(this), - FfiConverterTypeConnectionTarget.lower(target), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `ConnectionInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_debug( - uniffiTypeConnectionObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `ConnectionInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `ConnectionInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `ConnectionInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Connection): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_eq_eq( - uniffiTypeConnectionObjectFactory.clonePointer(this), - FfiConverterTypeConnection.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `ConnectionInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_connection_uniffi_trait_hash( - uniffiTypeConnectionObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeConnectionObjectFactory.pointer(this); - uniffiTypeConnectionObjectFactory.freePointer(pointer); - uniffiTypeConnectionObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Connection { - return uniffiTypeConnectionObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeConnectionObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): ConnectionInterface { - const instance = Object.create(Connection.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Connection'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_connection_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: ConnectionInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: ConnectionInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_connection( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_connection( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is ConnectionInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Connection' - ); - }, - }; -// FfiConverter for ConnectionInterface -const FfiConverterTypeConnection = new FfiConverterObject( - uniffiTypeConnectionObjectFactory -); - -/** - * Coordinate for event (`a` tag) - */ -export interface CoordinateInterface { - identifier(): string; - kind(): KindInterface; - publicKey(): PublicKeyInterface; - /** - * Check if the coordinate is valid. - * - * Returns `false` if: - * - the `Kind` is `replaceable` and the identifier is not empty - * - the `Kind` is `addressable` and the identifier is empty - */ - verify(): boolean; -} - -/** - * Coordinate for event (`a` tag) - */ -export class Coordinate - extends UniffiAbstractObject - implements CoordinateInterface -{ - readonly [uniffiTypeNameSymbol] = 'Coordinate'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor( - kind: KindInterface, - publicKey: PublicKeyInterface, - identifier: string = '' - ) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_new( - FfiConverterTypeKind.lower(kind), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(identifier), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeCoordinateObjectFactory.bless(pointer); - } - - public static parse(coordinate: string): CoordinateInterface /*throws*/ { - return FfiConverterTypeCoordinate.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_coordinate_parse( - FfiConverterString.lower(coordinate), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public identifier(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_identifier( - uniffiTypeCoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public kind(): KindInterface { - return FfiConverterTypeKind.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_kind( - uniffiTypeCoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public publicKey(): PublicKeyInterface { - return FfiConverterTypePublicKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_public_key( - uniffiTypeCoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if the coordinate is valid. - * - * Returns `false` if: - * - the `Kind` is `replaceable` and the identifier is not empty - * - the `Kind` is `addressable` and the identifier is empty - */ - public verify(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_verify( - uniffiTypeCoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `CoordinateInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_debug( - uniffiTypeCoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `CoordinateInterface::to_string()` method of the native Rust peer. - * - * Generated by deriving the `Display` trait in Rust. - */ - toString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_display( - uniffiTypeCoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `==` method of `CoordinateInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `CoordinateInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Coordinate): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_eq_eq( - uniffiTypeCoordinateObjectFactory.clonePointer(this), - FfiConverterTypeCoordinate.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `CoordinateInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_coordinate_uniffi_trait_hash( - uniffiTypeCoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeCoordinateObjectFactory.pointer(this); - uniffiTypeCoordinateObjectFactory.freePointer(pointer); - uniffiTypeCoordinateObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Coordinate { - return uniffiTypeCoordinateObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeCoordinateObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): CoordinateInterface { - const instance = Object.create(Coordinate.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Coordinate'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_coordinate_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: CoordinateInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: CoordinateInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_coordinate( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_coordinate( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is CoordinateInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Coordinate' - ); - }, - }; -// FfiConverter for CoordinateInterface -const FfiConverterTypeCoordinate = new FfiConverterObject( - uniffiTypeCoordinateObjectFactory -); - -export interface CustomNostrSigner { - backend(): SignerBackend; - /** - * Get signer public key - */ - getPublicKey(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise; - /** - * Sign an unsigned event - */ - signEvent( - unsignedEvent: UnsignedEventInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * NIP04 encrypt (deprecate and unsecure) - */ - nip04Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * NIP04 decrypt - */ - nip04Decrypt( - publicKey: PublicKeyInterface, - encryptedContent: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * NIP44 encrypt - */ - nip44Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * NIP44 decrypt - */ - nip44Decrypt( - publicKey: PublicKeyInterface, - payload: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; -} - -export class CustomNostrSignerImpl - extends UniffiAbstractObject - implements CustomNostrSigner -{ - readonly [uniffiTypeNameSymbol] = 'CustomNostrSignerImpl'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeCustomNostrSignerImplObjectFactory.bless(pointer); - } - - public backend(): SignerBackend { - return FfiConverterTypeSignerBackend.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_backend( - uniffiTypeCustomNostrSignerImplObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get signer public key - */ - public async getPublicKey(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_get_public_key( - uniffiTypeCustomNostrSignerImplObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalTypePublicKey.lift.bind( - FfiConverterOptionalTypePublicKey - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Sign an unsigned event - */ - public async signEvent( - unsignedEvent: UnsignedEventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_sign_event( - uniffiTypeCustomNostrSignerImplObjectFactory.clonePointer(this), - FfiConverterTypeUnsignedEvent.lower(unsignedEvent) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalTypeEvent.lift.bind( - FfiConverterOptionalTypeEvent - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * NIP04 encrypt (deprecate and unsecure) - */ - public async nip04Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_encrypt( - uniffiTypeCustomNostrSignerImplObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(content) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * NIP04 decrypt - */ - public async nip04Decrypt( - publicKey: PublicKeyInterface, - encryptedContent: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip04_decrypt( - uniffiTypeCustomNostrSignerImplObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(encryptedContent) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * NIP44 encrypt - */ - public async nip44Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_encrypt( - uniffiTypeCustomNostrSignerImplObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(content) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * NIP44 decrypt - */ - public async nip44Decrypt( - publicKey: PublicKeyInterface, - payload: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_customnostrsigner_nip44_decrypt( - uniffiTypeCustomNostrSignerImplObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(payload) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = - uniffiTypeCustomNostrSignerImplObjectFactory.pointer(this); - uniffiTypeCustomNostrSignerImplObjectFactory.freePointer(pointer); - uniffiTypeCustomNostrSignerImplObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is CustomNostrSignerImpl { - return uniffiTypeCustomNostrSignerImplObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeCustomNostrSignerImplObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): CustomNostrSigner { - const instance = Object.create(CustomNostrSignerImpl.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'CustomNostrSignerImpl'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_customnostrsigner_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: CustomNostrSigner): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: CustomNostrSigner): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_customnostrsigner( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_customnostrsigner( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is CustomNostrSigner { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'CustomNostrSignerImpl' - ); - }, - }; -// FfiConverter for CustomNostrSigner -const FfiConverterTypeCustomNostrSigner = new FfiConverterObjectWithCallbacks( - uniffiTypeCustomNostrSignerImplObjectFactory -); - -// Add a vtavble for the callbacks that go in CustomNostrSigner. - -// Put the implementation in a struct so we don't pollute the top-level namespace -const uniffiCallbackInterfaceCustomNostrSigner: { - vtable: UniffiVTableCallbackInterfaceCustomNostrSigner; - register: () => void; -} = { - // Create the VTable using a series of closures. - // ts automatically converts these into C callback functions. - vtable: { - backend: (uniffiHandle: bigint) => { - const uniffiMakeCall = (): SignerBackend => { - const jsCallback = FfiConverterTypeCustomNostrSigner.lift(uniffiHandle); - return jsCallback.backend(); - }; - const uniffiResult = UniffiResult.ready(); - const uniffiHandleSuccess = (obj: any) => { - UniffiResult.writeSuccess( - uniffiResult, - FfiConverterTypeSignerBackend.lower(obj) - ); - }; - const uniffiHandleError = (code: number, errBuf: UniffiByteArray) => { - UniffiResult.writeError(uniffiResult, code, errBuf); - }; - uniffiTraitInterfaceCall( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*lowerString:*/ FfiConverterString.lower - ); - return uniffiResult; - }, - getPublicKey: ( - uniffiHandle: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async ( - signal: AbortSignal - ): Promise => { - const jsCallback = FfiConverterTypeCustomNostrSigner.lift(uniffiHandle); - return await jsCallback.getPublicKey({ signal }); - }; - const uniffiHandleSuccess = ( - returnValue: PublicKeyInterface | undefined - ) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: FfiConverterOptionalTypePublicKey.lower(returnValue), - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: /*empty*/ new Uint8Array(0), - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - signEvent: ( - uniffiHandle: bigint, - unsignedEvent: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async ( - signal: AbortSignal - ): Promise => { - const jsCallback = FfiConverterTypeCustomNostrSigner.lift(uniffiHandle); - return await jsCallback.signEvent( - FfiConverterTypeUnsignedEvent.lift(unsignedEvent), - { signal } - ); - }; - const uniffiHandleSuccess = (returnValue: EventInterface | undefined) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: FfiConverterOptionalTypeEvent.lower(returnValue), - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: /*empty*/ new Uint8Array(0), - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - nip04Encrypt: ( - uniffiHandle: bigint, - publicKey: bigint, - content: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async (signal: AbortSignal): Promise => { - const jsCallback = FfiConverterTypeCustomNostrSigner.lift(uniffiHandle); - return await jsCallback.nip04Encrypt( - FfiConverterTypePublicKey.lift(publicKey), - FfiConverterString.lift(content), - { signal } - ); - }; - const uniffiHandleSuccess = (returnValue: string) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: FfiConverterString.lower(returnValue), - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: /*empty*/ new Uint8Array(0), - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - nip04Decrypt: ( - uniffiHandle: bigint, - publicKey: bigint, - encryptedContent: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async (signal: AbortSignal): Promise => { - const jsCallback = FfiConverterTypeCustomNostrSigner.lift(uniffiHandle); - return await jsCallback.nip04Decrypt( - FfiConverterTypePublicKey.lift(publicKey), - FfiConverterString.lift(encryptedContent), - { signal } - ); - }; - const uniffiHandleSuccess = (returnValue: string) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: FfiConverterString.lower(returnValue), - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: /*empty*/ new Uint8Array(0), - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - nip44Encrypt: ( - uniffiHandle: bigint, - publicKey: bigint, - content: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async (signal: AbortSignal): Promise => { - const jsCallback = FfiConverterTypeCustomNostrSigner.lift(uniffiHandle); - return await jsCallback.nip44Encrypt( - FfiConverterTypePublicKey.lift(publicKey), - FfiConverterString.lift(content), - { signal } - ); - }; - const uniffiHandleSuccess = (returnValue: string) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: FfiConverterString.lower(returnValue), - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: /*empty*/ new Uint8Array(0), - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - nip44Decrypt: ( - uniffiHandle: bigint, - publicKey: bigint, - payload: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async (signal: AbortSignal): Promise => { - const jsCallback = FfiConverterTypeCustomNostrSigner.lift(uniffiHandle); - return await jsCallback.nip44Decrypt( - FfiConverterTypePublicKey.lift(publicKey), - FfiConverterString.lift(payload), - { signal } - ); - }; - const uniffiHandleSuccess = (returnValue: string) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: FfiConverterString.lower(returnValue), - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: /*empty*/ new Uint8Array(0), - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - uniffiFree: (uniffiHandle: UniffiHandle): void => { - // CustomNostrSigner: this will throw a stale handle error if the handle isn't found. - FfiConverterTypeCustomNostrSigner.drop(uniffiHandle); - }, - }, - register: () => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customnostrsigner( - uniffiCallbackInterfaceCustomNostrSigner.vtable - ); - }, -}; - -export interface CustomWebSocketTransport { - /** - * If returns `true`, the WebSocket implementation must handle and forward the PING/PONG messages. - * The ping is used by the SDK, - * for example, to calculate the average latency or to make sure the relay is still connected. - */ - supportPing(): boolean; - /** - * Connect to a relay - */ - connect( - url: string, - mode: ConnectionMode, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; -} - -export class CustomWebSocketTransportImpl - extends UniffiAbstractObject - implements CustomWebSocketTransport -{ - readonly [uniffiTypeNameSymbol] = 'CustomWebSocketTransportImpl'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeCustomWebSocketTransportImplObjectFactory.bless(pointer); - } - - /** - * If returns `true`, the WebSocket implementation must handle and forward the PING/PONG messages. - * The ping is used by the SDK, - * for example, to calculate the average latency or to make sure the relay is still connected. - */ - public supportPing(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_support_ping( - uniffiTypeCustomWebSocketTransportImplObjectFactory.clonePointer( - this - ), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Connect to a relay - */ - public async connect( - url: string, - mode: ConnectionMode, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_customwebsockettransport_connect( - uniffiTypeCustomWebSocketTransportImplObjectFactory.clonePointer( - this - ), - FfiConverterString.lower(url), - FfiConverterTypeConnectionMode.lower(mode), - FfiConverterDuration.lower(timeout) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalTypeWebSocketAdapterWrapper.lift.bind( - FfiConverterOptionalTypeWebSocketAdapterWrapper - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = - uniffiTypeCustomWebSocketTransportImplObjectFactory.pointer(this); - uniffiTypeCustomWebSocketTransportImplObjectFactory.freePointer(pointer); - uniffiTypeCustomWebSocketTransportImplObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is CustomWebSocketTransportImpl { - return uniffiTypeCustomWebSocketTransportImplObjectFactory.isConcreteType( - obj - ); - } -} - -const uniffiTypeCustomWebSocketTransportImplObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): CustomWebSocketTransport { - const instance = Object.create(CustomWebSocketTransportImpl.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'CustomWebSocketTransportImpl'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_customwebsockettransport_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: CustomWebSocketTransport): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: CustomWebSocketTransport): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_customwebsockettransport( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_customwebsockettransport( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is CustomWebSocketTransport { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'CustomWebSocketTransportImpl' - ); - }, - }; -// FfiConverter for CustomWebSocketTransport -const FfiConverterTypeCustomWebSocketTransport = - new FfiConverterObjectWithCallbacks( - uniffiTypeCustomWebSocketTransportImplObjectFactory - ); - -// Add a vtavble for the callbacks that go in CustomWebSocketTransport. - -// Put the implementation in a struct so we don't pollute the top-level namespace -const uniffiCallbackInterfaceCustomWebSocketTransport: { - vtable: UniffiVTableCallbackInterfaceCustomWebSocketTransport; - register: () => void; -} = { - // Create the VTable using a series of closures. - // ts automatically converts these into C callback functions. - vtable: { - supportPing: (uniffiHandle: bigint) => { - const uniffiMakeCall = (): boolean => { - const jsCallback = - FfiConverterTypeCustomWebSocketTransport.lift(uniffiHandle); - return jsCallback.supportPing(); - }; - const uniffiResult = UniffiResult.ready(); - const uniffiHandleSuccess = (obj: any) => { - UniffiResult.writeSuccess(uniffiResult, FfiConverterBool.lower(obj)); - }; - const uniffiHandleError = (code: number, errBuf: UniffiByteArray) => { - UniffiResult.writeError(uniffiResult, code, errBuf); - }; - uniffiTraitInterfaceCall( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*lowerString:*/ FfiConverterString.lower - ); - return uniffiResult; - }, - connect: ( - uniffiHandle: bigint, - url: Uint8Array, - mode: Uint8Array, - timeout: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async ( - signal: AbortSignal - ): Promise => { - const jsCallback = - FfiConverterTypeCustomWebSocketTransport.lift(uniffiHandle); - return await jsCallback.connect( - FfiConverterString.lift(url), - FfiConverterTypeConnectionMode.lift(mode), - FfiConverterDuration.lift(timeout), - { signal } - ); - }; - const uniffiHandleSuccess = ( - returnValue: WebSocketAdapterWrapperInterface | undefined - ) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: - FfiConverterOptionalTypeWebSocketAdapterWrapper.lower( - returnValue - ), - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: /*empty*/ new Uint8Array(0), - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - uniffiFree: (uniffiHandle: UniffiHandle): void => { - // CustomWebSocketTransport: this will throw a stale handle error if the handle isn't found. - FfiConverterTypeCustomWebSocketTransport.drop(uniffiHandle); - }, - }, - register: () => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_customwebsockettransport( - uniffiCallbackInterfaceCustomWebSocketTransport.vtable - ); - }, -}; - -/** - * Encrypted Secret Key - */ -export interface EncryptedSecretKeyInterface { - /** - * Decrypt secret key - */ - decrypt(password: string) /*throws*/ : SecretKeyInterface; - /** - * Get encrypted secret key security - */ - keySecurity(): KeySecurity; - toBech32() /*throws*/ : string; - /** - * Get encrypted secret key version - */ - version(): EncryptedSecretKeyVersion; -} - -/** - * Encrypted Secret Key - */ -export class EncryptedSecretKey - extends UniffiAbstractObject - implements EncryptedSecretKeyInterface -{ - readonly [uniffiTypeNameSymbol] = 'EncryptedSecretKey'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * Encrypt secret key - */ - constructor( - secretKey: SecretKeyInterface, - password: string, - logN: /*u8*/ number, - keySecurity: KeySecurity - ) /*throws*/ { - super(); - const pointer = uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_new( - FfiConverterTypeSecretKey.lower(secretKey), - FfiConverterString.lower(password), - FfiConverterUInt8.lower(logN), - FfiConverterTypeKeySecurity.lower(keySecurity), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeEncryptedSecretKeyObjectFactory.bless(pointer); - } - - public static fromBech32( - bech32: string - ): EncryptedSecretKeyInterface /*throws*/ { - return FfiConverterTypeEncryptedSecretKey.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_encryptedsecretkey_from_bech32( - FfiConverterString.lower(bech32), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Decrypt secret key - */ - public decrypt(password: string): SecretKeyInterface /*throws*/ { - return FfiConverterTypeSecretKey.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_decrypt( - uniffiTypeEncryptedSecretKeyObjectFactory.clonePointer(this), - FfiConverterString.lower(password), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get encrypted secret key security - */ - public keySecurity(): KeySecurity { - return FfiConverterTypeKeySecurity.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_key_security( - uniffiTypeEncryptedSecretKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toBech32(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_to_bech32( - uniffiTypeEncryptedSecretKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get encrypted secret key version - */ - public version(): EncryptedSecretKeyVersion { - return FfiConverterTypeEncryptedSecretKeyVersion.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_version( - uniffiTypeEncryptedSecretKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `EncryptedSecretKeyInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_debug( - uniffiTypeEncryptedSecretKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `EncryptedSecretKeyInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `EncryptedSecretKeyInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `EncryptedSecretKeyInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: EncryptedSecretKey): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_eq_eq( - uniffiTypeEncryptedSecretKeyObjectFactory.clonePointer(this), - FfiConverterTypeEncryptedSecretKey.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `EncryptedSecretKeyInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_encryptedsecretkey_uniffi_trait_hash( - uniffiTypeEncryptedSecretKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeEncryptedSecretKeyObjectFactory.pointer(this); - uniffiTypeEncryptedSecretKeyObjectFactory.freePointer(pointer); - uniffiTypeEncryptedSecretKeyObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is EncryptedSecretKey { - return uniffiTypeEncryptedSecretKeyObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeEncryptedSecretKeyObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): EncryptedSecretKeyInterface { - const instance = Object.create(EncryptedSecretKey.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'EncryptedSecretKey'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_encryptedsecretkey_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: EncryptedSecretKeyInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: EncryptedSecretKeyInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_encryptedsecretkey( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_encryptedsecretkey( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is EncryptedSecretKeyInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'EncryptedSecretKey' - ); - }, - }; -// FfiConverter for EncryptedSecretKeyInterface -const FfiConverterTypeEncryptedSecretKey = new FfiConverterObject( - uniffiTypeEncryptedSecretKeyObjectFactory -); - -export interface EventInterface { - asJson() /*throws*/ : string; - asPrettyJson() /*throws*/ : string; - /** - * Get event author (`pubkey` field) - */ - author(): PublicKeyInterface; - content(): string; - createdAt(): TimestampInterface; - id(): EventIdInterface; - /** - * Returns `true` if the event has an expiration tag that is expired. - * If an event has no expiration tag, then it will return `false`. - * - * - */ - isExpired(): boolean; - /** - * Check if it's a protected event - * - * - */ - isProtected(): boolean; - kind(): KindInterface; - signature(): string; - tags(): TagsInterface; - /** - * Verify both `EventId` and `Signature` - */ - verify(): boolean; - /** - * Verify if the `EventId` it's composed correctly - */ - verifyId(): boolean; - /** - * Verify only event `Signature` - */ - verifySignature(): boolean; -} - -export class Event extends UniffiAbstractObject implements EventInterface { - readonly [uniffiTypeNameSymbol] = 'Event'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeEventObjectFactory.bless(pointer); - } - - public static fromJson(json: string): EventInterface /*throws*/ { - return FfiConverterTypeEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_event_from_json( - FfiConverterString.lower(json), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_as_json( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asPrettyJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_as_pretty_json( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get event author (`pubkey` field) - */ - public author(): PublicKeyInterface { - return FfiConverterTypePublicKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_author( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public content(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_content( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public createdAt(): TimestampInterface { - return FfiConverterTypeTimestamp.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_created_at( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public id(): EventIdInterface { - return FfiConverterTypeEventId.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_id( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Returns `true` if the event has an expiration tag that is expired. - * If an event has no expiration tag, then it will return `false`. - * - * - */ - public isExpired(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_is_expired( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if it's a protected event - * - * - */ - public isProtected(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_is_protected( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public kind(): KindInterface { - return FfiConverterTypeKind.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_kind( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public signature(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_signature( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public tags(): TagsInterface { - return FfiConverterTypeTags.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_tags( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Verify both `EventId` and `Signature` - */ - public verify(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Verify if the `EventId` it's composed correctly - */ - public verifyId(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify_id( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Verify only event `Signature` - */ - public verifySignature(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_verify_signature( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `EventInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_debug( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `EventInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `EventInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `EventInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Event): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_eq_eq( - uniffiTypeEventObjectFactory.clonePointer(this), - FfiConverterTypeEvent.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `EventInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_event_uniffi_trait_hash( - uniffiTypeEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeEventObjectFactory.pointer(this); - uniffiTypeEventObjectFactory.freePointer(pointer); - uniffiTypeEventObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Event { - return uniffiTypeEventObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeEventObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): EventInterface { - const instance = Object.create(Event.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Event'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_event_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: EventInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: EventInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_event( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_event( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is EventInterface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Event'; - }, -}; -// FfiConverter for EventInterface -const FfiConverterTypeEvent = new FfiConverterObject( - uniffiTypeEventObjectFactory -); - -export interface EventBuilderInterface { - /** - * Allow self-tagging - * - * When this mode is enabled, any `p` tags referencing the author’s public key will not be discarded. - */ - allowSelfTagging(): EventBuilderInterface; - /** - * Build an unsigned event - * - * By default, this method removes any `p` tags that match the author's public key. - * To allow self-tagging, call [`EventBuilder::allow_self_tagging`] first. - */ - build(publicKey: PublicKeyInterface): UnsignedEventInterface; - /** - * Set a custom `created_at` UNIX timestamp - */ - customCreatedAt(createdAt: TimestampInterface): EventBuilderInterface; - /** - * Deduplicate tags - * - * For more details check [`Tags::dedup`]. - */ - dedupTags(): EventBuilderInterface; - /** - * Set POW difficulty - * - * Only values `> 0` are accepted! - */ - pow(difficulty: /*u8*/ number): EventBuilderInterface; - /** - * Build, sign and return [`Event`] - * - * Check [`EventBuilder::build`] to learn more. - */ - sign( - signer: NostrSignerInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Build, sign and return [`Event`] using [`Keys`] signer - * - * Check [`EventBuilder::build`] to learn more. - */ - signWithKeys(keys: KeysInterface) /*throws*/ : EventInterface; - /** - * Add tags - * - * This method extend the current tags (if any). - */ - tags(tags: Array): EventBuilderInterface; -} - -export class EventBuilder - extends UniffiAbstractObject - implements EventBuilderInterface -{ - readonly [uniffiTypeNameSymbol] = 'EventBuilder'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor(kind: KindInterface, content: string) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_new( - FfiConverterTypeKind.lower(kind), - FfiConverterString.lower(content), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeEventBuilderObjectFactory.bless(pointer); - } - - /** - * Article Curation set - * - * - */ - public static articlesCurationSet( - identifier: string, - list: ArticlesCuration - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_articles_curation_set( - FfiConverterString.lower(identifier), - FfiConverterTypeArticlesCuration.lower(list), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Authentication of clients to relays - * - * - */ - public static auth( - challenge: string, - relayUrl: string - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_auth( - FfiConverterString.lower(challenge), - FfiConverterString.lower(relayUrl), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Badge award - * - * - */ - public static awardBadge( - badgeDefinition: EventInterface, - awardedPublicKeys: Array - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_award_badge( - FfiConverterTypeEvent.lower(badgeDefinition), - FfiConverterArrayTypePublicKey.lower(awardedPublicKeys), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Blocked relays - * - * - */ - public static blockedRelays(relay: Array): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_blocked_relays( - FfiConverterArrayString.lower(relay), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Bookmarks - * - * - */ - public static bookmarks(list: Bookmarks): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks( - FfiConverterTypeBookmarks.lower(list), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Bookmark set - * - * - */ - public static bookmarksSet( - identifier: string, - list: Bookmarks - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_bookmarks_set( - FfiConverterString.lower(identifier), - FfiConverterTypeBookmarks.lower(list), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new channel - * - * - */ - public static channel(metadata: MetadataInterface): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel( - FfiConverterTypeMetadata.lower(metadata), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Channel metadata - * - * - */ - public static channelMetadata( - channelId: EventIdInterface, - metadata: MetadataInterface, - relayUrl: string | undefined = undefined - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_metadata( - FfiConverterTypeEventId.lower(channelId), - FfiConverterTypeMetadata.lower(metadata), - FfiConverterOptionalString.lower(relayUrl), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Channel message - * - * - */ - public static channelMsg( - channelId: EventIdInterface, - relayUrl: string, - content: string - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_channel_msg( - FfiConverterTypeEventId.lower(channelId), - FfiConverterString.lower(relayUrl), - FfiConverterString.lower(content), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Comment - * - * This adds only the most significant tags, like: - * - `p` tag with the author of the `comment_to` event; - * - the `a`/`e` and `k` tags of the `comment_to` event; - * - `P` tag with the author of the `root` event; - * - the `A`/`E` and `K` tags of the `root` event. - * - * Any additional necessary tag can be added with [`EventBuilder::tag`] or [`EventBuilder::tags`]. - * - * - */ - public static comment( - content: string, - commentTo: EventInterface, - root: EventInterface | undefined = undefined, - relayUrl: string | undefined = undefined - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_comment( - FfiConverterString.lower(content), - FfiConverterTypeEvent.lower(commentTo), - FfiConverterOptionalTypeEvent.lower(root), - FfiConverterOptionalString.lower(relayUrl), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Communities - * - * - */ - public static communities( - communities: Array - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_communities( - FfiConverterArrayTypeCoordinate.lower(communities), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Contact/Follow list - * - * - */ - public static contactList( - contacts: Array - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_contact_list( - FfiConverterArrayTypeContact.lower(contacts), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Badge definition - * - * - */ - public static defineBadge( - badgeId: string, - name: string | undefined = undefined, - description: string | undefined = undefined, - image: string | undefined = undefined, - imageDimensions: ImageDimensions | undefined = undefined, - thumbnails: Array = [] - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_define_badge( - FfiConverterString.lower(badgeId), - FfiConverterOptionalString.lower(name), - FfiConverterOptionalString.lower(description), - FfiConverterOptionalString.lower(image), - FfiConverterOptionalTypeImageDimensions.lower(imageDimensions), - FfiConverterArrayTypeImage.lower(thumbnails), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Event deletion request - * - * - */ - public static delete_(request: EventDeletionRequest): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_delete( - FfiConverterTypeEventDeletionRequest.lower(request), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Emoji set - * - * - */ - public static emojiSet( - identifier: string, - emojis: Array - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emoji_set( - FfiConverterString.lower(identifier), - FfiConverterArrayTypeEmojiInfo.lower(emojis), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Emojis - * - * - */ - public static emojis(list: Emojis): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_emojis( - FfiConverterTypeEmojis.lower(list), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * File metadata - * - * - */ - public static fileMetadata( - description: string, - metadata: FileMetadataInterface - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_file_metadata( - FfiConverterString.lower(description), - FfiConverterTypeFileMetadata.lower(metadata), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Follow set - * - * - */ - public static followSet( - identifier: string, - publicKeys: Array - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_follow_set( - FfiConverterString.lower(identifier), - FfiConverterArrayTypePublicKey.lower(publicKeys), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Git Issue - * - * - */ - public static gitIssue(issue: GitIssue): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_issue( - FfiConverterTypeGitIssue.lower(issue), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Git Patch - * - * - */ - public static gitPatch(patch: GitPatch): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_patch( - FfiConverterTypeGitPatch.lower(patch), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Git Repository Announcement - * - * - */ - public static gitRepositoryAnnouncement( - data: GitRepositoryAnnouncement - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_git_repository_announcement( - FfiConverterTypeGitRepositoryAnnouncement.lower(data), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Hide message - * - * - */ - public static hideChannelMsg( - messageId: EventIdInterface, - reason: string | undefined = undefined - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_hide_channel_msg( - FfiConverterTypeEventId.lower(messageId), - FfiConverterOptionalString.lower(reason), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * HTTP Auth - * - * - */ - public static httpAuth(data: HttpData): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_http_auth( - FfiConverterTypeHttpData.lower(data), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Interest set - * - * - */ - public static interestSet( - identifier: string, - hashtags: Array - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interest_set( - FfiConverterString.lower(identifier), - FfiConverterArrayString.lower(hashtags), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Interests - * - * - */ - public static interests(list: Interests): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_interests( - FfiConverterTypeInterests.lower(list), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Data Vending Machine (DVM) - Job Feedback - * - * - */ - public static jobFeedback( - data: JobFeedbackDataInterface - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_feedback( - FfiConverterTypeJobFeedbackData.lower(data), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Data Vending Machine (DVM) - Job Request - * - * - */ - public static jobRequest( - kind: KindInterface - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_request( - FfiConverterTypeKind.lower(kind), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Data Vending Machine (DVM) - Job Result - * - * - */ - public static jobResult( - jobRequest: EventInterface, - payload: string, - millisats: /*u64*/ bigint, - bolt11: string | undefined = undefined - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_job_result( - FfiConverterTypeEvent.lower(jobRequest), - FfiConverterString.lower(payload), - FfiConverterUInt64.lower(millisats), - FfiConverterOptionalString.lower(bolt11), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Label - * - * - */ - public static label( - labelNamespace: string, - labels: Array - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_label( - FfiConverterString.lower(labelNamespace), - FfiConverterArrayString.lower(labels), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Live Event - * - * - */ - public static liveEvent( - liveEvent: LiveEvent - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event( - FfiConverterTypeLiveEvent.lower(liveEvent), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Live Event Message - * - * - */ - public static liveEventMsg( - liveEventId: string, - liveEventHost: PublicKeyInterface, - content: string, - relayUrl: string | undefined = undefined - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_live_event_msg( - FfiConverterString.lower(liveEventId), - FfiConverterTypePublicKey.lower(liveEventHost), - FfiConverterString.lower(content), - FfiConverterOptionalString.lower(relayUrl), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Long-form text note (generally referred to as "articles" or "blog posts"). - * - * - */ - public static longFormTextNote(content: string): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_long_form_text_note( - FfiConverterString.lower(content), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Profile metadata - * - * - */ - public static metadata(metadata: MetadataInterface): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_metadata( - FfiConverterTypeMetadata.lower(metadata), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Mute channel user - * - * - */ - public static muteChannelUser( - publicKey: PublicKeyInterface, - reason: string | undefined = undefined - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_channel_user( - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterOptionalString.lower(reason), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Mute list - * - * - */ - public static muteList(list: MuteList): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_mute_list( - FfiConverterTypeMuteList.lower(list), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Nostr Connect / Nostr Remote Signing - * - * - */ - public static nostrConnect( - senderKeys: KeysInterface, - receiverPubkey: PublicKeyInterface, - msg: NostrConnectMessage - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_nostr_connect( - FfiConverterTypeKeys.lower(senderKeys), - FfiConverterTypePublicKey.lower(receiverPubkey), - FfiConverterTypeNostrConnectMessage.lower(msg), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Pinned notes - * - * - */ - public static pinnedNotes( - ids: Array - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_pinned_notes( - FfiConverterArrayTypeEventId.lower(ids), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Private Direct message rumor - * - *
- * This constructor compose ONLY the rumor for the private direct message! - * NOT USE THIS IF YOU DON'T KNOW WHAT YOU ARE DOING! - *
- * - * - */ - public static privateMsgRumor( - receiver: PublicKeyInterface, - message: string - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_private_msg_rumor( - FfiConverterTypePublicKey.lower(receiver), - FfiConverterString.lower(message), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set product data - * - * - */ - public static productData(data: ProductData): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_product_data( - FfiConverterTypeProductData.lower(data), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Profile badges - * - * - */ - public static profileBadges( - badgeDefinitions: Array, - badgeAwards: Array, - pubkeyAwarded: PublicKeyInterface - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_profile_badges( - FfiConverterArrayTypeEvent.lower(badgeDefinitions), - FfiConverterArrayTypeEvent.lower(badgeAwards), - FfiConverterTypePublicKey.lower(pubkeyAwarded), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Public chats - * - * - */ - public static publicChats( - chat: Array - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_chats( - FfiConverterArrayTypeEventId.lower(chat), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create **public** zap request event - * - * **This event MUST NOT be broadcasted to relays**, instead must be sent to a recipient's LNURL pay callback url. - * - * To build a **private** or **anonymous** zap request use `nip57_private_zap_request(...)` or `nip57_anonymous_zap_request(...)` functions. - * - * - */ - public static publicZapRequest( - data: ZapRequestDataInterface - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_public_zap_request( - FfiConverterTypeZapRequestData.lower(data), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add reaction (like/upvote, dislike/downvote or emoji) to an event - * - * - */ - public static reaction( - event: EventInterface, - reaction: string - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction( - FfiConverterTypeEvent.lower(event), - FfiConverterString.lower(reaction), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add reaction (like/upvote, dislike/downvote or emoji) to an event - * - * - */ - public static reactionExtended( - eventId: EventIdInterface, - publicKey: PublicKeyInterface, - reaction: string, - kind: KindInterface | undefined = undefined - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_reaction_extended( - FfiConverterTypeEventId.lower(eventId), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(reaction), - FfiConverterOptionalTypeKind.lower(kind), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Relay list metadata - * - * - */ - public static relayList( - map: Map - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_list( - FfiConverterMapStringOptionalTypeRelayMetadata.lower(map), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Relay set - * - * - */ - public static relaySet( - identifier: string, - relays: Array - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_relay_set( - FfiConverterString.lower(identifier), - FfiConverterArrayString.lower(relays), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Reporting - * - * - */ - public static report( - tags: Array, - content: string - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_report( - FfiConverterArrayTypeTag.lower(tags), - FfiConverterString.lower(content), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Repost - * - * - */ - public static repost( - event: EventInterface, - relayUrl: string | undefined = undefined - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_repost( - FfiConverterTypeEvent.lower(event), - FfiConverterOptionalString.lower(relayUrl), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Seal - * - * - */ - public static async seal( - signer: NostrSignerInterface, - receiverPublicKey: PublicKeyInterface, - rumor: UnsignedEventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_seal( - FfiConverterTypeNostrSigner.lower(signer), - FfiConverterTypePublicKey.lower(receiverPublicKey), - FfiConverterTypeUnsignedEvent.lower(rumor) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEventBuilder.lift.bind( - FfiConverterTypeEventBuilder - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Search relays - * - * - */ - public static searchRelays(relay: Array): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_search_relays( - FfiConverterArrayString.lower(relay), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set stall data - * - * - */ - public static stallData(data: StallDataInterface): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_stall_data( - FfiConverterTypeStallData.lower(data), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Text note - * - * - */ - public static textNote(content: string): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note( - FfiConverterString.lower(content), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Text note reply - * - * This adds only the most significant tags, like: - * - `p` tag with the author of the `reply_to` and `root` events; - * - `e` tag of the `reply_to` and `root` events. - * - * Any additional necessary tag can be added with [`EventBuilder::tag`] or [`EventBuilder::tags`]. - * - * - */ - public static textNoteReply( - content: string, - replyTo: EventInterface, - root: EventInterface | undefined = undefined, - relayUrl: string | undefined = undefined - ): EventBuilderInterface /*throws*/ { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_text_note_reply( - FfiConverterString.lower(content), - FfiConverterTypeEvent.lower(replyTo), - FfiConverterOptionalTypeEvent.lower(root), - FfiConverterOptionalString.lower(relayUrl), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Videos Curation set - * - * - */ - public static videosCurationSet( - identifier: string, - video: Array - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_videos_curation_set( - FfiConverterString.lower(identifier), - FfiConverterArrayTypeCoordinate.lower(video), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Zap Receipt - * - * - */ - public static zapReceipt( - bolt11: string, - preimage: string | undefined, - zapRequest: EventInterface - ): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventbuilder_zap_receipt( - FfiConverterString.lower(bolt11), - FfiConverterOptionalString.lower(preimage), - FfiConverterTypeEvent.lower(zapRequest), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Allow self-tagging - * - * When this mode is enabled, any `p` tags referencing the author’s public key will not be discarded. - */ - public allowSelfTagging(): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_allow_self_tagging( - uniffiTypeEventBuilderObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Build an unsigned event - * - * By default, this method removes any `p` tags that match the author's public key. - * To allow self-tagging, call [`EventBuilder::allow_self_tagging`] first. - */ - public build(publicKey: PublicKeyInterface): UnsignedEventInterface { - return FfiConverterTypeUnsignedEvent.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_build( - uniffiTypeEventBuilderObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set a custom `created_at` UNIX timestamp - */ - public customCreatedAt(createdAt: TimestampInterface): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_custom_created_at( - uniffiTypeEventBuilderObjectFactory.clonePointer(this), - FfiConverterTypeTimestamp.lower(createdAt), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Deduplicate tags - * - * For more details check [`Tags::dedup`]. - */ - public dedupTags(): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_dedup_tags( - uniffiTypeEventBuilderObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set POW difficulty - * - * Only values `> 0` are accepted! - */ - public pow(difficulty: /*u8*/ number): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_pow( - uniffiTypeEventBuilderObjectFactory.clonePointer(this), - FfiConverterUInt8.lower(difficulty), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Build, sign and return [`Event`] - * - * Check [`EventBuilder::build`] to learn more. - */ - public async sign( - signer: NostrSignerInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign( - uniffiTypeEventBuilderObjectFactory.clonePointer(this), - FfiConverterTypeNostrSigner.lower(signer) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvent.lift.bind(FfiConverterTypeEvent), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Build, sign and return [`Event`] using [`Keys`] signer - * - * Check [`EventBuilder::build`] to learn more. - */ - public signWithKeys(keys: KeysInterface): EventInterface /*throws*/ { - return FfiConverterTypeEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_sign_with_keys( - uniffiTypeEventBuilderObjectFactory.clonePointer(this), - FfiConverterTypeKeys.lower(keys), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add tags - * - * This method extend the current tags (if any). - */ - public tags(tags: Array): EventBuilderInterface { - return FfiConverterTypeEventBuilder.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_tags( - uniffiTypeEventBuilderObjectFactory.clonePointer(this), - FfiConverterArrayTypeTag.lower(tags), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `EventBuilderInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_debug( - uniffiTypeEventBuilderObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `EventBuilderInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `EventBuilderInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `EventBuilderInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: EventBuilder): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventbuilder_uniffi_trait_eq_eq( - uniffiTypeEventBuilderObjectFactory.clonePointer(this), - FfiConverterTypeEventBuilder.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeEventBuilderObjectFactory.pointer(this); - uniffiTypeEventBuilderObjectFactory.freePointer(pointer); - uniffiTypeEventBuilderObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is EventBuilder { - return uniffiTypeEventBuilderObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeEventBuilderObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): EventBuilderInterface { - const instance = Object.create(EventBuilder.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'EventBuilder'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_eventbuilder_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: EventBuilderInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: EventBuilderInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_eventbuilder( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_eventbuilder( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is EventBuilderInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'EventBuilder' - ); - }, - }; -// FfiConverter for EventBuilderInterface -const FfiConverterTypeEventBuilder = new FfiConverterObject( - uniffiTypeEventBuilderObjectFactory -); - -export interface EventIdInterface { - asBytes(): ArrayBuffer; - toBech32() /*throws*/ : string; - toHex(): string; - toNostrUri() /*throws*/ : string; -} - -export class EventId extends UniffiAbstractObject implements EventIdInterface { - readonly [uniffiTypeNameSymbol] = 'EventId'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor( - publicKey: PublicKeyInterface, - createdAt: TimestampInterface, - kind: KindInterface, - tags: TagsInterface, - content: string - ) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_new( - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterTypeTimestamp.lower(createdAt), - FfiConverterTypeKind.lower(kind), - FfiConverterTypeTags.lower(tags), - FfiConverterString.lower(content), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeEventIdObjectFactory.bless(pointer); - } - - public static fromBytes(bytes: ArrayBuffer): EventIdInterface /*throws*/ { - return FfiConverterTypeEventId.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_from_bytes( - FfiConverterArrayBuffer.lower(bytes), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Try to parse event ID from `hex`, `bech32` or [NIP21](https://github.com/nostr-protocol/nips/blob/master/21.md) uri - */ - public static parse(id: string): EventIdInterface /*throws*/ { - return FfiConverterTypeEventId.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_eventid_parse( - FfiConverterString.lower(id), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asBytes(): ArrayBuffer { - return FfiConverterArrayBuffer.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_as_bytes( - uniffiTypeEventIdObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toBech32(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_bech32( - uniffiTypeEventIdObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toHex(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_hex( - uniffiTypeEventIdObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toNostrUri(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_to_nostr_uri( - uniffiTypeEventIdObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `EventIdInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_debug( - uniffiTypeEventIdObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `EventIdInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `EventIdInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `EventIdInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: EventId): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_eq_eq( - uniffiTypeEventIdObjectFactory.clonePointer(this), - FfiConverterTypeEventId.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `EventIdInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_eventid_uniffi_trait_hash( - uniffiTypeEventIdObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeEventIdObjectFactory.pointer(this); - uniffiTypeEventIdObjectFactory.freePointer(pointer); - uniffiTypeEventIdObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is EventId { - return uniffiTypeEventIdObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeEventIdObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): EventIdInterface { - const instance = Object.create(EventId.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'EventId'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_eventid_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: EventIdInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: EventIdInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_eventid( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_eventid( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is EventIdInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'EventId' - ); - }, -}; -// FfiConverter for EventIdInterface -const FfiConverterTypeEventId = new FfiConverterObject( - uniffiTypeEventIdObjectFactory -); - -export interface EventsInterface { - /** - * Check if contains `Event` - */ - contains(event: EventInterface): boolean; - /** - * Get first `Event` (descending order) - */ - first(): EventInterface | undefined; - /** - * Returns the number of events in the collection. - */ - isEmpty(): boolean; - /** - * Returns the number of events in the collection. - */ - len(): /*u64*/ bigint; - /** - * Merge events collections into a single one. - * - * This method consumes the object, making it unavailable for further use. - * - * Collection is converted to unbounded if one of the merge `Events` has a different hash. - * In other words, the filter limit is respected only if the `Events` are related to the same - * list of filters. - */ - merge(other: EventsInterface) /*throws*/ : EventsInterface; - /** - * Convert the collection to vector of events. - * - * This method consumes the object, making it unavailable for further use. - */ - toVec() /*throws*/ : Array; -} - -export class Events extends UniffiAbstractObject implements EventsInterface { - readonly [uniffiTypeNameSymbol] = 'Events'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeEventsObjectFactory.bless(pointer); - } - - /** - * Check if contains `Event` - */ - public contains(event: EventInterface): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_events_contains( - uniffiTypeEventsObjectFactory.clonePointer(this), - FfiConverterTypeEvent.lower(event), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get first `Event` (descending order) - */ - public first(): EventInterface | undefined { - return FfiConverterOptionalTypeEvent.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_events_first( - uniffiTypeEventsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Returns the number of events in the collection. - */ - public isEmpty(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_events_is_empty( - uniffiTypeEventsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Returns the number of events in the collection. - */ - public len(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_events_len( - uniffiTypeEventsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Merge events collections into a single one. - * - * This method consumes the object, making it unavailable for further use. - * - * Collection is converted to unbounded if one of the merge `Events` has a different hash. - * In other words, the filter limit is respected only if the `Events` are related to the same - * list of filters. - */ - public merge(other: EventsInterface): EventsInterface /*throws*/ { - return FfiConverterTypeEvents.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_events_merge( - uniffiTypeEventsObjectFactory.clonePointer(this), - FfiConverterTypeEvents.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Convert the collection to vector of events. - * - * This method consumes the object, making it unavailable for further use. - */ - public toVec(): Array /*throws*/ { - return FfiConverterArrayTypeEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_events_to_vec( - uniffiTypeEventsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeEventsObjectFactory.pointer(this); - uniffiTypeEventsObjectFactory.freePointer(pointer); - uniffiTypeEventsObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Events { - return uniffiTypeEventsObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeEventsObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): EventsInterface { - const instance = Object.create(Events.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Events'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_events_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: EventsInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: EventsInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_events( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_events( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is EventsInterface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Events'; - }, -}; -// FfiConverter for EventsInterface -const FfiConverterTypeEvents = new FfiConverterObject( - uniffiTypeEventsObjectFactory -); - -export interface FileMetadataInterface { - aes256Gcm(key: string, iv: string): FileMetadataInterface; - /** - * Add blurhash - */ - blurhash(blurhash: string): FileMetadataInterface; - /** - * Add file size (pixels) - */ - dimensions(dim: ImageDimensions): FileMetadataInterface; - /** - * Add magnet - */ - magnet(magnet: string): FileMetadataInterface; - /** - * Add file size (bytes) - */ - size(size: /*u64*/ bigint): FileMetadataInterface; -} - -export class FileMetadata - extends UniffiAbstractObject - implements FileMetadataInterface -{ - readonly [uniffiTypeNameSymbol] = 'FileMetadata'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor(url: string, mimeType: string, hash: string) /*throws*/ { - super(); - const pointer = uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filemetadata_new( - FfiConverterString.lower(url), - FfiConverterString.lower(mimeType), - FfiConverterString.lower(hash), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeFileMetadataObjectFactory.bless(pointer); - } - - public aes256Gcm(key: string, iv: string): FileMetadataInterface { - return FfiConverterTypeFileMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_aes_256_gcm( - uniffiTypeFileMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(key), - FfiConverterString.lower(iv), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add blurhash - */ - public blurhash(blurhash: string): FileMetadataInterface { - return FfiConverterTypeFileMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_blurhash( - uniffiTypeFileMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(blurhash), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add file size (pixels) - */ - public dimensions(dim: ImageDimensions): FileMetadataInterface { - return FfiConverterTypeFileMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_dimensions( - uniffiTypeFileMetadataObjectFactory.clonePointer(this), - FfiConverterTypeImageDimensions.lower(dim), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add magnet - */ - public magnet(magnet: string): FileMetadataInterface { - return FfiConverterTypeFileMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_magnet( - uniffiTypeFileMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(magnet), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add file size (bytes) - */ - public size(size: /*u64*/ bigint): FileMetadataInterface { - return FfiConverterTypeFileMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_size( - uniffiTypeFileMetadataObjectFactory.clonePointer(this), - FfiConverterUInt64.lower(size), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `FileMetadataInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_debug( - uniffiTypeFileMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `FileMetadataInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `FileMetadataInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `FileMetadataInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: FileMetadata): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_eq_eq( - uniffiTypeFileMetadataObjectFactory.clonePointer(this), - FfiConverterTypeFileMetadata.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `FileMetadataInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filemetadata_uniffi_trait_hash( - uniffiTypeFileMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeFileMetadataObjectFactory.pointer(this); - uniffiTypeFileMetadataObjectFactory.freePointer(pointer); - uniffiTypeFileMetadataObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is FileMetadata { - return uniffiTypeFileMetadataObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeFileMetadataObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): FileMetadataInterface { - const instance = Object.create(FileMetadata.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'FileMetadata'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_filemetadata_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: FileMetadataInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: FileMetadataInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_filemetadata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_filemetadata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is FileMetadataInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'FileMetadata' - ); - }, - }; -// FfiConverter for FileMetadataInterface -const FfiConverterTypeFileMetadata = new FfiConverterObject( - uniffiTypeFileMetadataObjectFactory -); - -export interface FilterInterface { - asJson() /*throws*/ : string; - asRecord(): FilterRecord; - /** - * Add event author Public Key - */ - author(author: PublicKeyInterface): FilterInterface; - authors(authors: Array): FilterInterface; - /** - * Add coordinate - * - * Query for `a` tag. - * - * - */ - coordinate(coordinate: CoordinateInterface): FilterInterface; - /** - * Add coordinates - * - * Query for `a` tags. - * - * - */ - coordinates(coordinates: Array): FilterInterface; - customTag(tag: SingleLetterTagInterface, content: string): FilterInterface; - customTags( - tag: SingleLetterTagInterface, - contents: Array - ): FilterInterface; - /** - * Add event ID (`e` tag) - */ - event(eventId: EventIdInterface): FilterInterface; - /** - * Add event IDs (`e` tag) - */ - events(ids: Array): FilterInterface; - hashtag(hashtag: string): FilterInterface; - hashtags(hashtags: Array): FilterInterface; - id(id: EventIdInterface): FilterInterface; - identifier(identifier: string): FilterInterface; - identifiers(identifiers: Array): FilterInterface; - ids(ids: Array): FilterInterface; - isEmpty(): boolean; - kind(kind: KindInterface): FilterInterface; - kinds(kinds: Array): FilterInterface; - limit(limit: /*u64*/ bigint): FilterInterface; - /** - * Determine if `Filter` match given `Event`. - */ - matchEvent(event: EventInterface): boolean; - /** - * Add Public Key (`p` tag) - */ - pubkey(pubkey: PublicKeyInterface): FilterInterface; - /** - * Add Public Keys (`p` tag) - */ - pubkeys(pubkeys: Array): FilterInterface; - reference(reference: string): FilterInterface; - references(references: Array): FilterInterface; - removeAuthors(authors: Array): FilterInterface; - /** - * Remove coordinates - * - * Remove `a` tags. - * - * - */ - removeCoordinates(coordinates: Array): FilterInterface; - removeCustomTags( - tag: SingleLetterTagInterface, - contents: Array - ): FilterInterface; - removeEvents(ids: Array): FilterInterface; - removeHashtags(hashtags: Array): FilterInterface; - removeIdentifiers(identifiers: Array): FilterInterface; - removeIds(ids: Array): FilterInterface; - removeKinds(kinds: Array): FilterInterface; - removeLimit(): FilterInterface; - removePubkeys(pubkeys: Array): FilterInterface; - removeReferences(references: Array): FilterInterface; - removeSearch(): FilterInterface; - removeSince(): FilterInterface; - removeUntil(): FilterInterface; - search(text: string): FilterInterface; - since(timestamp: TimestampInterface): FilterInterface; - until(timestamp: TimestampInterface): FilterInterface; -} - -export class Filter extends UniffiAbstractObject implements FilterInterface { - readonly [uniffiTypeNameSymbol] = 'Filter'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeFilterObjectFactory.bless(pointer); - } - - public static fromJson(json: string): FilterInterface /*throws*/ { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_json( - FfiConverterString.lower(json), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static fromRecord(record: FilterRecord): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_filter_from_record( - FfiConverterTypeFilterRecord.lower(record), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_as_json( - uniffiTypeFilterObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asRecord(): FilterRecord { - return FfiConverterTypeFilterRecord.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_as_record( - uniffiTypeFilterObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add event author Public Key - */ - public author(author: PublicKeyInterface): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_author( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(author), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public authors(authors: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_authors( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypePublicKey.lower(authors), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add coordinate - * - * Query for `a` tag. - * - * - */ - public coordinate(coordinate: CoordinateInterface): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_coordinate( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeCoordinate.lower(coordinate), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add coordinates - * - * Query for `a` tags. - * - * - */ - public coordinates(coordinates: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_coordinates( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypeCoordinate.lower(coordinates), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public customTag( - tag: SingleLetterTagInterface, - content: string - ): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tag( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeSingleLetterTag.lower(tag), - FfiConverterString.lower(content), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public customTags( - tag: SingleLetterTagInterface, - contents: Array - ): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_custom_tags( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeSingleLetterTag.lower(tag), - FfiConverterArrayString.lower(contents), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add event ID (`e` tag) - */ - public event(eventId: EventIdInterface): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_event( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeEventId.lower(eventId), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add event IDs (`e` tag) - */ - public events(ids: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_events( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypeEventId.lower(ids), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public hashtag(hashtag: string): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_hashtag( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterString.lower(hashtag), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public hashtags(hashtags: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_hashtags( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(hashtags), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public id(id: EventIdInterface): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_id( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeEventId.lower(id), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public identifier(identifier: string): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_identifier( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterString.lower(identifier), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public identifiers(identifiers: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_identifiers( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(identifiers), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public ids(ids: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_ids( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypeEventId.lower(ids), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public isEmpty(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_is_empty( - uniffiTypeFilterObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public kind(kind: KindInterface): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_kind( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeKind.lower(kind), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public kinds(kinds: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_kinds( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypeKind.lower(kinds), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public limit(limit: /*u64*/ bigint): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_limit( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterUInt64.lower(limit), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Determine if `Filter` match given `Event`. - */ - public matchEvent(event: EventInterface): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_match_event( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeEvent.lower(event), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add Public Key (`p` tag) - */ - public pubkey(pubkey: PublicKeyInterface): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_pubkey( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(pubkey), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add Public Keys (`p` tag) - */ - public pubkeys(pubkeys: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_pubkeys( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypePublicKey.lower(pubkeys), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public reference(reference: string): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_reference( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterString.lower(reference), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public references(references: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_references( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(references), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeAuthors(authors: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_authors( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypePublicKey.lower(authors), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Remove coordinates - * - * Remove `a` tags. - * - * - */ - public removeCoordinates( - coordinates: Array - ): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_coordinates( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypeCoordinate.lower(coordinates), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeCustomTags( - tag: SingleLetterTagInterface, - contents: Array - ): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_custom_tags( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeSingleLetterTag.lower(tag), - FfiConverterArrayString.lower(contents), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeEvents(ids: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_events( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypeEventId.lower(ids), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeHashtags(hashtags: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_hashtags( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(hashtags), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeIdentifiers(identifiers: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_identifiers( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(identifiers), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeIds(ids: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_ids( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypeEventId.lower(ids), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeKinds(kinds: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_kinds( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypeKind.lower(kinds), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeLimit(): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_limit( - uniffiTypeFilterObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removePubkeys(pubkeys: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_pubkeys( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayTypePublicKey.lower(pubkeys), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeReferences(references: Array): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_references( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(references), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeSearch(): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_search( - uniffiTypeFilterObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeSince(): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_since( - uniffiTypeFilterObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public removeUntil(): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_remove_until( - uniffiTypeFilterObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public search(text: string): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_search( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterString.lower(text), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public since(timestamp: TimestampInterface): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_since( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeTimestamp.lower(timestamp), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public until(timestamp: TimestampInterface): FilterInterface { - return FfiConverterTypeFilter.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_until( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeTimestamp.lower(timestamp), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `FilterInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_debug( - uniffiTypeFilterObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `FilterInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `FilterInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `FilterInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Filter): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_filter_uniffi_trait_eq_eq( - uniffiTypeFilterObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeFilterObjectFactory.pointer(this); - uniffiTypeFilterObjectFactory.freePointer(pointer); - uniffiTypeFilterObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Filter { - return uniffiTypeFilterObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeFilterObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): FilterInterface { - const instance = Object.create(Filter.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Filter'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_filter_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: FilterInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: FilterInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_filter( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_filter( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is FilterInterface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Filter'; - }, -}; -// FfiConverter for FilterInterface -const FfiConverterTypeFilter = new FfiConverterObject( - uniffiTypeFilterObjectFactory -); - -export interface HandleNotification { - handleMsg( - relayUrl: string, - msg: RelayMessageInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise; - handle( - relayUrl: string, - subscriptionId: string, - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise; -} - -export class HandleNotificationImpl - extends UniffiAbstractObject - implements HandleNotification -{ - readonly [uniffiTypeNameSymbol] = 'HandleNotificationImpl'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeHandleNotificationImplObjectFactory.bless(pointer); - } - - public async handleMsg( - relayUrl: string, - msg: RelayMessageInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle_msg( - uniffiTypeHandleNotificationImplObjectFactory.clonePointer(this), - FfiConverterString.lower(relayUrl), - FfiConverterTypeRelayMessage.lower(msg) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async handle( - relayUrl: string, - subscriptionId: string, - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_handlenotification_handle( - uniffiTypeHandleNotificationImplObjectFactory.clonePointer(this), - FfiConverterString.lower(relayUrl), - FfiConverterString.lower(subscriptionId), - FfiConverterTypeEvent.lower(event) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = - uniffiTypeHandleNotificationImplObjectFactory.pointer(this); - uniffiTypeHandleNotificationImplObjectFactory.freePointer(pointer); - uniffiTypeHandleNotificationImplObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is HandleNotificationImpl { - return uniffiTypeHandleNotificationImplObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeHandleNotificationImplObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): HandleNotification { - const instance = Object.create(HandleNotificationImpl.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'HandleNotificationImpl'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_handlenotification_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: HandleNotification): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: HandleNotification): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_handlenotification( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_handlenotification( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is HandleNotification { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'HandleNotificationImpl' - ); - }, - }; -// FfiConverter for HandleNotification -const FfiConverterTypeHandleNotification = new FfiConverterObjectWithCallbacks( - uniffiTypeHandleNotificationImplObjectFactory -); - -// Add a vtavble for the callbacks that go in HandleNotification. - -// Put the implementation in a struct so we don't pollute the top-level namespace -const uniffiCallbackInterfaceHandleNotification: { - vtable: UniffiVTableCallbackInterfaceHandleNotification; - register: () => void; -} = { - // Create the VTable using a series of closures. - // ts automatically converts these into C callback functions. - vtable: { - handleMsg: ( - uniffiHandle: bigint, - relayUrl: Uint8Array, - msg: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteVoid, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async (signal: AbortSignal): Promise => { - const jsCallback = - FfiConverterTypeHandleNotification.lift(uniffiHandle); - return await jsCallback.handleMsg( - FfiConverterString.lift(relayUrl), - FfiConverterTypeRelayMessage.lift(msg), - { signal } - ); - }; - const uniffiHandleSuccess = (returnValue: void) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructVoid */ { - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructVoid */ { - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsync( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - handle: ( - uniffiHandle: bigint, - relayUrl: Uint8Array, - subscriptionId: Uint8Array, - event: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteVoid, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async (signal: AbortSignal): Promise => { - const jsCallback = - FfiConverterTypeHandleNotification.lift(uniffiHandle); - return await jsCallback.handle( - FfiConverterString.lift(relayUrl), - FfiConverterString.lift(subscriptionId), - FfiConverterTypeEvent.lift(event), - { signal } - ); - }; - const uniffiHandleSuccess = (returnValue: void) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructVoid */ { - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructVoid */ { - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsync( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - uniffiFree: (uniffiHandle: UniffiHandle): void => { - // HandleNotification: this will throw a stale handle error if the handle isn't found. - FfiConverterTypeHandleNotification.drop(uniffiHandle); - }, - }, - register: () => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_handlenotification( - uniffiCallbackInterfaceHandleNotification.vtable - ); - }, -}; - -/** - * Data Vending Machine (DVM) - Job Feedback data - * - * - */ -export interface JobFeedbackDataInterface { - /** - * Add payment amount - */ - amount( - millisats: /*u64*/ bigint, - bolt11: string | undefined - ): JobFeedbackDataInterface; - /** - * Add extra info - */ - extraInfo(info: string): JobFeedbackDataInterface; - /** - * Add payload - */ - payload(payload: string): JobFeedbackDataInterface; -} - -/** - * Data Vending Machine (DVM) - Job Feedback data - * - * - */ -export class JobFeedbackData - extends UniffiAbstractObject - implements JobFeedbackDataInterface -{ - readonly [uniffiTypeNameSymbol] = 'JobFeedbackData'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * Construct new Job Feedback - */ - constructor(jobRequest: EventInterface, status: DataVendingMachineStatus) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_jobfeedbackdata_new( - FfiConverterTypeEvent.lower(jobRequest), - FfiConverterTypeDataVendingMachineStatus.lower(status), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeJobFeedbackDataObjectFactory.bless(pointer); - } - - /** - * Add payment amount - */ - public amount( - millisats: /*u64*/ bigint, - bolt11: string | undefined - ): JobFeedbackDataInterface { - return FfiConverterTypeJobFeedbackData.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_amount( - uniffiTypeJobFeedbackDataObjectFactory.clonePointer(this), - FfiConverterUInt64.lower(millisats), - FfiConverterOptionalString.lower(bolt11), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add extra info - */ - public extraInfo(info: string): JobFeedbackDataInterface { - return FfiConverterTypeJobFeedbackData.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_extra_info( - uniffiTypeJobFeedbackDataObjectFactory.clonePointer(this), - FfiConverterString.lower(info), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add payload - */ - public payload(payload: string): JobFeedbackDataInterface { - return FfiConverterTypeJobFeedbackData.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_jobfeedbackdata_payload( - uniffiTypeJobFeedbackDataObjectFactory.clonePointer(this), - FfiConverterString.lower(payload), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeJobFeedbackDataObjectFactory.pointer(this); - uniffiTypeJobFeedbackDataObjectFactory.freePointer(pointer); - uniffiTypeJobFeedbackDataObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is JobFeedbackData { - return uniffiTypeJobFeedbackDataObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeJobFeedbackDataObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): JobFeedbackDataInterface { - const instance = Object.create(JobFeedbackData.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'JobFeedbackData'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_jobfeedbackdata_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: JobFeedbackDataInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: JobFeedbackDataInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_jobfeedbackdata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_jobfeedbackdata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is JobFeedbackDataInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'JobFeedbackData' - ); - }, - }; -// FfiConverter for JobFeedbackDataInterface -const FfiConverterTypeJobFeedbackData = new FfiConverterObject( - uniffiTypeJobFeedbackDataObjectFactory -); - -/** - * Nostr keys - */ -export interface KeysInterface { - /** - * Get public key - */ - publicKey(): PublicKeyInterface; - /** - * Get secret key - */ - secretKey(): SecretKeyInterface; - /** - * Creates a schnorr signature of a message. - * - * This method use a random number generator that retrieves randomness from the operating system. - */ - signSchnorr(message: ArrayBuffer) /*throws*/ : string; -} - -/** - * Nostr keys - */ -export class Keys extends UniffiAbstractObject implements KeysInterface { - readonly [uniffiTypeNameSymbol] = 'Keys'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * Initialize nostr keys from secret key. - */ - constructor(secretKey: SecretKeyInterface) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_new( - FfiConverterTypeSecretKey.lower(secretKey), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeKeysObjectFactory.bless(pointer); - } - - /** - * Derive keys from BIP-39 mnemonics (ENGLISH wordlist). - * - * - */ - public static fromMnemonic( - mnemonic: string, - passphrase: string | undefined = undefined, - account: /*u32*/ number | undefined = undefined, - typ: /*u32*/ number | undefined = undefined, - index: /*u32*/ number | undefined = undefined - ): KeysInterface /*throws*/ { - return FfiConverterTypeKeys.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_from_mnemonic( - FfiConverterString.lower(mnemonic), - FfiConverterOptionalString.lower(passphrase), - FfiConverterOptionalUInt32.lower(account), - FfiConverterOptionalUInt32.lower(typ), - FfiConverterOptionalUInt32.lower(index), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Generate random keys - * - * This constructor use a random number generator that retrieves randomness from the operating system. - * - * Generate random keys **without** construct the `Keypair`. - * This allows faster keys generation (i.e. for vanity pubkey mining). - * The `Keypair` will be automatically created when needed and stored in a cell. - */ - public static generate(): KeysInterface { - return FfiConverterTypeKeys.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_generate( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Parse secret key from `hex` or `bech32` and compose keys - */ - public static parse(secretKey: string): KeysInterface /*throws*/ { - return FfiConverterTypeKeys.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_keys_parse( - FfiConverterString.lower(secretKey), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get public key - */ - public publicKey(): PublicKeyInterface { - return FfiConverterTypePublicKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_public_key( - uniffiTypeKeysObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get secret key - */ - public secretKey(): SecretKeyInterface { - return FfiConverterTypeSecretKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_secret_key( - uniffiTypeKeysObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Creates a schnorr signature of a message. - * - * This method use a random number generator that retrieves randomness from the operating system. - */ - public signSchnorr(message: ArrayBuffer): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_sign_schnorr( - uniffiTypeKeysObjectFactory.clonePointer(this), - FfiConverterArrayBuffer.lower(message), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `KeysInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_debug( - uniffiTypeKeysObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `KeysInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `KeysInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `KeysInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Keys): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_keys_uniffi_trait_eq_eq( - uniffiTypeKeysObjectFactory.clonePointer(this), - FfiConverterTypeKeys.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeKeysObjectFactory.pointer(this); - uniffiTypeKeysObjectFactory.freePointer(pointer); - uniffiTypeKeysObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Keys { - return uniffiTypeKeysObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeKeysObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): KeysInterface { - const instance = Object.create(Keys.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Keys'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_keys_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: KeysInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: KeysInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_keys( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_keys( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is KeysInterface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Keys'; - }, -}; -// FfiConverter for KeysInterface -const FfiConverterTypeKeys = new FfiConverterObject( - uniffiTypeKeysObjectFactory -); - -/** - * Event Kind - */ -export interface KindInterface { - asStd(): KindStandard | undefined; - /** - * Get as 16-bit unsigned integer - */ - asU16(): /*u16*/ number; - /** - * Check if it's addressable - * - * Addressable means that, for each combination of `pubkey`, `kind` and the `d` tag's first value, - * only the latest event MUST be stored by relays, older versions MAY be discarded. - * - * - */ - isAddressable(): boolean; - /** - * Check if it's ephemeral - * - * Ephemeral means that event is not expected to be stored by relays. - * - * - */ - isEphemeral(): boolean; - /** - * Check if it's a NIP90 job request - * - * - */ - isJobRequest(): boolean; - /** - * Check if it's a NIP90 job result - * - * - */ - isJobResult(): boolean; - /** - * Check if it's regular - * - * Regular means that event is expected to be stored by relays. - * - * - */ - isRegular(): boolean; - /** - * Check if it's replaceable - * - * Replaceable means that, for each combination of `pubkey` and `kind`, - * only the latest event MUST be stored by relays, older versions MAY be discarded. - * - * - */ - isReplaceable(): boolean; -} - -/** - * Event Kind - */ -export class Kind extends UniffiAbstractObject implements KindInterface { - readonly [uniffiTypeNameSymbol] = 'Kind'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor(kind: /*u16*/ number) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_kind_new( - FfiConverterUInt16.lower(kind), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeKindObjectFactory.bless(pointer); - } - - public static fromStd(e: KindStandard): KindInterface { - return FfiConverterTypeKind.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_kind_from_std( - FfiConverterTypeKindStandard.lower(e), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asStd(): KindStandard | undefined { - return FfiConverterOptionalTypeKindStandard.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_as_std( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get as 16-bit unsigned integer - */ - public asU16(): /*u16*/ number { - return FfiConverterUInt16.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_as_u16( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if it's addressable - * - * Addressable means that, for each combination of `pubkey`, `kind` and the `d` tag's first value, - * only the latest event MUST be stored by relays, older versions MAY be discarded. - * - * - */ - public isAddressable(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_addressable( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if it's ephemeral - * - * Ephemeral means that event is not expected to be stored by relays. - * - * - */ - public isEphemeral(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_ephemeral( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if it's a NIP90 job request - * - * - */ - public isJobRequest(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_request( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if it's a NIP90 job result - * - * - */ - public isJobResult(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_job_result( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if it's regular - * - * Regular means that event is expected to be stored by relays. - * - * - */ - public isRegular(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_regular( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if it's replaceable - * - * Replaceable means that, for each combination of `pubkey` and `kind`, - * only the latest event MUST be stored by relays, older versions MAY be discarded. - * - * - */ - public isReplaceable(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_is_replaceable( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `KindInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_debug( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `KindInterface::to_string()` method of the native Rust peer. - * - * Generated by deriving the `Display` trait in Rust. - */ - toString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_display( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `==` method of `KindInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `KindInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Kind): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_eq_eq( - uniffiTypeKindObjectFactory.clonePointer(this), - FfiConverterTypeKind.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `KindInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_kind_uniffi_trait_hash( - uniffiTypeKindObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeKindObjectFactory.pointer(this); - uniffiTypeKindObjectFactory.freePointer(pointer); - uniffiTypeKindObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Kind { - return uniffiTypeKindObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeKindObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): KindInterface { - const instance = Object.create(Kind.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Kind'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_kind_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: KindInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: KindInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_kind( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_kind( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is KindInterface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Kind'; - }, -}; -// FfiConverter for KindInterface -const FfiConverterTypeKind = new FfiConverterObject( - uniffiTypeKindObjectFactory -); - -export interface MetadataInterface { - asJson() /*throws*/ : string; - asPrettyJson() /*throws*/ : string; - asRecord(): MetadataRecord; - getAbout(): string | undefined; - getBanner(): string | undefined; - getCustomField(key: string) /*throws*/ : JsonValue | undefined; - getDisplayName(): string | undefined; - getLud06(): string | undefined; - getLud16(): string | undefined; - getName(): string | undefined; - getNip05(): string | undefined; - getPicture(): string | undefined; - getWebsite(): string | undefined; - setAbout(about: string): MetadataInterface; - setBanner(banner: string) /*throws*/ : MetadataInterface; - setCustomField(key: string, value: JsonValue) /*throws*/ : MetadataInterface; - setDisplayName(displayName: string): MetadataInterface; - setLud06(lud06: string): MetadataInterface; - setLud16(lud16: string): MetadataInterface; - setName(name: string): MetadataInterface; - setNip05(nip05: string): MetadataInterface; - setPicture(picture: string) /*throws*/ : MetadataInterface; - setWebsite(website: string) /*throws*/ : MetadataInterface; -} - -export class Metadata - extends UniffiAbstractObject - implements MetadataInterface -{ - readonly [uniffiTypeNameSymbol] = 'Metadata'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeMetadataObjectFactory.bless(pointer); - } - - public static fromJson(json: string): MetadataInterface /*throws*/ { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_json( - FfiConverterString.lower(json), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static fromRecord(r: MetadataRecord): MetadataInterface { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_metadata_from_record( - FfiConverterTypeMetadataRecord.lower(r), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_json( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asPrettyJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_pretty_json( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asRecord(): MetadataRecord { - return FfiConverterTypeMetadataRecord.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_as_record( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public getAbout(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_about( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public getBanner(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_banner( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public getCustomField(key: string): JsonValue | undefined /*throws*/ { - return FfiConverterOptionalTypeJsonValue.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_custom_field( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(key), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public getDisplayName(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_display_name( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public getLud06(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud06( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public getLud16(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_lud16( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public getName(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_name( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public getNip05(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_nip05( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public getPicture(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_picture( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public getWebsite(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_get_website( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public setAbout(about: string): MetadataInterface { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_about( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(about), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public setBanner(banner: string): MetadataInterface /*throws*/ { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_banner( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(banner), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public setCustomField( - key: string, - value: JsonValue - ): MetadataInterface /*throws*/ { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_custom_field( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(key), - FfiConverterTypeJsonValue.lower(value), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public setDisplayName(displayName: string): MetadataInterface { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_display_name( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(displayName), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public setLud06(lud06: string): MetadataInterface { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud06( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(lud06), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public setLud16(lud16: string): MetadataInterface { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_lud16( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(lud16), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public setName(name: string): MetadataInterface { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_name( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(name), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public setNip05(nip05: string): MetadataInterface { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_nip05( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(nip05), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public setPicture(picture: string): MetadataInterface /*throws*/ { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_picture( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(picture), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public setWebsite(website: string): MetadataInterface /*throws*/ { - return FfiConverterTypeMetadata.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_set_website( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(website), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `MetadataInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_debug( - uniffiTypeMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `MetadataInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `MetadataInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `MetadataInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Metadata): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_metadata_uniffi_trait_eq_eq( - uniffiTypeMetadataObjectFactory.clonePointer(this), - FfiConverterTypeMetadata.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeMetadataObjectFactory.pointer(this); - uniffiTypeMetadataObjectFactory.freePointer(pointer); - uniffiTypeMetadataObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Metadata { - return uniffiTypeMetadataObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeMetadataObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): MetadataInterface { - const instance = Object.create(Metadata.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Metadata'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_metadata_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: MetadataInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: MetadataInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_metadata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_metadata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is MetadataInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Metadata' - ); - }, - }; -// FfiConverter for MetadataInterface -const FfiConverterTypeMetadata = new FfiConverterObject( - uniffiTypeMetadataObjectFactory -); - -/** - * Nostr Wallet Connect client - */ -export interface NwcInterface { - /** - * Get balance - */ - getBalance(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise; - /** - * Get info - */ - getInfo(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise; - /** - * List transactions - */ - listTransactions( - params: ListTransactionsRequest, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise>; - /** - * Lookup invoice - */ - lookupInvoice( - params: LookupInvoiceRequest, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Create invoice - */ - makeInvoice( - params: MakeInvoiceRequest, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Pay invoice - */ - payInvoice( - params: PayInvoiceRequest, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Pay keysend - */ - payKeysend( - params: PayKeysendRequest, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Get relays status - */ - status(asyncOpts_?: { - signal: AbortSignal; - }): Promise>; -} - -/** - * Nostr Wallet Connect client - */ -export class Nwc extends UniffiAbstractObject implements NwcInterface { - readonly [uniffiTypeNameSymbol] = 'Nwc'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * Compose new `NWC` client - */ - constructor(uri: NostrWalletConnectUriInterface) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nwc_new( - FfiConverterTypeNostrWalletConnectURI.lower(uri), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeNwcObjectFactory.bless(pointer); - } - - /** - * Compose new `NWC` client with `NostrWalletConnectOptions` - */ - public static withOpts( - uri: NostrWalletConnectUriInterface, - opts: NostrWalletConnectOptionsInterface - ): NwcInterface { - return FfiConverterTypeNWC.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nwc_with_opts( - FfiConverterTypeNostrWalletConnectURI.lower(uri), - FfiConverterTypeNostrWalletConnectOptions.lower(opts), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get balance - */ - public async getBalance(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_get_balance( - uniffiTypeNwcObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u64, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u64, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u64, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_u64, - /*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Get info - */ - public async getInfo(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_get_info( - uniffiTypeNwcObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeGetInfoResponse.lift.bind( - FfiConverterTypeGetInfoResponse - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * List transactions - */ - public async listTransactions( - params: ListTransactionsRequest, - asyncOpts_?: { signal: AbortSignal } - ): Promise> /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_list_transactions( - uniffiTypeNwcObjectFactory.clonePointer(this), - FfiConverterTypeListTransactionsRequest.lower(params) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterArrayTypeLookupInvoiceResponse.lift.bind( - FfiConverterArrayTypeLookupInvoiceResponse - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Lookup invoice - */ - public async lookupInvoice( - params: LookupInvoiceRequest, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_lookup_invoice( - uniffiTypeNwcObjectFactory.clonePointer(this), - FfiConverterTypeLookupInvoiceRequest.lower(params) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeLookupInvoiceResponse.lift.bind( - FfiConverterTypeLookupInvoiceResponse - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Create invoice - */ - public async makeInvoice( - params: MakeInvoiceRequest, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_make_invoice( - uniffiTypeNwcObjectFactory.clonePointer(this), - FfiConverterTypeMakeInvoiceRequest.lower(params) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeMakeInvoiceResponse.lift.bind( - FfiConverterTypeMakeInvoiceResponse - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Pay invoice - */ - public async payInvoice( - params: PayInvoiceRequest, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_invoice( - uniffiTypeNwcObjectFactory.clonePointer(this), - FfiConverterTypePayInvoiceRequest.lower(params) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypePayInvoiceResponse.lift.bind( - FfiConverterTypePayInvoiceResponse - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Pay keysend - */ - public async payKeysend( - params: PayKeysendRequest, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_pay_keysend( - uniffiTypeNwcObjectFactory.clonePointer(this), - FfiConverterTypePayKeysendRequest.lower(params) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypePayKeysendResponse.lift.bind( - FfiConverterTypePayKeysendResponse - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Get relays status - */ - public async status(asyncOpts_?: { - signal: AbortSignal; - }): Promise> { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nwc_status( - uniffiTypeNwcObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterMapStringTypeRelayStatus.lift.bind( - FfiConverterMapStringTypeRelayStatus - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNwcObjectFactory.pointer(this); - uniffiTypeNwcObjectFactory.freePointer(pointer); - uniffiTypeNwcObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Nwc { - return uniffiTypeNwcObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNwcObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): NwcInterface { - const instance = Object.create(Nwc.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Nwc'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nwc_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: NwcInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: NwcInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nwc( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nwc( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is NwcInterface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Nwc'; - }, -}; -// FfiConverter for NwcInterface -const FfiConverterTypeNWC = new FfiConverterObject(uniffiTypeNwcObjectFactory); - -export interface Nip05ProfileInterface { - /** - * Get NIP46 relays - */ - nip46(): Array; - publicKey(): PublicKeyInterface; - /** - * Get relays - */ - relays(): Array; -} - -export class Nip05Profile - extends UniffiAbstractObject - implements Nip05ProfileInterface -{ - readonly [uniffiTypeNameSymbol] = 'Nip05Profile'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNip05ProfileObjectFactory.bless(pointer); - } - - /** - * Get NIP46 relays - */ - public nip46(): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_nip46( - uniffiTypeNip05ProfileObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public publicKey(): PublicKeyInterface { - return FfiConverterTypePublicKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_public_key( - uniffiTypeNip05ProfileObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get relays - */ - public relays(): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip05profile_relays( - uniffiTypeNip05ProfileObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNip05ProfileObjectFactory.pointer(this); - uniffiTypeNip05ProfileObjectFactory.freePointer(pointer); - uniffiTypeNip05ProfileObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Nip05Profile { - return uniffiTypeNip05ProfileObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNip05ProfileObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): Nip05ProfileInterface { - const instance = Object.create(Nip05Profile.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Nip05Profile'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nip05profile_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: Nip05ProfileInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: Nip05ProfileInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip05profile( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nip05profile( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is Nip05ProfileInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'Nip05Profile' - ); - }, - }; -// FfiConverter for Nip05ProfileInterface -const FfiConverterTypeNip05Profile = new FfiConverterObject( - uniffiTypeNip05ProfileObjectFactory -); - -export interface Nip19Interface { - asEnum(): Nip19Enum; -} - -export class Nip19 extends UniffiAbstractObject implements Nip19Interface { - readonly [uniffiTypeNameSymbol] = 'Nip19'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeNip19ObjectFactory.bless(pointer); - } - - public static fromBech32(bech32: string): Nip19Interface /*throws*/ { - return FfiConverterTypeNip19.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19_from_bech32( - FfiConverterString.lower(bech32), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asEnum(): Nip19Enum { - return FfiConverterTypeNip19Enum.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_as_enum( - uniffiTypeNip19ObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `Nip19Interface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_debug( - uniffiTypeNip19ObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `Nip19Interface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `Nip19Interface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `Nip19Interface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Nip19): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19_uniffi_trait_eq_eq( - uniffiTypeNip19ObjectFactory.clonePointer(this), - FfiConverterTypeNip19.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNip19ObjectFactory.pointer(this); - uniffiTypeNip19ObjectFactory.freePointer(pointer); - uniffiTypeNip19ObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Nip19 { - return uniffiTypeNip19ObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNip19ObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): Nip19Interface { - const instance = Object.create(Nip19.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Nip19'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nip19_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: Nip19Interface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: Nip19Interface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is Nip19Interface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Nip19'; - }, -}; -// FfiConverter for Nip19Interface -const FfiConverterTypeNip19 = new FfiConverterObject( - uniffiTypeNip19ObjectFactory -); - -export interface Nip19CoordinateInterface { - coordinate(): CoordinateInterface; - relays(): Array; - toBech32() /*throws*/ : string; - toNostrUri() /*throws*/ : string; -} - -export class Nip19Coordinate - extends UniffiAbstractObject - implements Nip19CoordinateInterface -{ - readonly [uniffiTypeNameSymbol] = 'Nip19Coordinate'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor( - coordinate: CoordinateInterface, - relays: Array = [] - ) /*throws*/ { - super(); - const pointer = uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_new( - FfiConverterTypeCoordinate.lower(coordinate), - FfiConverterArrayString.lower(relays), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNip19CoordinateObjectFactory.bless(pointer); - } - - public static fromBech32( - bech32: string - ): Nip19CoordinateInterface /*throws*/ { - return FfiConverterTypeNip19Coordinate.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_bech32( - FfiConverterString.lower(bech32), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static fromNostrUri(uri: string): Nip19CoordinateInterface /*throws*/ { - return FfiConverterTypeNip19Coordinate.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19coordinate_from_nostr_uri( - FfiConverterString.lower(uri), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public coordinate(): CoordinateInterface { - return FfiConverterTypeCoordinate.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_coordinate( - uniffiTypeNip19CoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public relays(): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_relays( - uniffiTypeNip19CoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toBech32(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_bech32( - uniffiTypeNip19CoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toNostrUri(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_to_nostr_uri( - uniffiTypeNip19CoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `Nip19CoordinateInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_debug( - uniffiTypeNip19CoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `Nip19CoordinateInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `Nip19CoordinateInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `Nip19CoordinateInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Nip19Coordinate): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_eq_eq( - uniffiTypeNip19CoordinateObjectFactory.clonePointer(this), - FfiConverterTypeNip19Coordinate.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `Nip19CoordinateInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19coordinate_uniffi_trait_hash( - uniffiTypeNip19CoordinateObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNip19CoordinateObjectFactory.pointer(this); - uniffiTypeNip19CoordinateObjectFactory.freePointer(pointer); - uniffiTypeNip19CoordinateObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Nip19Coordinate { - return uniffiTypeNip19CoordinateObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNip19CoordinateObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): Nip19CoordinateInterface { - const instance = Object.create(Nip19Coordinate.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Nip19Coordinate'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nip19coordinate_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: Nip19CoordinateInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: Nip19CoordinateInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19coordinate( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19coordinate( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is Nip19CoordinateInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'Nip19Coordinate' - ); - }, - }; -// FfiConverter for Nip19CoordinateInterface -const FfiConverterTypeNip19Coordinate = new FfiConverterObject( - uniffiTypeNip19CoordinateObjectFactory -); - -export interface Nip19EventInterface { - author(): PublicKeyInterface | undefined; - eventId(): EventIdInterface; - kind(): KindInterface | undefined; - relays(): Array; - toBech32() /*throws*/ : string; - toNostrUri() /*throws*/ : string; -} - -export class Nip19Event - extends UniffiAbstractObject - implements Nip19EventInterface -{ - readonly [uniffiTypeNameSymbol] = 'Nip19Event'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor( - eventId: EventIdInterface, - author: PublicKeyInterface | undefined = undefined, - kind: KindInterface | undefined = undefined, - relays: Array = [] - ) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_new( - FfiConverterTypeEventId.lower(eventId), - FfiConverterOptionalTypePublicKey.lower(author), - FfiConverterOptionalTypeKind.lower(kind), - FfiConverterArrayString.lower(relays), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNip19EventObjectFactory.bless(pointer); - } - - public static fromBech32(bech32: string): Nip19EventInterface /*throws*/ { - return FfiConverterTypeNip19Event.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_bech32( - FfiConverterString.lower(bech32), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static fromEvent(event: EventInterface): Nip19EventInterface { - return FfiConverterTypeNip19Event.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_event( - FfiConverterTypeEvent.lower(event), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static fromNostrUri(uri: string): Nip19EventInterface /*throws*/ { - return FfiConverterTypeNip19Event.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19event_from_nostr_uri( - FfiConverterString.lower(uri), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public author(): PublicKeyInterface | undefined { - return FfiConverterOptionalTypePublicKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_author( - uniffiTypeNip19EventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public eventId(): EventIdInterface { - return FfiConverterTypeEventId.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_event_id( - uniffiTypeNip19EventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public kind(): KindInterface | undefined { - return FfiConverterOptionalTypeKind.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_kind( - uniffiTypeNip19EventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public relays(): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_relays( - uniffiTypeNip19EventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toBech32(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_bech32( - uniffiTypeNip19EventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toNostrUri(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_to_nostr_uri( - uniffiTypeNip19EventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `Nip19EventInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_debug( - uniffiTypeNip19EventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `Nip19EventInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `Nip19EventInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `Nip19EventInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Nip19Event): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_eq_eq( - uniffiTypeNip19EventObjectFactory.clonePointer(this), - FfiConverterTypeNip19Event.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `Nip19EventInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19event_uniffi_trait_hash( - uniffiTypeNip19EventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNip19EventObjectFactory.pointer(this); - uniffiTypeNip19EventObjectFactory.freePointer(pointer); - uniffiTypeNip19EventObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Nip19Event { - return uniffiTypeNip19EventObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNip19EventObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): Nip19EventInterface { - const instance = Object.create(Nip19Event.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Nip19Event'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nip19event_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: Nip19EventInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: Nip19EventInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19event( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19event( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is Nip19EventInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Nip19Event' - ); - }, - }; -// FfiConverter for Nip19EventInterface -const FfiConverterTypeNip19Event = new FfiConverterObject( - uniffiTypeNip19EventObjectFactory -); - -export interface Nip19ProfileInterface { - publicKey(): PublicKeyInterface; - relays(): Array; - toBech32() /*throws*/ : string; - toNostrUri() /*throws*/ : string; -} - -export class Nip19Profile - extends UniffiAbstractObject - implements Nip19ProfileInterface -{ - readonly [uniffiTypeNameSymbol] = 'Nip19Profile'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * New NIP19 profile - */ - constructor( - publicKey: PublicKeyInterface, - relays: Array = [] - ) /*throws*/ { - super(); - const pointer = uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_new( - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterArrayString.lower(relays), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNip19ProfileObjectFactory.bless(pointer); - } - - public static fromBech32(bech32: string): Nip19ProfileInterface /*throws*/ { - return FfiConverterTypeNip19Profile.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_bech32( - FfiConverterString.lower(bech32), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static fromNostrUri(uri: string): Nip19ProfileInterface /*throws*/ { - return FfiConverterTypeNip19Profile.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip19profile_from_nostr_uri( - FfiConverterString.lower(uri), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public publicKey(): PublicKeyInterface { - return FfiConverterTypePublicKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_public_key( - uniffiTypeNip19ProfileObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public relays(): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_relays( - uniffiTypeNip19ProfileObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toBech32(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_bech32( - uniffiTypeNip19ProfileObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toNostrUri(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_to_nostr_uri( - uniffiTypeNip19ProfileObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `Nip19ProfileInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_debug( - uniffiTypeNip19ProfileObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `Nip19ProfileInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `Nip19ProfileInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `Nip19ProfileInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Nip19Profile): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_eq_eq( - uniffiTypeNip19ProfileObjectFactory.clonePointer(this), - FfiConverterTypeNip19Profile.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `Nip19ProfileInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip19profile_uniffi_trait_hash( - uniffiTypeNip19ProfileObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNip19ProfileObjectFactory.pointer(this); - uniffiTypeNip19ProfileObjectFactory.freePointer(pointer); - uniffiTypeNip19ProfileObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Nip19Profile { - return uniffiTypeNip19ProfileObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNip19ProfileObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): Nip19ProfileInterface { - const instance = Object.create(Nip19Profile.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Nip19Profile'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nip19profile_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: Nip19ProfileInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: Nip19ProfileInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip19profile( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nip19profile( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is Nip19ProfileInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'Nip19Profile' - ); - }, - }; -// FfiConverter for Nip19ProfileInterface -const FfiConverterTypeNip19Profile = new FfiConverterObject( - uniffiTypeNip19ProfileObjectFactory -); - -export interface Nip21Interface { - asEnum(): Nip21Enum; - /** - * Serialize to NIP21 nostr URI - */ - toNostrUri() /*throws*/ : string; -} - -export class Nip21 extends UniffiAbstractObject implements Nip21Interface { - readonly [uniffiTypeNameSymbol] = 'Nip21'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeNip21ObjectFactory.bless(pointer); - } - - /** - * Parse NIP21 string - */ - public static parse(uri: string): Nip21Interface /*throws*/ { - return FfiConverterTypeNip21.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nip21_parse( - FfiConverterString.lower(uri), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asEnum(): Nip21Enum { - return FfiConverterTypeNip21Enum.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_as_enum( - uniffiTypeNip21ObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Serialize to NIP21 nostr URI - */ - public toNostrUri(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_to_nostr_uri( - uniffiTypeNip21ObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `Nip21Interface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_debug( - uniffiTypeNip21ObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `Nip21Interface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `Nip21Interface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `Nip21Interface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Nip21): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nip21_uniffi_trait_eq_eq( - uniffiTypeNip21ObjectFactory.clonePointer(this), - FfiConverterTypeNip21.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNip21ObjectFactory.pointer(this); - uniffiTypeNip21ObjectFactory.freePointer(pointer); - uniffiTypeNip21ObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Nip21 { - return uniffiTypeNip21ObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNip21ObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): Nip21Interface { - const instance = Object.create(Nip21.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Nip21'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nip21_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: Nip21Interface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: Nip21Interface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nip21( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nip21( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is Nip21Interface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Nip21'; - }, -}; -// FfiConverter for Nip21Interface -const FfiConverterTypeNip21 = new FfiConverterObject( - uniffiTypeNip21ObjectFactory -); - -export interface NostrConnectInterface { - /** - * Get `bunker` URI - */ - bunkerUri(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise; - getPublicKey(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise; - nip04Decrypt( - publicKey: PublicKeyInterface, - encryptedContent: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - nip04Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - nip44Decrypt( - publicKey: PublicKeyInterface, - payload: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - nip44Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Get signer relays - */ - relays(): Array; - signEvent( - unsignedEvent: UnsignedEventInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; -} - -export class NostrConnect - extends UniffiAbstractObject - implements NostrConnectInterface -{ - readonly [uniffiTypeNameSymbol] = 'NostrConnect'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * Construct Nostr Connect client - */ - constructor( - uri: NostrConnectUriInterface, - appKeys: KeysInterface, - timeout: UniffiDuration, - opts: RelayOptionsInterface | undefined - ) /*throws*/ { - super(); - const pointer = uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnect_new( - FfiConverterTypeNostrConnectURI.lower(uri), - FfiConverterTypeKeys.lower(appKeys), - FfiConverterDuration.lower(timeout), - FfiConverterOptionalTypeRelayOptions.lower(opts), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNostrConnectObjectFactory.bless(pointer); - } - - /** - * Get `bunker` URI - */ - public async bunkerUri(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_bunker_uri( - uniffiTypeNostrConnectObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeNostrConnectURI.lift.bind( - FfiConverterTypeNostrConnectURI - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async getPublicKey(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_get_public_key( - uniffiTypeNostrConnectObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypePublicKey.lift.bind( - FfiConverterTypePublicKey - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async nip04Decrypt( - publicKey: PublicKeyInterface, - encryptedContent: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_decrypt( - uniffiTypeNostrConnectObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(encryptedContent) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async nip04Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip04_encrypt( - uniffiTypeNostrConnectObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(content) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async nip44Decrypt( - publicKey: PublicKeyInterface, - payload: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_decrypt( - uniffiTypeNostrConnectObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(payload) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async nip44Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_nip44_encrypt( - uniffiTypeNostrConnectObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(content) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Get signer relays - */ - public relays(): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_relays( - uniffiTypeNostrConnectObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public async signEvent( - unsignedEvent: UnsignedEventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnect_sign_event( - uniffiTypeNostrConnectObjectFactory.clonePointer(this), - FfiConverterTypeUnsignedEvent.lower(unsignedEvent) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvent.lift.bind(FfiConverterTypeEvent), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNostrConnectObjectFactory.pointer(this); - uniffiTypeNostrConnectObjectFactory.freePointer(pointer); - uniffiTypeNostrConnectObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is NostrConnect { - return uniffiTypeNostrConnectObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNostrConnectObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): NostrConnectInterface { - const instance = Object.create(NostrConnect.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'NostrConnect'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nostrconnect_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: NostrConnectInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: NostrConnectInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnect( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnect( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is NostrConnectInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'NostrConnect' - ); - }, - }; -// FfiConverter for NostrConnectInterface -const FfiConverterTypeNostrConnect = new FfiConverterObject( - uniffiTypeNostrConnectObjectFactory -); - -export interface NostrConnectMetadataInterface { - /** - * Serialize as JSON string - */ - asJson() /*throws*/ : string; - /** - * Description of the `App` - */ - description(description: string): NostrConnectMetadataInterface; - /** - * List of URLs for icons of the `App` - */ - icons(icons: Array): NostrConnectMetadataInterface; - /** - * URL of the website requesting the connection - */ - url(url: string) /*throws*/ : NostrConnectMetadataInterface; -} - -export class NostrConnectMetadata - extends UniffiAbstractObject - implements NostrConnectMetadataInterface -{ - readonly [uniffiTypeNameSymbol] = 'NostrConnectMetadata'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * New Nostr Connect Metadata - */ - constructor(name: string) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnectmetadata_new( - FfiConverterString.lower(name), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNostrConnectMetadataObjectFactory.bless(pointer); - } - - /** - * Serialize as JSON string - */ - public asJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_as_json( - uniffiTypeNostrConnectMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Description of the `App` - */ - public description(description: string): NostrConnectMetadataInterface { - return FfiConverterTypeNostrConnectMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_description( - uniffiTypeNostrConnectMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(description), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * List of URLs for icons of the `App` - */ - public icons(icons: Array): NostrConnectMetadataInterface { - return FfiConverterTypeNostrConnectMetadata.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_icons( - uniffiTypeNostrConnectMetadataObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(icons), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * URL of the website requesting the connection - */ - public url(url: string): NostrConnectMetadataInterface /*throws*/ { - return FfiConverterTypeNostrConnectMetadata.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_url( - uniffiTypeNostrConnectMetadataObjectFactory.clonePointer(this), - FfiConverterString.lower(url), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `NostrConnectMetadataInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_debug( - uniffiTypeNostrConnectMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `NostrConnectMetadataInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `NostrConnectMetadataInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `NostrConnectMetadataInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: NostrConnectMetadata): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_eq_eq( - uniffiTypeNostrConnectMetadataObjectFactory.clonePointer(this), - FfiConverterTypeNostrConnectMetadata.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `NostrConnectMetadataInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnectmetadata_uniffi_trait_hash( - uniffiTypeNostrConnectMetadataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNostrConnectMetadataObjectFactory.pointer(this); - uniffiTypeNostrConnectMetadataObjectFactory.freePointer(pointer); - uniffiTypeNostrConnectMetadataObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is NostrConnectMetadata { - return uniffiTypeNostrConnectMetadataObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNostrConnectMetadataObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): NostrConnectMetadataInterface { - const instance = Object.create(NostrConnectMetadata.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'NostrConnectMetadata'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nostrconnectmetadata_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: NostrConnectMetadataInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: NostrConnectMetadataInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnectmetadata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnectmetadata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is NostrConnectMetadataInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'NostrConnectMetadata' - ); - }, - }; -// FfiConverter for NostrConnectMetadataInterface -const FfiConverterTypeNostrConnectMetadata = new FfiConverterObject( - uniffiTypeNostrConnectMetadataObjectFactory -); - -export interface NostrConnectUriInterface {} - -export class NostrConnectUri - extends UniffiAbstractObject - implements NostrConnectUriInterface -{ - readonly [uniffiTypeNameSymbol] = 'NostrConnectUri'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNostrConnectUriObjectFactory.bless(pointer); - } - - public static parse(uri: string): NostrConnectUriInterface /*throws*/ { - return FfiConverterTypeNostrConnectURI.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrconnecturi_parse( - FfiConverterString.lower(uri), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `NostrConnectUriInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_debug( - uniffiTypeNostrConnectUriObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `NostrConnectUriInterface::to_string()` method of the native Rust peer. - * - * Generated by deriving the `Display` trait in Rust. - */ - toString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_display( - uniffiTypeNostrConnectUriObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `==` method of `NostrConnectUriInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `NostrConnectUriInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: NostrConnectUri): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_eq_eq( - uniffiTypeNostrConnectUriObjectFactory.clonePointer(this), - FfiConverterTypeNostrConnectURI.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `NostrConnectUriInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrconnecturi_uniffi_trait_hash( - uniffiTypeNostrConnectUriObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNostrConnectUriObjectFactory.pointer(this); - uniffiTypeNostrConnectUriObjectFactory.freePointer(pointer); - uniffiTypeNostrConnectUriObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is NostrConnectUri { - return uniffiTypeNostrConnectUriObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNostrConnectUriObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): NostrConnectUriInterface { - const instance = Object.create(NostrConnectUri.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'NostrConnectUri'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nostrconnecturi_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: NostrConnectUriInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: NostrConnectUriInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrconnecturi( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrconnecturi( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is NostrConnectUriInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'NostrConnectUri' - ); - }, - }; -// FfiConverter for NostrConnectUriInterface -const FfiConverterTypeNostrConnectURI = new FfiConverterObject( - uniffiTypeNostrConnectUriObjectFactory -); - -export interface NostrDatabaseInterface { - count( - filter: FilterInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Delete all events that match the `Filter` - */ - delete_( - filter: FilterInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Get [`Event`] by [`EventId`] - */ - eventById( - eventId: EventIdInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - metadata( - publicKey: PublicKeyInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - query( - filter: FilterInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Save [`Event`] into store - */ - saveEvent( - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Wipe all data - */ - wipe(asyncOpts_?: { signal: AbortSignal }) /*throws*/ : Promise; -} - -export class NostrDatabase - extends UniffiAbstractObject - implements NostrDatabaseInterface -{ - readonly [uniffiTypeNameSymbol] = 'NostrDatabase'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNostrDatabaseObjectFactory.bless(pointer); - } - - /** - * LMDB backend - */ - public static lmdb(path: string): NostrDatabaseInterface /*throws*/ { - return FfiConverterTypeNostrDatabase.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrdatabase_lmdb( - FfiConverterString.lower(path), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public async count( - filter: FilterInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_count( - uniffiTypeNostrDatabaseObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u64, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u64, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u64, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_u64, - /*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Delete all events that match the `Filter` - */ - public async delete_( - filter: FilterInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_delete( - uniffiTypeNostrDatabaseObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Get [`Event`] by [`EventId`] - */ - public async eventById( - eventId: EventIdInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_event_by_id( - uniffiTypeNostrDatabaseObjectFactory.clonePointer(this), - FfiConverterTypeEventId.lower(eventId) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalTypeEvent.lift.bind( - FfiConverterOptionalTypeEvent - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async metadata( - publicKey: PublicKeyInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_metadata( - uniffiTypeNostrDatabaseObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalTypeMetadata.lift.bind( - FfiConverterOptionalTypeMetadata - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async query( - filter: FilterInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_query( - uniffiTypeNostrDatabaseObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvents.lift.bind(FfiConverterTypeEvents), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Save [`Event`] into store - */ - public async saveEvent( - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_save_event( - uniffiTypeNostrDatabaseObjectFactory.clonePointer(this), - FfiConverterTypeEvent.lower(event) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeSaveEventStatus.lift.bind( - FfiConverterTypeSaveEventStatus - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Wipe all data - */ - public async wipe(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrdatabase_wipe( - uniffiTypeNostrDatabaseObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNostrDatabaseObjectFactory.pointer(this); - uniffiTypeNostrDatabaseObjectFactory.freePointer(pointer); - uniffiTypeNostrDatabaseObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is NostrDatabase { - return uniffiTypeNostrDatabaseObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNostrDatabaseObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): NostrDatabaseInterface { - const instance = Object.create(NostrDatabase.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'NostrDatabase'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nostrdatabase_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: NostrDatabaseInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: NostrDatabaseInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrdatabase( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrdatabase( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is NostrDatabaseInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'NostrDatabase' - ); - }, - }; -// FfiConverter for NostrDatabaseInterface -const FfiConverterTypeNostrDatabase = new FfiConverterObject( - uniffiTypeNostrDatabaseObjectFactory -); - -export interface NostrSignerInterface { - backend(): SignerBackend; - getPublicKey(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise; - nip04Decrypt( - publicKey: PublicKeyInterface, - encryptedContent: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - nip04Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - nip44Decrypt( - publicKey: PublicKeyInterface, - payload: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - nip44Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - signEvent( - unsignedEvent: UnsignedEventInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; -} - -export class NostrSigner - extends UniffiAbstractObject - implements NostrSignerInterface -{ - readonly [uniffiTypeNameSymbol] = 'NostrSigner'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNostrSignerObjectFactory.bless(pointer); - } - - public static custom(custom: CustomNostrSigner): NostrSignerInterface { - return FfiConverterTypeNostrSigner.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_custom( - FfiConverterTypeCustomNostrSigner.lower(custom), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static keys(keys: KeysInterface): NostrSignerInterface { - return FfiConverterTypeNostrSigner.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_keys( - FfiConverterTypeKeys.lower(keys), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static nostrConnect( - connect: NostrConnectInterface - ): NostrSignerInterface { - return FfiConverterTypeNostrSigner.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrsigner_nostr_connect( - FfiConverterTypeNostrConnect.lower(connect), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public backend(): SignerBackend { - return FfiConverterTypeSignerBackend.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_backend( - uniffiTypeNostrSignerObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public async getPublicKey(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_get_public_key( - uniffiTypeNostrSignerObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypePublicKey.lift.bind( - FfiConverterTypePublicKey - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async nip04Decrypt( - publicKey: PublicKeyInterface, - encryptedContent: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_decrypt( - uniffiTypeNostrSignerObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(encryptedContent) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async nip04Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip04_encrypt( - uniffiTypeNostrSignerObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(content) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async nip44Decrypt( - publicKey: PublicKeyInterface, - payload: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_decrypt( - uniffiTypeNostrSignerObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(payload) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async nip44Encrypt( - publicKey: PublicKeyInterface, - content: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_nip44_encrypt( - uniffiTypeNostrSignerObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterString.lower(content) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async signEvent( - unsignedEvent: UnsignedEventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrsigner_sign_event( - uniffiTypeNostrSignerObjectFactory.clonePointer(this), - FfiConverterTypeUnsignedEvent.lower(unsignedEvent) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvent.lift.bind(FfiConverterTypeEvent), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeNostrSignerObjectFactory.pointer(this); - uniffiTypeNostrSignerObjectFactory.freePointer(pointer); - uniffiTypeNostrSignerObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is NostrSigner { - return uniffiTypeNostrSignerObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNostrSignerObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): NostrSignerInterface { - const instance = Object.create(NostrSigner.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'NostrSigner'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nostrsigner_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: NostrSignerInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: NostrSignerInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrsigner( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrsigner( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is NostrSignerInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'NostrSigner' - ); - }, - }; -// FfiConverter for NostrSignerInterface -const FfiConverterTypeNostrSigner = new FfiConverterObject( - uniffiTypeNostrSignerObjectFactory -); - -/** - * NWC options - */ -export interface NostrWalletConnectOptionsInterface { - /** - * Set connection mode - */ - connectionMode( - mode: ConnectionMode - ) /*throws*/ : NostrWalletConnectOptionsInterface; - /** - * Set NWC requests timeout (default: 10 secs) - */ - timeout(timeout: UniffiDuration): NostrWalletConnectOptionsInterface; -} - -/** - * NWC options - */ -export class NostrWalletConnectOptions - extends UniffiAbstractObject - implements NostrWalletConnectOptionsInterface -{ - readonly [uniffiTypeNameSymbol] = 'NostrWalletConnectOptions'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * New default NWC options - */ - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnectoptions_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNostrWalletConnectOptionsObjectFactory.bless(pointer); - } - - /** - * Set connection mode - */ - public connectionMode( - mode: ConnectionMode - ): NostrWalletConnectOptionsInterface /*throws*/ { - return FfiConverterTypeNostrWalletConnectOptions.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_connection_mode( - uniffiTypeNostrWalletConnectOptionsObjectFactory.clonePointer(this), - FfiConverterTypeConnectionMode.lower(mode), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set NWC requests timeout (default: 10 secs) - */ - public timeout(timeout: UniffiDuration): NostrWalletConnectOptionsInterface { - return FfiConverterTypeNostrWalletConnectOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnectoptions_timeout( - uniffiTypeNostrWalletConnectOptionsObjectFactory.clonePointer(this), - FfiConverterDuration.lower(timeout), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = - uniffiTypeNostrWalletConnectOptionsObjectFactory.pointer(this); - uniffiTypeNostrWalletConnectOptionsObjectFactory.freePointer(pointer); - uniffiTypeNostrWalletConnectOptionsObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is NostrWalletConnectOptions { - return uniffiTypeNostrWalletConnectOptionsObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNostrWalletConnectOptionsObjectFactory: UniffiObjectFactory = - { - create( - pointer: UnsafeMutableRawPointer - ): NostrWalletConnectOptionsInterface { - const instance = Object.create(NostrWalletConnectOptions.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'NostrWalletConnectOptions'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nostrwalletconnectoptions_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: NostrWalletConnectOptionsInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer( - obj: NostrWalletConnectOptionsInterface - ): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnectoptions( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnectoptions( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is NostrWalletConnectOptionsInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'NostrWalletConnectOptions' - ); - }, - }; -// FfiConverter for NostrWalletConnectOptionsInterface -const FfiConverterTypeNostrWalletConnectOptions = new FfiConverterObject( - uniffiTypeNostrWalletConnectOptionsObjectFactory -); - -/** - * Nostr Connect URI - */ -export interface NostrWalletConnectUriInterface { - /** - * A lightning address that clients can use to automatically setup the lud16 field on the user's profile if they have none configured. - */ - lud16(): string | undefined; - /** - * App Pubkey - */ - publicKey(): PublicKeyInterface; - /** - * URLs of the relays of choice where the `App` is connected and the `Signer` must send and listen for messages. - */ - relays(): Array; - /** - * 32-byte randomly generated hex encoded string - */ - secret(): SecretKeyInterface; -} - -/** - * Nostr Connect URI - */ -export class NostrWalletConnectUri - extends UniffiAbstractObject - implements NostrWalletConnectUriInterface -{ - readonly [uniffiTypeNameSymbol] = 'NostrWalletConnectUri'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * Create new Nostr Wallet Connect URI - */ - constructor( - publicKey: PublicKeyInterface, - relays: Array, - randomSecretKey: SecretKeyInterface, - lud16: string | undefined - ) /*throws*/ { - super(); - const pointer = uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_new( - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterArrayString.lower(relays), - FfiConverterTypeSecretKey.lower(randomSecretKey), - FfiConverterOptionalString.lower(lud16), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeNostrWalletConnectUriObjectFactory.bless(pointer); - } - - public static parse(uri: string): NostrWalletConnectUriInterface /*throws*/ { - return FfiConverterTypeNostrWalletConnectURI.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_nostrwalletconnecturi_parse( - FfiConverterString.lower(uri), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * A lightning address that clients can use to automatically setup the lud16 field on the user's profile if they have none configured. - */ - public lud16(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_lud16( - uniffiTypeNostrWalletConnectUriObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * App Pubkey - */ - public publicKey(): PublicKeyInterface { - return FfiConverterTypePublicKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_public_key( - uniffiTypeNostrWalletConnectUriObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * URLs of the relays of choice where the `App` is connected and the `Signer` must send and listen for messages. - */ - public relays(): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_relays( - uniffiTypeNostrWalletConnectUriObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * 32-byte randomly generated hex encoded string - */ - public secret(): SecretKeyInterface { - return FfiConverterTypeSecretKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_secret( - uniffiTypeNostrWalletConnectUriObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `NostrWalletConnectUriInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_debug( - uniffiTypeNostrWalletConnectUriObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `NostrWalletConnectUriInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `NostrWalletConnectUriInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `NostrWalletConnectUriInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: NostrWalletConnectUri): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_nostrwalletconnecturi_uniffi_trait_eq_eq( - uniffiTypeNostrWalletConnectUriObjectFactory.clonePointer(this), - FfiConverterTypeNostrWalletConnectURI.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = - uniffiTypeNostrWalletConnectUriObjectFactory.pointer(this); - uniffiTypeNostrWalletConnectUriObjectFactory.freePointer(pointer); - uniffiTypeNostrWalletConnectUriObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is NostrWalletConnectUri { - return uniffiTypeNostrWalletConnectUriObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeNostrWalletConnectUriObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): NostrWalletConnectUriInterface { - const instance = Object.create(NostrWalletConnectUri.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'NostrWalletConnectUri'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_nostrwalletconnecturi_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: NostrWalletConnectUriInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: NostrWalletConnectUriInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_nostrwalletconnecturi( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_nostrwalletconnecturi( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is NostrWalletConnectUriInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'NostrWalletConnectUri' - ); - }, - }; -// FfiConverter for NostrWalletConnectUriInterface -const FfiConverterTypeNostrWalletConnectURI = new FfiConverterObject( - uniffiTypeNostrWalletConnectUriObjectFactory -); - -export interface OptionsInterface { - /** - * Automatically start connection with relays (default: false) - * - * When set to `true`, there isn't the need of calling the connect methods. - */ - autoconnect(val: boolean): OptionsInterface; - /** - * Auto authenticate to relays (default: true) - * - * - */ - automaticAuthentication(enabled: boolean): OptionsInterface; - /** - * Connection - */ - connection(connection: ConnectionInterface): OptionsInterface; - /** - * Enable gossip model (default: false) - */ - gossip(enabled: boolean): OptionsInterface; - /** - * Set max latency (default: None) - * - * Relays with an avg. latency greater that this value will be skipped. - */ - maxAvgLatency(max: UniffiDuration): OptionsInterface; - /** - * Set custom relay limits - */ - relayLimits(limits: RelayLimitsInterface): OptionsInterface; -} - -export class Options extends UniffiAbstractObject implements OptionsInterface { - readonly [uniffiTypeNameSymbol] = 'Options'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_options_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeOptionsObjectFactory.bless(pointer); - } - - /** - * Automatically start connection with relays (default: false) - * - * When set to `true`, there isn't the need of calling the connect methods. - */ - public autoconnect(val: boolean): OptionsInterface { - return FfiConverterTypeOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_options_autoconnect( - uniffiTypeOptionsObjectFactory.clonePointer(this), - FfiConverterBool.lower(val), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Auto authenticate to relays (default: true) - * - * - */ - public automaticAuthentication(enabled: boolean): OptionsInterface { - return FfiConverterTypeOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_options_automatic_authentication( - uniffiTypeOptionsObjectFactory.clonePointer(this), - FfiConverterBool.lower(enabled), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Connection - */ - public connection(connection: ConnectionInterface): OptionsInterface { - return FfiConverterTypeOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_options_connection( - uniffiTypeOptionsObjectFactory.clonePointer(this), - FfiConverterTypeConnection.lower(connection), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Enable gossip model (default: false) - */ - public gossip(enabled: boolean): OptionsInterface { - return FfiConverterTypeOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_options_gossip( - uniffiTypeOptionsObjectFactory.clonePointer(this), - FfiConverterBool.lower(enabled), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set max latency (default: None) - * - * Relays with an avg. latency greater that this value will be skipped. - */ - public maxAvgLatency(max: UniffiDuration): OptionsInterface { - return FfiConverterTypeOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_options_max_avg_latency( - uniffiTypeOptionsObjectFactory.clonePointer(this), - FfiConverterDuration.lower(max), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set custom relay limits - */ - public relayLimits(limits: RelayLimitsInterface): OptionsInterface { - return FfiConverterTypeOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_options_relay_limits( - uniffiTypeOptionsObjectFactory.clonePointer(this), - FfiConverterTypeRelayLimits.lower(limits), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeOptionsObjectFactory.pointer(this); - uniffiTypeOptionsObjectFactory.freePointer(pointer); - uniffiTypeOptionsObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Options { - return uniffiTypeOptionsObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeOptionsObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): OptionsInterface { - const instance = Object.create(Options.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Options'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_options_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: OptionsInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: OptionsInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_options( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_options( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is OptionsInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Options' - ); - }, -}; -// FfiConverter for OptionsInterface -const FfiConverterTypeOptions = new FfiConverterObject( - uniffiTypeOptionsObjectFactory -); - -export interface PublicKeyInterface { - toBech32() /*throws*/ : string; - toHex(): string; - toNostrUri() /*throws*/ : string; -} - -export class PublicKey - extends UniffiAbstractObject - implements PublicKeyInterface -{ - readonly [uniffiTypeNameSymbol] = 'PublicKey'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypePublicKeyObjectFactory.bless(pointer); - } - - public static fromBytes(bytes: ArrayBuffer): PublicKeyInterface /*throws*/ { - return FfiConverterTypePublicKey.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_publickey_from_bytes( - FfiConverterArrayBuffer.lower(bytes), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Try to parse public key from `hex`, `bech32` or [NIP21](https://github.com/nostr-protocol/nips/blob/master/21.md) uri - */ - public static parse(publicKey: string): PublicKeyInterface /*throws*/ { - return FfiConverterTypePublicKey.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_publickey_parse( - FfiConverterString.lower(publicKey), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toBech32(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_bech32( - uniffiTypePublicKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toHex(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_hex( - uniffiTypePublicKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toNostrUri(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_to_nostr_uri( - uniffiTypePublicKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `PublicKeyInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_debug( - uniffiTypePublicKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `PublicKeyInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `PublicKeyInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `PublicKeyInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: PublicKey): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_eq_eq( - uniffiTypePublicKeyObjectFactory.clonePointer(this), - FfiConverterTypePublicKey.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `PublicKeyInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_publickey_uniffi_trait_hash( - uniffiTypePublicKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypePublicKeyObjectFactory.pointer(this); - uniffiTypePublicKeyObjectFactory.freePointer(pointer); - uniffiTypePublicKeyObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is PublicKey { - return uniffiTypePublicKeyObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypePublicKeyObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): PublicKeyInterface { - const instance = Object.create(PublicKey.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'PublicKey'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_publickey_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: PublicKeyInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: PublicKeyInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_publickey( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_publickey( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is PublicKeyInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'PublicKey' - ); - }, - }; -// FfiConverter for PublicKeyInterface -const FfiConverterTypePublicKey = new FfiConverterObject( - uniffiTypePublicKeyObjectFactory -); - -export interface RelayInterface { - /** - * Send multiple `ClientMessage` at once - */ - batchMsg(msgs: Array) /*throws*/ : void; - /** - * Connect to the relay - * - * # Overview - * - * If the relay’s status is not [`RelayStatus::Initialized`] or [`RelayStatus::Terminated`], - * this method returns immediately without doing anything. - * Otherwise, the connection task will be spawned, which will attempt to connect to relay. - * - * This method returns immediately and doesn't provide any information on if the connection was successful or not. - * - * # Automatic reconnection - * - * By default, in case of disconnection, the connection task will automatically attempt to reconnect. - * This behavior can be disabled by changing [`RelayOptions::reconnect`] option. - */ - connect(): void; - /** - * Get connection mode - */ - connectionMode(): ConnectionMode; - /** - * Count events - */ - countEvents( - filter: FilterInterface, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Disconnect from relay and set status to 'Terminated' - */ - disconnect(): void; - document(asyncOpts_?: { - signal: AbortSignal; - }): Promise; - /** - * Fetch events - */ - fetchEvents( - filter: FilterInterface, - timeout: UniffiDuration, - policy: ReqExitPolicy, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Check if `Relay` is connected - */ - isConnected(): boolean; - opts(): RelayOptionsInterface; - /** - * Get number of messages in queue - */ - queue(): /*u64*/ bigint; - /** - * Send event and wait for `OK` relay msg - */ - sendEvent( - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Send msg to relay - */ - sendMsg(msg: ClientMessageInterface) /*throws*/ : void; - stats(): RelayConnectionStatsInterface; - /** - * Get status - */ - status(): RelayStatus; - /** - * Subscribe to filters - * - * Internally generate a new random subscription ID. Check `subscribe_with_id` method to use a custom subscription ID. - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeOptions`. - * - * Note: auto-closing subscriptions aren't saved in subscriptions map! - */ - subscribe( - filter: FilterInterface, - opts: SubscribeOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Subscribe with custom subscription ID - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeOptions`. - * - * Note: auto-closing subscriptions aren't saved in subscriptions map! - */ - subscribeWithId( - id: string, - filter: FilterInterface, - opts: SubscribeOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Get filters by subscription ID - */ - subscription( - id: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise; - subscriptions(asyncOpts_?: { - signal: AbortSignal; - }): Promise>; - /** - * Sync events with relays (negentropy reconciliation) - */ - sync( - filter: FilterInterface, - opts: SyncOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Sync events with relays (negentropy reconciliation) - */ - syncWithItems( - filter: FilterInterface, - items: Array, - opts: SyncOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Try to establish a connection with the relay. - * - * # Overview - * - * If the relay’s status is not [`RelayStatus::Initialized`] or [`RelayStatus::Terminated`], - * this method returns immediately without doing anything. - * Otherwise, attempts to establish a connection without spawning the connection task if it fails. - * This means that if the connection fails, no automatic retries are scheduled. - * Use [`Relay::connect`] if you want to immediately spawn a connection task, - * regardless of whether the initial connection succeeds. - * - * Returns an error if the connection fails. - * - * # Automatic reconnection - * - * By default, in case of disconnection (after a first successful connection), - * the connection task will automatically attempt to reconnect. - * This behavior can be disabled by changing [`RelayOptions::reconnect`] option. - */ - tryConnect( - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Unsubscribe - */ - unsubscribe( - id: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; - /** - * Unsubscribe from all subscriptions - */ - unsubscribeAll(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise; - /** - * Get relay url - */ - url(): string; -} - -export class Relay extends UniffiAbstractObject implements RelayInterface { - readonly [uniffiTypeNameSymbol] = 'Relay'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeRelayObjectFactory.bless(pointer); - } - - /** - * Send multiple `ClientMessage` at once - */ - public batchMsg(msgs: Array): void /*throws*/ { - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_batch_msg( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterArrayTypeClientMessage.lower(msgs), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - } - - /** - * Connect to the relay - * - * # Overview - * - * If the relay’s status is not [`RelayStatus::Initialized`] or [`RelayStatus::Terminated`], - * this method returns immediately without doing anything. - * Otherwise, the connection task will be spawned, which will attempt to connect to relay. - * - * This method returns immediately and doesn't provide any information on if the connection was successful or not. - * - * # Automatic reconnection - * - * By default, in case of disconnection, the connection task will automatically attempt to reconnect. - * This behavior can be disabled by changing [`RelayOptions::reconnect`] option. - */ - public connect(): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_connect( - uniffiTypeRelayObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - } - - /** - * Get connection mode - */ - public connectionMode(): ConnectionMode { - return FfiConverterTypeConnectionMode.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_connection_mode( - uniffiTypeRelayObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Count events - */ - public async countEvents( - filter: FilterInterface, - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_count_events( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter), - FfiConverterDuration.lower(timeout) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_u64, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_u64, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_u64, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_u64, - /*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Disconnect from relay and set status to 'Terminated' - */ - public disconnect(): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_disconnect( - uniffiTypeRelayObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - } - - public async document(asyncOpts_?: { - signal: AbortSignal; - }): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_document( - uniffiTypeRelayObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeRelayInformationDocument.lift.bind( - FfiConverterTypeRelayInformationDocument - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Fetch events - */ - public async fetchEvents( - filter: FilterInterface, - timeout: UniffiDuration, - policy: ReqExitPolicy, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_fetch_events( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter), - FfiConverterDuration.lower(timeout), - FfiConverterTypeReqExitPolicy.lower(policy) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvents.lift.bind(FfiConverterTypeEvents), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Check if `Relay` is connected - */ - public isConnected(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_is_connected( - uniffiTypeRelayObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public opts(): RelayOptionsInterface { - return FfiConverterTypeRelayOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_opts( - uniffiTypeRelayObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get number of messages in queue - */ - public queue(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_queue( - uniffiTypeRelayObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Send event and wait for `OK` relay msg - */ - public async sendEvent( - event: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_send_event( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterTypeEvent.lower(event) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEventId.lift.bind( - FfiConverterTypeEventId - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Send msg to relay - */ - public sendMsg(msg: ClientMessageInterface): void /*throws*/ { - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_send_msg( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterTypeClientMessage.lower(msg), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - } - - public stats(): RelayConnectionStatsInterface { - return FfiConverterTypeRelayConnectionStats.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_stats( - uniffiTypeRelayObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get status - */ - public status(): RelayStatus { - return FfiConverterTypeRelayStatus.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_status( - uniffiTypeRelayObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Subscribe to filters - * - * Internally generate a new random subscription ID. Check `subscribe_with_id` method to use a custom subscription ID. - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeOptions`. - * - * Note: auto-closing subscriptions aren't saved in subscriptions map! - */ - public async subscribe( - filter: FilterInterface, - opts: SubscribeOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter), - FfiConverterTypeSubscribeOptions.lower(opts) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Subscribe with custom subscription ID - * - * ### Auto-closing subscription - * - * It's possible to automatically close a subscription by configuring the `SubscribeOptions`. - * - * Note: auto-closing subscriptions aren't saved in subscriptions map! - */ - public async subscribeWithId( - id: string, - filter: FilterInterface, - opts: SubscribeOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscribe_with_id( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterString.lower(id), - FfiConverterTypeFilter.lower(filter), - FfiConverterTypeSubscribeOptions.lower(opts) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Get filters by subscription ID - */ - public async subscription( - id: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscription( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterString.lower(id) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalTypeFilter.lift.bind( - FfiConverterOptionalTypeFilter - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async subscriptions(asyncOpts_?: { - signal: AbortSignal; - }): Promise> { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_subscriptions( - uniffiTypeRelayObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterMapStringTypeFilter.lift.bind( - FfiConverterMapStringTypeFilter - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Sync events with relays (negentropy reconciliation) - */ - public async sync( - filter: FilterInterface, - opts: SyncOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_sync( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter), - FfiConverterTypeSyncOptions.lower(opts) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeReconciliation.lift.bind( - FfiConverterTypeReconciliation - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Sync events with relays (negentropy reconciliation) - */ - public async syncWithItems( - filter: FilterInterface, - items: Array, - opts: SyncOptionsInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_sync_with_items( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterTypeFilter.lower(filter), - FfiConverterArrayTypeNegentropyItem.lower(items), - FfiConverterTypeSyncOptions.lower(opts) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeReconciliation.lift.bind( - FfiConverterTypeReconciliation - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Try to establish a connection with the relay. - * - * # Overview - * - * If the relay’s status is not [`RelayStatus::Initialized`] or [`RelayStatus::Terminated`], - * this method returns immediately without doing anything. - * Otherwise, attempts to establish a connection without spawning the connection task if it fails. - * This means that if the connection fails, no automatic retries are scheduled. - * Use [`Relay::connect`] if you want to immediately spawn a connection task, - * regardless of whether the initial connection succeeds. - * - * Returns an error if the connection fails. - * - * # Automatic reconnection - * - * By default, in case of disconnection (after a first successful connection), - * the connection task will automatically attempt to reconnect. - * This behavior can be disabled by changing [`RelayOptions::reconnect`] option. - */ - public async tryConnect( - timeout: UniffiDuration, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_try_connect( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterDuration.lower(timeout) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Unsubscribe - */ - public async unsubscribe( - id: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe( - uniffiTypeRelayObjectFactory.clonePointer(this), - FfiConverterString.lower(id) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Unsubscribe from all subscriptions - */ - public async unsubscribeAll(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_unsubscribe_all( - uniffiTypeRelayObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Get relay url - */ - public url(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relay_url( - uniffiTypeRelayObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeRelayObjectFactory.pointer(this); - uniffiTypeRelayObjectFactory.freePointer(pointer); - uniffiTypeRelayObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Relay { - return uniffiTypeRelayObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeRelayObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): RelayInterface { - const instance = Object.create(Relay.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Relay'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_relay_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: RelayInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: RelayInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_relay( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_relay( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is RelayInterface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Relay'; - }, -}; -// FfiConverter for RelayInterface -const FfiConverterTypeRelay = new FfiConverterObject( - uniffiTypeRelayObjectFactory -); - -export interface RelayConnectionStatsInterface { - /** - * The number of times a connection has been attempted - */ - attempts(): /*u64*/ bigint; - /** - * Bytes received - */ - bytesReceived(): /*u64*/ bigint; - /** - * Bytes sent - */ - bytesSent(): /*u64*/ bigint; - /** - * Get UNIX timestamp of the last connection - */ - connectedAt(): TimestampInterface; - /** - * Get UNIX timestamp of the first connection - */ - firstConnectionTimestamp(): TimestampInterface; - latency(): UniffiDuration | undefined; - /** - * The number of times a connection has been successfully established - */ - success(): /*u64*/ bigint; - /** - * Success rate - */ - successRate(): /*f64*/ number; -} - -export class RelayConnectionStats - extends UniffiAbstractObject - implements RelayConnectionStatsInterface -{ - readonly [uniffiTypeNameSymbol] = 'RelayConnectionStats'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeRelayConnectionStatsObjectFactory.bless(pointer); - } - - /** - * The number of times a connection has been attempted - */ - public attempts(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_attempts( - uniffiTypeRelayConnectionStatsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Bytes received - */ - public bytesReceived(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_received( - uniffiTypeRelayConnectionStatsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Bytes sent - */ - public bytesSent(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_bytes_sent( - uniffiTypeRelayConnectionStatsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get UNIX timestamp of the last connection - */ - public connectedAt(): TimestampInterface { - return FfiConverterTypeTimestamp.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_connected_at( - uniffiTypeRelayConnectionStatsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get UNIX timestamp of the first connection - */ - public firstConnectionTimestamp(): TimestampInterface { - return FfiConverterTypeTimestamp.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_first_connection_timestamp( - uniffiTypeRelayConnectionStatsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public latency(): UniffiDuration | undefined { - return FfiConverterOptionalDuration.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_latency( - uniffiTypeRelayConnectionStatsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * The number of times a connection has been successfully established - */ - public success(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success( - uniffiTypeRelayConnectionStatsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Success rate - */ - public successRate(): /*f64*/ number { - return FfiConverterFloat64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayconnectionstats_success_rate( - uniffiTypeRelayConnectionStatsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeRelayConnectionStatsObjectFactory.pointer(this); - uniffiTypeRelayConnectionStatsObjectFactory.freePointer(pointer); - uniffiTypeRelayConnectionStatsObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is RelayConnectionStats { - return uniffiTypeRelayConnectionStatsObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeRelayConnectionStatsObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): RelayConnectionStatsInterface { - const instance = Object.create(RelayConnectionStats.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'RelayConnectionStats'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_relayconnectionstats_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: RelayConnectionStatsInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: RelayConnectionStatsInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayconnectionstats( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_relayconnectionstats( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is RelayConnectionStatsInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'RelayConnectionStats' - ); - }, - }; -// FfiConverter for RelayConnectionStatsInterface -const FfiConverterTypeRelayConnectionStats = new FfiConverterObject( - uniffiTypeRelayConnectionStatsObjectFactory -); - -export interface RelayInformationDocumentInterface { - contact(): string | undefined; - description(): string | undefined; - fees(): FeeSchedules | undefined; - icon(): string | undefined; - languageTags(): Array; - limitation(): Limitation | undefined; - name(): string | undefined; - paymentsUrl(): string | undefined; - postingPolicy(): string | undefined; - pubkey(): string | undefined; - relayCountries(): Array; - retention(): Array; - software(): string | undefined; - supportedNips(): Array | undefined; - tags(): Array; - version(): string | undefined; -} - -export class RelayInformationDocument - extends UniffiAbstractObject - implements RelayInformationDocumentInterface -{ - readonly [uniffiTypeNameSymbol] = 'RelayInformationDocument'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * Create new empty [`RelayInformationDocument`] - */ - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relayinformationdocument_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeRelayInformationDocumentObjectFactory.bless(pointer); - } - - public contact(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_contact( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public description(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_description( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public fees(): FeeSchedules | undefined { - return FfiConverterOptionalTypeFeeSchedules.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_fees( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public icon(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_icon( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public languageTags(): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_language_tags( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public limitation(): Limitation | undefined { - return FfiConverterOptionalTypeLimitation.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_limitation( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public name(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_name( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public paymentsUrl(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_payments_url( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public postingPolicy(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_posting_policy( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public pubkey(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_pubkey( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public relayCountries(): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_relay_countries( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public retention(): Array { - return FfiConverterArrayTypeRetention.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_retention( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public software(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_software( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public supportedNips(): Array | undefined { - return FfiConverterOptionalArrayUInt16.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_supported_nips( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public tags(): Array { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_tags( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public version(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_version( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `RelayInformationDocumentInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_debug( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `RelayInformationDocumentInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `RelayInformationDocumentInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `RelayInformationDocumentInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: RelayInformationDocument): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_eq_eq( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - FfiConverterTypeRelayInformationDocument.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `RelayInformationDocumentInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayinformationdocument_uniffi_trait_hash( - uniffiTypeRelayInformationDocumentObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = - uniffiTypeRelayInformationDocumentObjectFactory.pointer(this); - uniffiTypeRelayInformationDocumentObjectFactory.freePointer(pointer); - uniffiTypeRelayInformationDocumentObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is RelayInformationDocument { - return uniffiTypeRelayInformationDocumentObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeRelayInformationDocumentObjectFactory: UniffiObjectFactory = - { - create( - pointer: UnsafeMutableRawPointer - ): RelayInformationDocumentInterface { - const instance = Object.create(RelayInformationDocument.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'RelayInformationDocument'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_relayinformationdocument_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: RelayInformationDocumentInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer( - obj: RelayInformationDocumentInterface - ): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayinformationdocument( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_relayinformationdocument( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is RelayInformationDocumentInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'RelayInformationDocument' - ); - }, - }; -// FfiConverter for RelayInformationDocumentInterface -const FfiConverterTypeRelayInformationDocument = new FfiConverterObject( - uniffiTypeRelayInformationDocumentObjectFactory -); - -/** - * Relay Limits - */ -export interface RelayLimitsInterface { - /** - * Maximum number of tags allowed (default: 2_000) - */ - eventMaxNumTags(maxNumTags: /*u16*/ number | undefined): RelayLimitsInterface; - /** - * Maximum number of tags allowed per kind - */ - eventMaxNumTagsPerKind( - kind: KindInterface, - maxNumTags: /*u16*/ number | undefined - ): RelayLimitsInterface; - /** - * Maximum size of normalised JSON, in bytes (default: 70_000) - */ - eventMaxSize(maxSize: /*u32*/ number | undefined): RelayLimitsInterface; - /** - * Maximum size per kind of normalised JSON, in bytes. - */ - eventMaxSizePerKind( - kind: KindInterface, - maxSize: /*u32*/ number | undefined - ): RelayLimitsInterface; - /** - * Maximum size of normalized JSON, in bytes (default: 5MB) - */ - messageMaxSize(maxSize: /*u32*/ number | undefined): RelayLimitsInterface; -} - -/** - * Relay Limits - */ -export class RelayLimits - extends UniffiAbstractObject - implements RelayLimitsInterface -{ - readonly [uniffiTypeNameSymbol] = 'RelayLimits'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * Construct with default limits - */ - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeRelayLimitsObjectFactory.bless(pointer); - } - - /** - * Disable all limits - */ - public static disable(): RelayLimitsInterface { - return FfiConverterTypeRelayLimits.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaylimits_disable( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Maximum number of tags allowed (default: 2_000) - */ - public eventMaxNumTags( - maxNumTags: /*u16*/ number | undefined - ): RelayLimitsInterface { - return FfiConverterTypeRelayLimits.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags( - uniffiTypeRelayLimitsObjectFactory.clonePointer(this), - FfiConverterOptionalUInt16.lower(maxNumTags), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Maximum number of tags allowed per kind - */ - public eventMaxNumTagsPerKind( - kind: KindInterface, - maxNumTags: /*u16*/ number | undefined - ): RelayLimitsInterface { - return FfiConverterTypeRelayLimits.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_num_tags_per_kind( - uniffiTypeRelayLimitsObjectFactory.clonePointer(this), - FfiConverterTypeKind.lower(kind), - FfiConverterOptionalUInt16.lower(maxNumTags), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Maximum size of normalised JSON, in bytes (default: 70_000) - */ - public eventMaxSize( - maxSize: /*u32*/ number | undefined - ): RelayLimitsInterface { - return FfiConverterTypeRelayLimits.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size( - uniffiTypeRelayLimitsObjectFactory.clonePointer(this), - FfiConverterOptionalUInt32.lower(maxSize), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Maximum size per kind of normalised JSON, in bytes. - */ - public eventMaxSizePerKind( - kind: KindInterface, - maxSize: /*u32*/ number | undefined - ): RelayLimitsInterface { - return FfiConverterTypeRelayLimits.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_event_max_size_per_kind( - uniffiTypeRelayLimitsObjectFactory.clonePointer(this), - FfiConverterTypeKind.lower(kind), - FfiConverterOptionalUInt32.lower(maxSize), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Maximum size of normalized JSON, in bytes (default: 5MB) - */ - public messageMaxSize( - maxSize: /*u32*/ number | undefined - ): RelayLimitsInterface { - return FfiConverterTypeRelayLimits.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_message_max_size( - uniffiTypeRelayLimitsObjectFactory.clonePointer(this), - FfiConverterOptionalUInt32.lower(maxSize), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `RelayLimitsInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_debug( - uniffiTypeRelayLimitsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `RelayLimitsInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `RelayLimitsInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `RelayLimitsInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: RelayLimits): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaylimits_uniffi_trait_eq_eq( - uniffiTypeRelayLimitsObjectFactory.clonePointer(this), - FfiConverterTypeRelayLimits.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeRelayLimitsObjectFactory.pointer(this); - uniffiTypeRelayLimitsObjectFactory.freePointer(pointer); - uniffiTypeRelayLimitsObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is RelayLimits { - return uniffiTypeRelayLimitsObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeRelayLimitsObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): RelayLimitsInterface { - const instance = Object.create(RelayLimits.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'RelayLimits'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_relaylimits_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: RelayLimitsInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: RelayLimitsInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_relaylimits( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_relaylimits( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is RelayLimitsInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'RelayLimits' - ); - }, - }; -// FfiConverter for RelayLimitsInterface -const FfiConverterTypeRelayLimits = new FfiConverterObject( - uniffiTypeRelayLimitsObjectFactory -); - -export interface RelayMessageInterface { - /** - * Clone `RelayMessage` and convert it to `RelayMessageEnum` - */ - asEnum(): RelayMessageEnum; - asJson() /*throws*/ : string; -} - -export class RelayMessage - extends UniffiAbstractObject - implements RelayMessageInterface -{ - readonly [uniffiTypeNameSymbol] = 'RelayMessage'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeRelayMessageObjectFactory.bless(pointer); - } - - /** - * Create new `AUTH` message - */ - public static auth(challenge: string): RelayMessageInterface { - return FfiConverterTypeRelayMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_auth( - FfiConverterString.lower(challenge), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new `CLOSED` message - */ - public static closed( - subscriptionId: string, - message: string - ): RelayMessageInterface { - return FfiConverterTypeRelayMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_closed( - FfiConverterString.lower(subscriptionId), - FfiConverterString.lower(message), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new `EVENT` message - */ - public static count( - subscriptionId: string, - count: /*f64*/ number - ): RelayMessageInterface { - return FfiConverterTypeRelayMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_count( - FfiConverterString.lower(subscriptionId), - FfiConverterFloat64.lower(count), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new `EOSE` message - */ - public static eose(subscriptionId: string): RelayMessageInterface { - return FfiConverterTypeRelayMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_eose( - FfiConverterString.lower(subscriptionId), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new `EVENT` message - */ - public static event( - subscriptionId: string, - event: EventInterface - ): RelayMessageInterface { - return FfiConverterTypeRelayMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_event( - FfiConverterString.lower(subscriptionId), - FfiConverterTypeEvent.lower(event), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Convert `RelayMessageEnum` to `RelayMessage` - */ - public static fromEnum(e: RelayMessageEnum): RelayMessageInterface { - return FfiConverterTypeRelayMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_enum( - FfiConverterTypeRelayMessageEnum.lower(e), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Deserialize `RelayMessage` from JSON string - * - * **This method NOT verify the event signature!** - */ - public static fromJson(json: string): RelayMessageInterface /*throws*/ { - return FfiConverterTypeRelayMessage.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_from_json( - FfiConverterString.lower(json), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new `NOTICE` message - */ - public static notice(message: string): RelayMessageInterface { - return FfiConverterTypeRelayMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_notice( - FfiConverterString.lower(message), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Create new `OK` message - */ - public static ok( - eventId: EventIdInterface, - status: boolean, - message: string - ): RelayMessageInterface { - return FfiConverterTypeRelayMessage.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relaymessage_ok( - FfiConverterTypeEventId.lower(eventId), - FfiConverterBool.lower(status), - FfiConverterString.lower(message), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Clone `RelayMessage` and convert it to `RelayMessageEnum` - */ - public asEnum(): RelayMessageEnum { - return FfiConverterTypeRelayMessageEnum.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_enum( - uniffiTypeRelayMessageObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_as_json( - uniffiTypeRelayMessageObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `RelayMessageInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_debug( - uniffiTypeRelayMessageObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `RelayMessageInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `RelayMessageInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `RelayMessageInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: RelayMessage): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_eq_eq( - uniffiTypeRelayMessageObjectFactory.clonePointer(this), - FfiConverterTypeRelayMessage.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `RelayMessageInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relaymessage_uniffi_trait_hash( - uniffiTypeRelayMessageObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeRelayMessageObjectFactory.pointer(this); - uniffiTypeRelayMessageObjectFactory.freePointer(pointer); - uniffiTypeRelayMessageObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is RelayMessage { - return uniffiTypeRelayMessageObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeRelayMessageObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): RelayMessageInterface { - const instance = Object.create(RelayMessage.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'RelayMessage'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_relaymessage_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: RelayMessageInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: RelayMessageInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_relaymessage( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_relaymessage( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is RelayMessageInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'RelayMessage' - ); - }, - }; -// FfiConverter for RelayMessageInterface -const FfiConverterTypeRelayMessage = new FfiConverterObject( - uniffiTypeRelayMessageObjectFactory -); - -/** - * `Relay` options - */ -export interface RelayOptionsInterface { - /** - * Automatically adjust retry interval based on success/attempts (default: true) - */ - adjustRetryInterval(adjustRetryInterval: boolean): RelayOptionsInterface; - /** - * Set connection mode - */ - connectionMode(mode: ConnectionMode) /*throws*/ : RelayOptionsInterface; - /** - * Set custom limits - */ - limits(limits: RelayLimitsInterface): RelayOptionsInterface; - /** - * Set max latency (default: None) - * - * Relay with an avg. latency greater that this value will be skipped. - */ - maxAvgLatency(max: UniffiDuration | undefined): RelayOptionsInterface; - /** - * Set ping flag - */ - ping(ping: boolean): RelayOptionsInterface; - /** - * Set read flag - */ - read(read: boolean): RelayOptionsInterface; - /** - * Enable/disable auto reconnection (default: true) - */ - reconnect(reconnect: boolean): RelayOptionsInterface; - /** - * Retry interval (default: 10 sec) - * - * Minimum allowed value is `5 secs` - */ - retryInterval(interval: UniffiDuration): RelayOptionsInterface; - /** - * Set write flag - */ - write(write: boolean): RelayOptionsInterface; -} - -/** - * `Relay` options - */ -export class RelayOptions - extends UniffiAbstractObject - implements RelayOptionsInterface -{ - readonly [uniffiTypeNameSymbol] = 'RelayOptions'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * New default relay options - */ - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_relayoptions_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeRelayOptionsObjectFactory.bless(pointer); - } - - /** - * Automatically adjust retry interval based on success/attempts (default: true) - */ - public adjustRetryInterval( - adjustRetryInterval: boolean - ): RelayOptionsInterface { - return FfiConverterTypeRelayOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_adjust_retry_interval( - uniffiTypeRelayOptionsObjectFactory.clonePointer(this), - FfiConverterBool.lower(adjustRetryInterval), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set connection mode - */ - public connectionMode( - mode: ConnectionMode - ): RelayOptionsInterface /*throws*/ { - return FfiConverterTypeRelayOptions.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_connection_mode( - uniffiTypeRelayOptionsObjectFactory.clonePointer(this), - FfiConverterTypeConnectionMode.lower(mode), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set custom limits - */ - public limits(limits: RelayLimitsInterface): RelayOptionsInterface { - return FfiConverterTypeRelayOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_limits( - uniffiTypeRelayOptionsObjectFactory.clonePointer(this), - FfiConverterTypeRelayLimits.lower(limits), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set max latency (default: None) - * - * Relay with an avg. latency greater that this value will be skipped. - */ - public maxAvgLatency(max: UniffiDuration | undefined): RelayOptionsInterface { - return FfiConverterTypeRelayOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_max_avg_latency( - uniffiTypeRelayOptionsObjectFactory.clonePointer(this), - FfiConverterOptionalDuration.lower(max), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set ping flag - */ - public ping(ping: boolean): RelayOptionsInterface { - return FfiConverterTypeRelayOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_ping( - uniffiTypeRelayOptionsObjectFactory.clonePointer(this), - FfiConverterBool.lower(ping), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set read flag - */ - public read(read: boolean): RelayOptionsInterface { - return FfiConverterTypeRelayOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_read( - uniffiTypeRelayOptionsObjectFactory.clonePointer(this), - FfiConverterBool.lower(read), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Enable/disable auto reconnection (default: true) - */ - public reconnect(reconnect: boolean): RelayOptionsInterface { - return FfiConverterTypeRelayOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_reconnect( - uniffiTypeRelayOptionsObjectFactory.clonePointer(this), - FfiConverterBool.lower(reconnect), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Retry interval (default: 10 sec) - * - * Minimum allowed value is `5 secs` - */ - public retryInterval(interval: UniffiDuration): RelayOptionsInterface { - return FfiConverterTypeRelayOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_retry_interval( - uniffiTypeRelayOptionsObjectFactory.clonePointer(this), - FfiConverterDuration.lower(interval), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set write flag - */ - public write(write: boolean): RelayOptionsInterface { - return FfiConverterTypeRelayOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_relayoptions_write( - uniffiTypeRelayOptionsObjectFactory.clonePointer(this), - FfiConverterBool.lower(write), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeRelayOptionsObjectFactory.pointer(this); - uniffiTypeRelayOptionsObjectFactory.freePointer(pointer); - uniffiTypeRelayOptionsObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is RelayOptions { - return uniffiTypeRelayOptionsObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeRelayOptionsObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): RelayOptionsInterface { - const instance = Object.create(RelayOptions.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'RelayOptions'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_relayoptions_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: RelayOptionsInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: RelayOptionsInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_relayoptions( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_relayoptions( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is RelayOptionsInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'RelayOptions' - ); - }, - }; -// FfiConverter for RelayOptionsInterface -const FfiConverterTypeRelayOptions = new FfiConverterObject( - uniffiTypeRelayOptionsObjectFactory -); - -/** - * NIP47 Request - */ -export interface RequestInterface { - method(): Method; - params(): RequestParams; -} - -/** - * NIP47 Request - */ -export class Request extends UniffiAbstractObject implements RequestInterface { - readonly [uniffiTypeNameSymbol] = 'Request'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor(method: Method, params: RequestParams) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_request_new( - FfiConverterTypeMethod.lower(method), - FfiConverterTypeRequestParams.lower(params), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeRequestObjectFactory.bless(pointer); - } - - public static parse(json: string): RequestInterface /*throws*/ { - return FfiConverterTypeRequest.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_request_parse( - FfiConverterString.lower(json), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public method(): Method { - return FfiConverterTypeMethod.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_request_method( - uniffiTypeRequestObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public params(): RequestParams { - return FfiConverterTypeRequestParams.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_request_params( - uniffiTypeRequestObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `RequestInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_debug( - uniffiTypeRequestObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `RequestInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `RequestInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `RequestInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Request): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_eq_eq( - uniffiTypeRequestObjectFactory.clonePointer(this), - FfiConverterTypeRequest.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `RequestInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_request_uniffi_trait_hash( - uniffiTypeRequestObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeRequestObjectFactory.pointer(this); - uniffiTypeRequestObjectFactory.freePointer(pointer); - uniffiTypeRequestObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Request { - return uniffiTypeRequestObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeRequestObjectFactory: UniffiObjectFactory = { - create(pointer: UnsafeMutableRawPointer): RequestInterface { - const instance = Object.create(Request.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Request'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_request_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: RequestInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: RequestInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_request( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_request( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is RequestInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Request' - ); - }, -}; -// FfiConverter for RequestInterface -const FfiConverterTypeRequest = new FfiConverterObject( - uniffiTypeRequestObjectFactory -); - -/** - * NIP47 Response - */ -export interface ResponseInterface {} - -/** - * NIP47 Response - */ -export class Response - extends UniffiAbstractObject - implements ResponseInterface -{ - readonly [uniffiTypeNameSymbol] = 'Response'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeResponseObjectFactory.bless(pointer); - } - - /** - * Calls into the `Debug` string representation of `ResponseInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_debug( - uniffiTypeResponseObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `ResponseInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `ResponseInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `ResponseInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Response): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_response_uniffi_trait_eq_eq( - uniffiTypeResponseObjectFactory.clonePointer(this), - FfiConverterTypeResponse.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeResponseObjectFactory.pointer(this); - uniffiTypeResponseObjectFactory.freePointer(pointer); - uniffiTypeResponseObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Response { - return uniffiTypeResponseObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeResponseObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): ResponseInterface { - const instance = Object.create(Response.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Response'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_response_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: ResponseInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: ResponseInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_response( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_response( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is ResponseInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Response' - ); - }, - }; -// FfiConverter for ResponseInterface -const FfiConverterTypeResponse = new FfiConverterObject( - uniffiTypeResponseObjectFactory -); - -export interface SecretKeyInterface { - /** - * Encrypt `SecretKey` - * - * By default, `LOG_N` is set to `16` and `KeySecurity` to `Unknown`. - * To use custom values check `EncryptedSecretKey` constructor. - */ - encrypt(password: string) /*throws*/ : EncryptedSecretKeyInterface; - toBech32() /*throws*/ : string; - toHex(): string; -} - -export class SecretKey - extends UniffiAbstractObject - implements SecretKeyInterface -{ - readonly [uniffiTypeNameSymbol] = 'SecretKey'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeSecretKeyObjectFactory.bless(pointer); - } - - public static fromBytes(bytes: ArrayBuffer): SecretKeyInterface /*throws*/ { - return FfiConverterTypeSecretKey.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_from_bytes( - FfiConverterArrayBuffer.lower(bytes), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Generate random secret key - */ - public static generate(): SecretKeyInterface { - return FfiConverterTypeSecretKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_generate( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Try to parse secret key from `hex` or `bech32` - */ - public static parse(secretKey: string): SecretKeyInterface /*throws*/ { - return FfiConverterTypeSecretKey.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_secretkey_parse( - FfiConverterString.lower(secretKey), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Encrypt `SecretKey` - * - * By default, `LOG_N` is set to `16` and `KeySecurity` to `Unknown`. - * To use custom values check `EncryptedSecretKey` constructor. - */ - public encrypt(password: string): EncryptedSecretKeyInterface /*throws*/ { - return FfiConverterTypeEncryptedSecretKey.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_encrypt( - uniffiTypeSecretKeyObjectFactory.clonePointer(this), - FfiConverterString.lower(password), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toBech32(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_bech32( - uniffiTypeSecretKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toHex(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_to_hex( - uniffiTypeSecretKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `SecretKeyInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_debug( - uniffiTypeSecretKeyObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `SecretKeyInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `SecretKeyInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `SecretKeyInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: SecretKey): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_secretkey_uniffi_trait_eq_eq( - uniffiTypeSecretKeyObjectFactory.clonePointer(this), - FfiConverterTypeSecretKey.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeSecretKeyObjectFactory.pointer(this); - uniffiTypeSecretKeyObjectFactory.freePointer(pointer); - uniffiTypeSecretKeyObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is SecretKey { - return uniffiTypeSecretKeyObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeSecretKeyObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): SecretKeyInterface { - const instance = Object.create(SecretKey.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'SecretKey'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_secretkey_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: SecretKeyInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: SecretKeyInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_secretkey( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_secretkey( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is SecretKeyInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'SecretKey' - ); - }, - }; -// FfiConverter for SecretKeyInterface -const FfiConverterTypeSecretKey = new FfiConverterObject( - uniffiTypeSecretKeyObjectFactory -); - -export interface ServerConfigInterface {} - -export class ServerConfig - extends UniffiAbstractObject - implements ServerConfigInterface -{ - readonly [uniffiTypeNameSymbol] = 'ServerConfig'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeServerConfigObjectFactory.bless(pointer); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeServerConfigObjectFactory.pointer(this); - uniffiTypeServerConfigObjectFactory.freePointer(pointer); - uniffiTypeServerConfigObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is ServerConfig { - return uniffiTypeServerConfigObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeServerConfigObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): ServerConfigInterface { - const instance = Object.create(ServerConfig.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'ServerConfig'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_serverconfig_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: ServerConfigInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: ServerConfigInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_serverconfig( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_serverconfig( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is ServerConfigInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'ServerConfig' - ); - }, - }; -// FfiConverter for ServerConfigInterface -const FfiConverterTypeServerConfig = new FfiConverterObject( - uniffiTypeServerConfigObjectFactory -); - -export interface ShippingMethodInterface { - /** - * Get the product shipping cost of the shipping method - */ - getShippingCost(): ShippingCost; - /** - * Set the name of the shipping method - */ - name(name: string): ShippingMethodInterface; - /** - * Add a region to the shipping method - */ - regions(regions: Array): ShippingMethodInterface; -} - -export class ShippingMethod - extends UniffiAbstractObject - implements ShippingMethodInterface -{ - readonly [uniffiTypeNameSymbol] = 'ShippingMethod'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * Create a new shipping method - */ - constructor(id: string, cost: /*f64*/ number) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_shippingmethod_new( - FfiConverterString.lower(id), - FfiConverterFloat64.lower(cost), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeShippingMethodObjectFactory.bless(pointer); - } - - /** - * Get the product shipping cost of the shipping method - */ - public getShippingCost(): ShippingCost { - return FfiConverterTypeShippingCost.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_get_shipping_cost( - uniffiTypeShippingMethodObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Set the name of the shipping method - */ - public name(name: string): ShippingMethodInterface { - return FfiConverterTypeShippingMethod.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_name( - uniffiTypeShippingMethodObjectFactory.clonePointer(this), - FfiConverterString.lower(name), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add a region to the shipping method - */ - public regions(regions: Array): ShippingMethodInterface { - return FfiConverterTypeShippingMethod.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_shippingmethod_regions( - uniffiTypeShippingMethodObjectFactory.clonePointer(this), - FfiConverterArrayString.lower(regions), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeShippingMethodObjectFactory.pointer(this); - uniffiTypeShippingMethodObjectFactory.freePointer(pointer); - uniffiTypeShippingMethodObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is ShippingMethod { - return uniffiTypeShippingMethodObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeShippingMethodObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): ShippingMethodInterface { - const instance = Object.create(ShippingMethod.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'ShippingMethod'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_shippingmethod_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: ShippingMethodInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: ShippingMethodInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_shippingmethod( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_shippingmethod( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is ShippingMethodInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'ShippingMethod' - ); - }, - }; -// FfiConverter for ShippingMethodInterface -const FfiConverterTypeShippingMethod = new FfiConverterObject( - uniffiTypeShippingMethodObjectFactory -); - -export interface SingleLetterTagInterface { - isLowercase(): boolean; - isUppercase(): boolean; -} - -export class SingleLetterTag - extends UniffiAbstractObject - implements SingleLetterTagInterface -{ - readonly [uniffiTypeNameSymbol] = 'SingleLetterTag'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeSingleLetterTagObjectFactory.bless(pointer); - } - - public static lowercase(character: Alphabet): SingleLetterTagInterface { - return FfiConverterTypeSingleLetterTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_lowercase( - FfiConverterTypeAlphabet.lower(character), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static uppercase(character: Alphabet): SingleLetterTagInterface { - return FfiConverterTypeSingleLetterTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_singlelettertag_uppercase( - FfiConverterTypeAlphabet.lower(character), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public isLowercase(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_lowercase( - uniffiTypeSingleLetterTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public isUppercase(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_is_uppercase( - uniffiTypeSingleLetterTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `SingleLetterTagInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_debug( - uniffiTypeSingleLetterTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `SingleLetterTagInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `SingleLetterTagInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `SingleLetterTagInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: SingleLetterTag): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_eq_eq( - uniffiTypeSingleLetterTagObjectFactory.clonePointer(this), - FfiConverterTypeSingleLetterTag.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `SingleLetterTagInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_singlelettertag_uniffi_trait_hash( - uniffiTypeSingleLetterTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeSingleLetterTagObjectFactory.pointer(this); - uniffiTypeSingleLetterTagObjectFactory.freePointer(pointer); - uniffiTypeSingleLetterTagObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is SingleLetterTag { - return uniffiTypeSingleLetterTagObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeSingleLetterTagObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): SingleLetterTagInterface { - const instance = Object.create(SingleLetterTag.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'SingleLetterTag'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_singlelettertag_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: SingleLetterTagInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: SingleLetterTagInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_singlelettertag( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_singlelettertag( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is SingleLetterTagInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'SingleLetterTag' - ); - }, - }; -// FfiConverter for SingleLetterTagInterface -const FfiConverterTypeSingleLetterTag = new FfiConverterObject( - uniffiTypeSingleLetterTagObjectFactory -); - -export interface StallDataInterface { - asJson() /*throws*/ : string; - asRecord(): StallDataRecord; - currency(): string; - description(): string | undefined; - id(): string; - name(): string; - shipping(): Array; -} - -export class StallData - extends UniffiAbstractObject - implements StallDataInterface -{ - readonly [uniffiTypeNameSymbol] = 'StallData'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor( - id: string, - name: string, - description: string | undefined, - currency: string, - shipping: Array - ) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_new( - FfiConverterString.lower(id), - FfiConverterString.lower(name), - FfiConverterOptionalString.lower(description), - FfiConverterString.lower(currency), - FfiConverterArrayTypeShippingMethod.lower(shipping), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeStallDataObjectFactory.bless(pointer); - } - - public static fromJson(json: string): StallDataInterface /*throws*/ { - return FfiConverterTypeStallData.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_json( - FfiConverterString.lower(json), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static fromRecord(r: StallDataRecord): StallDataInterface { - return FfiConverterTypeStallData.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_stalldata_from_record( - FfiConverterTypeStallDataRecord.lower(r), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_json( - uniffiTypeStallDataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asRecord(): StallDataRecord { - return FfiConverterTypeStallDataRecord.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_as_record( - uniffiTypeStallDataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public currency(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_currency( - uniffiTypeStallDataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public description(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_description( - uniffiTypeStallDataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public id(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_id( - uniffiTypeStallDataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public name(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_name( - uniffiTypeStallDataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public shipping(): Array { - return FfiConverterArrayTypeShippingMethod.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_stalldata_shipping( - uniffiTypeStallDataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeStallDataObjectFactory.pointer(this); - uniffiTypeStallDataObjectFactory.freePointer(pointer); - uniffiTypeStallDataObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is StallData { - return uniffiTypeStallDataObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeStallDataObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): StallDataInterface { - const instance = Object.create(StallData.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'StallData'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_stalldata_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: StallDataInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: StallDataInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_stalldata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_stalldata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is StallDataInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'StallData' - ); - }, - }; -// FfiConverter for StallDataInterface -const FfiConverterTypeStallData = new FfiConverterObject( - uniffiTypeStallDataObjectFactory -); - -/** - * Auto-closing subscribe options - */ -export interface SubscribeAutoCloseOptionsInterface { - /** - * Close subscription when the policy is satisfied - */ - exitPolicy(policy: ReqExitPolicy): SubscribeAutoCloseOptionsInterface; - /** - * Automatically close subscription if no notifications/events are received within the duration. - */ - idleTimeout( - timeout: UniffiDuration | undefined - ): SubscribeAutoCloseOptionsInterface; - /** - * Automatically close subscription after duration. - */ - timeout( - timeout: UniffiDuration | undefined - ): SubscribeAutoCloseOptionsInterface; -} - -/** - * Auto-closing subscribe options - */ -export class SubscribeAutoCloseOptions - extends UniffiAbstractObject - implements SubscribeAutoCloseOptionsInterface -{ - readonly [uniffiTypeNameSymbol] = 'SubscribeAutoCloseOptions'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_subscribeautocloseoptions_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeSubscribeAutoCloseOptionsObjectFactory.bless(pointer); - } - - /** - * Close subscription when the policy is satisfied - */ - public exitPolicy(policy: ReqExitPolicy): SubscribeAutoCloseOptionsInterface { - return FfiConverterTypeSubscribeAutoCloseOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_exit_policy( - uniffiTypeSubscribeAutoCloseOptionsObjectFactory.clonePointer(this), - FfiConverterTypeReqExitPolicy.lower(policy), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Automatically close subscription if no notifications/events are received within the duration. - */ - public idleTimeout( - timeout: UniffiDuration | undefined - ): SubscribeAutoCloseOptionsInterface { - return FfiConverterTypeSubscribeAutoCloseOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_idle_timeout( - uniffiTypeSubscribeAutoCloseOptionsObjectFactory.clonePointer(this), - FfiConverterOptionalDuration.lower(timeout), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Automatically close subscription after duration. - */ - public timeout( - timeout: UniffiDuration | undefined - ): SubscribeAutoCloseOptionsInterface { - return FfiConverterTypeSubscribeAutoCloseOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeautocloseoptions_timeout( - uniffiTypeSubscribeAutoCloseOptionsObjectFactory.clonePointer(this), - FfiConverterOptionalDuration.lower(timeout), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = - uniffiTypeSubscribeAutoCloseOptionsObjectFactory.pointer(this); - uniffiTypeSubscribeAutoCloseOptionsObjectFactory.freePointer(pointer); - uniffiTypeSubscribeAutoCloseOptionsObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is SubscribeAutoCloseOptions { - return uniffiTypeSubscribeAutoCloseOptionsObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeSubscribeAutoCloseOptionsObjectFactory: UniffiObjectFactory = - { - create( - pointer: UnsafeMutableRawPointer - ): SubscribeAutoCloseOptionsInterface { - const instance = Object.create(SubscribeAutoCloseOptions.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'SubscribeAutoCloseOptions'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_subscribeautocloseoptions_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: SubscribeAutoCloseOptionsInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer( - obj: SubscribeAutoCloseOptionsInterface - ): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_subscribeautocloseoptions( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_subscribeautocloseoptions( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is SubscribeAutoCloseOptionsInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'SubscribeAutoCloseOptions' - ); - }, - }; -// FfiConverter for SubscribeAutoCloseOptionsInterface -const FfiConverterTypeSubscribeAutoCloseOptions = new FfiConverterObject( - uniffiTypeSubscribeAutoCloseOptionsObjectFactory -); - -/** - * Subscribe options - */ -export interface SubscribeOptionsInterface { - /** - * Set auto-close conditions - */ - closeOn(opts: SubscribeAutoCloseOptionsInterface): SubscribeOptionsInterface; -} - -/** - * Subscribe options - */ -export class SubscribeOptions - extends UniffiAbstractObject - implements SubscribeOptionsInterface -{ - readonly [uniffiTypeNameSymbol] = 'SubscribeOptions'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_subscribeoptions_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeSubscribeOptionsObjectFactory.bless(pointer); - } - - /** - * Set auto-close conditions - */ - public closeOn( - opts: SubscribeAutoCloseOptionsInterface - ): SubscribeOptionsInterface { - return FfiConverterTypeSubscribeOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_subscribeoptions_close_on( - uniffiTypeSubscribeOptionsObjectFactory.clonePointer(this), - FfiConverterTypeSubscribeAutoCloseOptions.lower(opts), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeSubscribeOptionsObjectFactory.pointer(this); - uniffiTypeSubscribeOptionsObjectFactory.freePointer(pointer); - uniffiTypeSubscribeOptionsObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is SubscribeOptions { - return uniffiTypeSubscribeOptionsObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeSubscribeOptionsObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): SubscribeOptionsInterface { - const instance = Object.create(SubscribeOptions.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'SubscribeOptions'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_subscribeoptions_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: SubscribeOptionsInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: SubscribeOptionsInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_subscribeoptions( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_subscribeoptions( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is SubscribeOptionsInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'SubscribeOptions' - ); - }, - }; -// FfiConverter for SubscribeOptionsInterface -const FfiConverterTypeSubscribeOptions = new FfiConverterObject( - uniffiTypeSubscribeOptionsObjectFactory -); - -export interface SyncOptionsInterface { - /** - * Sync Sync direction (default: down) - */ - direction(direction: SyncDirection): SyncOptionsInterface; - /** - * Dry run - * - * Just check what event are missing: execute reconciliation but WITHOUT - * getting/sending full events. - */ - dryRun(): SyncOptionsInterface; - /** - * Timeout to check if negentropy it's supported (default: 10 secs) - */ - initialTimeout(timeout: UniffiDuration): SyncOptionsInterface; -} - -export class SyncOptions - extends UniffiAbstractObject - implements SyncOptionsInterface -{ - readonly [uniffiTypeNameSymbol] = 'SyncOptions'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - /** - * New default options - */ - constructor() { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_syncoptions_new( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeSyncOptionsObjectFactory.bless(pointer); - } - - /** - * Sync Sync direction (default: down) - */ - public direction(direction: SyncDirection): SyncOptionsInterface { - return FfiConverterTypeSyncOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_direction( - uniffiTypeSyncOptionsObjectFactory.clonePointer(this), - FfiConverterTypeSyncDirection.lower(direction), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Dry run - * - * Just check what event are missing: execute reconciliation but WITHOUT - * getting/sending full events. - */ - public dryRun(): SyncOptionsInterface { - return FfiConverterTypeSyncOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_dry_run( - uniffiTypeSyncOptionsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Timeout to check if negentropy it's supported (default: 10 secs) - */ - public initialTimeout(timeout: UniffiDuration): SyncOptionsInterface { - return FfiConverterTypeSyncOptions.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_syncoptions_initial_timeout( - uniffiTypeSyncOptionsObjectFactory.clonePointer(this), - FfiConverterDuration.lower(timeout), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeSyncOptionsObjectFactory.pointer(this); - uniffiTypeSyncOptionsObjectFactory.freePointer(pointer); - uniffiTypeSyncOptionsObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is SyncOptions { - return uniffiTypeSyncOptionsObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeSyncOptionsObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): SyncOptionsInterface { - const instance = Object.create(SyncOptions.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'SyncOptions'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_syncoptions_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: SyncOptionsInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: SyncOptionsInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_syncoptions( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_syncoptions( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is SyncOptionsInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'SyncOptions' - ); - }, - }; -// FfiConverter for SyncOptionsInterface -const FfiConverterTypeSyncOptions = new FfiConverterObject( - uniffiTypeSyncOptionsObjectFactory -); - -/** - * Tag - */ -export interface TagInterface { - /** - * Get standardized tag - */ - asStandardized(): TagStandard | undefined; - /** - * Get array of strings - */ - asVec(): Array; - /** - * Return the **first** tag value (index `1`), if exists. - */ - content(): string | undefined; - /** - * Check if it's a protected event tag - * - * - */ - isProtected(): boolean; - /** - * Check if is a standard event tag with `reply` marker - */ - isReply(): boolean; - /** - * Check if is a standard event tag with `root` marker - */ - isRoot(): boolean; - /** - * Get tag kind - */ - kind(): TagKind; - /** - * Get tag kind as string - */ - kindStr(): string; - /** - * Get tag len - */ - len(): /*u64*/ bigint; - /** - * Get `SingleLetterTag` - */ - singleLetterTag(): SingleLetterTagInterface | undefined; -} - -/** - * Tag - */ -export class Tag extends UniffiAbstractObject implements TagInterface { - readonly [uniffiTypeNameSymbol] = 'Tag'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeTagObjectFactory.bless(pointer); - } - - /** - * A short human-readable plaintext summary of what that event is about - * - * JSON: `["alt", ""]` - * - * - */ - public static alt(summary: string): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_alt( - FfiConverterString.lower(summary), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Construct `["client", ""]` tag - * - * - */ - public static client(name: string): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_client( - FfiConverterString.lower(name), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["a", ""]` tag - * - * - */ - public static coordinate(coordinate: CoordinateInterface): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_coordinate( - FfiConverterTypeCoordinate.lower(coordinate), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose custom tag - * - * JSON: `["", "", "", ...]` - */ - public static custom(kind: TagKind, values: Array): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_custom( - FfiConverterTypeTagKind.lower(kind), - FfiConverterArrayString.lower(values), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["description", ""]` tag - */ - public static description(description: string): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_description( - FfiConverterString.lower(description), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["e", "]` - * - * - */ - public static event(eventId: EventIdInterface): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_event( - FfiConverterTypeEventId.lower(eventId), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["e", "", ""]` tag - * - * - */ - public static eventReport( - eventId: EventIdInterface, - report: Report - ): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_event_report( - FfiConverterTypeEventId.lower(eventId), - FfiConverterTypeReport.lower(report), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["expiration", ""]` tag - * - * - */ - public static expiration(timestamp: TimestampInterface): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_expiration( - FfiConverterTypeTimestamp.lower(timestamp), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Construct from standardized tag - */ - public static fromStandardized( - standardized: TagStandard - ): TagInterface /*throws*/ { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_from_standardized( - FfiConverterTypeTagStandard.lower(standardized), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["t", ""]` tag - * - * This will convert the hashtag to lowercase. - */ - public static hashtag(hashtag: string): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_hashtag( - FfiConverterString.lower(hashtag), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["d", ""]` tag - * - * - */ - public static identifier(identifier: string): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_identifier( - FfiConverterString.lower(identifier), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose image tag - */ - public static image( - url: string, - dimensions: ImageDimensions | undefined = undefined - ): TagInterface /*throws*/ { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_image( - FfiConverterString.lower(url), - FfiConverterOptionalTypeImageDimensions.lower(dimensions), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Parse tag - * - * Return error if the tag is empty! - */ - public static parse(data: Array): TagInterface /*throws*/ { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_parse( - FfiConverterArrayString.lower(data), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["nonce", "", ""]` tag - * - * - */ - public static pow( - nonce: /*u64*/ bigint, - difficulty: /*u8*/ number - ): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_pow( - FfiConverterUInt64.lower(nonce), - FfiConverterUInt8.lower(difficulty), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Protected event - * - * JSON: `["-"]` - * - * - */ - public static protected_(): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_protected( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["p", ""]` tag - * - * - */ - public static publicKey(publicKey: PublicKeyInterface): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key( - FfiConverterTypePublicKey.lower(publicKey), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["p", "", ""]` tag - * - * - */ - public static publicKeyReport( - publicKey: PublicKeyInterface, - report: Report - ): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_public_key_report( - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterTypeReport.lower(report), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["r", ""]` tag - */ - public static reference(reference: string): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_reference( - FfiConverterString.lower(reference), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["r", "", ""]` tag - * - * - */ - public static relayMetadata( - relayUrl: string, - metadata: RelayMetadata | undefined - ): TagInterface /*throws*/ { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_relay_metadata( - FfiConverterString.lower(relayUrl), - FfiConverterOptionalTypeRelayMetadata.lower(metadata), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Compose `["title", ""]` tag - */ - public static title(title: string): TagInterface { - return FfiConverterTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tag_title( - FfiConverterString.lower(title), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get standardized tag - */ - public asStandardized(): TagStandard | undefined { - return FfiConverterOptionalTypeTagStandard.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_as_standardized( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get array of strings - */ - public asVec(): Array<string> { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_as_vec( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Return the **first** tag value (index `1`), if exists. - */ - public content(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_content( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if it's a protected event tag - * - * <https://github.com/nostr-protocol/nips/blob/master/70.md> - */ - public isProtected(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_protected( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if is a standard event tag with `reply` marker - */ - public isReply(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_reply( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if is a standard event tag with `root` marker - */ - public isRoot(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_is_root( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get tag kind - */ - public kind(): TagKind { - return FfiConverterTypeTagKind.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_kind( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get tag kind as string - */ - public kindStr(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_kind_str( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get tag len - */ - public len(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_len( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get `SingleLetterTag` - */ - public singleLetterTag(): SingleLetterTagInterface | undefined { - return FfiConverterOptionalTypeSingleLetterTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_single_letter_tag( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `TagInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_debug( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `TagInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `TagInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `TagInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Tag): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_eq_eq( - uniffiTypeTagObjectFactory.clonePointer(this), - FfiConverterTypeTag.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `TagInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tag_uniffi_trait_hash( - uniffiTypeTagObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeTagObjectFactory.pointer(this); - uniffiTypeTagObjectFactory.freePointer(pointer); - uniffiTypeTagObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Tag { - return uniffiTypeTagObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeTagObjectFactory: UniffiObjectFactory<TagInterface> = { - create(pointer: UnsafeMutableRawPointer): TagInterface { - const instance = Object.create(Tag.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Tag'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_tag_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: TagInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: TagInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_tag( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_tag( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is TagInterface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Tag'; - }, -}; -// FfiConverter for TagInterface -const FfiConverterTypeTag = new FfiConverterObject(uniffiTypeTagObjectFactory); - -export interface TagsInterface { - /** - * Extract coordinates from `a` tags. - * - * This method extract ONLY supported standard variants - */ - coordinates(): Array<CoordinateInterface>; - /** - * Extract event IDs from `e` tags. - * - * This method extract ONLY supported standard variants - */ - eventIds(): Array<EventIdInterface>; - /** - * Get timestamp expiration, if set - */ - expiration(): TimestampInterface | undefined; - /** - * Get first tag that match `TagKind`. - */ - filter(kind: TagKind): Array<TagInterface>; - /** - * Get first tag that match `TagKind` and that is standardized. - */ - filterStandardized(kind: TagKind): Array<TagStandard>; - /** - * /// Get first tag that match `TagKind`. - */ - find(kind: TagKind): TagInterface | undefined; - /** - * Get first tag that match `TagKind` and that is standardized. - */ - findStandardized(kind: TagKind): TagStandard | undefined; - /** - * Get first tag - */ - first(): TagInterface | undefined; - /** - * Get tag at index - */ - get(index: /*u64*/ bigint): TagInterface | undefined; - /** - * Extract hashtags from `t` tags. - * - * This method extract ONLY supported standard variants - */ - hashtags(): Array<string>; - /** - * Extract identifier (`d` tag), if exists. - */ - identifier(): string | undefined; - /** - * Check if contains no tags. - */ - isEmpty(): boolean; - /** - * Get last tag - */ - last(): TagInterface | undefined; - /** - * Get number of tags - */ - len(): /*u64*/ bigint; - /** - * Extract public keys from `p` tags. - * - * This method extract ONLY supported standard variants - */ - publicKeys(): Array<PublicKeyInterface>; - toVec(): Array<TagInterface>; -} - -export class Tags extends UniffiAbstractObject implements TagsInterface { - readonly [uniffiTypeNameSymbol] = 'Tags'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = uniffiTypeTagsObjectFactory.bless(pointer); - } - - public static fromList(list: Array<TagInterface>): TagsInterface { - return FfiConverterTypeTags.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_list( - FfiConverterArrayTypeTag.lower(list), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Extract `nostr:` URIs from a text and construct tags. - * - * This method deduplicates the tags. - */ - public static fromText(text: string): TagsInterface { - return FfiConverterTypeTags.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_from_text( - FfiConverterString.lower(text), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public static parse(tags: Array<Array<string>>): TagsInterface /*throws*/ { - return FfiConverterTypeTags.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_tags_parse( - FfiConverterArrayArrayString.lower(tags), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Extract coordinates from `a` tags. - * - * This method extract ONLY supported standard variants - */ - public coordinates(): Array<CoordinateInterface> { - return FfiConverterArrayTypeCoordinate.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_coordinates( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Extract event IDs from `e` tags. - * - * This method extract ONLY supported standard variants - */ - public eventIds(): Array<EventIdInterface> { - return FfiConverterArrayTypeEventId.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_event_ids( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get timestamp expiration, if set - */ - public expiration(): TimestampInterface | undefined { - return FfiConverterOptionalTypeTimestamp.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_expiration( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get first tag that match `TagKind`. - */ - public filter(kind: TagKind): Array<TagInterface> { - return FfiConverterArrayTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_filter( - uniffiTypeTagsObjectFactory.clonePointer(this), - FfiConverterTypeTagKind.lower(kind), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get first tag that match `TagKind` and that is standardized. - */ - public filterStandardized(kind: TagKind): Array<TagStandard> { - return FfiConverterArrayTypeTagStandard.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_filter_standardized( - uniffiTypeTagsObjectFactory.clonePointer(this), - FfiConverterTypeTagKind.lower(kind), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * /// Get first tag that match `TagKind`. - */ - public find(kind: TagKind): TagInterface | undefined { - return FfiConverterOptionalTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_find( - uniffiTypeTagsObjectFactory.clonePointer(this), - FfiConverterTypeTagKind.lower(kind), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get first tag that match `TagKind` and that is standardized. - */ - public findStandardized(kind: TagKind): TagStandard | undefined { - return FfiConverterOptionalTypeTagStandard.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_find_standardized( - uniffiTypeTagsObjectFactory.clonePointer(this), - FfiConverterTypeTagKind.lower(kind), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get first tag - */ - public first(): TagInterface | undefined { - return FfiConverterOptionalTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_first( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get tag at index - */ - public get(index: /*u64*/ bigint): TagInterface | undefined { - return FfiConverterOptionalTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_get( - uniffiTypeTagsObjectFactory.clonePointer(this), - FfiConverterUInt64.lower(index), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Extract hashtags from `t` tags. - * - * This method extract ONLY supported standard variants - */ - public hashtags(): Array<string> { - return FfiConverterArrayString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_hashtags( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Extract identifier (`d` tag), if exists. - */ - public identifier(): string | undefined { - return FfiConverterOptionalString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_identifier( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Check if contains no tags. - */ - public isEmpty(): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_is_empty( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get last tag - */ - public last(): TagInterface | undefined { - return FfiConverterOptionalTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_last( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get number of tags - */ - public len(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_len( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Extract public keys from `p` tags. - * - * This method extract ONLY supported standard variants - */ - public publicKeys(): Array<PublicKeyInterface> { - return FfiConverterArrayTypePublicKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_public_keys( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public toVec(): Array<TagInterface> { - return FfiConverterArrayTypeTag.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_tags_to_vec( - uniffiTypeTagsObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeTagsObjectFactory.pointer(this); - uniffiTypeTagsObjectFactory.freePointer(pointer); - uniffiTypeTagsObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Tags { - return uniffiTypeTagsObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeTagsObjectFactory: UniffiObjectFactory<TagsInterface> = { - create(pointer: UnsafeMutableRawPointer): TagsInterface { - const instance = Object.create(Tags.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Tags'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_tags_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: TagsInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: TagsInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_tags( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_tags( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is TagsInterface { - return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Tags'; - }, -}; -// FfiConverter for TagsInterface -const FfiConverterTypeTags = new FfiConverterObject( - uniffiTypeTagsObjectFactory -); - -export interface TimestampInterface { - /** - * Get timestamp as [`u64`] - */ - asSecs(): /*u64*/ bigint; - /** - * Convert [`Timestamp`] to human datetime - */ - toHumanDatetime(): string; -} - -export class Timestamp - extends UniffiAbstractObject - implements TimestampInterface -{ - readonly [uniffiTypeNameSymbol] = 'Timestamp'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeTimestampObjectFactory.bless(pointer); - } - - public static fromSecs(secs: /*u64*/ bigint): TimestampInterface { - return FfiConverterTypeTimestamp.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_from_secs( - FfiConverterUInt64.lower(secs), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get UNIX timestamp - */ - public static now(): TimestampInterface { - return FfiConverterTypeTimestamp.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_timestamp_now( - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get timestamp as [`u64`] - */ - public asSecs(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_as_secs( - uniffiTypeTimestampObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Convert [`Timestamp`] to human datetime - */ - public toHumanDatetime(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_to_human_datetime( - uniffiTypeTimestampObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `TimestampInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_debug( - uniffiTypeTimestampObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `TimestampInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `TimestampInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `TimestampInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: Timestamp): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_eq_eq( - uniffiTypeTimestampObjectFactory.clonePointer(this), - FfiConverterTypeTimestamp.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `TimestampInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_timestamp_uniffi_trait_hash( - uniffiTypeTimestampObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeTimestampObjectFactory.pointer(this); - uniffiTypeTimestampObjectFactory.freePointer(pointer); - uniffiTypeTimestampObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is Timestamp { - return uniffiTypeTimestampObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeTimestampObjectFactory: UniffiObjectFactory<TimestampInterface> = - { - create(pointer: UnsafeMutableRawPointer): TimestampInterface { - const instance = Object.create(Timestamp.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'Timestamp'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_timestamp_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: TimestampInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: TimestampInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_timestamp( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_timestamp( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is TimestampInterface { - return ( - obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'Timestamp' - ); - }, - }; -// FfiConverter for TimestampInterface -const FfiConverterTypeTimestamp = new FfiConverterObject( - uniffiTypeTimestampObjectFactory -); - -export interface UnsignedEventInterface { - /** - * Add signature to unsigned event - * - * Internally verify the event. - */ - addSignature(sig: string) /*throws*/ : EventInterface; - asJson() /*throws*/ : string; - asPrettyJson() /*throws*/ : string; - author(): PublicKeyInterface; - content(): string; - createdAt(): TimestampInterface; - id(): EventIdInterface | undefined; - kind(): KindInterface; - /** - * Sign an unsigned event - */ - sign( - signer: NostrSignerInterface, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise<EventInterface>; - /** - * Sign an unsigned event with keys signer - * - * Internally: calculate event ID (if not set), sign it, compose and verify event. - */ - signWithKeys(keys: KeysInterface) /*throws*/ : EventInterface; - tags(): TagsInterface; -} - -export class UnsignedEvent - extends UniffiAbstractObject - implements UnsignedEventInterface -{ - readonly [uniffiTypeNameSymbol] = 'UnsignedEvent'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeUnsignedEventObjectFactory.bless(pointer); - } - - public static fromJson(json: string): UnsignedEventInterface /*throws*/ { - return FfiConverterTypeUnsignedEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_unsignedevent_from_json( - FfiConverterString.lower(json), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Add signature to unsigned event - * - * Internally verify the event. - */ - public addSignature(sig: string): EventInterface /*throws*/ { - return FfiConverterTypeEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_add_signature( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - FfiConverterString.lower(sig), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_json( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public asPrettyJson(): string /*throws*/ { - return FfiConverterString.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_as_pretty_json( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public author(): PublicKeyInterface { - return FfiConverterTypePublicKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_author( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public content(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_content( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public createdAt(): TimestampInterface { - return FfiConverterTypeTimestamp.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_created_at( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public id(): EventIdInterface | undefined { - return FfiConverterOptionalTypeEventId.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_id( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public kind(): KindInterface { - return FfiConverterTypeKind.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_kind( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Sign an unsigned event - */ - public async sign( - signer: NostrSignerInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise<EventInterface> /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - FfiConverterTypeNostrSigner.lower(signer) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeEvent.lift.bind(FfiConverterTypeEvent), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Sign an unsigned event with keys signer - * - * Internally: calculate event ID (if not set), sign it, compose and verify event. - */ - public signWithKeys(keys: KeysInterface): EventInterface /*throws*/ { - return FfiConverterTypeEvent.lift( - uniffiCaller.rustCallWithError( - /*liftError:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ), - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_sign_with_keys( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - FfiConverterTypeKeys.lower(keys), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public tags(): TagsInterface { - return FfiConverterTypeTags.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_tags( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `UnsignedEventInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_debug( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `UnsignedEventInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `UnsignedEventInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `UnsignedEventInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: UnsignedEvent): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_eq_eq( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - FfiConverterTypeUnsignedEvent.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `UnsignedEventInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unsignedevent_uniffi_trait_hash( - uniffiTypeUnsignedEventObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeUnsignedEventObjectFactory.pointer(this); - uniffiTypeUnsignedEventObjectFactory.freePointer(pointer); - uniffiTypeUnsignedEventObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is UnsignedEvent { - return uniffiTypeUnsignedEventObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeUnsignedEventObjectFactory: UniffiObjectFactory<UnsignedEventInterface> = - { - create(pointer: UnsafeMutableRawPointer): UnsignedEventInterface { - const instance = Object.create(UnsignedEvent.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'UnsignedEvent'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_unsignedevent_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: UnsignedEventInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: UnsignedEventInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_unsignedevent( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_unsignedevent( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is UnsignedEventInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'UnsignedEvent' - ); - }, - }; -// FfiConverter for UnsignedEventInterface -const FfiConverterTypeUnsignedEvent = new FfiConverterObject( - uniffiTypeUnsignedEventObjectFactory -); - -/** - * Unwrapped Gift Wrap - * - * <https://github.com/nostr-protocol/nips/blob/master/59.md> - */ -export interface UnwrappedGiftInterface { - none(asyncOpts_?: { signal: AbortSignal }): Promise<void>; - /** - * Get rumor - */ - rumor(): UnsignedEventInterface; - /** - * Get sender public key - */ - sender(): PublicKeyInterface; -} - -/** - * Unwrapped Gift Wrap - * - * <https://github.com/nostr-protocol/nips/blob/master/59.md> - */ -export class UnwrappedGift - extends UniffiAbstractObject - implements UnwrappedGiftInterface -{ - readonly [uniffiTypeNameSymbol] = 'UnwrappedGift'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeUnwrappedGiftObjectFactory.bless(pointer); - } - - /** - * Unwrap Gift Wrap event - * - * Internally verify the `seal` event - */ - public static async fromGiftWrap( - signer: NostrSignerInterface, - giftWrap: EventInterface, - asyncOpts_?: { signal: AbortSignal } - ): Promise<UnwrappedGiftInterface> /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_unwrappedgift_from_gift_wrap( - FfiConverterTypeNostrSigner.lower(signer), - FfiConverterTypeEvent.lower(giftWrap) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeUnwrappedGift.lift.bind( - FfiConverterTypeUnwrappedGift - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async none(asyncOpts_?: { signal: AbortSignal }): Promise<void> { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift__none( - uniffiTypeUnwrappedGiftObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_ - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Get rumor - */ - public rumor(): UnsignedEventInterface { - return FfiConverterTypeUnsignedEvent.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_rumor( - uniffiTypeUnwrappedGiftObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Get sender public key - */ - public sender(): PublicKeyInterface { - return FfiConverterTypePublicKey.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_sender( - uniffiTypeUnwrappedGiftObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `UnwrappedGiftInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_debug( - uniffiTypeUnwrappedGiftObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `UnwrappedGiftInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `UnwrappedGiftInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `UnwrappedGiftInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: UnwrappedGift): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_eq_eq( - uniffiTypeUnwrappedGiftObjectFactory.clonePointer(this), - FfiConverterTypeUnwrappedGift.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `UnwrappedGiftInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_unwrappedgift_uniffi_trait_hash( - uniffiTypeUnwrappedGiftObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeUnwrappedGiftObjectFactory.pointer(this); - uniffiTypeUnwrappedGiftObjectFactory.freePointer(pointer); - uniffiTypeUnwrappedGiftObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is UnwrappedGift { - return uniffiTypeUnwrappedGiftObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeUnwrappedGiftObjectFactory: UniffiObjectFactory<UnwrappedGiftInterface> = - { - create(pointer: UnsafeMutableRawPointer): UnwrappedGiftInterface { - const instance = Object.create(UnwrappedGift.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'UnwrappedGift'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_unwrappedgift_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: UnwrappedGiftInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: UnwrappedGiftInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_unwrappedgift( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_unwrappedgift( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is UnwrappedGiftInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'UnwrappedGift' - ); - }, - }; -// FfiConverter for UnwrappedGiftInterface -const FfiConverterTypeUnwrappedGift = new FfiConverterObject( - uniffiTypeUnwrappedGiftObjectFactory -); - -export interface WebSocketAdapter { - /** - * Send a WebSocket message - */ - send( - msg: WebSocketMessage, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise<void>; - /** - * Receive a message - * - * This method MUST await for a message. - * - * Return `None` to mark the stream as terminated. - */ - recv(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise<WebSocketMessage | undefined>; - /** - * Close the WebSocket connection - */ - closeConnection(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise<void>; -} - -export class WebSocketAdapterImpl - extends UniffiAbstractObject - implements WebSocketAdapter -{ - readonly [uniffiTypeNameSymbol] = 'WebSocketAdapterImpl'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeWebSocketAdapterImplObjectFactory.bless(pointer); - } - - /** - * Send a WebSocket message - */ - public async send( - msg: WebSocketMessage, - asyncOpts_?: { signal: AbortSignal } - ): Promise<void> /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_send( - uniffiTypeWebSocketAdapterImplObjectFactory.clonePointer(this), - FfiConverterTypeWebSocketMessage.lower(msg) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Receive a message - * - * This method MUST await for a message. - * - * Return `None` to mark the stream as terminated. - */ - public async recv(asyncOpts_?: { - signal: AbortSignal; - }): Promise<WebSocketMessage | undefined> /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_recv( - uniffiTypeWebSocketAdapterImplObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalTypeWebSocketMessage.lift.bind( - FfiConverterOptionalTypeWebSocketMessage - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Close the WebSocket connection - */ - public async closeConnection(asyncOpts_?: { - signal: AbortSignal; - }): Promise<void> /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustCaller:*/ uniffiCaller, - /*rustFutureFunc:*/ () => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_websocketadapter_close_connection( - uniffiTypeWebSocketAdapterImplObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule() - .ubrn_ffi_nostr_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeNostrSdkError.lift.bind( - FfiConverterTypeNostrSdkError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeWebSocketAdapterImplObjectFactory.pointer(this); - uniffiTypeWebSocketAdapterImplObjectFactory.freePointer(pointer); - uniffiTypeWebSocketAdapterImplObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is WebSocketAdapterImpl { - return uniffiTypeWebSocketAdapterImplObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeWebSocketAdapterImplObjectFactory: UniffiObjectFactory<WebSocketAdapter> = - { - create(pointer: UnsafeMutableRawPointer): WebSocketAdapter { - const instance = Object.create(WebSocketAdapterImpl.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'WebSocketAdapterImpl'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_websocketadapter_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: WebSocketAdapter): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: WebSocketAdapter): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_websocketadapter( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_websocketadapter( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is WebSocketAdapter { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'WebSocketAdapterImpl' - ); - }, - }; -// FfiConverter for WebSocketAdapter -const FfiConverterTypeWebSocketAdapter = new FfiConverterObjectWithCallbacks( - uniffiTypeWebSocketAdapterImplObjectFactory -); - -// Add a vtavble for the callbacks that go in WebSocketAdapter. - -// Put the implementation in a struct so we don't pollute the top-level namespace -const uniffiCallbackInterfaceWebSocketAdapter: { - vtable: UniffiVTableCallbackInterfaceWebSocketAdapter; - register: () => void; -} = { - // Create the VTable using a series of closures. - // ts automatically converts these into C callback functions. - vtable: { - send: ( - uniffiHandle: bigint, - msg: Uint8Array, - uniffiFutureCallback: UniffiForeignFutureCompleteVoid, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async (signal: AbortSignal): Promise<void> => { - const jsCallback = FfiConverterTypeWebSocketAdapter.lift(uniffiHandle); - return await jsCallback.send( - FfiConverterTypeWebSocketMessage.lift(msg), - { signal } - ); - }; - const uniffiHandleSuccess = (returnValue: void) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructVoid */ { - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructVoid */ { - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - recv: ( - uniffiHandle: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async ( - signal: AbortSignal - ): Promise<WebSocketMessage | undefined> => { - const jsCallback = FfiConverterTypeWebSocketAdapter.lift(uniffiHandle); - return await jsCallback.recv({ signal }); - }; - const uniffiHandleSuccess = ( - returnValue: WebSocketMessage | undefined - ) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: - FfiConverterOptionalTypeWebSocketMessage.lower(returnValue), - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructRustBuffer */ { - returnValue: /*empty*/ new Uint8Array(0), - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - closeConnection: ( - uniffiHandle: bigint, - uniffiFutureCallback: UniffiForeignFutureCompleteVoid, - uniffiCallbackData: bigint - ) => { - const uniffiMakeCall = async (signal: AbortSignal): Promise<void> => { - const jsCallback = FfiConverterTypeWebSocketAdapter.lift(uniffiHandle); - return await jsCallback.closeConnection({ signal }); - }; - const uniffiHandleSuccess = (returnValue: void) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructVoid */ { - callStatus: uniffiCaller.createCallStatus(), - } - ); - }; - const uniffiHandleError = (code: number, errorBuf: UniffiByteArray) => { - uniffiFutureCallback( - uniffiCallbackData, - /* UniffiForeignFutureStructVoid */ { - // TODO create callstatus with error. - callStatus: { code, errorBuf }, - } - ); - }; - const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError( - /*makeCall:*/ uniffiMakeCall, - /*handleSuccess:*/ uniffiHandleSuccess, - /*handleError:*/ uniffiHandleError, - /*isErrorType:*/ NostrSdkError.instanceOf, - /*lowerError:*/ FfiConverterTypeNostrSdkError.lower.bind( - FfiConverterTypeNostrSdkError - ), - /*lowerString:*/ FfiConverterString.lower - ); - return UniffiResult.success(uniffiForeignFuture); - }, - uniffiFree: (uniffiHandle: UniffiHandle): void => { - // WebSocketAdapter: this will throw a stale handle error if the handle isn't found. - FfiConverterTypeWebSocketAdapter.drop(uniffiHandle); - }, - }, - register: () => { - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_init_callback_vtable_websocketadapter( - uniffiCallbackInterfaceWebSocketAdapter.vtable - ); - }, -}; - -export interface WebSocketAdapterWrapperInterface {} - -export class WebSocketAdapterWrapper - extends UniffiAbstractObject - implements WebSocketAdapterWrapperInterface -{ - readonly [uniffiTypeNameSymbol] = 'WebSocketAdapterWrapper'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor(adapter: WebSocketAdapter) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_websocketadapterwrapper_new( - FfiConverterTypeWebSocketAdapter.lower(adapter), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeWebSocketAdapterWrapperObjectFactory.bless(pointer); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = - uniffiTypeWebSocketAdapterWrapperObjectFactory.pointer(this); - uniffiTypeWebSocketAdapterWrapperObjectFactory.freePointer(pointer); - uniffiTypeWebSocketAdapterWrapperObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is WebSocketAdapterWrapper { - return uniffiTypeWebSocketAdapterWrapperObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeWebSocketAdapterWrapperObjectFactory: UniffiObjectFactory<WebSocketAdapterWrapperInterface> = - { - create(pointer: UnsafeMutableRawPointer): WebSocketAdapterWrapperInterface { - const instance = Object.create(WebSocketAdapterWrapper.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'WebSocketAdapterWrapper'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_websocketadapterwrapper_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: WebSocketAdapterWrapperInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer( - obj: WebSocketAdapterWrapperInterface - ): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_websocketadapterwrapper( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_websocketadapterwrapper( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is WebSocketAdapterWrapperInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'WebSocketAdapterWrapper' - ); - }, - }; -// FfiConverter for WebSocketAdapterWrapperInterface -const FfiConverterTypeWebSocketAdapterWrapper = new FfiConverterObject( - uniffiTypeWebSocketAdapterWrapperObjectFactory -); - -export interface ZapRequestDataInterface { - amount(amount: /*u64*/ bigint): ZapRequestDataInterface; - eventId(eventId: EventIdInterface): ZapRequestDataInterface; - lnurl(lnurl: string): ZapRequestDataInterface; - message(message: string): ZapRequestDataInterface; -} - -export class ZapRequestData - extends UniffiAbstractObject - implements ZapRequestDataInterface -{ - readonly [uniffiTypeNameSymbol] = 'ZapRequestData'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - constructor(publicKey: PublicKeyInterface, relays: Array<string>) { - super(); - const pointer = uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_constructor_zaprequestdata_new( - FfiConverterTypePublicKey.lower(publicKey), - FfiConverterArrayString.lower(relays), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeZapRequestDataObjectFactory.bless(pointer); - } - - public amount(amount: /*u64*/ bigint): ZapRequestDataInterface { - return FfiConverterTypeZapRequestData.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_amount( - uniffiTypeZapRequestDataObjectFactory.clonePointer(this), - FfiConverterUInt64.lower(amount), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public eventId(eventId: EventIdInterface): ZapRequestDataInterface { - return FfiConverterTypeZapRequestData.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_event_id( - uniffiTypeZapRequestDataObjectFactory.clonePointer(this), - FfiConverterTypeEventId.lower(eventId), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public lnurl(lnurl: string): ZapRequestDataInterface { - return FfiConverterTypeZapRequestData.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_lnurl( - uniffiTypeZapRequestDataObjectFactory.clonePointer(this), - FfiConverterString.lower(lnurl), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - public message(message: string): ZapRequestDataInterface { - return FfiConverterTypeZapRequestData.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_message( - uniffiTypeZapRequestDataObjectFactory.clonePointer(this), - FfiConverterString.lower(message), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `ZapRequestDataInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust. - */ - toDebugString(): string { - return FfiConverterString.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_debug( - uniffiTypeZapRequestDataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `Debug` string representation of `ZapRequestDataInterface` (the native Rust peer). - * - * Generated by deriving the `Debug` trait in Rust, without deriving `Display`. - */ - toString(): string { - return this.toDebugString(); - } - - /** - * Calls into the `==` method of `ZapRequestDataInterface` (the native Rust peer). - * - * Returns `true` if and only if the two instance of `ZapRequestDataInterface` are - * equivalent on the Rust side. - * - * Generated by deriving the `Eq` trait in Rust. - */ - equals(other: ZapRequestData): boolean { - return FfiConverterBool.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_eq_eq( - uniffiTypeZapRequestDataObjectFactory.clonePointer(this), - FfiConverterTypeZapRequestData.lower(other), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * Calls into the `hash` method of `ZapRequestDataInterface` (the native Rust peer). - * - * Generated by deriving the `Hash` trait in Rust. - */ - hashCode(): /*u64*/ bigint { - return FfiConverterUInt64.lift( - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_method_zaprequestdata_uniffi_trait_hash( - uniffiTypeZapRequestDataObjectFactory.clonePointer(this), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - const ptr = (this as any)[destructorGuardSymbol]; - if (ptr !== undefined) { - const pointer = uniffiTypeZapRequestDataObjectFactory.pointer(this); - uniffiTypeZapRequestDataObjectFactory.freePointer(pointer); - uniffiTypeZapRequestDataObjectFactory.unbless(ptr); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is ZapRequestData { - return uniffiTypeZapRequestDataObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeZapRequestDataObjectFactory: UniffiObjectFactory<ZapRequestDataInterface> = - { - create(pointer: UnsafeMutableRawPointer): ZapRequestDataInterface { - const instance = Object.create(ZapRequestData.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'ZapRequestData'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return uniffiCaller.rustCall( - /*caller:*/ (status) => - nativeModule().ubrn_uniffi_internal_fn_method_zaprequestdata_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - unbless(ptr: UniffiRustArcPtr) { - ptr.markDestroyed(); - }, - - pointer(obj: ZapRequestDataInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: ZapRequestDataInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_clone_zaprequestdata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - uniffiCaller.rustCall( - /*caller:*/ (callStatus) => - nativeModule().ubrn_uniffi_nostr_sdk_ffi_fn_free_zaprequestdata( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is ZapRequestDataInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'ZapRequestData' - ); - }, - }; -// FfiConverter for ZapRequestDataInterface -const FfiConverterTypeZapRequestData = new FfiConverterObject( - uniffiTypeZapRequestDataObjectFactory -); - -// FfiConverter for boolean | undefined -const FfiConverterOptionalBool = new FfiConverterOptional(FfiConverterBool); - -// FfiConverter for UniffiDuration | undefined -const FfiConverterOptionalDuration = new FfiConverterOptional( - FfiConverterDuration -); - -// FfiConverter for /*i32*/number | undefined -const FfiConverterOptionalInt32 = new FfiConverterOptional(FfiConverterInt32); - -// FfiConverter for FeeSchedules | undefined -const FfiConverterOptionalTypeFeeSchedules = new FfiConverterOptional( - FfiConverterTypeFeeSchedules -); - -// FfiConverter for Image | undefined -const FfiConverterOptionalTypeImage = new FfiConverterOptional( - FfiConverterTypeImage -); - -// FfiConverter for ImageDimensions | undefined -const FfiConverterOptionalTypeImageDimensions = new FfiConverterOptional( - FfiConverterTypeImageDimensions -); - -// FfiConverter for Limitation | undefined -const FfiConverterOptionalTypeLimitation = new FfiConverterOptional( - FfiConverterTypeLimitation -); - -// FfiConverter for LiveEventHost | undefined -const FfiConverterOptionalTypeLiveEventHost = new FfiConverterOptional( - FfiConverterTypeLiveEventHost -); - -// FfiConverter for TagClientAddress | undefined -const FfiConverterOptionalTypeTagClientAddress = new FfiConverterOptional( - FfiConverterTypeTagClientAddress -); - -// FfiConverter for WebSocketCloseFrame | undefined -const FfiConverterOptionalTypeWebSocketCloseFrame = new FfiConverterOptional( - FfiConverterTypeWebSocketCloseFrame -); - -// FfiConverter for string | undefined -const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString); - -// FfiConverter for /*u16*/number | undefined -const FfiConverterOptionalUInt16 = new FfiConverterOptional(FfiConverterUInt16); - -// FfiConverter for /*u32*/number | undefined -const FfiConverterOptionalUInt32 = new FfiConverterOptional(FfiConverterUInt32); - -// FfiConverter for /*u64*/bigint | undefined -const FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64); - -// FfiConverter for /*u8*/number | undefined -const FfiConverterOptionalUInt8 = new FfiConverterOptional(FfiConverterUInt8); - -// FfiConverter for Array<Contact> -const FfiConverterArrayTypeContact = new FfiConverterArray( - FfiConverterTypeContact -); - -// FfiConverter for Array<EmojiInfo> -const FfiConverterArrayTypeEmojiInfo = new FfiConverterArray( - FfiConverterTypeEmojiInfo -); - -// FfiConverter for Array<FeeSchedule> -const FfiConverterArrayTypeFeeSchedule = new FfiConverterArray( - FfiConverterTypeFeeSchedule -); - -// FfiConverter for Array<GenericTag> -const FfiConverterArrayTypeGenericTag = new FfiConverterArray( - FfiConverterTypeGenericTag -); - -// FfiConverter for Array<Image> -const FfiConverterArrayTypeImage = new FfiConverterArray(FfiConverterTypeImage); - -// FfiConverter for Array<KeysendTlvRecord> -const FfiConverterArrayTypeKeysendTLVRecord = new FfiConverterArray( - FfiConverterTypeKeysendTLVRecord -); - -// FfiConverter for Array<LookupInvoiceResponse> -const FfiConverterArrayTypeLookupInvoiceResponse = new FfiConverterArray( - FfiConverterTypeLookupInvoiceResponse -); - -// FfiConverter for Array<NegentropyItem> -const FfiConverterArrayTypeNegentropyItem = new FfiConverterArray( - FfiConverterTypeNegentropyItem -); - -// FfiConverter for Array<PayInvoiceRequest> -const FfiConverterArrayTypePayInvoiceRequest = new FfiConverterArray( - FfiConverterTypePayInvoiceRequest -); - -// FfiConverter for Array<PayKeysendRequest> -const FfiConverterArrayTypePayKeysendRequest = new FfiConverterArray( - FfiConverterTypePayKeysendRequest -); - -// FfiConverter for Array<Person> -const FfiConverterArrayTypePerson = new FfiConverterArray( - FfiConverterTypePerson -); - -// FfiConverter for Array<ReconciliationSendFailureItem> -const FfiConverterArrayTypeReconciliationSendFailureItem = - new FfiConverterArray(FfiConverterTypeReconciliationSendFailureItem); - -// FfiConverter for Array<Retention> -const FfiConverterArrayTypeRetention = new FfiConverterArray( - FfiConverterTypeRetention -); - -// FfiConverter for Array<ShippingCost> -const FfiConverterArrayTypeShippingCost = new FfiConverterArray( - FfiConverterTypeShippingCost -); - -// FfiConverter for Array<ShippingMethodRecord> -const FfiConverterArrayTypeShippingMethodRecord = new FfiConverterArray( - FfiConverterTypeShippingMethodRecord -); - -// FfiConverter for Array<string> -const FfiConverterArrayString = new FfiConverterArray(FfiConverterString); - -// FfiConverter for Array</*u16*/number> -const FfiConverterArrayUInt16 = new FfiConverterArray(FfiConverterUInt16); - -// FfiConverter for Map<string, JsonValue> -const FfiConverterMapStringTypeJsonValue = new FfiConverterMap( - FfiConverterString, - FfiConverterTypeJsonValue -); - -// FfiConverter for Map<string, RelayStatus> -const FfiConverterMapStringTypeRelayStatus = new FfiConverterMap( - FfiConverterString, - FfiConverterTypeRelayStatus -); - -// FfiConverter for Map<string, FilterInterface> -const FfiConverterMapStringTypeFilter = new FfiConverterMap( - FfiConverterString, - FfiConverterTypeFilter -); - -// FfiConverter for Map<string, RelayInterface> -const FfiConverterMapStringTypeRelay = new FfiConverterMap( - FfiConverterString, - FfiConverterTypeRelay -); - -// FfiConverter for Map<string, Array<ReconciliationSendFailureItem>> -const FfiConverterMapStringArrayTypeReconciliationSendFailureItem = - new FfiConverterMap( - FfiConverterString, - FfiConverterArrayTypeReconciliationSendFailureItem - ); - -// FfiConverter for JsonValue | undefined -const FfiConverterOptionalTypeJsonValue = new FfiConverterOptional( - FfiConverterTypeJsonValue -); - -// FfiConverter for KindStandard | undefined -const FfiConverterOptionalTypeKindStandard = new FfiConverterOptional( - FfiConverterTypeKindStandard -); - -// FfiConverter for LiveEventStatus | undefined -const FfiConverterOptionalTypeLiveEventStatus = new FfiConverterOptional( - FfiConverterTypeLiveEventStatus -); - -// FfiConverter for Marker | undefined -const FfiConverterOptionalTypeMarker = new FfiConverterOptional( - FfiConverterTypeMarker -); - -// FfiConverter for RelayMetadata | undefined -const FfiConverterOptionalTypeRelayMetadata = new FfiConverterOptional( - FfiConverterTypeRelayMetadata -); - -// FfiConverter for TagStandard | undefined -const FfiConverterOptionalTypeTagStandard = new FfiConverterOptional( - FfiConverterTypeTagStandard -); - -// FfiConverter for TransactionType | undefined -const FfiConverterOptionalTypeTransactionType = new FfiConverterOptional( - FfiConverterTypeTransactionType -); - -// FfiConverter for WebSocketMessage | undefined -const FfiConverterOptionalTypeWebSocketMessage = new FfiConverterOptional( - FfiConverterTypeWebSocketMessage -); - -// FfiConverter for EventInterface | undefined -const FfiConverterOptionalTypeEvent = new FfiConverterOptional( - FfiConverterTypeEvent -); - -// FfiConverter for EventIdInterface | undefined -const FfiConverterOptionalTypeEventId = new FfiConverterOptional( - FfiConverterTypeEventId -); - -// FfiConverter for FilterInterface | undefined -const FfiConverterOptionalTypeFilter = new FfiConverterOptional( - FfiConverterTypeFilter -); - -// FfiConverter for KindInterface | undefined -const FfiConverterOptionalTypeKind = new FfiConverterOptional( - FfiConverterTypeKind -); - -// FfiConverter for MetadataInterface | undefined -const FfiConverterOptionalTypeMetadata = new FfiConverterOptional( - FfiConverterTypeMetadata -); - -// FfiConverter for NostrSignerInterface | undefined -const FfiConverterOptionalTypeNostrSigner = new FfiConverterOptional( - FfiConverterTypeNostrSigner -); - -// FfiConverter for PublicKeyInterface | undefined -const FfiConverterOptionalTypePublicKey = new FfiConverterOptional( - FfiConverterTypePublicKey -); - -// FfiConverter for RelayOptionsInterface | undefined -const FfiConverterOptionalTypeRelayOptions = new FfiConverterOptional( - FfiConverterTypeRelayOptions -); - -// FfiConverter for SingleLetterTagInterface | undefined -const FfiConverterOptionalTypeSingleLetterTag = new FfiConverterOptional( - FfiConverterTypeSingleLetterTag -); - -// FfiConverter for SubscribeAutoCloseOptionsInterface | undefined -const FfiConverterOptionalTypeSubscribeAutoCloseOptions = - new FfiConverterOptional(FfiConverterTypeSubscribeAutoCloseOptions); - -// FfiConverter for TagInterface | undefined -const FfiConverterOptionalTypeTag = new FfiConverterOptional( - FfiConverterTypeTag -); - -// FfiConverter for TimestampInterface | undefined -const FfiConverterOptionalTypeTimestamp = new FfiConverterOptional( - FfiConverterTypeTimestamp -); - -// FfiConverter for WebSocketAdapterWrapperInterface | undefined -const FfiConverterOptionalTypeWebSocketAdapterWrapper = - new FfiConverterOptional(FfiConverterTypeWebSocketAdapterWrapper); - -// FfiConverter for Array<string> | undefined -const FfiConverterOptionalArrayString = new FfiConverterOptional( - FfiConverterArrayString -); - -// FfiConverter for Array</*u16*/number> | undefined -const FfiConverterOptionalArrayUInt16 = new FfiConverterOptional( - FfiConverterArrayUInt16 -); - -// FfiConverter for Array<JsonValue> -const FfiConverterArrayTypeJsonValue = new FfiConverterArray( - FfiConverterTypeJsonValue -); - -// FfiConverter for Array<RetentionKind> -const FfiConverterArrayTypeRetentionKind = new FfiConverterArray( - FfiConverterTypeRetentionKind -); - -// FfiConverter for Array<TagStandard> -const FfiConverterArrayTypeTagStandard = new FfiConverterArray( - FfiConverterTypeTagStandard -); - -// FfiConverter for Array<ClientMessageInterface> -const FfiConverterArrayTypeClientMessage = new FfiConverterArray( - FfiConverterTypeClientMessage -); - -// FfiConverter for Array<CoordinateInterface> -const FfiConverterArrayTypeCoordinate = new FfiConverterArray( - FfiConverterTypeCoordinate -); - -// FfiConverter for Array<EventInterface> -const FfiConverterArrayTypeEvent = new FfiConverterArray(FfiConverterTypeEvent); - -// FfiConverter for Array<EventIdInterface> -const FfiConverterArrayTypeEventId = new FfiConverterArray( - FfiConverterTypeEventId -); - -// FfiConverter for Array<FilterInterface> -const FfiConverterArrayTypeFilter = new FfiConverterArray( - FfiConverterTypeFilter -); - -// FfiConverter for Array<KindInterface> -const FfiConverterArrayTypeKind = new FfiConverterArray(FfiConverterTypeKind); - -// FfiConverter for Array<Nip21Interface> -const FfiConverterArrayTypeNip21 = new FfiConverterArray(FfiConverterTypeNip21); - -// FfiConverter for Array<PublicKeyInterface> -const FfiConverterArrayTypePublicKey = new FfiConverterArray( - FfiConverterTypePublicKey -); - -// FfiConverter for Array<ShippingMethodInterface> -const FfiConverterArrayTypeShippingMethod = new FfiConverterArray( - FfiConverterTypeShippingMethod -); - -// FfiConverter for Array<TagInterface> -const FfiConverterArrayTypeTag = new FfiConverterArray(FfiConverterTypeTag); - -// FfiConverter for Array<Array<string>> -const FfiConverterArrayArrayString = new FfiConverterArray( - FfiConverterArrayString -); - -// FfiConverter for Map<string, RelayMetadata | undefined> -const FfiConverterMapStringOptionalTypeRelayMetadata = new FfiConverterMap( - FfiConverterString, - FfiConverterOptionalTypeRelayMetadata -); - -// FfiConverter for Array<RetentionKind> | undefined -const FfiConverterOptionalArrayTypeRetentionKind = new FfiConverterOptional( - FfiConverterArrayTypeRetentionKind -); - -// FfiConverter for Array<EventIdInterface> | undefined -const FfiConverterOptionalArrayTypeEventId = new FfiConverterOptional( - FfiConverterArrayTypeEventId -); - -// FfiConverter for Array<KindInterface> | undefined -const FfiConverterOptionalArrayTypeKind = new FfiConverterOptional( - FfiConverterArrayTypeKind -); - -// FfiConverter for Array<PublicKeyInterface> | undefined -const FfiConverterOptionalArrayTypePublicKey = new FfiConverterOptional( - FfiConverterArrayTypePublicKey -); - -// FfiConverter for Array<Array<string>> | undefined -const FfiConverterOptionalArrayArrayString = new FfiConverterOptional( - FfiConverterArrayArrayString -); - -/** - * This should be called before anything else. - * - * It is likely that this is being done for you by the library's `index.ts`. - * - * It checks versions of uniffi between when the Rust scaffolding was generated - * and when the bindings were generated. - * - * It also initializes the machinery to enable Rust to talk back to Javascript. - */ -function uniffiEnsureInitialized() { - // Get the bindings contract version from our ComponentInterface - const bindingsContractVersion = 29; - // Get the scaffolding contract version by calling the into the dylib - const scaffoldingContractVersion = - nativeModule().ubrn_ffi_nostr_sdk_ffi_uniffi_contract_version(); - if (bindingsContractVersion !== scaffoldingContractVersion) { - throw new UniffiInternalError.ContractVersionMismatch( - scaffoldingContractVersion, - bindingsContractVersion - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_create_delegation_tag() !== - 29447 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_create_delegation_tag' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_decrypt_received_private_zap_message() !== - 55155 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_decrypt_received_private_zap_message' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_decrypt_sent_private_zap_message() !== - 30641 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_decrypt_sent_private_zap_message' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_extract_relay_list() !== - 28052 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_extract_relay_list' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_generate_shared_key() !== - 60318 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_generate_shared_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_leading_zero_bits() !== - 2779 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_get_leading_zero_bits' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_nip05_profile() !== - 25210 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_get_nip05_profile' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_nip96_server_config() !== - 4061 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_get_nip96_server_config' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_get_prefixes_for_difficulty() !== - 12958 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_get_prefixes_for_difficulty' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap() !== 44375 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_gift_wrap' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_gift_wrap_from_seal() !== - 30742 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_gift_wrap_from_seal' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_git_hash_version() !== - 2908 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_git_hash_version' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_init_logger() !== - 38847 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_init_logger' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_make_private_msg() !== - 13683 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_make_private_msg' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip04_decrypt() !== - 23337 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_nip04_decrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip04_encrypt() !== - 29489 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_nip04_encrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip11_get_information_document() !== - 40832 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_nip11_get_information_document' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip21_extract_from_text() !== - 18556 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_nip21_extract_from_text' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip44_decrypt() !== - 18954 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_nip44_decrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip44_encrypt() !== - 41114 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_nip44_encrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip57_anonymous_zap_request() !== - 19524 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_nip57_anonymous_zap_request' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip57_private_zap_request() !== - 33299 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_nip57_private_zap_request' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_nip96_upload() !== - 11220 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_nip96_upload' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_sign_delegation() !== - 44344 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_sign_delegation' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_tag_kind_to_string() !== - 44698 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_tag_kind_to_string' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_validate_delegation_tag() !== - 34014 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_validate_delegation_tag' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_verify_delegation_signature() !== - 217 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_verify_delegation_signature' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_func_verify_nip05() !== - 56759 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_func_verify_nip05' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_admitpolicy_admit_event() !== - 28348 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_admitpolicy_admit_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_discovery_relay() !== - 57691 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_add_discovery_relay' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_read_relay() !== - 2002 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_add_read_relay' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay() !== - 38820 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_add_relay' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_relay_with_opts() !== - 46063 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_add_relay_with_opts' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_add_write_relay() !== - 6818 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_add_write_relay' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_automatic_authentication() !== - 51347 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_automatic_authentication' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_connect() !== - 19131 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_connect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_connect_relay() !== - 31242 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_connect_relay' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_database() !== - 35722 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_database' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect() !== - 33822 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_disconnect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_disconnect_relay() !== - 63825 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_disconnect_relay' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_combined_events() !== - 8445 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_fetch_combined_events' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events() !== - 22564 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events_from() !== - 38316 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_fetch_events_from' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_fetch_metadata() !== - 7347 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_fetch_metadata' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_all_relays() !== - 54159 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_all_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_relay() !== - 55839 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_force_remove_relay' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap() !== - 35151 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap_to() !== - 62984 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_gift_wrap_to' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_handle_notifications() !== - 8916 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_handle_notifications' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_relay() !== - 53414 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_relay' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_relays() !== - 53935 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_remove_all_relays() !== - 12546 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_remove_all_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_remove_relay() !== - 36133 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_remove_relay' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event() !== - 58506 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_send_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder() !== - 23280 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder_to() !== - 7719 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_send_event_builder_to' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_event_to() !== - 49750 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_send_event_to' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_msg_to() !== - 40734 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_send_msg_to' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg() !== - 64645 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg_to() !== - 2996 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_send_private_msg_to' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_set_metadata() !== - 31801 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_set_metadata' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_shutdown() !== - 4321 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_shutdown' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_sign_event_builder() !== - 14074 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_sign_event_builder' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_signer() !== - 31951 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_signer' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe() !== - 45449 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_subscribe' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_to() !== - 19987 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_to' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id() !== - 37609 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id_to() !== - 8370 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_subscribe_with_id_to' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscription() !== - 61368 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_subscription' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_subscriptions() !== - 36032 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_subscriptions' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_sync() !== - 10419 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_sync' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_try_connect() !== - 8744 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_try_connect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe() !== - 16499 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe_all() !== - 37740 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_unsubscribe_all' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_unwrap_gift_wrap() !== - 24699 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_unwrap_gift_wrap' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_client_wait_for_connection() !== - 388 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_client_wait_for_connection' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_admit_policy() !== - 1024 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_admit_policy' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_build() !== - 61424 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_build' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_database() !== - 21061 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_database' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_opts() !== - 22620 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_opts' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_signer() !== - 30905 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_signer' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_websocket_transport() !== - 48944 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_clientbuilder_websocket_transport' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_enum() !== - 46388 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_enum' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_json() !== - 4674 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_clientmessage_as_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_addr() !== - 43068 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_connection_addr' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_mode() !== - 217 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_connection_mode' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_connection_target() !== - 61648 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_connection_target' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_identifier() !== - 38994 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_coordinate_identifier' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_kind() !== - 7837 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_coordinate_kind' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_public_key() !== - 29286 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_coordinate_public_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_coordinate_verify() !== - 52656 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_coordinate_verify' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_backend() !== - 7020 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_backend' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_get_public_key() !== - 1696 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_get_public_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_sign_event() !== - 35436 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_sign_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_encrypt() !== - 382 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_encrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_decrypt() !== - 58024 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip04_decrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_encrypt() !== - 25563 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_encrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_decrypt() !== - 7340 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_customnostrsigner_nip44_decrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_support_ping() !== - 65059 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_support_ping' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_connect() !== - 8221 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_customwebsockettransport_connect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_decrypt() !== - 50130 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_decrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_key_security() !== - 9516 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_key_security' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_to_bech32() !== - 44747 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_to_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_version() !== - 19336 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_encryptedsecretkey_version' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_as_json() !== - 3171 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_as_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_as_pretty_json() !== - 15571 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_as_pretty_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_author() !== - 33777 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_author' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_content() !== - 63997 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_content' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_created_at() !== - 44671 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_created_at' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_id() !== - 10840 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_id' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_is_expired() !== - 16390 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_is_expired' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_is_protected() !== - 60470 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_is_protected' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_kind() !== - 37638 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_kind' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_signature() !== - 24839 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_signature' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_tags() !== - 32843 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_tags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify() !== - 3329 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_verify' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify_id() !== - 50510 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_verify_id' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_event_verify_signature() !== - 21120 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_event_verify_signature' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_allow_self_tagging() !== - 57727 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_allow_self_tagging' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_build() !== - 10100 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_build' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_custom_created_at() !== - 20379 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_custom_created_at' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_dedup_tags() !== - 16426 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_dedup_tags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_pow() !== - 47148 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_pow' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign() !== - 24133 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign_with_keys() !== - 46872 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_sign_with_keys' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_tags() !== - 22610 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventbuilder_tags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_as_bytes() !== - 22930 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventid_as_bytes' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_bech32() !== - 35036 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventid_to_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_hex() !== - 62987 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventid_to_hex' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_eventid_to_nostr_uri() !== - 15047 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_eventid_to_nostr_uri' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_contains() !== - 39963 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_events_contains' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_first() !== - 11892 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_events_first' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_is_empty() !== - 16727 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_events_is_empty' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_len() !== - 22082 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_events_len' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_merge() !== - 57155 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_events_merge' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_events_to_vec() !== - 14351 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_events_to_vec' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_aes_256_gcm() !== - 15419 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filemetadata_aes_256_gcm' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_blurhash() !== - 58338 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filemetadata_blurhash' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_dimensions() !== - 7956 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filemetadata_dimensions' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_magnet() !== - 49047 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filemetadata_magnet' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filemetadata_size() !== - 53216 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filemetadata_size' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_as_json() !== - 6808 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_as_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_as_record() !== - 6560 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_as_record' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_author() !== - 30570 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_author' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_authors() !== - 55524 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_authors' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinate() !== - 29286 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_coordinate' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_coordinates() !== - 2599 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_coordinates' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tag() !== - 11314 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tag' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tags() !== - 44033 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_custom_tags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_event() !== - 9919 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_events() !== - 6127 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_events' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtag() !== - 45839 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_hashtag' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_hashtags() !== - 34615 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_hashtags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_id() !== - 61970 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_id' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_identifier() !== - 32910 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_identifier' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_identifiers() !== - 38883 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_identifiers' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_ids() !== - 23011 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_ids' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_is_empty() !== - 21971 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_is_empty' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_kind() !== - 4634 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_kind' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_kinds() !== - 4092 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_kinds' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_limit() !== - 14746 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_limit' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_match_event() !== - 43992 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_match_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkey() !== - 17463 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_pubkey' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_pubkeys() !== - 13058 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_pubkeys' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_reference() !== - 5361 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_reference' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_references() !== - 54226 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_references' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_authors() !== - 9364 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_authors' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_coordinates() !== - 47805 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_coordinates' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_custom_tags() !== - 243 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_custom_tags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_events() !== - 30094 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_events' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_hashtags() !== - 33949 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_hashtags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_identifiers() !== - 53765 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_identifiers' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_ids() !== - 11079 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_ids' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_kinds() !== - 55693 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_kinds' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_limit() !== - 45828 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_limit' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_pubkeys() !== - 22880 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_pubkeys' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_references() !== - 62395 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_references' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_search() !== - 29028 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_search' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_since() !== - 30254 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_since' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_remove_until() !== - 41736 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_remove_until' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_search() !== - 36347 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_search' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_since() !== - 19595 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_since' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_filter_until() !== - 6520 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_filter_until' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle_msg() !== - 54779 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle_msg' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle() !== - 45027 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_handlenotification_handle' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_amount() !== - 2543 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_amount' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_extra_info() !== - 21313 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_extra_info' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_payload() !== - 45291 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_jobfeedbackdata_payload' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_public_key() !== - 21581 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_keys_public_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_secret_key() !== - 60506 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_keys_secret_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_keys_sign_schnorr() !== - 55396 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_keys_sign_schnorr' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_as_std() !== - 65021 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_kind_as_std' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_as_u16() !== - 33899 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_kind_as_u16' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_addressable() !== - 13541 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_kind_is_addressable' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_ephemeral() !== - 12268 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_kind_is_ephemeral' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_request() !== - 21807 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_request' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_result() !== - 3971 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_kind_is_job_result' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_regular() !== - 26650 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_kind_is_regular' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_kind_is_replaceable() !== - 31494 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_kind_is_replaceable' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_json() !== - 2258 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_as_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_pretty_json() !== - 48195 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_as_pretty_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_as_record() !== - 2519 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_as_record' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_about() !== - 16385 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_get_about' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_banner() !== - 54057 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_get_banner' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_custom_field() !== - 40823 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_get_custom_field' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_display_name() !== - 44347 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_get_display_name' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud06() !== - 57088 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud06' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud16() !== - 19773 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_get_lud16' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_name() !== - 1699 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_get_name' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_nip05() !== - 17207 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_get_nip05' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_picture() !== - 20724 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_get_picture' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_get_website() !== - 21850 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_get_website' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_about() !== - 24342 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_set_about' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_banner() !== - 23479 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_set_banner' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_custom_field() !== - 38634 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_set_custom_field' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_display_name() !== - 40186 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_set_display_name' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud06() !== - 19232 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud06' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud16() !== - 55868 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_set_lud16' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_name() !== - 56705 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_set_name' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_nip05() !== - 63892 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_set_nip05' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_picture() !== - 64626 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_set_picture' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_metadata_set_website() !== - 57629 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_metadata_set_website' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_balance() !== - 30742 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nwc_get_balance' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_get_info() !== - 19865 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nwc_get_info' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_list_transactions() !== - 15654 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nwc_list_transactions' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_lookup_invoice() !== - 28952 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nwc_lookup_invoice' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_make_invoice() !== - 56020 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nwc_make_invoice' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_invoice() !== - 842 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_invoice' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_keysend() !== - 38155 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nwc_pay_keysend' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nwc_status() !== - 44132 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nwc_status' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_nip46() !== - 13517 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip05profile_nip46' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_public_key() !== - 56263 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip05profile_public_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip05profile_relays() !== - 11122 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip05profile_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19_as_enum() !== - 62711 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19_as_enum' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_coordinate() !== - 31239 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_coordinate' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_relays() !== - 53978 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_bech32() !== - 787 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_nostr_uri() !== - 21870 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19coordinate_to_nostr_uri' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_author() !== - 8504 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19event_author' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_event_id() !== - 9799 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19event_event_id' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_kind() !== - 12835 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19event_kind' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_relays() !== - 14111 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19event_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_bech32() !== - 12367 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_nostr_uri() !== - 31723 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19event_to_nostr_uri' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_public_key() !== - 32958 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19profile_public_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_relays() !== - 62720 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19profile_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_bech32() !== - 36717 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_nostr_uri() !== - 28973 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip19profile_to_nostr_uri' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip21_as_enum() !== - 7140 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip21_as_enum' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nip21_to_nostr_uri() !== - 28944 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nip21_to_nostr_uri' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_bunker_uri() !== - 57336 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_bunker_uri' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_get_public_key() !== - 16592 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_get_public_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_decrypt() !== - 9737 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_decrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_encrypt() !== - 32405 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip04_encrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_decrypt() !== - 57892 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_decrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_encrypt() !== - 7459 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_nip44_encrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_relays() !== - 56157 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_sign_event() !== - 11201 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnect_sign_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_as_json() !== - 14883 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_as_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_description() !== - 63846 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_description' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_icons() !== - 20500 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_icons' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_url() !== - 5634 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrconnectmetadata_url' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_count() !== - 5629 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_count' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_delete() !== - 57958 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_delete' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_event_by_id() !== - 41668 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_event_by_id' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_metadata() !== - 5609 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_metadata' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_query() !== - 62424 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_query' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_save_event() !== - 32072 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_save_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_wipe() !== - 58001 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrdatabase_wipe' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_backend() !== - 42053 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_backend' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_get_public_key() !== - 57508 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_get_public_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_decrypt() !== - 21362 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_decrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_encrypt() !== - 56434 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip04_encrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_decrypt() !== - 9052 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_decrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_encrypt() !== - 24375 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_nip44_encrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_sign_event() !== - 15564 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrsigner_sign_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_connection_mode() !== - 29062 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_connection_mode' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_timeout() !== - 18259 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnectoptions_timeout' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_lud16() !== - 20036 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_lud16' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_public_key() !== - 21325 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_public_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_relays() !== - 31357 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_secret() !== - 15591 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_nostrwalletconnecturi_secret' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_autoconnect() !== - 15533 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_options_autoconnect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_automatic_authentication() !== - 33238 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_options_automatic_authentication' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_connection() !== - 11615 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_options_connection' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_gossip() !== - 22162 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_options_gossip' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_max_avg_latency() !== - 34264 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_options_max_avg_latency' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_options_relay_limits() !== - 11682 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_options_relay_limits' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_bech32() !== - 28181 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_publickey_to_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_hex() !== - 25698 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_publickey_to_hex' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_publickey_to_nostr_uri() !== - 54491 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_publickey_to_nostr_uri' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_batch_msg() !== - 32031 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_batch_msg' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_connect() !== - 29641 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_connect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_connection_mode() !== - 52002 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_connection_mode' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_count_events() !== - 58311 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_count_events' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_disconnect() !== - 57306 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_disconnect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_document() !== - 30968 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_document' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_fetch_events() !== - 61339 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_fetch_events' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_is_connected() !== - 18284 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_is_connected' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_opts() !== - 21198 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_opts' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_queue() !== - 23174 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_queue' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_send_event() !== - 30621 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_send_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_send_msg() !== - 53871 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_send_msg' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_stats() !== - 58574 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_stats' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_status() !== - 52365 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_status' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe() !== - 11379 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe_with_id() !== - 41014 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_subscribe_with_id' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscription() !== - 33503 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_subscription' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_subscriptions() !== - 23315 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_subscriptions' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_sync() !== - 50084 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_sync' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_sync_with_items() !== - 50768 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_sync_with_items' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_try_connect() !== - 39036 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_try_connect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe() !== - 62991 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe_all() !== - 18626 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_unsubscribe_all' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relay_url() !== - 1351 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relay_url' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_attempts() !== - 52060 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_attempts' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_received() !== - 157 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_received' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_sent() !== - 64970 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_bytes_sent' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_connected_at() !== - 27772 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_connected_at' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_first_connection_timestamp() !== - 32759 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_first_connection_timestamp' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_latency() !== - 14031 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_latency' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success() !== - 52759 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success_rate() !== - 58744 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayconnectionstats_success_rate' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_contact() !== - 33791 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_contact' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_description() !== - 55506 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_description' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_fees() !== - 52643 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_fees' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_icon() !== - 37182 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_icon' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_language_tags() !== - 5241 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_language_tags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_limitation() !== - 63667 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_limitation' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_name() !== - 54729 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_name' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_payments_url() !== - 50516 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_payments_url' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_posting_policy() !== - 57849 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_posting_policy' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_pubkey() !== - 52169 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_pubkey' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_relay_countries() !== - 43620 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_relay_countries' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_retention() !== - 48273 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_retention' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_software() !== - 34250 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_software' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_supported_nips() !== - 11144 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_supported_nips' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_tags() !== - 65245 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_tags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_version() !== - 38302 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayinformationdocument_version' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags() !== - 29781 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags_per_kind() !== - 54489 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_num_tags_per_kind' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size() !== - 63930 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size_per_kind() !== - 30650 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relaylimits_event_max_size_per_kind' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaylimits_message_max_size() !== - 39217 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relaylimits_message_max_size' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_enum() !== - 673 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_enum' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_json() !== - 14562 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relaymessage_as_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_adjust_retry_interval() !== - 25372 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayoptions_adjust_retry_interval' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_connection_mode() !== - 24699 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayoptions_connection_mode' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_limits() !== - 10405 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayoptions_limits' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_max_avg_latency() !== - 58939 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayoptions_max_avg_latency' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_ping() !== - 51607 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayoptions_ping' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_read() !== - 47081 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayoptions_read' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_reconnect() !== - 48820 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayoptions_reconnect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_retry_interval() !== - 30532 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayoptions_retry_interval' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_relayoptions_write() !== - 45946 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_relayoptions_write' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_request_method() !== - 17520 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_request_method' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_request_params() !== - 39349 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_request_params' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_encrypt() !== - 49692 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_secretkey_encrypt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_bech32() !== - 38599 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_hex() !== - 57941 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_secretkey_to_hex' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_get_shipping_cost() !== - 56592 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_get_shipping_cost' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_name() !== - 13755 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_name' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_regions() !== - 233 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_shippingmethod_regions' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_lowercase() !== - 53511 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_lowercase' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_uppercase() !== - 16786 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_singlelettertag_is_uppercase' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_json() !== - 14626 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_record() !== - 30522 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_stalldata_as_record' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_currency() !== - 40639 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_stalldata_currency' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_description() !== - 50371 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_stalldata_description' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_id() !== - 34671 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_stalldata_id' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_name() !== - 15071 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_stalldata_name' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_stalldata_shipping() !== - 17698 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_stalldata_shipping' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_exit_policy() !== - 62279 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_exit_policy' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_idle_timeout() !== - 9446 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_idle_timeout' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_timeout() !== - 16202 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_subscribeautocloseoptions_timeout' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_subscribeoptions_close_on() !== - 54857 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_subscribeoptions_close_on' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_direction() !== - 15360 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_syncoptions_direction' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_dry_run() !== - 15725 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_syncoptions_dry_run' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_syncoptions_initial_timeout() !== - 19180 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_syncoptions_initial_timeout' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_as_standardized() !== - 39092 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tag_as_standardized' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_as_vec() !== - 22150 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tag_as_vec' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_content() !== - 43772 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tag_content' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_protected() !== - 61999 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tag_is_protected' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_reply() !== - 26678 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tag_is_reply' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_is_root() !== - 42913 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tag_is_root' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_kind() !== - 28437 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tag_kind' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_kind_str() !== - 21836 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tag_kind_str' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_len() !== 35144 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tag_len' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tag_single_letter_tag() !== - 50942 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tag_single_letter_tag' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_coordinates() !== - 39150 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_coordinates' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_event_ids() !== - 44166 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_event_ids' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_expiration() !== - 15697 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_expiration' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_filter() !== - 6442 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_filter' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_filter_standardized() !== - 23694 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_filter_standardized' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_find() !== - 19756 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_find' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_find_standardized() !== - 61199 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_find_standardized' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_first() !== - 16571 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_first' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_get() !== 2938 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_get' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_hashtags() !== - 50724 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_hashtags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_identifier() !== - 44864 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_identifier' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_is_empty() !== - 16467 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_is_empty' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_last() !== - 22526 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_last' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_len() !== - 28453 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_len' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_public_keys() !== - 15566 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_public_keys' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_tags_to_vec() !== - 38520 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_tags_to_vec' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_timestamp_as_secs() !== - 7797 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_timestamp_as_secs' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_timestamp_to_human_datetime() !== - 24020 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_timestamp_to_human_datetime' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_add_signature() !== - 33695 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_add_signature' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_json() !== - 14388 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_pretty_json() !== - 3289 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_as_pretty_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_author() !== - 33632 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_author' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_content() !== - 61788 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_content' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_created_at() !== - 2838 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_created_at' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_id() !== - 26673 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_id' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_kind() !== - 24650 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_kind' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign() !== - 17648 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign_with_keys() !== - 65226 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_sign_with_keys' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_tags() !== - 23219 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unsignedevent_tags' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift__none() !== - 31106 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift__none' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_rumor() !== - 9051 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_rumor' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_sender() !== - 65176 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_unwrappedgift_sender' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_send() !== - 56567 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_send' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_recv() !== - 39160 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_recv' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_close_connection() !== - 35891 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_websocketadapter_close_connection' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_amount() !== - 38837 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_amount' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_event_id() !== - 60606 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_event_id' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_lnurl() !== - 11688 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_lnurl' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_message() !== - 38998 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_method_zaprequestdata_message' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_client_new() !== - 54751 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_client_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientbuilder_new() !== - 11332 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_clientbuilder_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_auth() !== - 45144 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_auth' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_close() !== - 12470 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_close' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_count() !== - 5292 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_count' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_event() !== - 35014 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_enum() !== - 42986 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_enum' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_json() !== - 27860 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_from_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_req() !== - 60557 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_clientmessage_req' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_connection_new() !== - 32544 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_connection_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_new() !== - 25471 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_parse() !== - 59337 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_coordinate_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_from_bech32() !== - 27546 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_from_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_new() !== - 35289 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_encryptedsecretkey_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_event_from_json() !== - 14737 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_event_from_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_articles_curation_set() !== - 36328 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_articles_curation_set' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_auth() !== - 58729 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_auth' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_award_badge() !== - 41119 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_award_badge' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_blocked_relays() !== - 57431 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_blocked_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks() !== - 63306 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks_set() !== - 23068 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_bookmarks_set' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel() !== - 21555 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_metadata() !== - 54862 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_metadata' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_msg() !== - 33615 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_channel_msg' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_comment() !== - 7128 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_comment' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_communities() !== - 54557 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_communities' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_contact_list() !== - 48706 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_contact_list' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_define_badge() !== - 89 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_define_badge' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_delete() !== - 50417 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_delete' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emoji_set() !== - 6114 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emoji_set' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emojis() !== - 43073 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_emojis' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_file_metadata() !== - 8053 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_file_metadata' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_follow_set() !== - 32344 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_follow_set' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_issue() !== - 26026 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_issue' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_patch() !== - 34800 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_patch' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_repository_announcement() !== - 58206 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_git_repository_announcement' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_hide_channel_msg() !== - 8353 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_hide_channel_msg' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_http_auth() !== - 42464 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_http_auth' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interest_set() !== - 54183 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interest_set' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interests() !== - 55071 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_interests' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_feedback() !== - 11871 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_feedback' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_request() !== - 14986 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_request' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_result() !== - 48936 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_job_result' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_label() !== - 17217 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_label' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event() !== - 35589 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event_msg() !== - 36293 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_live_event_msg' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_long_form_text_note() !== - 4671 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_long_form_text_note' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_metadata() !== - 34149 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_metadata' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_channel_user() !== - 64300 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_channel_user' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_list() !== - 34705 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_mute_list' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_new() !== - 61972 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_nostr_connect() !== - 10416 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_nostr_connect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_pinned_notes() !== - 5335 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_pinned_notes' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_private_msg_rumor() !== - 6901 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_private_msg_rumor' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_product_data() !== - 57627 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_product_data' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_profile_badges() !== - 15894 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_profile_badges' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_chats() !== - 65509 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_chats' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_zap_request() !== - 49461 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_public_zap_request' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction() !== - 35984 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction_extended() !== - 29568 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_reaction_extended' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_list() !== - 56793 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_list' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_set() !== - 4966 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_relay_set' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_report() !== - 9803 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_report' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_repost() !== - 48340 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_repost' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_seal() !== - 55824 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_seal' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_search_relays() !== - 50345 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_search_relays' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_stall_data() !== - 14247 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_stall_data' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note() !== - 19143 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note_reply() !== - 45910 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_text_note_reply' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_videos_curation_set() !== - 19505 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_videos_curation_set' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_zap_receipt() !== - 16189 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventbuilder_zap_receipt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_from_bytes() !== - 63077 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventid_from_bytes' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_new() !== - 57964 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventid_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_eventid_parse() !== - 39522 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_eventid_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filemetadata_new() !== - 27821 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_filemetadata_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_json() !== - 60806 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_record() !== - 32151 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_filter_from_record' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_filter_new() !== - 58026 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_filter_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_jobfeedbackdata_new() !== - 39189 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_jobfeedbackdata_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_from_mnemonic() !== - 25690 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_keys_from_mnemonic' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_generate() !== - 61718 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_keys_generate' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_new() !== - 46666 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_keys_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_keys_parse() !== - 27763 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_keys_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_kind_from_std() !== - 49333 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_kind_from_std' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_kind_new() !== - 53039 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_kind_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_json() !== - 44036 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_record() !== - 29877 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_metadata_from_record' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_metadata_new() !== - 52664 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_metadata_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_new() !== - 24213 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nwc_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nwc_with_opts() !== - 29036 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nwc_with_opts' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19_from_bech32() !== - 12847 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19_from_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_bech32() !== - 9233 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_nostr_uri() !== - 4130 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_from_nostr_uri' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_new() !== - 56049 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19coordinate_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_bech32() !== - 48940 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_event() !== - 59343 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_nostr_uri() !== - 20420 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_from_nostr_uri' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_new() !== - 20553 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19event_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_bech32() !== - 56532 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_bech32' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_nostr_uri() !== - 54372 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_from_nostr_uri' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_new() !== - 23364 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip19profile_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nip21_parse() !== - 2093 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nip21_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnect_new() !== - 60022 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnect_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnectmetadata_new() !== - 55577 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnectmetadata_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnecturi_parse() !== - 36627 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nostrconnecturi_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrdatabase_lmdb() !== - 21752 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nostrdatabase_lmdb' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_custom() !== - 7081 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_custom' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_keys() !== - 41683 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_keys' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_nostr_connect() !== - 3051 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nostrsigner_nostr_connect' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnectoptions_new() !== - 35456 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnectoptions_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_new() !== - 61620 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_parse() !== - 31940 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_nostrwalletconnecturi_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_options_new() !== - 30503 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_options_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_from_bytes() !== - 38006 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_publickey_from_bytes' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_publickey_parse() !== - 50593 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_publickey_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relayinformationdocument_new() !== - 44412 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relayinformationdocument_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_disable() !== - 39641 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_disable' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_new() !== - 1364 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaylimits_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_auth() !== - 49391 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_auth' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_closed() !== - 12776 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_closed' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_count() !== - 38897 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_count' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_eose() !== - 61100 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_eose' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_event() !== - 41233 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_enum() !== - 34939 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_enum' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_json() !== - 52163 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_from_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_notice() !== - 17916 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_notice' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_ok() !== - 56502 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relaymessage_ok' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_relayoptions_new() !== - 32157 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_relayoptions_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_request_new() !== - 22154 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_request_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_request_parse() !== - 38336 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_request_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_from_bytes() !== - 33002 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_from_bytes' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_generate() !== - 2297 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_generate' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_parse() !== - 41672 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_secretkey_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_shippingmethod_new() !== - 54442 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_shippingmethod_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_lowercase() !== - 25781 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_lowercase' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_uppercase() !== - 26245 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_singlelettertag_uppercase' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_json() !== - 26421 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_record() !== - 10070 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_from_record' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_new() !== - 11283 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_stalldata_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeautocloseoptions_new() !== - 39595 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_subscribeautocloseoptions_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_subscribeoptions_new() !== - 56214 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_subscribeoptions_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_syncoptions_new() !== - 7169 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_syncoptions_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_alt() !== - 61627 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_alt' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_client() !== - 18574 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_client' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_coordinate() !== - 40153 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_coordinate' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_custom() !== - 55533 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_custom' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_description() !== - 31007 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_description' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event() !== - 3596 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_event' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_event_report() !== - 12542 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_event_report' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_expiration() !== - 25703 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_expiration' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_from_standardized() !== - 10696 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_from_standardized' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_hashtag() !== - 56828 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_hashtag' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_identifier() !== - 5344 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_identifier' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_image() !== - 35229 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_image' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_parse() !== - 63294 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_pow() !== - 46606 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_pow' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_protected() !== - 21460 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_protected' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key() !== - 4984 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key_report() !== - 44501 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_public_key_report' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_reference() !== - 43166 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_reference' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_relay_metadata() !== - 64762 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_relay_metadata' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tag_title() !== - 51619 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tag_title' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_list() !== - 61074 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_list' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_text() !== - 30575 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tags_from_text' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_tags_parse() !== - 21642 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_tags_parse' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_from_secs() !== - 64753 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_from_secs' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_now() !== - 13059 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_timestamp_now' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_unsignedevent_from_json() !== - 8735 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_unsignedevent_from_json' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_unwrappedgift_from_gift_wrap() !== - 4603 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_unwrappedgift_from_gift_wrap' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_websocketadapterwrapper_new() !== - 27365 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_websocketadapterwrapper_new' - ); - } - if ( - nativeModule().ubrn_uniffi_nostr_sdk_ffi_checksum_constructor_zaprequestdata_new() !== - 17704 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_nostr_sdk_ffi_checksum_constructor_zaprequestdata_new' - ); - } - - uniffiCallbackInterfaceAdmitPolicy.register(); - uniffiCallbackInterfaceCustomNostrSigner.register(); - uniffiCallbackInterfaceCustomWebSocketTransport.register(); - uniffiCallbackInterfaceHandleNotification.register(); - uniffiCallbackInterfaceWebSocketAdapter.register(); -} - -export default Object.freeze({ - initialize: uniffiEnsureInitialized, - converters: { - FfiConverterTypeAdmitPolicy, - FfiConverterTypeAdmitStatus, - FfiConverterTypeAlphabet, - FfiConverterTypeArticlesCuration, - FfiConverterTypeBookmarks, - FfiConverterTypeClient, - FfiConverterTypeClientBuilder, - FfiConverterTypeClientMessage, - FfiConverterTypeClientMessageEnum, - FfiConverterTypeConnection, - FfiConverterTypeConnectionMode, - FfiConverterTypeConnectionTarget, - FfiConverterTypeContact, - FfiConverterTypeCoordinate, - FfiConverterTypeCustomNostrSigner, - FfiConverterTypeCustomWebSocketTransport, - FfiConverterTypeDataVendingMachineStatus, - FfiConverterTypeEmojiInfo, - FfiConverterTypeEmojis, - FfiConverterTypeEncryptedSecretKey, - FfiConverterTypeEncryptedSecretKeyVersion, - FfiConverterTypeErrorCode, - FfiConverterTypeEvent, - FfiConverterTypeEventBuilder, - FfiConverterTypeEventDeletionRequest, - FfiConverterTypeEventId, - FfiConverterTypeEvents, - FfiConverterTypeExternalContentId, - FfiConverterTypeExternalIdentity, - FfiConverterTypeExtractedComment, - FfiConverterTypeFeeSchedule, - FfiConverterTypeFeeSchedules, - FfiConverterTypeFileMetadata, - FfiConverterTypeFilter, - FfiConverterTypeFilterRecord, - FfiConverterTypeGenericTag, - FfiConverterTypeGetBalanceResponse, - FfiConverterTypeGetInfoResponse, - FfiConverterTypeGitIssue, - FfiConverterTypeGitPatch, - FfiConverterTypeGitPatchCommitter, - FfiConverterTypeGitPatchContent, - FfiConverterTypeGitRepositoryAnnouncement, - FfiConverterTypeHandleNotification, - FfiConverterTypeHttpData, - FfiConverterTypeHttpMethod, - FfiConverterTypeIdentity, - FfiConverterTypeImage, - FfiConverterTypeImageDimensions, - FfiConverterTypeInterests, - FfiConverterTypeJobFeedbackData, - FfiConverterTypeJsonValue, - FfiConverterTypeKeySecurity, - FfiConverterTypeKeys, - FfiConverterTypeKeysendTLVRecord, - FfiConverterTypeKind, - FfiConverterTypeKindStandard, - FfiConverterTypeLimitation, - FfiConverterTypeListTransactionsRequest, - FfiConverterTypeLiveEvent, - FfiConverterTypeLiveEventHost, - FfiConverterTypeLiveEventMarker, - FfiConverterTypeLiveEventStatus, - FfiConverterTypeLogLevel, - FfiConverterTypeLookupInvoiceRequest, - FfiConverterTypeLookupInvoiceResponse, - FfiConverterTypeMakeInvoiceRequest, - FfiConverterTypeMakeInvoiceResponse, - FfiConverterTypeMarker, - FfiConverterTypeMetadata, - FfiConverterTypeMetadataRecord, - FfiConverterTypeMethod, - FfiConverterTypeMultiPayInvoiceRequest, - FfiConverterTypeMultiPayKeysendRequest, - FfiConverterTypeMuteList, - FfiConverterTypeNIP47Error, - FfiConverterTypeNWC, - FfiConverterTypeNegentropyItem, - FfiConverterTypeNip05Profile, - FfiConverterTypeNip19, - FfiConverterTypeNip19Coordinate, - FfiConverterTypeNip19Enum, - FfiConverterTypeNip19Event, - FfiConverterTypeNip19Profile, - FfiConverterTypeNip21, - FfiConverterTypeNip21Enum, - FfiConverterTypeNip44Version, - FfiConverterTypeNip46Request, - FfiConverterTypeNostrConnect, - FfiConverterTypeNostrConnectMessage, - FfiConverterTypeNostrConnectMetadata, - FfiConverterTypeNostrConnectURI, - FfiConverterTypeNostrDatabase, - FfiConverterTypeNostrSigner, - FfiConverterTypeNostrWalletConnectOptions, - FfiConverterTypeNostrWalletConnectURI, - FfiConverterTypeOptions, - FfiConverterTypeOutput, - FfiConverterTypePayInvoiceRequest, - FfiConverterTypePayInvoiceResponse, - FfiConverterTypePayKeysendRequest, - FfiConverterTypePayKeysendResponse, - FfiConverterTypePerson, - FfiConverterTypeProductData, - FfiConverterTypeProtocol, - FfiConverterTypePublicKey, - FfiConverterTypeReconciliation, - FfiConverterTypeReconciliationOutput, - FfiConverterTypeReconciliationSendFailureItem, - FfiConverterTypeRejectedReason, - FfiConverterTypeRelay, - FfiConverterTypeRelayConnectionStats, - FfiConverterTypeRelayInformationDocument, - FfiConverterTypeRelayLimits, - FfiConverterTypeRelayMessage, - FfiConverterTypeRelayMessageEnum, - FfiConverterTypeRelayMetadata, - FfiConverterTypeRelayOptions, - FfiConverterTypeRelayStatus, - FfiConverterTypeReport, - FfiConverterTypeReqExitPolicy, - FfiConverterTypeRequest, - FfiConverterTypeRequestParams, - FfiConverterTypeResponse, - FfiConverterTypeResponseResult, - FfiConverterTypeRetention, - FfiConverterTypeRetentionKind, - FfiConverterTypeSaveEventStatus, - FfiConverterTypeSecretKey, - FfiConverterTypeSendEventOutput, - FfiConverterTypeServerConfig, - FfiConverterTypeShippingCost, - FfiConverterTypeShippingMethod, - FfiConverterTypeShippingMethodRecord, - FfiConverterTypeSignerBackend, - FfiConverterTypeSingleLetterTag, - FfiConverterTypeStallData, - FfiConverterTypeStallDataRecord, - FfiConverterTypeSubscribeAutoCloseOptions, - FfiConverterTypeSubscribeOptions, - FfiConverterTypeSubscribeOutput, - FfiConverterTypeSyncDirection, - FfiConverterTypeSyncOptions, - FfiConverterTypeTag, - FfiConverterTypeTagClientAddress, - FfiConverterTypeTagKind, - FfiConverterTypeTagStandard, - FfiConverterTypeTags, - FfiConverterTypeTimestamp, - FfiConverterTypeTransactionType, - FfiConverterTypeUnsignedEvent, - FfiConverterTypeUnwrappedGift, - FfiConverterTypeWebSocketAdapter, - FfiConverterTypeWebSocketAdapterWrapper, - FfiConverterTypeWebSocketCloseFrame, - FfiConverterTypeWebSocketMessage, - FfiConverterTypeZapRequestData, - FfiConverterTypeZapType, - }, -}); diff --git a/src/index.tsx b/src/index.tsx deleted file mode 100644 index a22ff85..0000000 --- a/src/index.tsx +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by uniffi-bindgen-react-native -import installer from './NativeNostrSdkReactNative'; - -// Register the rust crate with Hermes -// - the boolean flag ensures this loads exactly once, even if the JS -// code is reloaded (e.g. during development with metro). -let rustInstalled = false; -if (!rustInstalled) { - installer.installRustCrate(); - rustInstalled = true; -} - -// Export the generated bindings to the app. -export * from './generated/nostr_sdk'; - -// Now import the bindings so we can: -// - intialize them -// - export them as namespaced objects as the default export. -import * as nostr_sdk from './generated/nostr_sdk'; - -// Initialize the generated bindings: mostly checksums, but also callbacks. -// - the boolean flag ensures this loads exactly once, even if the JS code -// is reloaded (e.g. during development with metro). -let initialized = false; -if (!initialized) { - nostr_sdk.default.initialize(); - initialized = true; -} - -// Export the crates as individually namespaced objects. -export default { - nostr_sdk, -}; -