# GENERATED CODE - DO NOT MODIFY
""""""
from __future__ import annotations
import chitose
import typing

def _create_app_password(call: chitose.xrpc.XrpcCall, name: str) -> bytes:
    """Create an app-specific password."""
    return call('com.atproto.server.createAppPassword', [], {'name': name}, {'Content-Type': 'application/json'})

class AppPassword(chitose.Object):
    """"""

    def __init__(self, name: str, password: str, created_at: str) -> None:
        self.name = name
        self.password = password
        self.created_at = created_at

    def to_dict(self) -> dict[str, typing.Any]:
        return {'name': self.name, 'password': self.password, 'createdAt': self.created_at, '$type': 'com.atproto.server.createAppPassword#appPassword'}