identity-service-api: Use new path metadata fields

This commit is contained in:
Jonas Platte 2022-02-13 11:25:45 +01:00
parent c5e396216a
commit ceccf74832
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
22 changed files with 44 additions and 22 deletions

View File

@ -9,9 +9,10 @@ ruma_api! {
description: "Publish an association between a session and a Matrix user ID.", description: "Publish an association between a session and a Matrix user ID.",
method: POST, method: POST,
name: "bind_3pid", name: "bind_3pid",
path: "/_matrix/identity/v2/3pid/bind", stable_path: "/_matrix/identity/v2/3pid/bind",
rate_limited: false, rate_limited: false,
authentication: AccessToken, authentication: AccessToken,
added: 1.0,
} }
request: { request: {

View File

@ -10,9 +10,10 @@ ruma_api! {
description: "Determines if a given 3PID has been validated by a user.", description: "Determines if a given 3PID has been validated by a user.",
method: GET, method: GET,
name: "check_3pid_validity", name: "check_3pid_validity",
path: "/_matrix/identity/v2/3pid/getValidated3pid/", stable_path: "/_matrix/identity/v2/3pid/getValidated3pid/",
rate_limited: false, rate_limited: false,
authentication: AccessToken, authentication: AccessToken,
added: 1.0,
} }
request: { request: {

View File

@ -9,9 +9,10 @@ ruma_api! {
description: "Creates a session for validating an email address.", description: "Creates a session for validating an email address.",
method: POST, method: POST,
name: "create_email_validation_session", name: "create_email_validation_session",
path: "/_matrix/identity/v2/validate/email/requestToken", stable_path: "/_matrix/identity/v2/validate/email/requestToken",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -8,9 +8,10 @@ ruma_api! {
description: "Validate ownership of an email address.", description: "Validate ownership of an email address.",
method: POST, method: POST,
name: "validate_email", name: "validate_email",
path: "/_matrix/identity/v2/validate/email/submitToken", stable_path: "/_matrix/identity/v2/validate/email/submitToken",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -8,9 +8,10 @@ ruma_api! {
description: "Validate ownership of an email address.", description: "Validate ownership of an email address.",
method: GET, method: GET,
name: "validate_email_by_end_user", name: "validate_email_by_end_user",
path: "/_matrix/identity/v2/validate/email/submitToken", stable_path: "/_matrix/identity/v2/validate/email/submitToken",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -9,9 +9,10 @@ ruma_api! {
description: "Creates a session for validating a phone number.", description: "Creates a session for validating a phone number.",
method: POST, method: POST,
name: "create_msisdn_validation_session", name: "create_msisdn_validation_session",
path: "/_matrix/identity/v2/validate/msisdn/requestToken", stable_path: "/_matrix/identity/v2/validate/msisdn/requestToken",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -8,9 +8,10 @@ ruma_api! {
description: "Validate ownership of an phone number.", description: "Validate ownership of an phone number.",
method: POST, method: POST,
name: "validate_msisdn", name: "validate_msisdn",
path: "/_matrix/identity/v2/validate/msisdn/submitToken", stable_path: "/_matrix/identity/v2/validate/msisdn/submitToken",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -8,9 +8,10 @@ ruma_api! {
description: "Validate ownership of an email address.", description: "Validate ownership of an email address.",
method: GET, method: GET,
name: "validate_email_by_end_user", name: "validate_email_by_end_user",
path: "/_matrix/identity/v2/validate/msisdn/submitToken", stable_path: "/_matrix/identity/v2/validate/msisdn/submitToken",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -10,9 +10,10 @@ ruma_api! {
description: "Remove an association between a session and a Matrix user ID.", description: "Remove an association between a session and a Matrix user ID.",
method: POST, method: POST,
name: "unbind_3pid", name: "unbind_3pid",
path: "/_matrix/identity/v2/3pid/unbind", stable_path: "/_matrix/identity/v2/3pid/unbind",
rate_limited: false, rate_limited: false,
authentication: AccessToken, authentication: AccessToken,
added: 1.0,
} }
request: { request: {

View File

@ -8,9 +8,10 @@ ruma_api! {
description: "Gets information about what user owns the access token used in the request.", description: "Gets information about what user owns the access token used in the request.",
method: POST, method: POST,
name: "get_account_information", name: "get_account_information",
path: "/_matrix/identity/v2/account", stable_path: "/_matrix/identity/v2/account",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
#[derive(Default)] #[derive(Default)]

View File

@ -7,9 +7,10 @@ ruma_api! {
description: "Logs out the access token, preventing it from being used to authenticate future requests to the server.", description: "Logs out the access token, preventing it from being used to authenticate future requests to the server.",
method: POST, method: POST,
name: "logout", name: "logout",
path: "/_matrix/identity/v2/account/logout", stable_path: "/_matrix/identity/v2/account/logout",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
#[derive(Default)] #[derive(Default)]

View File

@ -11,9 +11,10 @@ ruma_api! {
description: "Exchanges an OpenID token from the homeserver for an access token to access the identity server.", description: "Exchanges an OpenID token from the homeserver for an access token to access the identity server.",
method: POST, method: POST,
name: "register_account", name: "register_account",
path: "/_matrix/identity/v2/account/register", stable_path: "/_matrix/identity/v2/account/register",
authentication: None, authentication: None,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -9,9 +9,10 @@ ruma_api! {
description: "Sign invitation details.", description: "Sign invitation details.",
method: POST, method: POST,
name: "sign_invitation_ed25519", name: "sign_invitation_ed25519",
path: "/_matrix/identity/v2/sign-ed25519", stable_path: "/_matrix/identity/v2/sign-ed25519",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -10,9 +10,10 @@ ruma_api! {
description: "Store pending invitations to a user's 3PID.", description: "Store pending invitations to a user's 3PID.",
method: POST, method: POST,
name: "store_invitation", name: "store_invitation",
path: "/_matrix/identity/v2/store-invite", stable_path: "/_matrix/identity/v2/store-invite",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -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.", description: "Check whether a long-term public key is valid. The response should always be the same, provided the key exists.",
method: GET, method: GET,
name: "check_public_key_validity", name: "check_public_key_validity",
path: "/_matrix/identity/v2/pubkey/isvalid", stable_path: "/_matrix/identity/v2/pubkey/isvalid",
authentication: None, authentication: None,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -9,9 +9,10 @@ ruma_api! {
description: "Get the public key for the given key ID.", description: "Get the public key for the given key ID.",
method: GET, method: GET,
name: "get_public_key", name: "get_public_key",
path: "/_matrix/identity/v2/pubkey/:key_id", stable_path: "/_matrix/identity/v2/pubkey/:key_id",
rate_limited: false, rate_limited: false,
authentication: None, authentication: None,
added: 1.0,
} }
request: { request: {

View File

@ -8,9 +8,10 @@ ruma_api! {
description: "Check whether a short-term public key is valid.", description: "Check whether a short-term public key is valid.",
method: GET, method: GET,
name: "validate_ephemeral_key", name: "validate_ephemeral_key",
path: "/_matrix/identity/v2/pubkey/ephemeral/isvalid", stable_path: "/_matrix/identity/v2/pubkey/ephemeral/isvalid",
authentication: None, authentication: None,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -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.", description: "Gets parameters for hashing identifiers from the server. This can include any of the algorithms defined in the spec.",
method: GET, method: GET,
name: "get_hash_parameters", name: "get_hash_parameters",
path: "/_matrix/identity/v2/hash_details", stable_path: "/_matrix/identity/v2/hash_details",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
#[derive(Default)] #[derive(Default)]

View File

@ -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.", description: "Looks up the set of Matrix User IDs which have bound the 3PIDs given, if bindings are available.",
method: POST, method: POST,
name: "lookup_3pid", name: "lookup_3pid",
path: "/_matrix/identity/v2/lookup", stable_path: "/_matrix/identity/v2/lookup",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -7,9 +7,10 @@ ruma_api! {
description: "Checks that an identity server is available at this API endpoint.", description: "Checks that an identity server is available at this API endpoint.",
method: GET, method: GET,
name: "status", name: "status",
path: "/_matrix/identity/v2", stable_path: "/_matrix/identity/v2",
authentication: None, authentication: None,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
#[derive(Default)] #[derive(Default)]

View File

@ -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.", description: "Called by a client to indicate that the user has accepted/agreed to the included set of URLs.",
method: POST, method: POST,
name: "accept_terms_of_service", name: "accept_terms_of_service",
path: "/_matrix/identity/v2/terms", stable_path: "/_matrix/identity/v2/terms",
authentication: AccessToken, authentication: AccessToken,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
request: { request: {

View File

@ -10,9 +10,10 @@ ruma_api! {
description: "Gets all the terms of service offered by the server.", description: "Gets all the terms of service offered by the server.",
method: GET, method: GET,
name: "get_terms_of_service", name: "get_terms_of_service",
path: "/_matrix/identity/v2/terms", stable_path: "/_matrix/identity/v2/terms",
authentication: None, authentication: None,
rate_limited: false, rate_limited: false,
added: 1.0,
} }
#[derive(Default)] #[derive(Default)]