]> nmode's Git Repositories - signal-cli/blobdiff - client/src/jsonrpc.rs
Added missing file attachment attributes in JsonAttachment output
[signal-cli] / client / src / jsonrpc.rs
index c0feddd0a1ae8f3c26c3a84f3a13f49630642e4c..51e41c198b68fa2eee10e6f65ea2e34d24a88bc4 100644 (file)
@@ -20,6 +20,13 @@ pub trait Rpc {
         #[allow(non_snake_case)] groupIds: Vec<String>,
     ) -> Result<Value>;
 
+    #[rpc(name = "deleteLocalAccountData", params = "named")]
+    fn delete_local_account_data(
+        &self,
+        account: Option<String>,
+        #[allow(non_snake_case)] ignoreRegistered: Option<bool>,
+    ) -> Result<Value>;
+
     #[rpc(name = "getUserStatus", params = "named")]
     fn get_user_status(&self, account: Option<String>, recipients: Vec<String>) -> Result<Value>;
 
@@ -37,13 +44,24 @@ pub trait Rpc {
     fn list_accounts(&self) -> Result<Value>;
 
     #[rpc(name = "listContacts", params = "named")]
-    fn list_contacts(&self, account: Option<String>) -> Result<Value>;
+    fn list_contacts(
+        &self,
+        account: Option<String>,
+        recipients: Vec<String>,
+        #[allow(non_snake_case)] allRecipients: bool,
+        blocked: Option<bool>,
+        name: Option<String>,
+    ) -> Result<Value>;
 
     #[rpc(name = "listDevices", params = "named")]
     fn list_devices(&self, account: Option<String>) -> Result<Value>;
 
     #[rpc(name = "listGroups", params = "named")]
-    fn list_groups(&self, account: Option<String>) -> Result<Value>;
+    fn list_groups(
+        &self,
+        account: Option<String>,
+        #[allow(non_snake_case)] groupIds: Vec<String>,
+    ) -> Result<Value>;
 
     #[rpc(name = "listIdentities", params = "named")]
     fn list_identities(&self, account: Option<String>, number: Option<String>) -> Result<Value>;
@@ -112,11 +130,22 @@ pub trait Rpc {
         #[allow(non_snake_case)] quoteMessage: Option<String>,
         #[allow(non_snake_case)] quoteMention: Vec<String>,
         sticker: Option<String>,
+        #[allow(non_snake_case)] storyTimestamp: Option<u64>,
+        #[allow(non_snake_case)] storyAuthor: Option<String>,
     ) -> Result<Value>;
 
     #[rpc(name = "sendContacts", params = "named")]
     fn send_contacts(&self, account: Option<String>) -> Result<Value>;
 
+    #[rpc(name = "sendPaymentNotification", params = "named")]
+    fn send_payment_notification(
+        &self,
+        account: Option<String>,
+        recipient: String,
+        receipt: String,
+        note: String,
+    ) -> Result<Value>;
+
     #[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<Value>;
 
     #[rpc(name = "sendReceipt", params = "named")]
@@ -227,6 +257,8 @@ pub trait Rpc {
         #[allow(non_snake_case)] removeMember: Vec<String>,
         admin: Vec<String>,
         #[allow(non_snake_case)] removeAdmin: Vec<String>,
+        ban: Vec<String>,
+        unban: Vec<String>,
         #[allow(non_snake_case)] resetLink: bool,
         #[allow(non_snake_case)] link: Option<String>,
         #[allow(non_snake_case)] setPermissionAddMember: Option<String>,
@@ -243,6 +275,7 @@ pub trait Rpc {
         #[allow(non_snake_case)] familyName: Option<String>,
         about: Option<String>,
         #[allow(non_snake_case)] aboutEmoji: Option<String>,
+        #[allow(non_snake_case)] mobileCoinAddress: Option<String>,
         avatar: Option<String>,
         #[allow(non_snake_case)] removeAvatar: bool,
     ) -> Result<Value>;