+
    ~jbl                       ^ RI Ht ^ RIHtHtHt ^ RIHt ^ RIt^RI	H
t
 ^RIHt ^RIHtHtHtHtHtHtHtHt ^RIHtHtHtHtHtHt ^R	IHt ^R
IH t H!t! ^RI"H#t#H$t$H%t%H&t&H't'H(t(H)t)H*t*H+t+H,t, ^RI-H.t.H/t/ ^RI0H1t1H2t2 ^RI3H4t4H5t5 ^RI6H7t8 ^RI9H:t: ^RI;H<t< ^RI=H>t> RR.t? ! R R] 4      t@ ! R R]!4      tA ! R R4      tB ! R R4      tC ! R R4      tD ! R R4      tER# )    )annotations)ListMappingcast)chainN)_legacy_response)deepcopy_with_paths)BodyOmitQueryHeadersNotGiven	FileTypesomit	not_given)is_givenextract_filespath_templatemaybe_transformstrip_not_givenasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)
BinaryAPIResponseAsyncBinaryAPIResponseStreamedBinaryAPIResponseAsyncStreamedBinaryAPIResponseto_streamed_response_wrapperto_custom_raw_response_wrapper"async_to_streamed_response_wrapper#to_custom_streamed_response_wrapper$async_to_custom_raw_response_wrapper)async_to_custom_streamed_response_wrapper)SyncPage	AsyncPage)file_list_paramsfile_upload_params)AsyncPaginatormake_request_options)!stainless_helper_header_from_file)DeletedFile)FileMetadata)AnthropicBetaParamFiles
AsyncFilesc                     ] tR t^'t]R R l4       t]R R l4       tR]R]R]R]R	]R
RRRRRR]/	R R llt	R	]R
RRRRRR]/R R llt
R	]R
RRRRRR]/R R lltR	]R
RRRRRR]/R R lltR	]R
RRRRRR]/R R lltRtR# )r/   c                   V ^8  d   QhRR/# )   returnFilesWithRawResponse )formats   "s/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/anthropic/resources/beta/files.py__annotate__Files.__annotate__)   s     * *#7 *    c                    \        V 4      # 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
)r5   selfs   &r8   with_raw_responseFiles.with_raw_response(   s     $D))r;   c                   V ^8  d   QhRR/# )r3   r4   FilesWithStreamingResponser6   )r7   s   "r8   r9   r:   3   s     0 0)C 0r;   c                    \        V 4      # 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
)rC   r>   s   &r8   with_streaming_responseFiles.with_streaming_response2   s     *$//r;   after_id	before_idlimitscope_idbetasextra_headersNextra_query
extra_bodytimeoutc               @    V ^8  d   QhRRRRRRRRRRR	R
RRRRRRRR/
# )r3   rH   
str | OmitrI   rJ   
int | OmitrK   rL   List[AnthropicBetaParam] | OmitrM   Headers | NonerN   Query | NonerO   Body | NonerP   'float | httpx.Timeout | None | NotGivenr4   zSyncPage[FileMetadata]r6   )r7   s   "r8   r9   r:   ;   s|     I
 I
 I
 	I

 I
 I
 /I
 &I
 "I
  I
 9I
 
 I
r;   c       	        t   / \        R\        V4      '       d$   RP                  \        R V 4       R.4      4      M\        /4      CT;'       g    / CpRR/T;'       g    / CpV P                  R\        \        ,          \        VVVV	\        RVRVRVR	V/\        P                  4      R
7      \        R7      # )J  List Files

Args:
  after_id: ID of the object to use as a cursor for pagination.

