Update dependencies and convert to ruma-api-macros 0.2.
This commit is contained in:
		
							parent
							
								
									745d493e01
								
							
						
					
					
						commit
						d042f63146
					
				
							
								
								
									
										20
									
								
								Cargo.toml
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								Cargo.toml
									
									
									
									
									
								
							| @ -11,15 +11,15 @@ repository = "https://github.com/ruma/ruma-client-api" | |||||||
| version = "0.1.0" | version = "0.1.0" | ||||||
| 
 | 
 | ||||||
| [dependencies] | [dependencies] | ||||||
| futures = "0.1.14" | futures = "0.1.21" | ||||||
| hyper = "0.11.1" | http = "0.1.5" | ||||||
| ruma-api = "0.4.0" | ruma-api = "0.5.0" | ||||||
| ruma-api-macros = "0.1.0" | ruma-api-macros = "0.2.2" | ||||||
| ruma-events = "0.9.0" | ruma-events = "0.10.0" | ||||||
| ruma-identifiers = "0.11.0" | ruma-identifiers = "0.11.0" | ||||||
| ruma-signatures = "0.4.0" | ruma-signatures = "0.4.0" | ||||||
| serde = "1.0.9" | serde = "1.0.57" | ||||||
| serde_derive = "1.0.9" | serde_derive = "1.0.57" | ||||||
| serde_json = "1.0.2" | serde_json = "1.0.17" | ||||||
| serde_urlencoded = "0.5.1" | serde_urlencoded = "0.5.2" | ||||||
| url = "1.5.1" | url = "1.7.0" | ||||||
|  | |||||||
| @ -6,7 +6,7 @@ | |||||||
| #![feature(proc_macro, try_from)] | #![feature(proc_macro, try_from)] | ||||||
| 
 | 
 | ||||||
