
    _j0y                       S SK Jr  S SKJrJrJrJr  S SKJr  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Jr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J r   SSK!J"r"J#r#  SSK$J%r%J&r&  SSK'J(r(J)r)  SSK*J+r+J,r,J-r-  SSK.J/r/  SSK0J1r1  SSK2J3r3  SSK4J5r5  SSK6J7r7  SSK8J9r9  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)"    )annotations)AnyListOptionalcast)chain)LiteralN   )_legacy_response)BodyOmitQueryHeadersNotGivenomit	not_given)is_givenpath_templatemaybe_transformstrip_not_givenasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncPageCursorAsyncPageCursor)AsyncPaginatormake_request_options)resource_add_paramsresource_list_paramsresource_update_params)AnthropicBetaParam)ResourceUpdateResponse)ResourceRetrieveResponse)BetaManagedAgentsFileResource) BetaManagedAgentsSessionResource)&BetaManagedAgentsDeleteSessionResource	ResourcesAsyncResourcesc                  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SS\S.                 SS jjr
\\\SSS\S.                 SS	 jjr\SSS\S.               SS
 jj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/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
)ResourcesWithRawResponseselfs    `/home/rurouni/.local/lib/python3.13/site-packages/anthropic/resources/beta/sessions/resources.pywith_raw_responseResources.with_raw_response   s     (--    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/anthropics/anthropic-sdk-python#with_streaming_response
)ResourcesWithStreamingResponser1   s    r3   with_streaming_response!Resources.with_streaming_response)   s     .d33r6   Nbetasextra_headersextra_query
extra_bodytimeoutc                  U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 En[        [        U R                  [        SUUS9[        XEXgS	9[        [        [        5      S
95      $ )Z  
Get Session Resource

Args:
  betas: Optional header to specify the beta version(s) you want to use.

  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
9Expected a non-empty value for `session_id` but received :Expected a non-empty value for `resource_id` but received anthropic-beta,c              3  8   #    U  H  n[        U5      v   M     g 7fNstr.0es     r3   	<genexpr>%Resources.retrieve.<locals>.<genexpr>T        5Lec!ffe   managed-agents-2026-04-01;/v1/sessions/{session_id}/resources/{resource_id}?beta=true
session_idresource_idr>   r?   r@   rA   optionscast_to
ValueErrorr   r   joinr   r   r   r&   _getr   r    r   r2   rW   rV   r=   r>   r?   r@   rA   s           r3   retrieveResources.retrieve2   s    6 XYcXfghhYZeYhijj	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`$IIQ) +
 -"/U_ 1  
 	
