o
    Pj                     @   sJ   d dl mZmZ d dlmZ d dlmZ erd dlmZ G dd dZ	dS )    )TYPE_CHECKINGList)VirtualCredential)locals_to_params)BrowserContextc                   @   s~   e Zd ZdddZdddZ				dd	ed
ededededefddZd
eddfddZ		dd	ed
ede	e fddZ
dS )Credentialsbrowser_contextr   returnNc                 C   s   || _ |j| _|j| _d S )N)_browser_context_loop_dispatcher_fiber)selfr    r   R/home/thesage/.local/lib/python3.10/site-packages/playwright/_impl/_credentials.py__init__   s   zCredentials.__init__c                    s   | j jdd I d H  d S )NcredentialsInstallr
   _channelsend)r   r   r   r   install   s   zCredentials.installrpIdid
userHandle
privateKey	publicKeyc                    s,   | j jdd tt I d H }|pi d S )NcredentialsCreate
credential)r
   r   send_return_as_dictr   locals)r   r   r   r   r   r   resultr   r   r   create!   s
   
zCredentials.createc                    s"   | j jdd d|iI d H  d S )NcredentialsDeleter   r   )r   r   r   r   r   delete.   s    zCredentials.deletec                    s0   | j jdd tt I d H }|pi dg S )NcredentialsGetcredentials)r
   r   r   r   r   get)r   r   r   r   r   r   r   r%   1   s
   
zCredentials.get)r   r   r	   N)r	   N)NNNN)NN)__name__
__module____qualname__r   r   strr   r    r"   r   r%   r   r   r   r   r      s<    


r   N)
typingr   r    playwright._impl._api_structuresr   playwright._impl._helperr   !playwright._impl._browser_contextr   r   r   r   r   r   <module>   s   