pub struct Service<T>{ /* private fields */ }
Implementations§
source§impl<T> Service<T>
impl<T> Service<T>
sourcepub async fn activate_account(&self) -> Result<(), Error<Error>>
pub async fn activate_account(&self) -> Result<(), Error<Error>>
Activates a currently deactivated account. Used to finalize account migration after the account’s repo is imported and identity is setup.
sourcepub async fn check_account_status(&self) -> Result<Output, Error<Error>>
pub async fn check_account_status(&self) -> Result<Output, Error<Error>>
Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself.
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 deactivate_account(&self, input: Input) -> Result<(), Error<Error>>
pub async fn deactivate_account(&self, input: Input) -> Result<(), Error<Error>>
Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host.
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_service_auth(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_service_auth( &self, params: Parameters ) -> Result<Output, Error<Error>>
Get a signed token on behalf of the requesting DID for the requested service.
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.