r6   c                  U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 En[        [        U R                  [        SUUS9[        S	U0[        R                  5      [        XVXxS
9[        [        [        5      S95      $ )  
Update Session Resource

Args:
  authorization_token: New authorization token for the resource. Currently only `github_repository`
      resources support token rotation.

  betas: Optional header to specify the beta version(s) you want to use.

  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
rD   rE   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   #Resources.update.<locals>.<genexpr>   rQ   rR   rS   rT   rU   authorization_tokenrX   bodyrZ   r[   )r]   r   r   r^   r   r   r   r%   _postr   r   r#   ResourceUpdateParamsr    r   	r2   rW   rV   rg   r=   r>   r?   r@   rA   s	            r3   updateResources.updatem   s   > XYcXfghhYZeYhijj	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`"JJQ) +
 %*,?@BXBmBm -"/U_ /  
 	
r6   limitpager=   r>   r?   r@   rA   c                  U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUS9[        [           [        UUUU[        UUS.[        R                  5      S	9[        [        [        5      S
9$ )  
List Session Resources

Args:
  limit: Maximum number of resources to return per page (max 1000). If omitted, returns
      all resources.

  page: Opaque cursor from a previous response's next_page field.

  betas: Optional header to specify the beta version(s) you want to use.

  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
rD   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   !Resources.list.<locals>.<genexpr>   rQ   rR   rS   -/v1/sessions/{session_id}/resources?beta=truerV   rp   rq   r>   r?   r@   rA   queryrq   rZ   model)r]   r   r   r^   r   r   _get_api_listr   r   r(   r    r   r"   ResourceListParamsr   r   	r2   rV   rp   rq   r=   r>   r?   r@   rA   s	            r3   listResources.list   s    B XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`!!IV`a @A(+'%%!& $ );; 5! " 
 	
r6   c          
     f   U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUUS9[        XEXgS	9[        S
9$ )]  
Delete Session Resource

Args:
  betas: Optional header to specify the beta version(s) you want to use.

  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
rD   rE   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   #Resources.delete.<locals>.<genexpr>  rQ   rR   rS   rT   rU   rX   rY   
r]   r   r   r^   r   r   _deleter   r    r)   r`   s           r3   deleteResources.delete   s    6 XYcXfghhYZeYhijj	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`||M%'
 )+Q[ ;  

 
	
r6   
mount_pathr=   r>   r?   r@   rA   c               r   U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUS9[        UUUS.[        R                  5      [        XgXS	9[        S
9$ )  
Add Session Resource

Args:
  file_id: ID of a previously uploaded file.

  mount_path: Mount path in the container. Defaults to `/mnt/session/uploads/<file_id>`.

  betas: Optional header to specify the beta version(s) you want to use.

  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
rD   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO    Resources.add.<locals>.<genexpr>N  rQ   rR   rS   rv   rw   file_idtyper   rX   rh   )r]   r   r   r^   r   r   rj   r   r   r!   ResourceAddParamsr    r'   
r2   rV   r   r   r   r=   r>   r?   r@   rA   s
             r3   addResources.add(  s    B XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`zzIV`a & ",
 $55 )+Q[ 2  
 	
r6    )returnr0   )r   r9   rW   rK   rV   rK   r=   List[AnthropicBetaParam] | Omitr>   Headers | Noner?   Query | Noner@   Body | NonerA   'float | httpx.Timeout | None | NotGivenr   r&   rW   rK   rV   rK   rg   rK   r=   r   r>   r   r?   r   r@   r   rA   r   r   r%   )rV   rK   rp   
int | Omitrq   
str | Omitr=   r   r>   r   r?   r   r@   r   rA   r   r   z0SyncPageCursor[BetaManagedAgentsSessionResource]rW   rK   rV   rK   r=   r   r>   r   r?   r   r@   r   rA   r   r   r)   rV   rK   r   rK   r   zLiteral['file']r   zOptional[str] | Omitr=   r   r>   r   r?   r   r@   r   rA   r   r   r'   __name__
__module____qualname____firstlineno__r   r4   r:   r   r   ra   rm   r   r   r   __static_attributes__r   r6   r3   r*   r*      st   . . 4 4 26 )-$("&;D9
9
 	9

 /9
 &9
 "9
  9
 99
 
"9
B 26 )-$("&;D@
@
 	@

 !@
 /@
 &@
 "@
  @
 9@
 
 @
L !15 )-$("&;DA
A
 	A

 A
 /A
 &A
 "A
  A
 9A
 
:A
P 26 )-$("&;D4
4
 	4

 /4
 &4
 "4
  4
 94
 
04
x ,015 )-$("&;D<
<
 	<

 <
 )<
 /<
 &<
 "<
  <
 9<
 
'<
 <
r6   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SS\S.                 SS jjr
\\\SSS\S.                 SS	 jjr\SSS\S.               SS
 jjr\\SSS\S.                   SS jjrSrg)r+   ig  c                    [        U 5      $ r/   )AsyncResourcesWithRawResponser1   s    r3   r4    AsyncResources.with_raw_responseh  s     -T22r6   c                    [        U 5      $ r8   )#AsyncResourcesWithStreamingResponser1   s    r3   r:   &AsyncResources.with_streaming_responser  s     3488r6   Nr<   c                 #    U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 En[        [        U R                  [        SUUS9[        XEXgS	9[        [        [        5      S
9I Sh  vN 5      $  N7f)rC   rD   rE   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   *AsyncResources.retrieve.<locals>.<genexpr>  rQ   rR   rS   rT   rU   rX   rY   Nr\   r`   s           r3   ra   AsyncResources.retrieve{  s    6 XYcXfghhYZeYhijj	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`$))Q) +
 -"/U_ 1   
 	
s   CCC
	Cc                 #    U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 En[        [        U R                  [        SUUS9[        S	U0[        R                  5      I S
h  vN [        XVXxS9[        [        [        5      S9I S
h  vN 5      $  N. N
7f)rd   rD   rE   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   (AsyncResources.update.<locals>.<genexpr>  rQ   rR   rS   rT   rU   rg   NrX   rh   )r]   r   r   r^   r   r   r   r%   rj   r   r   r#   rk   r    r   rl   s	            r3   rm   AsyncResources.update  s'    > XYcXfghhYZeYhijj	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`"**Q) +
 1*,?@BXBmBm  -"/U_ /   
 	
s$   CD C<%D 3C>
4	D >D ro   c                  U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUS9[        [           [        UUUU[        UUS.[        R                  5      S	9[        [        [        5      S
9$ )rs   rD   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   &AsyncResources.list.<locals>.<genexpr>  rQ   rR   rS   rv   rw   rx   ry   r{   )r]   r   r   r^   r   r   r}   r   r   r(   r    r   r"   r~   r   r   r   s	            r3   r   AsyncResources.list  s    B XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`!!IV`a !AB(+'%%!& $ );; 5! " 
 	
r6   c          
       #    U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUUS9[        XEXgS	9[        S
9I Sh  vN $  N7f)r   rD   rE   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   (AsyncResources.delete.<locals>.<genexpr>]  rQ   rR   rS   rT   rU   rX   rY   Nr   r`   s           r3   r   AsyncResources.delete;  s     6 XYcXfghhYZeYhijj	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`\\M%'
 )+Q[ ; " 

 

 
	
 

s   B6B?8B=9B?r   c                 #    U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUS9[        UUUS.[        R                  5      I S	h  vN [        XgXS
9[        S9I S	h  vN $  N N7f)r   rD   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   %AsyncResources.add.<locals>.<genexpr>  rQ   rR   rS   rv   rw   r   NrX   rh   )r]   r   r   r^   r   r   rj   r   r   r!   r   r    r'   r   s
             r3   r   AsyncResources.addq  s     B XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`ZZIV`a,& ",
 $55  )+Q[ 2   
 
 	

s$   B,C.C
/CCCCr   )r   r   )r   r   r   r   )rV   rK   rp   r   rq   r   r=   r   r>   r   r?   r   r@   r   rA   r   r   zcAsyncPaginator[BetaManagedAgentsSessionResource, AsyncPageCursor[BetaManagedAgentsSessionResource]]r   r   r   r   r6   r3   r+   r+   g  su   3 3 9 9 26 )-$("&;D9
9
 	9

 /9
 &9
 "9
  9
 99
 
"9
B 26 )-$("&;D@
@
 	@

 !@
 /@
 &@
 "@
  @
 9@
 
 @
L !15 )-$("&;DA
A
 	A

 A
 /A
 &A
 "A
  A
 9A
 
mA
P 26 )-$("&;D4
4
 	4

 /4
 &4
 "4
  4
 94
 
04
x ,015 )-$("&;D<
<
 	<

 <
 )<
 /<
 &<
 "<
  <
 9<
 
'<
 <
r6   c                      \ rS rSrSS jrSrg)r0   i  c                   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g rI   )
_resourcesr   to_raw_response_wrapperra   rm   r   r   r   r2   	resourcess     r3   __init__!ResourcesWithRawResponse.__init__  s    #(@@
 '>>
 %<<NN
	 '>>
 $;;MM
r6   r   r   r   r   ra   rm   Nr   r*   r   Noner   r   r   r   r   r   r   r6   r3   r0   r0         
r6   r0   c                      \ rS rSrSS jrSrg)r   i  c                   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g rI   )r   r   async_to_raw_response_wrapperra   rm   r   r   r   r   s     r3   r   &AsyncResourcesWithRawResponse.__init__  s    #(FF
 'DD
 %BBNN
	 'DD
 $AAMM
r6   r   Nr   r+   r   r   r   r   r6   r3   r   r     r   r6   r   c                      \ rS rSrSS jrSrg)r9   i  c                   Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  5      U l        g rI   )r   r   ra   rm   r   r   r   r   s     r3   r   'ResourcesWithStreamingResponse.__init__  st    #4
 3
 1NN
	 3
 0MM
