
    2Rj                       d dl mZ d dl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mZ dd	lmZmZmZmZ dd
lmZ ddgZ G d de      Z G d de      Z G d d      Z G d d      Z G d d      Z G d d      Zy)    )annotationsN   )_legacy_response)BodyQueryHeadersNotGiven	not_given)path_template)cached_property)SyncAPIResourceAsyncAPIResource)StreamedBinaryAPIResponseAsyncStreamedBinaryAPIResponse#to_custom_streamed_response_wrapper)async_to_custom_streamed_response_wrapper)make_request_optionsContentAsyncContentc                  Z    e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 ddZy)	r   c                    t        |       S a  
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers
        )ContentWithRawResponseselfs    g/var/www/html/meridian/meridian-ai/venv/lib/python3.12/site-packages/openai/resources/skills/content.pywith_raw_responsezContent.with_raw_response   s     &d++    c                    t        |       S z
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/openai/openai-python#with_streaming_response
        )ContentWithStreamingResponser   s    r   with_streaming_responsezContent.with_streaming_response"   s     ,D11r   Nextra_headersextra_query
extra_bodytimeoutc                   |st        d|      ddi|xs i }| j                  t        d|      t        ||||ddi      t        j
                  	      S )
Z  
        Download a skill zip bundle by its ID.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        7Expected a non-empty value for `skill_id` but received Acceptapplication/binary/skills/{skill_id}/contentskill_idbearer_authTr$   r%   r&   r'   securityoptionscast_to
ValueError_getr   r   r   HttpxBinaryResponseContentr   r/   r$   r%   r&   r'   s         r   retrievezContent.retrieve+   sy    . VW_Vbcdd!#7QM<ORQyy6J(+'%'. %??  

 
	
r   )returnr   )r<   r!   r/   strr$   zHeaders | Noner%   zQuery | Noner&   zBody | Noner'   z'float | httpx.Timeout | None | NotGivenr<   z+_legacy_response.HttpxBinaryResponseContent__name__
__module____qualname__r   r   r"   r
   r;    r   r   r   r      su    , , 2 2 )-$("&;D$
$
 &$
 "$
  $
 9$
 
5$
r   c                  Z    e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 ddZy)	r   c                    t        |       S r   )AsyncContentWithRawResponser   s    r   r   zAsyncContent.with_raw_responseS   s     +400r   c                    t        |       S r    )!AsyncContentWithStreamingResponser   s    r   r"   z$AsyncContent.with_streaming_response]   s     166r   Nr#   c                  K   |st        d|      ddi|xs i }| j                  t        d|      t        ||||ddi      t        j
                  	       d
{   S 7 w)r)   r*   r+   r,   r-   r.   r0   Tr1   r3   Nr6   r:   s         r   r;   zAsyncContent.retrievef   s     . VW_Vbcdd!#7QM<ORQYY6J(+'%'. %??  

 

 
	
 

s   AA$A"A$)r<   rF   )r<   rH   r=   r?   rC   r   r   r   r   R   su    1 1 7 7 )-$("&;D$
$
 &$
 "$
  $
 9$
 
5$
r   c                      e Zd ZddZy)r   c                Z    || _         t        j                  |j                        | _        y N)_contentr   to_raw_response_wrapperr;   r   contents     r   __init__zContentWithRawResponse.__init__   s$    (@@
r   NrP   r   r<   Noner@   rA   rB   rQ   rC   r   r   r   r          
r   r   c                      e Zd ZddZy)rF   c                Z    || _         t        j                  |j                        | _        y rL   )rM   r   async_to_raw_response_wrapperr;   rO   s     r   rQ   z$AsyncContentWithRawResponse.__init__   s$    (FF
r   NrP   r   r<   rS   rT   rC   r   r   rF   rF      rU   r   rF   c                      e Zd ZddZy)r!   c                P    || _         t        |j                  t              | _        y rL   )rM   r   r;   r   rO   s     r   rQ   z%ContentWithStreamingResponse.__init__   s!    ;%
r   NrR   rT   rC   r   r   r!   r!          
r   r!   c                      e Zd ZddZy)rH   c                P    || _         t        |j                  t              | _        y rL   )rM   r   r;   r   rO   s     r   rQ   z*AsyncContentWithStreamingResponse.__init__   s!    A*
r   NrY   rT   rC   r   r   rH   rH      r\   r   rH   ) 
__future__r   httpx r   _typesr   r   r   r	   r
   _utilsr   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rF   r!   rH   rC   r   r   <module>ri      s{    #    ? ? # & :  1n
%8
o 8
v8
# 8
v
 

 

 

 
r   