o
    i                     @   s   d dl mZmZ d dlmZmZmZ d dlmZ	 d dlm
Z d dlmZ d dlmZ d dlmZ d dlmZmZmZmZmZ d d	lmZ d d
lmZ ddlmZ dde iZeG dd dZeG dd deZ eG dd deZ!dS )    )	dataclassfield)DictOptionalUnion)AsyncClient)Client)Timeout) DEFAULT_POSTGREST_CLIENT_TIMEOUT)DEFAULT_TIMEOUT)AsyncMemoryStorageAsyncSupportedStorageAuthFlowTypeSyncMemoryStorageSyncSupportedStorage)DEFAULT_FUNCTION_CLIENT_TIMEOUT)RealtimeClientOptions   )__version__zX-Client-Infozsupabase-py/c                   @   s   e Zd ZU dZeed< 	 eejdZ	e
eef ed< 	 dZeed< 	 dZeed< 	 dZee ed	< 	 eZeeeef ed
< 	 eZeed< 	 eZeed< 	 dZeed< dS )ClientOptionspublicschemadefault_factoryheadersTauto_refresh_tokenpersist_sessionNrealtimepostgrest_client_timeoutstorage_client_timeoutfunction_client_timeoutpkce	flow_type)__name__
__module____qualname__r   str__annotations__r   DEFAULT_HEADERScopyr   r   r   boolr   r   r   r   r
   r   r   intfloatr	   DEFAULT_STORAGE_CLIENT_TIMEOUTr   r   r    r"   r    r.   r.   Y/home/ubuntu/transcripts/venv/lib/python3.10/site-packages/supabase/lib/client_options.pyr      s(   
 r   c                   @      e Zd ZU eedZeed< 	 dZe	e
 ed< 	 dddddddeedf
de	e de	eeef  de	e de	e de	e d	e	e de	e
 d
eeeef dede	e dd fddZdS )AsyncClientOptionsr   storageNhttpx_clientr   r   r   r   r   r   r   r"   returnc                 C      t  }|p| j|_|p| j|_|p| j|_|p| j|_|p| j|_|p%| j|_|p+| j|_|p1| j|_|	p7| j	|_	|
p=| j
|_
|S z/Create a new SupabaseClientOptions with changes)r1   r   r   r   r   r2   r   r3   r   r   r"   selfr   r   r   r   r2   r   r3   r   r   r"   client_optionsr.   r.   r/   replaceD      zAsyncClientOptions.replace)r#   r$   r%   r   r   r2   r   r'   r3   r   AsyncHttpxClientr
   r-   r&   r   r*   r   r   r+   r,   r	   r   r:   r.   r.   r.   r/   r1   <   sP   
 	r1   c                   @   r0   )SyncClientOptionsr   r2   Nr3   r   r   r   r   r   r   r   r"   r4   c                 C   r5   r6   )r=   r   r   r   r   r2   r   r3   r   r   r"   r7   r.   r.   r/   r:   o   r;   zSyncClientOptions.replace)r#   r$   r%   r   r   r2   r   r'   r3   r   SyncHttpxClientr
   r-   r&   r   r*   r   r   r+   r,   r	   r   r:   r.   r.   r.   r/   r=   h   sP   
 	r=   N)"dataclassesr   r   typingr   r   r   httpxr   r<   r   r>   r	   postgrest.constantsr
   storage3.constantsr   r-   supabase_authr   r   r   r   r   supabase_functions.utilsr   supabase.typesr   versionr   r(   r   r1   r=   r.   r.   r.   r/   <module>   s$    "+