Add delete_devices endpoint.
This commit is contained in:
parent
f964dd3ede
commit
d749f7ebc1
@ -19,3 +19,4 @@ Improvements:
|
||||
* Add `contains_url` to `r0::filter::RoomEventFilter` (introduced upstream in r0.3.0)
|
||||
* Update `r0::account::change_password` from r0.3.0 to r0.6.0
|
||||
* Add optional `auth` field
|
||||
* Add `r0::device::delete_devices` (introduced upstream in r0.4.0)
|
||||
|
@ -6,6 +6,7 @@ pub mod appservice;
|
||||
pub mod config;
|
||||
pub mod contact;
|
||||
pub mod context;
|
||||
pub mod device;
|
||||
pub mod directory;
|
||||
pub mod filter;
|
||||
pub mod media;
|
||||
|
3
src/r0/device.rs
Normal file
3
src/r0/device.rs
Normal file
@ -0,0 +1,3 @@
|
||||
//! Endpoints for managing devices.
|
||||
|
||||
pub mod delete_devices;
|
26
src/r0/device/delete_devices.rs
Normal file
26
src/r0/device/delete_devices.rs
Normal file
@ -0,0 +1,26 @@
|
||||
//! [POST /_matrix/client/r0/delete_devices](https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-delete-devices)
|
||||
|
||||
use crate::r0::account::AuthenticationData;
|
||||
use ruma_api::ruma_api;
|
||||
|
||||
ruma_api! {
|
||||
metadata {
|
||||
description: "Delete specified devices",
|
||||
method: POST,
|
||||
path: "/_matrix/client/r0/delete_devices",
|
||||
name: "delete_devices",
|
||||
rate_limited: false,
|
||||
requires_authentication: true,
|
||||
}
|
||||
|
||||
request {
|
||||
/// List of devices to delete.
|
||||
devices: Vec<String>,
|
||||
|
||||
/// Additional authentication information for the user-interactive authentication API.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
auth: Option<AuthenticationData>,
|
||||
}
|
||||
|
||||
response { }
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user