identity-service-api: Use new path metadata fields
This commit is contained in:
		
							parent
							
								
									c5e396216a
								
							
						
					
					
						commit
						ceccf74832
					
				| @ -9,9 +9,10 @@ ruma_api! { | ||||
|         description: "Publish an association between a session and a Matrix user ID.", | ||||
|         method: POST, | ||||
|         name: "bind_3pid", | ||||
|         path: "/_matrix/identity/v2/3pid/bind", | ||||
|         stable_path: "/_matrix/identity/v2/3pid/bind", | ||||
|         rate_limited: false, | ||||
|         authentication: AccessToken, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -10,9 +10,10 @@ ruma_api! { | ||||
|         description: "Determines if a given 3PID has been validated by a user.", | ||||
|         method: GET, | ||||
|         name: "check_3pid_validity", | ||||
|         path: "/_matrix/identity/v2/3pid/getValidated3pid/", | ||||
|         stable_path: "/_matrix/identity/v2/3pid/getValidated3pid/", | ||||
|         rate_limited: false, | ||||
|         authentication: AccessToken, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -9,9 +9,10 @@ ruma_api! { | ||||
|         description: "Creates a session for validating an email address.", | ||||
|         method: POST, | ||||
|         name: "create_email_validation_session", | ||||
|         path: "/_matrix/identity/v2/validate/email/requestToken", | ||||
|         stable_path: "/_matrix/identity/v2/validate/email/requestToken", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -8,9 +8,10 @@ ruma_api! { | ||||
|         description: "Validate ownership of an email address.", | ||||
|         method: POST, | ||||
|         name: "validate_email", | ||||
|         path: "/_matrix/identity/v2/validate/email/submitToken", | ||||
|         stable_path: "/_matrix/identity/v2/validate/email/submitToken", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -8,9 +8,10 @@ ruma_api! { | ||||
|         description: "Validate ownership of an email address.", | ||||
|         method: GET, | ||||
|         name: "validate_email_by_end_user", | ||||
|         path: "/_matrix/identity/v2/validate/email/submitToken", | ||||
|         stable_path: "/_matrix/identity/v2/validate/email/submitToken", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -9,9 +9,10 @@ ruma_api! { | ||||
|         description: "Creates a session for validating a phone number.", | ||||
|         method: POST, | ||||
|         name: "create_msisdn_validation_session", | ||||
|         path: "/_matrix/identity/v2/validate/msisdn/requestToken", | ||||
|         stable_path: "/_matrix/identity/v2/validate/msisdn/requestToken", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -8,9 +8,10 @@ ruma_api! { | ||||
|         description: "Validate ownership of an phone number.", | ||||
|         method: POST, | ||||
|         name: "validate_msisdn", | ||||
|         path: "/_matrix/identity/v2/validate/msisdn/submitToken", | ||||
|         stable_path: "/_matrix/identity/v2/validate/msisdn/submitToken", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -8,9 +8,10 @@ ruma_api! { | ||||
|         description: "Validate ownership of an email address.", | ||||
|         method: GET, | ||||
|         name: "validate_email_by_end_user", | ||||
|         path: "/_matrix/identity/v2/validate/msisdn/submitToken", | ||||
|         stable_path: "/_matrix/identity/v2/validate/msisdn/submitToken", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -10,9 +10,10 @@ ruma_api! { | ||||
|         description: "Remove an association between a session and a Matrix user ID.", | ||||
|         method: POST, | ||||
|         name: "unbind_3pid", | ||||
|         path: "/_matrix/identity/v2/3pid/unbind", | ||||
|         stable_path: "/_matrix/identity/v2/3pid/unbind", | ||||
|         rate_limited: false, | ||||
|         authentication: AccessToken, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -8,9 +8,10 @@ ruma_api! { | ||||
|         description: "Gets information about what user owns the access token used in the request.", | ||||
|         method: POST, | ||||
|         name: "get_account_information", | ||||
|         path: "/_matrix/identity/v2/account", | ||||
|         stable_path: "/_matrix/identity/v2/account", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     #[derive(Default)] | ||||
|  | ||||
| @ -7,9 +7,10 @@ ruma_api! { | ||||
|         description: "Logs out the access token, preventing it from being used to authenticate future requests to the server.", | ||||
|         method: POST, | ||||
|         name: "logout", | ||||
|         path: "/_matrix/identity/v2/account/logout", | ||||
|         stable_path: "/_matrix/identity/v2/account/logout", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     #[derive(Default)] | ||||
|  | ||||
| @ -11,9 +11,10 @@ ruma_api! { | ||||
|         description: "Exchanges an OpenID token from the homeserver for an access token to access the identity server.", | ||||
|         method: POST, | ||||
|         name: "register_account", | ||||
|         path: "/_matrix/identity/v2/account/register", | ||||
|         stable_path: "/_matrix/identity/v2/account/register", | ||||
|         authentication: None, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -9,9 +9,10 @@ ruma_api! { | ||||
|         description: "Sign invitation details.", | ||||
|         method: POST, | ||||
|         name: "sign_invitation_ed25519", | ||||
|         path: "/_matrix/identity/v2/sign-ed25519", | ||||
|         stable_path: "/_matrix/identity/v2/sign-ed25519", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -10,9 +10,10 @@ ruma_api! { | ||||
|         description: "Store pending invitations to a user's 3PID.", | ||||
|         method: POST, | ||||
|         name: "store_invitation", | ||||
|         path: "/_matrix/identity/v2/store-invite", | ||||
|         stable_path: "/_matrix/identity/v2/store-invite", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -8,9 +8,10 @@ ruma_api! { | ||||
|         description: "Check whether a long-term public key is valid. The response should always be the same, provided the key exists.", | ||||
|         method: GET, | ||||
|         name: "check_public_key_validity", | ||||
|         path: "/_matrix/identity/v2/pubkey/isvalid", | ||||
|         stable_path: "/_matrix/identity/v2/pubkey/isvalid", | ||||
|         authentication: None, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -9,9 +9,10 @@ ruma_api! { | ||||
|         description: "Get the public key for the given key ID.", | ||||
|         method: GET, | ||||
|         name: "get_public_key", | ||||
|         path: "/_matrix/identity/v2/pubkey/:key_id", | ||||
|         stable_path: "/_matrix/identity/v2/pubkey/:key_id", | ||||
|         rate_limited: false, | ||||
|         authentication: None, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -8,9 +8,10 @@ ruma_api! { | ||||
|         description: "Check whether a short-term public key is valid.", | ||||
|         method: GET, | ||||
|         name: "validate_ephemeral_key", | ||||
|         path: "/_matrix/identity/v2/pubkey/ephemeral/isvalid", | ||||
|         stable_path: "/_matrix/identity/v2/pubkey/ephemeral/isvalid", | ||||
|         authentication: None, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -9,9 +9,10 @@ ruma_api! { | ||||
|         description: "Gets parameters for hashing identifiers from the server. This can include any of the algorithms defined in the spec.", | ||||
|         method: GET, | ||||
|         name: "get_hash_parameters", | ||||
|         path: "/_matrix/identity/v2/hash_details", | ||||
|         stable_path: "/_matrix/identity/v2/hash_details", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     #[derive(Default)] | ||||
|  | ||||
| @ -12,9 +12,10 @@ ruma_api! { | ||||
|         description: "Looks up the set of Matrix User IDs which have bound the 3PIDs given, if bindings are available.", | ||||
|         method: POST, | ||||
|         name: "lookup_3pid", | ||||
|         path: "/_matrix/identity/v2/lookup", | ||||
|         stable_path: "/_matrix/identity/v2/lookup", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -7,9 +7,10 @@ ruma_api! { | ||||
|         description: "Checks that an identity server is available at this API endpoint.", | ||||
|         method: GET, | ||||
|         name: "status", | ||||
|         path: "/_matrix/identity/v2", | ||||
|         stable_path: "/_matrix/identity/v2", | ||||
|         authentication: None, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     #[derive(Default)] | ||||
|  | ||||
| @ -7,9 +7,10 @@ ruma_api! { | ||||
|         description: "Called by a client to indicate that the user has accepted/agreed to the included set of URLs.", | ||||
|         method: POST, | ||||
|         name: "accept_terms_of_service", | ||||
|         path: "/_matrix/identity/v2/terms", | ||||
|         stable_path: "/_matrix/identity/v2/terms", | ||||
|         authentication: AccessToken, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     request: { | ||||
|  | ||||
| @ -10,9 +10,10 @@ ruma_api! { | ||||
|         description: "Gets all the terms of service offered by the server.", | ||||
|         method: GET, | ||||
|         name: "get_terms_of_service", | ||||
|         path: "/_matrix/identity/v2/terms", | ||||
|         stable_path: "/_matrix/identity/v2/terms", | ||||
|         authentication: None, | ||||
|         rate_limited: false, | ||||
|         added: 1.0, | ||||
|     } | ||||
| 
 | ||||
|     #[derive(Default)] | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user