pub struct Service<T>{ /* private fields */ }Implementations§
source§impl<T> Service<T>
impl<T> Service<T>
sourcepub async fn confirm_email(&self, input: Input) -> Result<(), Error<Error>>
pub async fn confirm_email(&self, input: Input) -> Result<(), Error<Error>>
Confirm an email using a token from com.atproto.server.requestEmailConfirmation.
sourcepub async fn create_account(&self, input: Input) -> Result<Output, Error<Error>>
pub async fn create_account(&self, input: Input) -> Result<Output, Error<Error>>
Create an account. Implemented by PDS.
sourcepub async fn create_app_password(
&self,
input: Input
) -> Result<Output, Error<Error>>
pub async fn create_app_password( &self, input: Input ) -> Result<Output, Error<Error>>
Create an App Password.
sourcepub async fn create_invite_code(
&self,
input: Input
) -> Result<Output, Error<Error>>
pub async fn create_invite_code( &self, input: Input ) -> Result<Output, Error<Error>>
Create an invite code.
sourcepub async fn create_invite_codes(
&self,
input: Input
) -> Result<Output, Error<Error>>
pub async fn create_invite_codes( &self, input: Input ) -> Result<Output, Error<Error>>
Create invite codes.
sourcepub async fn create_session(&self, input: Input) -> Result<Output, Error<Error>>
pub async fn create_session(&self, input: Input) -> Result<Output, Error<Error>>
Create an authentication session.
sourcepub async fn delete_account(&self, input: Input) -> Result<(), Error<Error>>
pub async fn delete_account(&self, input: Input) -> Result<(), Error<Error>>
Delete an actor’s account with a token and password. Can only be called after requesting a deletion token. Requires auth.
sourcepub async fn delete_session(&self) -> Result<(), Error<Error>>
pub async fn delete_session(&self) -> Result<(), Error<Error>>
Delete the current session. Requires auth.
sourcepub async fn describe_server(&self) -> Result<Output, Error<Error>>
pub async fn describe_server(&self) -> Result<Output, Error<Error>>
Describes the server’s account creation requirements and capabilities. Implemented by PDS.
sourcepub async fn get_account_invite_codes(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_account_invite_codes( &self, params: Parameters ) -> Result<Output, Error<Error>>
Get all invite codes for the current account. Requires auth.
sourcepub async fn get_session(&self) -> Result<Output, Error<Error>>
pub async fn get_session(&self) -> Result<Output, Error<Error>>
Get information about the current auth session. Requires auth.
sourcepub async fn refresh_session(&self) -> Result<Output, Error<Error>>
pub async fn refresh_session(&self) -> Result<Output, Error<Error>>
Refresh an authentication session. Requires auth using the ‘refreshJwt’ (not the ‘accessJwt’).
sourcepub async fn request_account_delete(&self) -> Result<(), Error<Error>>
pub async fn request_account_delete(&self) -> Result<(), Error<Error>>
Initiate a user account deletion via email.
sourcepub async fn request_email_confirmation(&self) -> Result<(), Error<Error>>
pub async fn request_email_confirmation(&self) -> Result<(), Error<Error>>
Request an email with a code to confirm ownership of email.
sourcepub async fn request_email_update(&self) -> Result<Output, Error<Error>>
pub async fn request_email_update(&self) -> Result<Output, Error<Error>>
Request a token in order to update email.
sourcepub async fn request_password_reset(
&self,
input: Input
) -> Result<(), Error<Error>>
pub async fn request_password_reset( &self, input: Input ) -> Result<(), Error<Error>>
Initiate a user account password reset via email.
sourcepub async fn reserve_signing_key(
&self,
input: Input
) -> Result<Output, Error<Error>>
pub async fn reserve_signing_key( &self, input: Input ) -> Result<Output, Error<Error>>
Reserve a repo signing key, for use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented.
sourcepub async fn reset_password(&self, input: Input) -> Result<(), Error<Error>>
pub async fn reset_password(&self, input: Input) -> Result<(), Error<Error>>
Reset a user account password using a token.