diff --git a/bindings/nostr-ffi/src/message/relay.rs b/bindings/nostr-ffi/src/message/relay.rs index 73e5320a7..59d0924c7 100644 --- a/bindings/nostr-ffi/src/message/relay.rs +++ b/bindings/nostr-ffi/src/message/relay.rs @@ -26,6 +26,14 @@ pub enum RelayMessage { subscription_id: String, count: u64, }, + NegMsg { + subscription_id: String, + message: String, + }, + NegErr { + subscription_id: String, + code: String, + }, } impl From for RelayMessage { @@ -59,6 +67,20 @@ impl From for RelayMessage { subscription_id: subscription_id.to_string(), count: count as u64, }, + NRelayMessage::NegMsg { + subscription_id, + message, + } => Self::NegMsg { + subscription_id: subscription_id.to_string(), + message, + }, + NRelayMessage::NegErr { + subscription_id, + code, + } => Self::NegErr { + subscription_id: subscription_id.to_string(), + code: code.to_string(), + }, } } } diff --git a/bindings/nostr-ffi/src/nostr.udl b/bindings/nostr-ffi/src/nostr.udl index 9f1a33562..b949b8b96 100644 --- a/bindings/nostr-ffi/src/nostr.udl +++ b/bindings/nostr-ffi/src/nostr.udl @@ -136,6 +136,8 @@ interface RelayMessage { Ok(string event_id, boolean status, string message); Auth(string challenge); Count(string subscription_id, u64 count); + NegMsg(string subscription_id, string message); + NegErr(string subscription_id, string code); }; interface ZapRequestData { diff --git a/bindings/nostr-sdk-ffi/src/nostr_sdk.udl b/bindings/nostr-sdk-ffi/src/nostr_sdk.udl index 507ec9dd3..3fdf391ca 100644 --- a/bindings/nostr-sdk-ffi/src/nostr_sdk.udl +++ b/bindings/nostr-sdk-ffi/src/nostr_sdk.udl @@ -156,6 +156,8 @@ interface RelayMessage { Ok(string event_id, boolean status, string message); Auth(string challenge); Count(string subscription_id, u64 count); + NegMsg(string subscription_id, string message); + NegErr(string subscription_id, string code); }; interface ZapRequestData {