When provided, returns the
      page of results immediately after this object.

  before_id: ID of the object to use as a cursor for pagination. When provided, returns the
      page of results immediately before this object.

  limit: Number of items to return per page.

      Defaults to `20`. Ranges from `1` to `1000`.

  scope_id: Filter by scope ID. Only returns files associated with the specified scope
      (e.g., a session 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
anthropic-beta,c              3  8   "   T F  p\        V4      x  K  	  R # 5iNstr.0es   & r8   	<genexpr>Files.list.<locals>.<genexpr>i        5Lec!ffe   files-api-2025-04-14/v1/files?beta=truerH   rI   rJ   rK   rM   rN   rO   rP   querypageoptionsmodel)r   r   joinr   r   _get_api_listr%   r-   r*   r   r'   FileListParams
r?   rH   rI   rJ   rK   rL   rM   rN   rO   rP   s
   &$$$$$$$$$r8   list
Files.list;   s    V	
$ '*hhu5Le5LOeNf/g&h"	
 ""	
 *+A[mFYFYWY[!!!,'(+'%%"H#Y"H	 %33 % " 
 	
r;   c               4    V ^8  d   QhRRRRRRRRR	R
RRRR/# r3   file_idr`   rL   rT   rM   rU   rN   rV   rO   rW   rP   rX   r4   r,   r6   )r7   s   "r8   r9   r:      P     /
 /
/
 /	/
 &/
 "/
  /
 9/
 
/
r;   c          
     R   V'       g   \        RV: 24      h/ \        R\        V4      '       d$   RP                  \	        R V 4       R.4      4      M\
        /4      CT;'       g    / CpRR/T;'       g    / CpV P                  \        RVR7      \        W4WVR7      \        R	7      # )
m  
Delete File

Args:
  file_id: ID of the File.

  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
6Expected a non-empty value for `file_id` but received r[   r\   c              3  8   "   T F  p\        V4      x  K  	  R # 5ir^   r_   ra   s   & r8   rd   Files.delete.<locals>.<genexpr>   rf   rg   rh   /v1/files/{file_id}?beta=truerx   rM   rN   rO   rP   rn   cast_to

ValueErrorr   r   rp   r   r   _deleter   r*   r,   r?   rx   rL   rM   rN   rO   rP   s   &&$$$$$r8   deleteFiles.delete   s    8 UV]U`abb	
$ '*hhu5Le5LOeNf/g&h"	
 ""	
 *+A[mFYFYWY[||97K(+Q[    
 	
r;   c               4    V ^8  d   QhRRRRRRRRR	R
RRRR/# )r3   rx   r`   rL   rT   rM   rU   rN   rV   rO   rW   rP   rX   r4   r   r6   )r7   s   "r8   r9   r:      sP     0
 0
0
 /	0
 &0
 "0
  0
 90
 
0
r;   c          
     r   V'       g   \        RV: 24      hRR/T;'       g    / Cp/ \        R\        V4      '       d$   RP                  \	        R V 4       R.4      4      M\
        /4      CT;'       g    / CpRR/T;'       g    / CpV P                  \        RVR	7      \        W4WVR
7      \        R7      # )o  
Download File

Args:
  file_id: ID of the File.

  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
r|   Acceptapplication/binaryr[   r\   c              3  8   "   T F  p\        V4      x  K  	  R # 5ir^   r_   ra   s   & r8   rd   !Files.download.<locals>.<genexpr>   rf   rg   rh   %/v1/files/{file_id}/content?beta=truer   r   r   )
r   r   r   rp   r   r   _getr   r*   r   r   s   &&$$$$$r8   downloadFiles.download   s    8 UV]U`abb!#7QM<O<ORQ	
$ '*hhu5Le5LOeNf/g&h"	
 ""	
 *+A[mFYFYWY[yyA7S(+Q[ &  
 	
r;   c               4    V ^8  d   QhRRRRRRRRR	R
RRRR/# r3   rx   r`   rL   rT   rM   rU   rN   rV   rO   rW   rP   rX   r4   r-   r6   )r7   s   "r8   r9   r:      P     /
 /
/
 /	/
 &/
 "/
  /
 9/
 
/
r;   c          
     R   V'       g   \        RV: 24      h/ \        R\        V4      '       d$   RP                  \	        R V 4       R.4      4      M\
        /4      CT;'       g    / CpRR/T;'       g    / CpV P                  \        RVR7      \        W4WVR7      \        R	7      # )
s  
Get File Metadata

Args:
  file_id: ID of the File.

  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
r|   r[   r\   c              3  8   "   T F  p\        V4      x  K  	  R # 5ir^   r_   ra   s   & r8   rd   *Files.retrieve_metadata.<locals>.<genexpr>
  rf   rg   rh   r   r   r   r   
r   r   r   rp   r   r   r   r   r*   r-   r   s   &&$$$$$r8   retrieve_metadataFiles.retrieve_metadata   s    8 UV]U`abb	
$ '*hhu5Le5LOeNf/g&h"	
 ""	
 *+A[mFYFYWY[yy97K(+Q[ !  
 	
r;   c               4    V ^8  d   QhRRRRRRRRR	R
RRRR/# r3   filer   rL   rT   rM   rU   rN   rV   rO   rW   rP   rX   r4   r-   r6   )r7   s   "r8   r9   r:     R     6
 6
 6
 /	6
 &6
 "6
  6
 96
 
6
r;   c                  / \        R\        V4      '       d$   RP                  \        R V 4       R.4      4      M\        /4      CT;'       g    / CpRR/T;'       g    / Cp/ \        V4      CVCp\        RV/R..4      p\        \        \        \        \        3,          V4      R..R7      pRVR&   V P                  R	\        V\        P                  4      V\!        W4WVR
7      \"        R7      # )m  
Upload File

Args:
  file: The file to upload

  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
r[   r\   c              3  8   "   T F  p\        V4      x  K  	  R # 5ir^   r_   ra   s   & r8   rd   Files.upload.<locals>.<genexpr>9  rf   rg   rh   r   pathsmultipart/form-dataContent-Typeri   r   bodyfilesrn   r   )r   r   rp   r   r   "_stainless_helper_header_from_filer	   r   r   r   r`   object_postr   r(   FileUploadParamsr*   r-   	r?   r   rL   rM   rN   rO   rP   r   r   s	   &$$$$$$  r8   uploadFiles.upload  s   8	
$ '*hhu5Le5LOeNf/g&h"	
 ""	
 *+A[mFYFYWY[U=dCU}U"FD>VH:>d73;#7>xjQ )>n%zz! '9'J'JK(+Q[ !  
 	
r;   r6   __name__
__module____qualname____firstlineno__r   r@   rF   r   r   rt   r   r   r   r   __static_attributes__r6   r;   r8   r/   r/   '   s{   * * 0 0I
  $I
 !%	I

 !I
  $I
 26I
 )-I
 %)I
 #'I
 <EI
V/
 26	/
 )-/
 %)/
 #'/
 <E/