| extern crate futures; | extern crate futures; | ||||||
| extern crate hyper; | extern crate http; | ||||||
| extern crate ruma_api; | extern crate ruma_api; | ||||||
| extern crate ruma_api_macros; | extern crate ruma_api_macros; | ||||||
| extern crate ruma_events; | extern crate ruma_events; | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ pub mod register { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Register an account on this homeserver.", |             description: "Register an account on this homeserver.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "register", |             name: "register", | ||||||
|             path: "/_matrix/client/r0/register", |             path: "/_matrix/client/r0/register", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -105,7 +105,7 @@ pub mod request_password_change_token { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Request that a password change token is sent to the given email address.", |             description: "Request that a password change token is sent to the given email address.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "request_password_change_token", |             name: "request_password_change_token", | ||||||
|             path: "/_matrix/client/r0/account/password/email/requestToken", |             path: "/_matrix/client/r0/account/password/email/requestToken", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -137,7 +137,7 @@ pub mod deactivate { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Deactivate the current user's account.", |             description: "Deactivate the current user's account.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "deactivate", |             name: "deactivate", | ||||||
|             path: "/_matrix/client/r0/account/deactivate", |             path: "/_matrix/client/r0/account/deactivate", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -157,7 +157,7 @@ pub mod change_password { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Change the password of the current user's account.", |             description: "Change the password of the current user's account.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "change_password", |             name: "change_password", | ||||||
|             path: "/_matrix/client/r0/account/password", |             path: "/_matrix/client/r0/account/password", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -181,7 +181,7 @@ pub mod request_register_token { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Request a register token with a 3rd party email.", |             description: "Request a register token with a 3rd party email.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "request_register_token", |             name: "request_register_token", | ||||||
|             path: "/_matrix/client/r0/register/email/requestToken", |             path: "/_matrix/client/r0/register/email/requestToken", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ pub mod create_alias { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Add an alias to a room.", |             description: "Add an alias to a room.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "create_alias", |             name: "create_alias", | ||||||
|             path: "/_matrix/client/r0/directory/room/:room_alias", |             path: "/_matrix/client/r0/directory/room/:room_alias", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -35,7 +35,7 @@ pub mod delete_alias { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Remove an alias from a room.", |             description: "Remove an alias from a room.", | ||||||
|             method: Method::Delete, |             method: DELETE, | ||||||
|             name: "delete_alias", |             name: "delete_alias", | ||||||
|             path: "/_matrix/client/r0/directory/room/:room_alias", |             path: "/_matrix/client/r0/directory/room/:room_alias", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -60,7 +60,7 @@ pub mod get_alias { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Resolve a room alias to a room ID.", |             description: "Resolve a room alias to a room ID.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_alias", |             name: "get_alias", | ||||||
|             path: "/_matrix/client/r0/directory/room/:room_alias", |             path: "/_matrix/client/r0/directory/room/:room_alias", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -9,7 +9,7 @@ pub mod set_room_account_data { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Associate account data with a room.", |             description: "Associate account data with a room.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "set_room_account_data", |             name: "set_room_account_data", | ||||||
|             path: "/_matrix/client/r0/user/:user_id/rooms/:room_id/account_data/:event_type", |             path: "/_matrix/client/r0/user/:user_id/rooms/:room_id/account_data/:event_type", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -48,7 +48,7 @@ pub mod set_global_account_data  { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Sets global account data.", |             description: "Sets global account data.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "set_global_account_data", |             name: "set_global_account_data", | ||||||
|             path: "/_matrix/client/r0/user/:user_id/account_data/:event_type", |             path: "/_matrix/client/r0/user/:user_id/account_data/:event_type", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ pub mod create_contact { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Adds contact information to the user's account.", |             description: "Adds contact information to the user's account.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "create_contact", |             name: "create_contact", | ||||||
|             path: "/_matrix/client/r0/account/3pid", |             path: "/_matrix/client/r0/account/3pid", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -47,7 +47,7 @@ pub mod get_contacts { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get a list of 3rd party contacts associated with the user's account.", |             description: "Get a list of 3rd party contacts associated with the user's account.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_contacts", |             name: "get_contacts", | ||||||
|             path: "/_matrix/client/r0/account/3pid", |             path: "/_matrix/client/r0/account/3pid", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -88,7 +88,7 @@ pub mod request_contact_verification_token { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Ask for a verification token for a given 3rd party ID.", |             description: "Ask for a verification token for a given 3rd party ID.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "request_contact_verification_token", |             name: "request_contact_verification_token", | ||||||
|             path: "/_matrix/client/r0/account/3pid/email/requestToken", |             path: "/_matrix/client/r0/account/3pid/email/requestToken", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -9,7 +9,7 @@ pub mod get_context { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get the events immediately preceding and following a given event.", |             description: "Get the events immediately preceding and following a given event.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/context/:event_id", |             path: "/_matrix/client/r0/rooms/:room_id/context/:event_id", | ||||||
|             name: "get_context", |             name: "get_context", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ pub mod get_public_rooms { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get the list of rooms in this homeserver's public directory.", |             description: "Get the list of rooms in this homeserver's public directory.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_public_rooms", |             name: "get_public_rooms", | ||||||
|             path: "/_matrix/client/r0/publicRooms", |             path: "/_matrix/client/r0/publicRooms", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -175,7 +175,7 @@ pub mod create_filter { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Create a new filter for event retrieval.", |             description: "Create a new filter for event retrieval.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "create_filter", |             name: "create_filter", | ||||||
|             path: "/_matrix/client/r0/user/:user_id/filter", |             path: "/_matrix/client/r0/user/:user_id/filter", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -210,7 +210,7 @@ pub mod get_filter { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Retrieve a previously created filter.", |             description: "Retrieve a previously created filter.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_filter", |             name: "get_filter", | ||||||
|             path: "/_matrix/client/r0/user/:user_id/filter/:filter_id", |             path: "/_matrix/client/r0/user/:user_id/filter/:filter_id", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -2,13 +2,12 @@ | |||||||
| 
 | 
 | ||||||
| /// [GET /_matrix/media/r0/download/{serverName}/{mediaId}](https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-media-r0-download-servername-mediaid)
 | /// [GET /_matrix/media/r0/download/{serverName}/{mediaId}](https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-media-r0-download-servername-mediaid)
 | ||||||
| pub mod get_content { | pub mod get_content { | ||||||
|     use hyper::header::{ContentDisposition, ContentType}; |  | ||||||
|     use ruma_api_macros::ruma_api; |     use ruma_api_macros::ruma_api; | ||||||
| 
 | 
 | ||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Retrieve content from the media store.", |             description: "Retrieve content from the media store.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_media_content", |             name: "get_media_content", | ||||||
|             path: "/_matrix/media/r0/download/:server_name/:media_id", |             path: "/_matrix/media/r0/download/:server_name/:media_id", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -29,24 +28,23 @@ pub mod get_content { | |||||||
|             #[ruma_api(body)] |             #[ruma_api(body)] | ||||||
|             pub file: Vec<u8>, |             pub file: Vec<u8>, | ||||||
|             /// The content type of the file that was previously uploaded.
 |             /// The content type of the file that was previously uploaded.
 | ||||||
|             #[ruma_api(header)] |             #[ruma_api(header = "CONTENT_TYPE")] | ||||||
|             pub content_type: ContentType, |             pub content_type: String, | ||||||
|             /// The name of the file that was previously uploaded, if set.
 |             /// The name of the file that was previously uploaded, if set.
 | ||||||
|             #[ruma_api(header)] |             #[ruma_api(header = "CONTENT_DISPOSITION")] | ||||||
|             pub content_disposition: ContentDisposition, |             pub content_disposition: String, | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /// [POST /_matrix/media/r0/upload](https://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-media-r0-upload)
 | /// [POST /_matrix/media/r0/upload](https://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-media-r0-upload)
 | ||||||
| pub mod create_content { | pub mod create_content { | ||||||
|     use hyper::header::ContentType; |  | ||||||
|     use ruma_api_macros::ruma_api; |     use ruma_api_macros::ruma_api; | ||||||
| 
 | 
 | ||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Upload content to the media store.", |             description: "Upload content to the media store.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "create_media_content", |             name: "create_media_content", | ||||||
|             path: "/_matrix/media/r0/upload", |             path: "/_matrix/media/r0/upload", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -55,8 +53,8 @@ pub mod create_content { | |||||||
| 
 | 
 | ||||||
|         request { |         request { | ||||||
|             /// The content type of the file being uploaded.
 |             /// The content type of the file being uploaded.
 | ||||||
|             #[ruma_api(header)] |             #[ruma_api(header = "CONTENT_TYPE")] | ||||||
|             pub content_type: ContentType, |             pub content_type: String, | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         response { |         response { | ||||||
| @ -84,7 +82,7 @@ pub mod get_content_thumbnail { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get a thumbnail of content from the media store.", |             description: "Get a thumbnail of content from the media store.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_content_thumbnail", |             name: "get_content_thumbnail", | ||||||
|             path: "/_matrix/media/r0/thumbnail/:server_name/:media_id", |             path: "/_matrix/media/r0/thumbnail/:server_name/:media_id", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -27,7 +27,7 @@ pub mod invite_user { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Invite a user to a room.", |             description: "Invite a user to a room.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "invite_user", |             name: "invite_user", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/invite", |             path: "/_matrix/client/r0/rooms/:room_id/invite", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -56,7 +56,7 @@ pub mod join_room_by_id_or_alias { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Join a room using its ID or one of its aliases.", |             description: "Join a room using its ID or one of its aliases.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "join_room_by_id_or_alias", |             name: "join_room_by_id_or_alias", | ||||||
|             path: "/_matrix/client/r0/join/:room_id_or_alias", |             path: "/_matrix/client/r0/join/:room_id_or_alias", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -90,7 +90,7 @@ pub mod join_room_by_id { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Join a room using its ID.", |             description: "Join a room using its ID.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "join_room_by_id", |             name: "join_room_by_id", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/join", |             path: "/_matrix/client/r0/rooms/:room_id/join", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -122,7 +122,7 @@ pub mod forget_room { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Forget a room.", |             description: "Forget a room.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "forget_room", |             name: "forget_room", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/forget", |             path: "/_matrix/client/r0/rooms/:room_id/forget", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -147,7 +147,7 @@ pub mod leave_room { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Leave a room.", |             description: "Leave a room.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "leave_room", |             name: "leave_room", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/leave", |             path: "/_matrix/client/r0/rooms/:room_id/leave", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -172,7 +172,7 @@ pub mod kick_user { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Kick a user from a room.", |             description: "Kick a user from a room.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "kick_user", |             name: "kick_user", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/kick", |             path: "/_matrix/client/r0/rooms/:room_id/kick", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -202,7 +202,7 @@ pub mod unban_user { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Unban a user from a room.", |             description: "Unban a user from a room.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "unban_user", |             name: "unban_user", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/unban", |             path: "/_matrix/client/r0/rooms/:room_id/unban", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -229,7 +229,7 @@ pub mod ban_user { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Ban a user from a room.", |             description: "Ban a user from a room.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "ban_user", |             name: "ban_user", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/ban", |             path: "/_matrix/client/r0/rooms/:room_id/ban", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -9,7 +9,7 @@ pub mod set_presence { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Set presence status for this user.", |             description: "Set presence status for this user.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "set_presence", |             name: "set_presence", | ||||||
|             path: "/_matrix/client/r0/presence/:user_id/status", |             path: "/_matrix/client/r0/presence/:user_id/status", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -40,7 +40,7 @@ pub mod get_presence { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get presence status for this user.", |             description: "Get presence status for this user.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_presence", |             name: "get_presence", | ||||||
|             path: "/_matrix/client/r0/presence/:user_id/status", |             path: "/_matrix/client/r0/presence/:user_id/status", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -77,7 +77,7 @@ pub mod update_presence_subscriptions { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Update the presence subscriptions of the user.", |             description: "Update the presence subscriptions of the user.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "update_presence_subscriptions", |             name: "update_presence_subscriptions", | ||||||
|             path: "/_matrix/client/r0/presence/list/:user_id", |             path: "/_matrix/client/r0/presence/list/:user_id", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -111,7 +111,7 @@ pub mod get_subscribed_presences { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get the precence status from the user's subscriptions.", |             description: "Get the precence status from the user's subscriptions.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_subscribed_presences", |             name: "get_subscribed_presences", | ||||||
|             path: "/_matrix/client/r0/presence/list/:user_id", |             path: "/_matrix/client/r0/presence/list/:user_id", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ pub mod get_display_name { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get the display name of a user.", |             description: "Get the display name of a user.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_display_name", |             name: "get_display_name", | ||||||
|             path: "/_matrix/client/r0/profile/:user_id/displayname", |             path: "/_matrix/client/r0/profile/:user_id/displayname", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -37,7 +37,7 @@ pub mod set_display_name { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Set the display name of the user.", |             description: "Set the display name of the user.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "set_display_name", |             name: "set_display_name", | ||||||
|             path: "/_matrix/client/r0/profile/:user_id/displayname", |             path: "/_matrix/client/r0/profile/:user_id/displayname", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -65,7 +65,7 @@ pub mod get_avatar_url { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get the avatar URL of a user.", |             description: "Get the avatar URL of a user.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_avatar_url", |             name: "get_avatar_url", | ||||||
|             path: "/_matrix/client/r0/profile/:user_id/avatar_url", |             path: "/_matrix/client/r0/profile/:user_id/avatar_url", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -94,7 +94,7 @@ pub mod set_avatar_url { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Set the avatar URL of the user.", |             description: "Set the avatar URL of the user.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "set_avatar_url", |             name: "set_avatar_url", | ||||||
|             path: "/_matrix/client/r0/profile/:user_id/avatar_url", |             path: "/_matrix/client/r0/profile/:user_id/avatar_url", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -121,7 +121,7 @@ pub mod get_profile { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get all profile information of an user.", |             description: "Get all profile information of an user.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_profile", |             name: "get_profile", | ||||||
|             path: "/_matrix/client/r0/profile/:user_id", |             path: "/_matrix/client/r0/profile/:user_id", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -10,7 +10,7 @@ pub mod create_receipt { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Send a receipt event to a room.", |             description: "Send a receipt event to a room.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "create_receipt", |             name: "create_receipt", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/receipt/:receipt_type/:event_id", |             path: "/_matrix/client/r0/rooms/:room_id/receipt/:receipt_type/:event_id", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ pub mod redact_event { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Redact an event, stripping all information not critical to the event graph integrity.", |             description: "Redact an event, stripping all information not critical to the event graph integrity.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "redact_event", |             name: "redact_event", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/redact/:event_id/:txn_id", |             path: "/_matrix/client/r0/rooms/:room_id/redact/:event_id/:txn_id", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ pub mod create_room { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Create a new room.", |             description: "Create a new room.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "create_room", |             name: "create_room", | ||||||
|             path: "/_matrix/client/r0/createRoom", |             path: "/_matrix/client/r0/createRoom", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ pub mod search_events { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Search events.", |             description: "Search events.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "search", |             name: "search", | ||||||
|             path: "/_matrix/client/r0/search", |             path: "/_matrix/client/r0/search", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
|  | |||||||
| @ -10,7 +10,7 @@ pub mod send_state_event_for_empty_key { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Send a state event to a room associated with the empty state key.", |             description: "Send a state event to a room associated with the empty state key.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "send_state_event_for_empty_key", |             name: "send_state_event_for_empty_key", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/state/:event_type", |             path: "/_matrix/client/r0/rooms/:room_id/state/:event_type", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -46,7 +46,7 @@ pub mod send_state_event_for_key { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Send a state event to a room associated with a given state key.", |             description: "Send a state event to a room associated with a given state key.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "send_state_event_for_key", |             name: "send_state_event_for_key", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/state/:event_type/:state_key", |             path: "/_matrix/client/r0/rooms/:room_id/state/:event_type/:state_key", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -85,7 +85,7 @@ pub mod send_message_event { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Send a message event to a room.", |             description: "Send a message event to a room.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "send_message_event", |             name: "send_message_event", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/send/:event_type/:txn_id", |             path: "/_matrix/client/r0/rooms/:room_id/send/:event_type/:txn_id", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -10,7 +10,7 @@ pub mod get_user_info { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get information about a particular user.", |             description: "Get information about a particular user.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_user_info", |             name: "get_user_info", | ||||||
|             path: "/_matrix/client/r0/admin/whois/:user_id", |             path: "/_matrix/client/r0/admin/whois/:user_id", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ pub mod login { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Login to the homeserver.", |             description: "Login to the homeserver.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "login", |             name: "login", | ||||||
|             path: "/_matrix/client/r0/login", |             path: "/_matrix/client/r0/login", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
| @ -77,7 +77,7 @@ pub mod logout { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Log out of the homeserver.", |             description: "Log out of the homeserver.", | ||||||
|             method: Method::Post, |             method: POST, | ||||||
|             name: "logout", |             name: "logout", | ||||||
|             path: "/_matrix/client/r0/logout", |             path: "/_matrix/client/r0/logout", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -9,7 +9,7 @@ pub mod get_state_events { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get state events for a room.", |             description: "Get state events for a room.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_state_events", |             name: "get_state_events", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/state", |             path: "/_matrix/client/r0/rooms/:room_id/state", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -41,7 +41,7 @@ pub mod get_state_events_for_empty_key { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get state events of a given type associated with the empty key.", |             description: "Get state events of a given type associated with the empty key.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_state_events_for_empty_key", |             name: "get_state_events_for_empty_key", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/state/:event_type", |             path: "/_matrix/client/r0/rooms/:room_id/state/:event_type", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -73,7 +73,7 @@ pub mod get_state_events_for_key { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get state events associated with a given key.", |             description: "Get state events associated with a given key.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_state_events_for_key", |             name: "get_state_events_for_key", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/state/:event_type/:state_key", |             path: "/_matrix/client/r0/rooms/:room_id/state/:event_type/:state_key", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -109,7 +109,7 @@ pub mod get_member_events { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get membership events for a room.", |             description: "Get membership events for a room.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_member_events", |             name: "get_member_events", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/members", |             path: "/_matrix/client/r0/rooms/:room_id/members", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -138,7 +138,7 @@ pub mod get_message_events { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get message events for a room.", |             description: "Get message events for a room.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_message_events", |             name: "get_message_events", | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/messages", |             path: "/_matrix/client/r0/rooms/:room_id/messages", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -206,7 +206,7 @@ pub mod sync_events { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get all new events from all rooms since the last sync or a given point of time.", |             description: "Get all new events from all rooms since the last sync or a given point of time.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "sync", |             name: "sync", | ||||||
|             path: "/_matrix/client/r0/sync", |             path: "/_matrix/client/r0/sync", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -9,7 +9,7 @@ pub mod create_tag { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Add a new tag to a room.", |             description: "Add a new tag to a room.", | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             name: "create_tag", |             name: "create_tag", | ||||||
|             path: "/_matrix/client/r0/user/:user_id/rooms/:room_id/tags/:tag", |             path: "/_matrix/client/r0/user/:user_id/rooms/:room_id/tags/:tag", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -44,7 +44,7 @@ pub mod get_tags { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get the tags associated with a room.", |             description: "Get the tags associated with a room.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "get_tags", |             name: "get_tags", | ||||||
|             path: "/_matrix/client/r0/user/:user_id/rooms/:room_id/tags", |             path: "/_matrix/client/r0/user/:user_id/rooms/:room_id/tags", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
| @ -75,7 +75,7 @@ pub mod delete_tag { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Remove a tag from a room.", |             description: "Remove a tag from a room.", | ||||||
|             method: Method::Delete, |             method: DELETE, | ||||||
|             name: "delete_tag", |             name: "delete_tag", | ||||||
|             path: "/_matrix/client/r0/user/:user_id/rooms/:room_id/tags/:tag", |             path: "/_matrix/client/r0/user/:user_id/rooms/:room_id/tags/:tag", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ pub mod create_typing_event { | |||||||
| 
 | 
 | ||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             method: Method::Put, |             method: PUT, | ||||||
|             path: "/_matrix/client/r0/rooms/:room_id/typing/:user_id", |             path: "/_matrix/client/r0/rooms/:room_id/typing/:user_id", | ||||||
|             name: "create_typing_event", |             name: "create_typing_event", | ||||||
|             description: "Send a typing event to a room.", |             description: "Send a typing event to a room.", | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ pub mod get_turn_server_info { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get credentials for the client to use when initiating VoIP calls.", |             description: "Get credentials for the client to use when initiating VoIP calls.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "turn_server_info", |             name: "turn_server_info", | ||||||
|             path: "_matrix/client/r0/voip/turnServer", |             path: "_matrix/client/r0/voip/turnServer", | ||||||
|             rate_limited: true, |             rate_limited: true, | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ pub mod get_supported_versions { | |||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|             description: "Get the versions of the client-server API supported by this homeserver.", |             description: "Get the versions of the client-server API supported by this homeserver.", | ||||||
|             method: Method::Get, |             method: GET, | ||||||
|             name: "api_versions", |             name: "api_versions", | ||||||
|             path: "/_matrix/client/versions", |             path: "/_matrix/client/versions", | ||||||
|             rate_limited: false, |             rate_limited: false, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user