X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/2a20e70aabaad0106774157a78eba60428604ac1..db42f61cbb763c6e20ab6dc2fd47ae412b6fe953:/client/src/jsonrpc.rs diff --git a/client/src/jsonrpc.rs b/client/src/jsonrpc.rs index d4ed4084..51e41c19 100644 --- a/client/src/jsonrpc.rs +++ b/client/src/jsonrpc.rs @@ -20,6 +20,13 @@ pub trait Rpc { #[allow(non_snake_case)] groupIds: Vec, ) -> Result; + #[rpc(name = "deleteLocalAccountData", params = "named")] + fn delete_local_account_data( + &self, + account: Option, + #[allow(non_snake_case)] ignoreRegistered: Option, + ) -> Result; + #[rpc(name = "getUserStatus", params = "named")] fn get_user_status(&self, account: Option, recipients: Vec) -> Result; @@ -37,13 +44,24 @@ pub trait Rpc { fn list_accounts(&self) -> Result; #[rpc(name = "listContacts", params = "named")] - fn list_contacts(&self, account: Option) -> Result; + fn list_contacts( + &self, + account: Option, + recipients: Vec, + #[allow(non_snake_case)] allRecipients: bool, + blocked: Option, + name: Option, + ) -> Result; #[rpc(name = "listDevices", params = "named")] fn list_devices(&self, account: Option) -> Result; #[rpc(name = "listGroups", params = "named")] - fn list_groups(&self, account: Option) -> Result; + fn list_groups( + &self, + account: Option, + #[allow(non_snake_case)] groupIds: Vec, + ) -> Result; #[rpc(name = "listIdentities", params = "named")] fn list_identities(&self, account: Option, number: Option) -> Result; @@ -112,11 +130,22 @@ pub trait Rpc { #[allow(non_snake_case)] quoteMessage: Option, #[allow(non_snake_case)] quoteMention: Vec, sticker: Option, + #[allow(non_snake_case)] storyTimestamp: Option, + #[allow(non_snake_case)] storyAuthor: Option, ) -> Result; #[rpc(name = "sendContacts", params = "named")] fn send_contacts(&self, account: Option) -> Result; + #[rpc(name = "sendPaymentNotification", params = "named")] + fn send_payment_notification( + &self, + account: Option, + recipient: String, + receipt: String, + note: String, + ) -> Result; + #[rpc(name = "sendReaction", params = "named")] fn send_reaction( &self, @@ -128,6 +157,7 @@ pub trait Rpc { #[allow(non_snake_case)] targetAuthor: String, #[allow(non_snake_case)] targetTimestamp: u64, remove: bool, + story: bool, ) -> Result; #[rpc(name = "sendReceipt", params = "named")] @@ -245,6 +275,7 @@ pub trait Rpc { #[allow(non_snake_case)] familyName: Option, about: Option, #[allow(non_snake_case)] aboutEmoji: Option, + #[allow(non_snake_case)] mobileCoinAddress: Option, avatar: Option, #[allow(non_snake_case)] removeAvatar: bool, ) -> Result;