Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Add account management URL for clients #2470

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

zecakeh
Copy link
Contributor

@zecakeh zecakeh commented Mar 12, 2024

Introduces types and methods to access the account management URL for clients.

@zecakeh zecakeh force-pushed the client-account-management branch from d085b96 to d10b6ad Compare March 12, 2024 12:58
@t3chguy t3chguy requested a review from sandhose March 18, 2024 16:31
Copy link
Member

@sandhose sandhose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
#[serde(tag = "action")]
#[non_exhaustive]
pub enum AccountManagementActionFull {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is some duplication with this struct but that's probably fine for now

/// Actions parameters as defined by MSC2965
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "action")]
pub enum AccountAction {
#[serde(rename = "org.matrix.profile")]
OrgMatrixProfile,
#[serde(rename = "profile")]
Profile,
#[serde(rename = "org.matrix.sessions_list")]
OrgMatrixSessionsList,
#[serde(rename = "sessions_list")]
SessionsList,
#[serde(rename = "org.matrix.session_view")]
OrgMatrixSessionView { device_id: String },
#[serde(rename = "session_view")]
SessionView { device_id: String },
#[serde(rename = "org.matrix.session_end")]
OrgMatrixSessionEnd { device_id: String },
#[serde(rename = "session_end")]
SessionEnd { device_id: String },
#[serde(rename = "org.matrix.cross_signing_reset")]
OrgMatrixCrossSigningReset,
}

@sandhose sandhose merged commit 4eeedbe into matrix-org:main Mar 19, 2024
15 checks passed
@zecakeh zecakeh deleted the client-account-management branch March 19, 2024 16:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants