X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/e13dcdc85ab0e40976499765a27e70930576ab64..15c9d047033f2dd64a677aca8139a3ecd34e9472:/client/src/jsonrpc.rs diff --git a/client/src/jsonrpc.rs b/client/src/jsonrpc.rs index e3031bf3..3a117ff4 100644 --- a/client/src/jsonrpc.rs +++ b/client/src/jsonrpc.rs @@ -18,6 +18,13 @@ pub trait Rpc { uri: String, ) -> Result; + #[method(name = "addStickerPack", param_kind = map)] + async fn add_sticker_pack( + &self, + account: Option, + uri: String, + ) -> Result; + #[method(name = "block", param_kind = map)] fn block( &self, @@ -33,6 +40,15 @@ pub trait Rpc { #[allow(non_snake_case)] ignoreRegistered: Option, ) -> Result; + #[method(name = "getAttachment", param_kind = map)] + fn get_attachment( + &self, + account: Option, + id: String, + recipient: Option, + group_id: Option, + ) -> Result; + #[method(name = "getUserStatus", param_kind = map)] fn get_user_status( &self, @@ -43,6 +59,16 @@ pub trait Rpc { #[method(name = "joinGroup", param_kind = map)] fn join_group(&self, account: Option, uri: String) -> Result; + #[allow(non_snake_case)] + #[method(name = "finishChangeNumber", param_kind = map)] + fn finish_change_number( + &self, + account: Option, + number: String, + verificationCode: String, + pin: Option, + ) -> Result; + #[method(name = "finishLink", param_kind = map)] fn finish_link( &self, @@ -106,6 +132,7 @@ pub trait Rpc { account: Option, recipient: String, forget: bool, + hide: bool, ) -> Result; #[method(name = "removeDevice", param_kind = map)] @@ -128,25 +155,33 @@ pub trait Rpc { #[allow(non_snake_case)] noteToSelf: bool, ) -> Result; + #[allow(non_snake_case)] #[method(name = "send", param_kind = map)] fn send( &self, account: Option, recipients: Vec, - #[allow(non_snake_case)] groupIds: Vec, - #[allow(non_snake_case)] noteToSelf: bool, - #[allow(non_snake_case)] endSession: bool, + groupIds: Vec, + noteToSelf: bool, + endSession: bool, message: String, attachments: Vec, mentions: Vec, - #[allow(non_snake_case)] quoteTimestamp: Option, - #[allow(non_snake_case)] quoteAuthor: Option, - #[allow(non_snake_case)] quoteMessage: Option, - #[allow(non_snake_case)] quoteMention: Vec, - #[allow(non_snake_case)] quoteAttachment: Vec, + textStyle: Vec, + quoteTimestamp: Option, + quoteAuthor: Option, + quoteMessage: Option, + quoteMention: Vec, + quoteTextStyle: Vec, + quoteAttachment: Vec, + preview_url: Option, + preview_title: Option, + preview_description: Option, + preview_image: Option, sticker: Option, - #[allow(non_snake_case)] storyTimestamp: Option, - #[allow(non_snake_case)] storyAuthor: Option, + storyTimestamp: Option, + storyAuthor: Option, + editTimestamp: Option, ) -> Result; #[method(name = "sendContacts", param_kind = map)] @@ -207,6 +242,15 @@ pub trait Rpc { captcha: String, ) -> Result; + #[method(name = "startChangeNumber", param_kind = map)] + fn start_change_number( + &self, + account: Option, + number: String, + voice: bool, + captcha: Option, + ) -> Result; + #[method(name = "startLink", param_kind = map)] fn start_link(&self, account: Option) -> Result; @@ -234,18 +278,20 @@ pub trait Rpc { #[allow(non_snake_case)] deleteAccount: bool, ) -> Result; + #[allow(non_snake_case)] #[method(name = "updateAccount", param_kind = map)] fn update_account( &self, account: Option, - #[allow(non_snake_case)] deviceName: Option, + deviceName: Option, + unrestrictedUnidentifiedSender: Option, ) -> Result; #[method(name = "updateConfiguration", param_kind = map)] fn update_configuration( &self, account: Option, - #[allow(non_snake_case)] readReceiptes: Option, + #[allow(non_snake_case)] readReceipts: Option, #[allow(non_snake_case)] unidentifiedDeliveryIndicators: Option, #[allow(non_snake_case)] typingIndicators: Option, #[allow(non_snake_case)] linkPreviews: Option,