chitose.com.atproto.server package#
Submodules#
chitose.com.atproto.server.create_account module#
chitose.com.atproto.server.create_app_password module#
chitose.com.atproto.server.create_invite_code module#
chitose.com.atproto.server.create_invite_codes module#
chitose.com.atproto.server.create_session module#
chitose.com.atproto.server.defs module#
- class chitose.com.atproto.server.defs.InviteCode(code: str, available: int, disabled: bool, for_account: str, created_by: str, created_at: str, uses: list[InviteCodeUse])#
Bases:
Object- to_dict() dict#
chitose.com.atproto.server.delete_account module#
chitose.com.atproto.server.delete_session module#
chitose.com.atproto.server.describe_server module#
chitose.com.atproto.server.get_account_invite_codes module#
chitose.com.atproto.server.get_session module#
chitose.com.atproto.server.list_app_passwords module#
chitose.com.atproto.server.refresh_session module#
chitose.com.atproto.server.request_account_delete module#
chitose.com.atproto.server.request_password_reset module#
chitose.com.atproto.server.reset_password module#
chitose.com.atproto.server.revoke_app_password module#
Module contents#
- class chitose.com.atproto.server.Server_(call: Callable[[str, list[tuple[str, str | None | int | list[str]]], bytes | dict | None, dict[str, str]], bytes], subscribe: Callable[[str, list[tuple[str, str | None | int | list[str]]], Callable[[str | bytes], None]], None])#
Bases:
objectWe recommend calling methods in this class via the chitose.BskyAgent class instead of creating instances of this class directly.
- create_account(email: str, handle: str, password: str, did: str | None = None, invite_code: str | None = None, recovery_key: str | None = None) bytes#
Create an account.
- create_app_password(name: str) bytes#
Create an app-specific password.
- create_invite_code(use_count: int, for_account: str | None = None) bytes#
Create an invite code.
- create_invite_codes(code_count: int, use_count: int, for_accounts: list[str] | None = None) bytes#
Create an invite code.
- create_session(identifier: str, password: str) bytes#
Create an authentication session.
- Parameters:
identifier – Handle or other identifier supported by the server for the authenticating user.
- delete_account(did: str, password: str, token: str) bytes#
Delete a user account with a token and password.
- delete_session() bytes#
Delete the current session.
- describe_server() bytes#
Get a document describing the service’s accounts configuration.
- get_account_invite_codes(include_used: bool | None = None, create_available: bool | None = None) bytes#
Get all invite codes for a given account
- get_session() bytes#
Get information about the current session.
- list_app_passwords() bytes#
List all app-specific passwords.
- refresh_session() bytes#
Refresh an authentication session.
- request_account_delete() bytes#
Initiate a user account deletion via email.
- request_password_reset(email: str) bytes#
Initiate a user account password reset via email.
- reset_password(token: str, password: str) bytes#
Reset a user account password using a token.
- revoke_app_password(name: str) bytes#
Revoke an app-specific password by name.