r6   r   Nr   r   r   r6   r3   r9   r9     r   r6   r9   c                      \ rS rSrSS jrSrg)r   i  c                   Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  5      U l        g rI   )r   r   ra   rm   r   r   r   r   s     r3   r   ,AsyncResourcesWithStreamingResponse.__init__  st    #:
 9
 7NN
	 9
 6MM
r6   r   Nr   r   r   r6   r3   r   r     r   r6   r   )A
__future__r   typingr   r   r   r   	itertoolsr   typing_extensionsr	   httpx r   _typesr   r   r   r   r   r   r   _utilsr   r   r   r   r   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   _base_clientr   r    types.beta.sessionsr!   r"   r#   types.anthropic_beta_paramr$   ,types.beta.sessions.resource_update_responser%   .types.beta.sessions.resource_retrieve_responser&   5types.beta.sessions.beta_managed_agents_file_resourcer'   8types.beta.sessions.beta_managed_agents_session_resourcer(   ?types.beta.sessions.beta_managed_agents_delete_session_resourcer)   __all__r*   r+   r0   r   r9   r   r   r6   r3   <module>r      s    # , ,  %  ! L L L g g ' ; Z : A e e = S W c i v(
)F
 F
R
F
% F
R

 
*
 
*
 
*
 
r6   