b0
 26	0
 )-0
 %)0
 #'0
 <E0
d/
 26	/
 )-/
 %)/
 #'/
 <E/
b6
 26	6
 )-6
 %)6
 #'6
 <E6
 6
r;   c                     ] tR tRt]R R l4       t]R R l4       tR]R]R]R	]R
]RRRRRRR]/	R R llt	R
]RRRRRRR]/R R llt
R
]RRRRRRR]/R R lltR
]RRRRRRR]/R R lltR
]RRRRRRR]/R R lltRtR# )r0   iS  c                   V ^8  d   QhRR/# )r3   r4   AsyncFilesWithRawResponser6   )r7   s   "r8   r9   AsyncFiles.__annotate__U  s     / /#< /r;   c                    \        V 4      # r=   )r   r>   s   &r8   r@   AsyncFiles.with_raw_responseT  s     )..r;   c                   V ^8  d   QhRR/# )r3   r4   AsyncFilesWithStreamingResponser6   )r7   s   "r8   r9   r   _  s     5 5)H 5r;   c                    \        V 4      # rE   )r   r>   s   &r8   rF   "AsyncFiles.with_streaming_response^  s     /t44r;   rH   rI   rJ   rK   rL   rM   NrN   rO   rP   c               @    V ^8  d   QhRRRRRRRRRRR	R
RRRRRRRR/
# )r3   rH   rR   rI   rJ   rS   rK   rL   rT   rM   rU   rN   rV   rO   rW   rP   rX   r4   z5AsyncPaginator[FileMetadata, AsyncPage[FileMetadata]]r6   )r7   s   "r8   r9   r   g  s|     I
 I
 I
 	I

 I
 I
 /I
 &I
 "I
  I
 9I
 
?I
r;   c       	        t   / \        R\        V4      '       d$   RP                  \        R V 4       R.4      4      M\        /4      CT;'       g    / CpRR/T;'       g    / CpV P                  R\        \        ,          \        VVVV	\        RVRVRVR	V/\        P                  4      R
7      \        R7      # )rZ   r[   r\   c              3  8   "   T F  p\        V4      x  K  	  R # 5ir^   r_   ra   s   & r8   rd   "AsyncFiles.list.<locals>.<genexpr>  rf   rg   rh   ri   rH   rI   rJ   rK   rj   rl   )r   r   rp   r   r   rq   r&   r-   r*   r   r'   rr   rs   s
   &$$$$$$$$$r8   rt   AsyncFiles.listg  s    V	
