
    _j                       S SK Jr  S SKrSSKJr  SSKJrJrJrJ	r	J
r
  SSKJr  SSKJr  SSKJrJr  SS	KJrJrJrJr  SS
KJr  SS/r " S S\5      r " S S\5      r " S S5      r " S S5      r " S S5      r " S S5      rg)    )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                  j    \ rS rSr\SS j5       r\S	S j5       rSSS\S.           S
S jjrSr	g)r      c                    [        U 5      $ z
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    T/home/rurouni/.local/lib/python3.13/site-packages/openai/resources/skills/content.pywith_raw_responseContent.with_raw_response   s     &d++    c                    [        U 5      $ 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_responseContent.with_streaming_response"   s     ,D11r    Nextra_headersextra_query
extra_bodytimeoutc                   U(       d  [        SU< 35      eSS0U=(       d    0 EnU R                  [        SUS9[        UUUUSS0S9[        R
                  S	9$ )
"  
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   r2   r'   r(   r)   r*   s         r   retrieveContent.retrieve+   sy    . VW_Vbcdd!#7QM<ORQyy6J(+'%'. %??  

 
	
r     )returnr   )rA   r#   r2   strr'   zHeaders | Noner(   zQuery | Noner)   zBody | Noner*   z'float | httpx.Timeout | None | NotGivenrA   z+_legacy_response.HttpxBinaryResponseContent
__name__
__module____qualname____firstlineno__r   r   r$   r
   r>   __static_attributes__r@   r    r   r   r      sz    , , 2 2 )-$("&;D$
$
 &$
 "$
  $
 9$
 
5$
 $
r    c                  j    \ rS rSr\SS j5       r\S	S j5       rSSS\S.           S
S jjrSr	g)r   R   c                    [        U 5      $ r   )AsyncContentWithRawResponser   s    r   r   AsyncContent.with_raw_responseS   s     +400r    c                    [        U 5      $ r"   )!AsyncContentWithStreamingResponser   s    r   r$   $AsyncContent.with_streaming_response]   s     166r    Nr&   c                  #    U(       d  [        SU< 35      eSS0U=(       d    0 EnU R                  [        SUS9[        UUUUSS0S9[        R
                  S	9I S
h  vN $  N7f)r,   r-   r.   r/   r0   r1   r3   Tr4   r6   Nr9   r=   s         r   r>   AsyncContent.retrievef   s     . VW_Vbcdd!#7QM<ORQYY6J(+'%'. %??  

 

 
	
 

s   AA&A$ A&r@   )rA   rM   )rA   rP   rB   rD   r@   r    r   r   r   R   sz    1 1 7 7 )-$("&;D$
$
 &$
 "$
  $
 9$
 
5$
 $
r    c                      \ rS rSrSS jrSrg)r      c                Z    Xl         [        R                  " UR                  5      U l        g N)_contentr   to_raw_response_wrapperr>   r   contents     r   __init__ContentWithRawResponse.__init__   s"    (@@
r    rX   r>   Nr[   r   rA   NonerE   rF   rG   rH   r\   rI   r@   r    r   r   r          
r    r   c                      \ rS rSrSS jrSrg)rM      c                Z    Xl         [        R                  " UR                  5      U l        g rW   )rX   r   async_to_raw_response_wrapperr>   rZ   s     r   r\   $AsyncContentWithRawResponse.__init__   s"    (FF
r    r^   Nr[   r   rA   r`   ra   r@   r    r   rM   rM      rb   r    rM   c                      \ rS rSrSS jrSrg)r#      c                N    Xl         [        UR                  [        5      U l        g rW   )rX   r   r>   r   rZ   s     r   r\   %ContentWithStreamingResponse.__init__   s    ;%
r    r^   Nr_   ra   r@   r    r   r#   r#          
r    r#   c                      \ rS rSrSS jrSrg)rP      c                N    Xl         [        UR                  [        5      U l        g rW   )rX   r   r>   r   rZ   s     r   r\   *AsyncContentWithStreamingResponse.__init__   s    A*
r    r^   Nrh   ra   r@   r    r   rP   rP      rm   r    rP   ) 
__future__r   httpx r   _typesr   r   r   r	   r
   _utilsr   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rM   r#   rP   r@   r    r   <module>r|      s{    #    ? ? # & :  1n
%8
o 8
v8
# 8
v
 

 

 

 
r    