client-api: Clean up invalid r0 paths
These routes never existed under r0.
This commit is contained in:
parent
59907ca579
commit
dad84ac1a0
@ -1,4 +1,4 @@
|
||||
//! [PUT /_matrix/client/r0/room_keys/keys/{roomId}/{sessionId}](https://spec.matrix.org/v1.1/client-server-api/#put_matrixclientv3room_keyskeysroomidsessionid)
|
||||
//! [PUT /_matrix/client/v3/room_keys/keys/{roomId}/{sessionId}](https://spec.matrix.org/v1.1/client-server-api/#put_matrixclientv3room_keyskeysroomidsessionid)
|
||||
|
||||
use js_int::UInt;
|
||||
use ruma_api::ruma_api;
|
||||
@ -12,7 +12,7 @@ ruma_api! {
|
||||
description: "Store several keys in the backup.",
|
||||
method: PUT,
|
||||
name: "add_backup_key_session",
|
||||
path: "/_matrix/client/r0/room_keys/keys/:room_id/:session_id",
|
||||
path: "/_matrix/client/unstable/room_keys/keys/:room_id/:session_id",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [PUT /_matrix/client/r0/room_keys/keys/{roomId}](https://spec.matrix.org/v1.1/client-server-api/#put_matrixclientv3room_keyskeysroomid)
|
||||
//! [PUT /_matrix/client/v3/room_keys/keys/{roomId}](https://spec.matrix.org/v1.1/client-server-api/#put_matrixclientv3room_keyskeysroomid)
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
@ -14,7 +14,7 @@ ruma_api! {
|
||||
description: "Store several sessions in the backup.",
|
||||
method: PUT,
|
||||
name: "add_backup_key_sessions",
|
||||
path: "/_matrix/client/r0/room_keys/keys/:room_id",
|
||||
path: "/_matrix/client/unstable/room_keys/keys/:room_id",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [PUT /_matrix/client/r0/room_keys/keys](https://spec.matrix.org/v1.1/client-server-api/#put_matrixclientv3room_keyskeys)
|
||||
//! [PUT /_matrix/client/v3/room_keys/keys](https://spec.matrix.org/v1.1/client-server-api/#put_matrixclientv3room_keyskeys)
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
@ -13,7 +13,7 @@ ruma_api! {
|
||||
description: "Store several keys in the backup.",
|
||||
method: PUT,
|
||||
name: "add_backup_keys",
|
||||
path: "/_matrix/client/r0/room_keys/keys",
|
||||
path: "/_matrix/client/unstable/room_keys/keys",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [POST /_matrix/client/r0/room_keys/version](https://spec.matrix.org/v1.1/client-server-api/#post_matrixclientv3room_keysversion)
|
||||
//! [POST /_matrix/client/v3/room_keys/version](https://spec.matrix.org/v1.1/client-server-api/#post_matrixclientv3room_keysversion)
|
||||
|
||||
use ruma_api::ruma_api;
|
||||
use ruma_serde::Raw;
|
||||
@ -10,7 +10,7 @@ ruma_api! {
|
||||
description: "Creates a new backup.",
|
||||
method: POST,
|
||||
name: "create_backup",
|
||||
path: "/_matrix/client/r0/room_keys/version",
|
||||
path: "/_matrix/client/unstable/room_keys/version",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [DELETE /_matrix/client/r0/room_keys/version/{version}](https://spec.matrix.org/v1.1/client-server-api/#delete_matrixclientv3room_keysversionversion)
|
||||
//! [DELETE /_matrix/client/v3/room_keys/version/{version}](https://spec.matrix.org/v1.1/client-server-api/#delete_matrixclientv3room_keysversionversion)
|
||||
|
||||
use ruma_api::ruma_api;
|
||||
|
||||
@ -7,7 +7,7 @@ ruma_api! {
|
||||
description: "Delete an existing backup.",
|
||||
method: DELETE,
|
||||
name: "delete_backup",
|
||||
path: "/_matrix/client/r0/room_keys/version/:version",
|
||||
path: "/_matrix/client/unstable/room_keys/version/:version",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [DELETE /_matrix/client/r0/room_keys/keys/{roomId}/{sessionId}](https://spec.matrix.org/v1.1/client-server-api/#delete_matrixclientv3room_keyskeysroomidsessionid)
|
||||
//! [DELETE /_matrix/client/v3/room_keys/keys/{roomId}/{sessionId}](https://spec.matrix.org/v1.1/client-server-api/#delete_matrixclientv3room_keyskeysroomidsessionid)
|
||||
|
||||
use js_int::UInt;
|
||||
use ruma_api::ruma_api;
|
||||
@ -9,7 +9,7 @@ ruma_api! {
|
||||
description: "Delete a key from the backup",
|
||||
method: DELETE,
|
||||
name: "delete_backup_key_session",
|
||||
path: "/_matrix/client/r0/room_keys/keys/:room_id/:session_id",
|
||||
path: "/_matrix/client/unstable/room_keys/keys/:room_id/:session_id",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [DELETE /_matrix/client/r0/room_keys/keys/{roomId}](https://spec.matrix.org/v1.1/client-server-api/#delete_matrixclientv3room_keyskeysroomid)
|
||||
//! [DELETE /_matrix/client/v3/room_keys/keys/{roomId}](https://spec.matrix.org/v1.1/client-server-api/#delete_matrixclientv3room_keyskeysroomid)
|
||||
|
||||
use js_int::UInt;
|
||||
use ruma_api::ruma_api;
|
||||
@ -9,7 +9,7 @@ ruma_api! {
|
||||
description: "Delete keys from the backup for a given room.",
|
||||
method: DELETE,
|
||||
name: "delete_backup_key_sessions",
|
||||
path: "/_matrix/client/r0/room_keys/keys/:room_id",
|
||||
path: "/_matrix/client/unstable/room_keys/keys/:room_id",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [DELETE /_matrix/client/r0/room_keys/keys](https://spec.matrix.org/v1.1/client-server-api/#delete_matrixclientv3room_keyskeys)
|
||||
//! [DELETE /_matrix/client/v3/room_keys/keys](https://spec.matrix.org/v1.1/client-server-api/#delete_matrixclientv3room_keyskeys)
|
||||
|
||||
use js_int::UInt;
|
||||
use ruma_api::ruma_api;
|
||||
@ -8,7 +8,7 @@ ruma_api! {
|
||||
description: "Delete all keys in a backup.",
|
||||
method: DELETE,
|
||||
name: "delete_backup_keys",
|
||||
path: "/_matrix/client/r0/room_keys/keys",
|
||||
path: "/_matrix/client/unstable/room_keys/keys",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [GET /_matrix/client/r0/room_keys/version/{version}](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3room_keysversionversion)
|
||||
//! [GET /_matrix/client/v3/room_keys/version/{version}](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3room_keysversionversion)
|
||||
|
||||
use js_int::UInt;
|
||||
use ruma_api::ruma_api;
|
||||
@ -13,7 +13,7 @@ ruma_api! {
|
||||
description: "Get information about an existing backup.",
|
||||
method: GET,
|
||||
name: "get_backup",
|
||||
path: "/_matrix/client/r0/room_keys/version/:version",
|
||||
path: "/_matrix/client/unstable/room_keys/version/:version",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [GET /_matrix/client/r0/room_keys/keys/{roomId}/{sessionId}](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3room_keyskeysroomidsessionid)
|
||||
//! [GET /_matrix/client/v3/room_keys/keys/{roomId}/{sessionId}](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3room_keyskeysroomidsessionid)
|
||||
|
||||
use ruma_api::ruma_api;
|
||||
use ruma_identifiers::RoomId;
|
||||
@ -11,7 +11,7 @@ ruma_api! {
|
||||
description: "Retrieve a key from the backup",
|
||||
method: GET,
|
||||
name: "get_backup_key_session",
|
||||
path: "/_matrix/client/r0/room_keys/keys/:room_id/:session_id",
|
||||
path: "/_matrix/client/unstable/room_keys/keys/:room_id/:session_id",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [GET /_matrix/client/r0/room_keys/keys/{roomId}](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3room_keyskeysroomid)
|
||||
//! [GET /_matrix/client/v3/room_keys/keys/{roomId}](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3room_keyskeysroomid)
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
@ -13,7 +13,7 @@ ruma_api! {
|
||||
description: "Retrieve sessions from the backup for a given room.",
|
||||
method: GET,
|
||||
name: "get_backup_key_sessions",
|
||||
path: "/_matrix/client/r0/room_keys/keys/:room_id",
|
||||
path: "/_matrix/client/unstable/room_keys/keys/:room_id",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [GET /_matrix/client/r0/room_keys/keys](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3room_keyskeys)
|
||||
//! [GET /_matrix/client/v3/room_keys/keys](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3room_keyskeys)
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
@ -12,7 +12,7 @@ ruma_api! {
|
||||
description: "Retrieve all keys from a backup.",
|
||||
method: GET,
|
||||
name: "get_backup_keys",
|
||||
path: "/_matrix/client/r0/room_keys/keys",
|
||||
path: "/_matrix/client/unstable/room_keys/keys",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [GET /_matrix/client/r0/room_keys/version](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3room_keysversion)
|
||||
//! [GET /_matrix/client/v3/room_keys/version](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3room_keysversion)
|
||||
|
||||
use js_int::UInt;
|
||||
use ruma_api::ruma_api;
|
||||
@ -16,7 +16,7 @@ ruma_api! {
|
||||
description: "Get information about the latest backup.",
|
||||
method: GET,
|
||||
name: "get_latest_backup",
|
||||
path: "/_matrix/client/r0/room_keys/version",
|
||||
path: "/_matrix/client/unstable/room_keys/version",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [POST /_matrix/client/r0/room_keys/version](https://spec.matrix.org/v1.1/client-server-api/#post_matrixclientv3room_keysversion)
|
||||
//! [POST /_matrix/client/v3/room_keys/version](https://spec.matrix.org/v1.1/client-server-api/#post_matrixclientv3room_keysversion)
|
||||
|
||||
use ruma_api::ruma_api;
|
||||
use ruma_serde::Raw;
|
||||
@ -10,7 +10,7 @@ ruma_api! {
|
||||
description: "Update information about an existing backup.",
|
||||
method: POST,
|
||||
name: "update_backup",
|
||||
path: "/_matrix/client/r0/room_keys/version/:version",
|
||||
path: "/_matrix/client/unstable/room_keys/version/:version",
|
||||
rate_limited: true,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [POST /_matrix/client/r0/keys/signatures/upload](https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3keyssignaturesupload)
|
||||
//! [POST /_matrix/client/v3/keys/signatures/upload](https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3keyssignaturesupload)
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
@ -11,7 +11,7 @@ ruma_api! {
|
||||
description: "Publishes cross-signing signatures for the user.",
|
||||
method: POST,
|
||||
name: "upload_signatures",
|
||||
path: "/_matrix/client/r0/keys/signatures/upload",
|
||||
path: "/_matrix/client/unstable/keys/signatures/upload",
|
||||
rate_limited: false,
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! [POST /_matrix/client/r0/keys/device_signing/upload](https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3keysdevice_signingupload)
|
||||
//! [POST /_matrix/client/v3/keys/device_signing/upload](https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3keysdevice_signingupload)
|
||||
|
||||
use ruma_api::ruma_api;
|
||||
use ruma_common::encryption::CrossSigningKey;
|
||||
|
Loading…
x
Reference in New Issue
Block a user