$ '*hhu5Le5LOeNf/g&h"	
 ""	
 *+A[mFYFYWY[!!!<((+'%%"H#Y"H	 %33 % " 
 	
r;   c               4    V ^8  d   QhRRRRRRRRR	R
RRRR/# rw   r6   )r7   s   "r8   r9   r     ry   r;   c          
     n  "   V'       g   \        RV: 24      h/ \        R\        V4      '       d$   RP                  \	        R V 4       R.4      4      M\
        /4      CT;'       g    / CpRR/T;'       g    / CpV P                  \        RVR7      \        W4WVR7      \        R	7      G R
j  xL
 #  L5i)r{   r|   r[   r\   c              3  8   "   T F  p\        V4      x  K  	  R # 5ir^   r_   ra   s   & r8   rd   $AsyncFiles.delete.<locals>.<genexpr>  rf   rg   rh   r   r   r   r   Nr   r   s   &&$$$$$r8   r   AsyncFiles.delete  s     8 UV]U`abb	
$ '*hhu5Le5LOeNf/g&h"	
 ""	
 *+A[mFYFYWY[\\97K(+Q[   " 
 
 	
 
   A&B5)B595B5.B3/B5c               4    V ^8  d   QhRRRRRRRRR	R
RRRR/# )r3   rx   r`   rL   rT   rM   rU   rN   rV   rO   rW   rP   rX   r4   r   r6   )r7   s   "r8   r9   r     sP     0
 0
0
 /	0
 &0
 "0
  0
 90
 
 0
r;   c          
       "   V'       g   \        RV: 24      hRR/T;'       g    / Cp/ \        R\        V4      '       d$   RP                  \	        R V 4       R.4      4      M\
        /4      CT;'       g    / CpRR/T;'       g    / CpV P                  \        RVR	7      \        W4WVR
7      \        R7      G Rj  xL
 #  L5i)r   r|   r   r   r[   r\   c              3  8   "   T F  p\        V4      x  K  	  R # 5ir^   r_   ra   s   & r8   rd   &AsyncFiles.download.<locals>.<genexpr>  rf   rg   rh   r   r   r   r   N)
r   r   r   rp   r   r   r   r   r*   r   r   s   &&$$$$$r8   r   AsyncFiles.download  s     8 UV]U`abb!#7QM<O<ORQ	
$ '*hhu5Le5LOeNf/g&h"	
 ""	
 *+A[mFYFYWY[YYA7S(+Q[ +  
 
 	
 
s#   #CAC9C	5C>C?Cc               4    V ^8  d   QhRRRRRRRRR	R
RRRR/# r   r6   )r7   s   "r8   r9   r     r   r;   c          
     n  "   V'       g   \        RV: 24      h/ \        R\        V4      '       d$   RP                  \	        R V 4       R.4      4      M\
        /4      CT;'       g    / CpRR/T;'       g    / CpV P                  \        RVR7      \        W4WVR7      \        R	7      G R
j  xL
 #  L5i)r   r|   r[   r\   c              3  8   "   T F  p\        V4      x  K  	  R # 5ir^   r_   ra   s   & r8   rd   /AsyncFiles.retrieve_metadata.<locals>.<genexpr>6  rf   rg   rh   r   r   r   r   Nr   r   s   &&$$$$$r8   r   AsyncFiles.retrieve_metadata  s     8 UV]U`abb	
$ '*hhu5Le5LOeNf/g&h"	
 ""	
 *+A[mFYFYWY[YY97K(+Q[ !  
 
 	
 
r   c               4    V ^8  d   QhRRRRRRRRR	R
RRRR/# r   r6   )r7   s   "r8   r9   r   F  r   r;   c                 "   / \        R\        V4      '       d$   RP                  \        R V 4       R.4      4      M\        /4      CT;'       g    / CpRR/T;'       g    / Cp/ \        V4      CVCp\        RV/R..4      p\        \        \        \        \        3,          V4      R..R7      pRVR&   T P                  R	\        V\        P                  4      G R
j  xL
 V\!        W4WVR7      \"        R7      G R
j  xL
 #  L# L5i)r   r[   r\   c              3  8   "   T F  p\        V4      x  K  	  R # 5ir^   r_   ra   s   & r8   rd   $AsyncFiles.upload.<locals>.<genexpr>e  rf   rg   rh   r   r   r   r   ri   Nr   r   )r   r   rp   r   r   r   r	   r   r   r   r`   r   r   r   r(   r   r*   r-   r   s	   &$$$$$$  r8   r   AsyncFiles.uploadF  s    8	
$ '*hhu5Le5LOeNf/g&h"	
 ""	
 *+A[mFYFYWY[U=dCU}U"FD>VH:>d73;#7>xjQ )>n%ZZ!,T3E3V3VWW(+Q[ !   
 
 	
W
s1   AD	D	"A?D	!D
"D	 DD	D	r6   r   r6   r;   r8   r0   r0   S  s{   / / 5 5I
  $I
 !%	I

 !I
  $I
 26I
 )-I
 %)I
 #'I
 <EI
V/
 26	/
 )-/
 %)/
 #'/
 <E/
b0
 26	0
 )-0
 %)0
 #'0
 <E0
d/
 26	/
 )-/
 %)/
 #'/
 <E/
b6
 26	6
 )-6
 %)6
 #'6
 <E6
 6
r;   c                  "    ] tR tRtR R ltRtR# )r5   i  c                    V ^8  d   QhRRRR/# r3   r   r/   r4   Noner6   )r7   s   "r8   r9   !FilesWithRawResponse.__annotate__       
 
e 
 
r;   c                	x   Wn         \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        VP                  \        4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n	        R # r^   )
_filesr   to_raw_response_wrapperrt   r   r    r   r   r   r   r?   r   s   &&r8   __init__FilesWithRawResponse.__init__  s    $<<JJ
	 '>>LL
 7NN
 "2!I!I##"
 '>>LL
r;   r   r   r   rt   r   r   Nr   r   r   r   r   r   r6   r;   r8   r5   r5         
 
r;   r5   c                  "    ] tR tRtR R ltRtR# )r   i  c                    V ^8  d   QhRRRR/# r3   r   r0   r4   r   r6   )r7   s   "r8   r9   &AsyncFilesWithRawResponse.__annotate__       
 
j 
T 
r;   c                	x   Wn         \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        VP                  \        4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n	        R # r^   )
r   r   async_to_raw_response_wrapperrt   r   r#   r   r   r   r   r   s   &&r8   r   "AsyncFilesWithRawResponse.__init__  s    $BBJJ
	 'DDLL
 =NN"
 "2!O!O##"
 'DDLL
r;   r   Nr   r6   r;   r8   r   r     r   r;   r   c                  "    ] tR tRtR R ltRtR# )rC   i  c                    V ^8  d   QhRRRR/# r   r6   )r7   s   "r8   r9   'FilesWithStreamingResponse.__annotate__  r   r;   c                	    Wn         \        VP                  4      V n        \        VP                  4      V n        \	        VP
                  \        4      V n        \        VP                  4      V n        \        VP                  4      V n        R # r^   )	r   r   rt   r   r"   r   r   r   r   r   s   &&r8   r   #FilesWithStreamingResponse.__init__  st    0JJ
	 3LL
 <NN%
 ">##"
 3LL
r;   r   Nr   r6   r;   r8   rC   rC     r   r;   rC   c                  "    ] tR tRtR R ltRtR# )r   i  c                    V ^8  d   QhRRRR/# r   r6   )r7   s   "r8   r9   ,AsyncFilesWithStreamingResponse.__annotate__  r   r;   c                	    Wn         \        VP                  4      V n        \        VP                  4      V n        \	        VP
                  \        4      V n        \        VP                  4      V n        \        VP                  4      V n        R # r^   )	r   r!   rt   r   r$   r   r   r   r   r   s   &&r8   r   (AsyncFilesWithStreamingResponse.__init__  sv    6JJ
	 9LL
 BNN*
 "D##"
 9LL
r;   r   Nr   r6   r;   r8   r   r     r   r;   r   )F
__future__r   typingr   r   r   	itertoolsr   httpx r   r   r	   _typesr
   r   r   r   r   r   r   r   _utilsr   r   r   r   r   r   _compatr   	_resourcer   r   	_responser   r   r   r   r   r    r!   r"   r#   r$   
paginationr%   r&   
types.betar'   r(   _base_clientr)   r*   lib._stainless_helpersr+   r   types.beta.deleted_filer,   types.beta.file_metadatar-   types.anthropic_beta_paramr.   __all__r/   r0   r5   r   rC   r   r6   r;   r8   <module>r     s    # & &     ) V V V u u & :   . > @ m 2 4 <L
!i
O i
X	i
! i
X	
 
,
 
,
 
,
 
r;   