o
    ϖi                     @   sf   d dl mZmZmZmZ d dlmZmZ G dd deZG dd deZ	dee
ef defd	d
ZdS )    )AnyDictLiteralOptional)	NamespaceResourcec                   @   s@   e Zd ZU dZed ed< 	 eed< 	 eed< 	 ee ed< dS )Accountz6
    A user or organization account on Replicate.
    )userorganizationtypeusernamename
github_urlN)__name__
__module____qualname____doc__r   __annotations__strr    r   r   E/home/ubuntu/.local/lib/python3.10/site-packages/replicate/account.pyr      s   
 r   c                   @   s,   e Zd ZdZdefddZdefddZdS )Accountsz7
    Namespace for operations related to accounts.
    returnc                 C   s   | j dd}| }t|S )f
        Get the current account.

        Returns:
            Account: The current account.
        GET/v1/account)_client_requestjson_json_to_accountselfrespobjr   r   r   current   s   zAccounts.currentc                    s&   | j ddI dH }| }t|S )r   r   r   N)r   _async_requestr   r   r    r   r   r   async_current*   s   zAccounts.async_currentN)r   r   r   r   r   r$   r&   r   r   r   r   r      s    r   r   r   c                 C   s   t di | S )Nr   )r   )r   r   r   r   r   8   s   r   N)typingr   r   r   r   replicate.resourcer   r   r   r   r   r   r   r   r   r   <module>   s
     