Remove deprecate account bind endpoint.

This commit is contained in:
Isaiah Inuwa 2020-02-21 17:49:14 -06:00 committed by Jonas Platte
parent aca4915e8c
commit 59bbef5a35
3 changed files with 1 additions and 40 deletions

View File

@ -14,6 +14,7 @@ Breaking changes:
* Fix `r0::session::get_login_types`
* Add `allow_remote` parameter to `r0::media::get_content`
* Add missing parameters for `r0::room::create_room`
* Remove deprecated endpoint `r0::contact::create_contact` (deprecated in r0.6.0)
# 0.6.0

View File

@ -1,5 +1,4 @@
//! Endpoints for account contact information.
pub mod create_contact;
pub mod get_contacts;
pub mod request_contact_verification_token;

View File

@ -1,39 +0,0 @@
//! [POST /_matrix/client/r0/account/3pid](https://matrix.org/docs/spec/client_server/r0.4.0.html#post-matrix-client-r0-account-3pid)
use ruma_api::ruma_api;
use serde::{Deserialize, Serialize};
ruma_api! {
metadata {
description: "Adds contact information to the user's account.",
method: POST,
name: "create_contact",
path: "/_matrix/client/r0/account/3pid",
rate_limited: false,
requires_authentication: true,
}
request {
/// Whether the homeserver should also bind this third party identifier to the account's
/// Matrix ID with the passed identity server.
///
/// Default to `false` if not supplied.
#[serde(skip_serializing_if = "Option::is_none")]
pub bind: Option<bool>,
/// The third party credentials to associate with the account.
pub three_pid_creds: ThreePidCredentials,
}
response {}
}
/// The third party credentials to associate with the account.
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct ThreePidCredentials {
/// The client secret used in the session with the identity server.
pub client_secret: String,
/// The identity server to use.
pub id_server: String,
/// The session identifier given by the identity server.
pub sid: String,
}