
    YjG                       d dl mZ d dlZd dlmZmZmZ d dlmZmZ d dl	Z	ddl
mZ ddlmZmZmZmZmZmZmZmZmZ ddlmZ dd	lmZmZmZmZmZmZmZm Z  dd
l!m"Z"m#Z#m$Z$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/m0Z0m1Z1 ddl2m3Z3m4Z4 ddl5m6Z6 ddl7m8Z8m9Z9 ddl:m;Z; ddl<mZ ddl=mZ ddl>m?Z? ddl@mAZA ddlBmCZC ddlDmEZE ddgZF G d de)      ZG G d de*      ZH G d d      ZI G d d      ZJ G d  d!      ZK G d" d#      ZLy)$    )annotationsN)TYPE_CHECKINGMappingcast)Literalassert_never   )_legacy_response)		VideoSizeVideoSecondsvideo_edit_paramsvideo_list_paramsvideo_remix_paramsvideo_create_paramsvideo_extend_paramsvideo_create_character_paramsvideo_download_content_params)deepcopy_with_paths)BodyOmitQueryHeadersNotGiven	FileTypesomit	not_given)extract_filespath_templatemaybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)StreamedBinaryAPIResponseAsyncStreamedBinaryAPIResponseto_streamed_response_wrapper"async_to_streamed_response_wrapper#to_custom_streamed_response_wrapper)async_to_custom_streamed_response_wrapper)SyncConversationCursorPageAsyncConversationCursorPage)Video)AsyncPaginatormake_request_options)is_given)r   )r   )VideoModelParam)VideoDeleteResponse)VideoGetCharacterResponse)VideoCreateCharacterResponseVideosAsyncVideosc                  l   e Zd Zedd       Zedd       Z ej                  d      eeeeddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd       Z
 ej                  d      eeeeeddde	d		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd       Z ej                  d      ed		 	 	 	 	 dd
       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 dd       Z ej                  d      eeeddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 dd       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 dd       Z ej                  d      eddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 d d       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 d!d       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d"d       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 d#d       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 d$d       Zy)%r4   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
        )VideosWithRawResponseselfs    V/var/www/html/vmm-quimica/venv/lib/python3.12/site-packages/openai/resources/videos.pywith_raw_responsezVideos.with_raw_response3   s     %T**    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
        )VideosWithStreamingResponser:   s    r<   with_streaming_responsezVideos.with_streaming_response=   s     +400r>   IThe Sora API is scheduled to permanently shut down on September 24, 2026.Ninput_referencemodelsecondssizeextra_headersextra_query
extra_bodytimeoutc       	           t        |||||ddgg      }
t        t        t        t        t
        f   |
      dgg      }ddi|xs i }| j                  dt        |
t        j                        |t        ||||	ddi	      t        
      S )  
        Create a new video generation job from a prompt and optional reference assets.

        Args:
          prompt: Text prompt that describes the video to generate.

          input_reference: Optional reference asset upload or reference object that guides generation.

          model: The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults
              to `sora-2`.

          seconds: Clip duration in seconds (allowed values: 4, 8, 12). Defaults to 4 seconds.

          size: Output resolution formatted as width x height (allowed values: 720x1280,
              1280x720, 1024x1792, 1792x1024). Defaults to 720x1280.

          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
        promptrE   rF   rG   rH   rE   pathsContent-Typemultipart/form-data/videosbearer_authTrI   rJ   rK   rL   securitybodyfilesoptionscast_to)r   r   r   r   strobject_postr   r   VideoCreateParamsr.   r,   r;   rP   rE   rF   rG   rH   rI   rJ   rK   rL   rZ   r[   s               r<   createzVideos.createF   s    P # #2"   !	
 d73;#7>HYGZF[\ ()>X=CVTVXzz ':'L'LM(+'%'.   
 	
r>   	rE   rF   rG   rH   poll_interval_msrI   rJ   rK   rL   c       
        p    | j                  ||||||||	|
	      }| j                  |j                  |      S )/Create a video and wait for it to be processed.	rF   rP   rE   rG   rH   rI   rJ   rK   rL   re   rc   pollidr;   rP   rE   rF   rG   rH   re   rI   rJ   rK   rL   videos               r<   create_and_pollzVideos.create_and_poll   sT    $ +'#!  

 yyHH-  
 	
r>   ri   c                  ddi}t        |      rt        |      |d<   	 | j                  j                  ||      }|j	                         }|j
                  dk(  s|j
                  dk(  rKt        |      s+|j                  j                  d      }|t        |      }nd}| j                  |dz         n>|j
                  d	k(  s|j
                  d
k(  r|S t        rt        |j
                         n|S )Wait for the vector store file to finish processing.

        Note: this will return even if the file failed to process, you need to check
        file.last_error and file.status to handle these cases
        X-Stainless-Poll-Helpertrue X-Stainless-Custom-Poll-IntervalrI   in_progressqueuedopenai-poll-after-ms  	completedfailedr/   r^   r=   retrieveparsestatusheadersgetint_sleepr   r   r;   video_idre   r   responsern   from_headers          r<   rk   zVideos.poll   s     $=f"E$%:=>N:OG67--66% 7 H
 NN$E||},0H 01"*"2"2"6"67M"NK".+.{+;(+/(,t34,0H  . L- r>   rI   rJ   rK   rL   c                   |st        d|      | j                  t        d|      t        ||||ddi      t              S )d  
        Fetch the latest metadata for a generated video.

        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 `video_id` but received /videos/{video_id}r   rV   TrW   r\   r]   
ValueError_getr   r.   r,   r;   r   rI   rJ   rK   rL   s         r<   r}   zVideos.retrieve   s^    0 VW_Vbcddyy.B(+'%'.   

 
	
r>   afterlimitorderrI   rJ   rK   rL   c                   | j                  dt        t           t        ||||t	        |||dt
        j                        ddi      t              S ao  
        List recently generated videos for the current project.

        Args:
          after: Identifier for the last item from the previous pagination request

          limit: Number of items to retrieve

          order: Sort order of results by timestamp. Use `asc` for ascending order or `desc` for
              descending order.

          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
        rU   )r   r   r   rV   TrI   rJ   rK   rL   queryrX   )pager\   rF   )_get_api_listr*   r,   r.   r   r   VideoListParamsr;   r   r   r   rI   rJ   rK   rL   s           r<   listzVideos.list   sl    B !!+E2(+'%%!&!&!&
 &55 (. % " 
 	
r>   c                   |st        d|      | j                  t        d|      t        ||||ddi      t              S )y  
        Permanently delete a completed or failed video and its stored assets.

        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
        r   r   r   rV   TrW   r   r   _deleter   r.   r1   r   s         r<   deletezVideos.delete2  s^    0 VW_Vbcdd||.B(+'%'. (  

 
	
r>   c                  t        ||ddgg      }t        t        t        t        t
        f   |      dgg      }ddi|xs i }| j                  dt        |t        j                        |t        ||||ddi	      t        
      S )  
        Create a character from an uploaded video.

        Args:
          name: Display name for this API character.

          video: Video file used to create a character.

          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
        namern   rn   rQ   rS   rT   /videos/charactersrV   TrW   rY   )r   r   r   r   r^   r_   r`   r   r   VideoCreateCharacterParamsr.   r3   	r;   r   rn   rI   rJ   rK   rL   rZ   r[   s	            r<   create_characterzVideos.create_characterX  s    : # YK
 d73;#7>ykR ()>X=CVTVXzz  'D'_'_`(+'%'. 1  
 	
r>   variantrI   rJ   rK   rL   c                   |st        d|      ddi|xs i }| j                  t        d|      t        ||||t	        d|it
        j                        ddi	      t        j                  
      S )  
        Download the generated video bytes or a derived preview asset.

        Streams the rendered video content for the specified video job.

        Args:
          variant: Which downloadable asset to return. Defaults to the MP4 video.

          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/binary/videos/{video_id}/contentr   r   rV   Tr   r   )	r   r   r   r.   r   r   VideoDownloadContentParamsr
   HttpxBinaryResponseContentr;   r   r   rI   rJ   rK   rL   s          r<   download_contentzVideos.download_content  s    : VW_Vbcdd!#7QM<ORQyy6J(+'%%y'&:<Y<t<tu'. %??  
 	
r>   c                  t        ||ddgg      }t        t        t        t        t
        f   |      dgg      }ddi|xs i }| j                  dt        |t        j                        |t        ||||ddi	      t        
      S )  
        Create a new video generation job by editing a source video or existing
        generated video.

        Args:
          prompt: Text prompt that describes how to edit the source video.

          video: Reference to the completed video to edit.

          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
        rP   rn   rn   rQ   rS   rT   /videos/editsrV   TrW   rY   )r   r   r   r   r^   r_   r`   r   r   VideoEditParamsr.   r,   	r;   rP   rn   rI   rJ   rK   rL   rZ   r[   s	            r<   editzVideos.edit  s    < #  YK
 d73;#7>ykR ()>X=CVTVXzz '8'H'HI(+'%'.   
 	
r>   c                  t        |||ddgg      }t        t        t        t        t
        f   |      dgg      }	ddi|xs i }| j                  dt        |t        j                        |	t        ||||ddi	      t        
      S )j  
        Create an extension of a completed video.

        Args:
          prompt: Updated text prompt that directs the extension generation.

          seconds: Length of the newly generated extension segment in seconds (allowed values: 4,
              8, 12, 16, 20).

          video: Reference to the completed video to extend.

          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
        rP   rG   rn   rn   rQ   rS   rT   /videos/extensionsrV   TrW   rY   )r   r   r   r   r^   r_   r`   r   r   VideoExtendParamsr.   r,   
r;   rP   rG   rn   rI   rJ   rK   rL   rZ   r[   s
             r<   extendzVideos.extend  s    B # "
 YK
 d73;#7>ykR ()>X=CVTVXzz  ':'L'LM(+'%'.   
 	
r>   c                   |st        d|      | j                  t        d|      t        ||||ddi      t              S )F  
        Fetch a character.

        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
        ;Expected a non-empty value for `character_id` but received !/videos/characters/{character_id}character_idrV   TrW   r   r   r   r   r.   r2   r;   r   rI   rJ   rK   rL   s         r<   get_characterzVideos.get_character0  s^    0 Z[gZjkllyy=LY(+'%'. .  

 
	
r>   c                   |st        d|      | j                  t        d|      t        d|it        j
                        t        ||||ddi      t              S )	  
        Create a remix of a completed video using a refreshed prompt.

        Args:
          prompt: Updated text prompt that directs the remix generation.

          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   /videos/{video_id}/remixr   rP   rV   TrW   rZ   r\   r]   )r   r`   r   r   r   VideoRemixParamsr.   r,   r;   r   rP   rI   rJ   rK   rL   s          r<   remixzVideos.remixV  st    6 VW_Vbcddzz4xH (F!35G5X5XY(+'%'.   
 	
r>   )returnr9   )r   rA   rP   r^   rE   )video_create_params.InputReference | OmitrF   VideoModelParam | OmitrG   VideoSeconds | OmitrH   VideoSize | OmitrI   Headers | NonerJ   Query | NonerK   Body | NonerL   (float | httpx2.Timeout | None | NotGivenr   r,   rP   r^   rE   r   rF   r   rG   r   rH   r   re   
int | OmitrI   r   rJ   r   rK   r   rL   r   r   r,   r   r^   re   r   r   r,   r   r^   rI   r   rJ   r   rK   r   rL   r   r   r,   )r   
str | Omitr   r   r   Literal['asc', 'desc'] | OmitrI   r   rJ   r   rK   r   rL   r   r   z!SyncConversationCursorPage[Video]r   r^   rI   r   rJ   r   rK   r   rL   r   r   r1   r   r^   rn   r   rI   r   rJ   r   rK   r   rL   r   r   r3   r   r^   r   z3Literal['video', 'thumbnail', 'spritesheet'] | OmitrI   r   rJ   r   rK   r   rL   r   r   z+_legacy_response.HttpxBinaryResponseContentrP   r^   rn   zvideo_edit_params.VideorI   r   rJ   r   rK   r   rL   r   r   r,   rP   r^   rG   r   rn   zvideo_extend_params.VideorI   r   rJ   r   rK   r   rL   r   r   r,   r   r^   rI   r   rJ   r   rK   r   rL   r   r   r2   r   r^   rP   r^   rI   r   rJ   r   rK   r   rL   r   r   r,   __name__
__module____qualname__r!   r=   rB   typing_extensions
deprecatedr   r   rc   ro   rk   r}   r   r   r   r   r   r   r   r    r>   r<   r4   r4   2   s   + + 1 1 "!!"mn
 FJ(,'+!% )-$("&<EB
 B
 C	B

 &B
 %B
 B
 &B
 "B
  B
 :B
 
B
 oB
H "!!"mn
 FJ(,'+!%'+ )-$("&<E 
  
 C	 

 & 
 % 
  
 % 
 & 
 " 
   
 : 
 
 
 o 
D "!!"mn
 (,	%!%! %	%!
 
%! o%!N "!!"mn )-$("&<E#
#
 &#
 "#
  #
 :#
 
#
 o#
J "!!"mn ! /3 )-$("&<E3
 3
 	3

 -3
 &3
 "3
  3
 :3
 
+3
 o3
j "!!"mn )-$("&<E#
#
 &#
 "#
  #
 :#
 
#
 o#
J "!!"mn )-$("&<E4
 4
 	4
 &4
 "4
  4
 :4
 
&4
 o4
l "!!"mn
 HL )-$("&<E*
*
 E	*
 &*
 "*
  *
 :*
 
5*
 o*
X "!!"mn )-$("&<E5
 5
 '	5
 &5
 "5
  5
 :5
 
5
 o5
n "!!"mn )-$("&<E9
 9
 	9

 )9
 &9
 "9
  9
 :9
 
9
 o9
v "!!"mn )-$("&<E#
#
 &#
 "#
  #
 :#
 
##
 o#
J "!!"mn )-$("&<E'
'
 	'
 &'
 "'
  '
 :'
 
'
 o'
r>   c                  l   e Zd Zedd       Zedd       Z ej                  d      eeeeddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd       Z
 ej                  d      eeeeeddde	d		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd       Z ej                  d      ed		 	 	 	 	 dd
       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 dd       Z ej                  d      eeeddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 dd       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 dd       Z ej                  d      eddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 d d       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 d!d       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d"d       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 d#d       Z ej                  d      ddde	d	 	 	 	 	 	 	 	 	 	 	 	 	 d$d       Zy)%r5   c                    t        |       S r8   )AsyncVideosWithRawResponser:   s    r<   r=   zAsyncVideos.with_raw_response  s     *$//r>   c                    t        |       S r@   ) AsyncVideosWithStreamingResponser:   s    r<   rB   z#AsyncVideos.with_streaming_response  s     055r>   rC   NrD   c       	        F  K   t        |||||ddgg      }
t        t        t        t        t
        f   |
      dgg      }ddi|xs i }| j                  dt        |
t        j                         d{   |t        ||||	dd	i
      t               d{   S 7 (7 w)rN   rO   rE   rQ   rS   rT   rU   NrV   TrW   rY   )r   r   r   r   r^   r_   r`   r    r   ra   r.   r,   rb   s               r<   rc   zAsyncVideos.create  s     P # #2"   !	
 d73;#7>HYGZF[\ ()>X=CVTVXZZ,T3F3X3XYY(+'%'.    
 
 	
Y
s$   A2B!4B
5#B!BB!B!rd   c       
           K   | j                  ||||||||	|
	       d{   }| j                  |j                  |       d{   S 7 )7 w)rg   rh   Nri   rj   rm   s               r<   ro   zAsyncVideos.create_and_poll  sm     $ kk+'#! " 

 

 YYHH-  
 
 	



s!   AA
$AAAAri   c                 K   ddi}t        |      rt        |      |d<   	 | j                  j                  ||       d{   }|j	                         }|j
                  dk(  s|j
                  dk(  rSt        |      s+|j                  j                  d      }|t        |      }nd	}| j                  |d	z         d{    n>|j
                  d
k(  s|j
                  dk(  r|S t        rt        |j
                         n|S 7 7 Fw)rq   rr   rs   rt   ru   Nrv   rw   rx   ry   rz   r{   r|   r   s          r<   rk   zAsyncVideos.poll  s	     $=f"E$%:=>N:OG67!33<<% =  H
 NN$E||},0H 01"*"2"2"6"67M"NK".+.{+;(+/(kk"2T"9:::,0H  . L-  ;s%   ?D
DA?D
DAD
D
r   c                  K   |st        d|      | j                  t        d|      t        ||||ddi      t               d{   S 7 w)	r   r   r   r   rV   TrW   r   Nr   r   s         r<   r}   zAsyncVideos.retrieve%  sl     0 VW_VbcddYY.B(+'%'.   

 

 
	
 

   AA	A
Ar   c                   | j                  dt        t           t        ||||t	        |||dt
        j                        ddi      t              S r   )r   r+   r,   r.   r   r   r   r   s           r<   r   zAsyncVideos.listK  sl    B !!,U3(+'%%!&!&!&
 &55 (. % " 
 	
r>   c                  K   |st        d|      | j                  t        d|      t        ||||ddi      t               d{   S 7 w)	r   r   r   r   rV   TrW   r   Nr   r   s         r<   r   zAsyncVideos.delete  sl     0 VW_Vbcdd\\.B(+'%'. ( " 

 

 
	
 

r   c               @  K   t        ||ddgg      }t        t        t        t        t
        f   |      dgg      }ddi|xs i }| j                  dt        |t        j                         d{   |t        ||||dd	i
      t               d{   S 7 (7 w)r   r   rn   rQ   rS   rT   r   NrV   TrW   rY   )r   r   r   r   r^   r_   r`   r    r   r   r.   r3   r   s	            r<   r   zAsyncVideos.create_character  s     : # YK
 d73;#7>ykR ()>X=CVTVXZZ ,T3P3k3kll(+'%'. 1   
 
 	
l
$   A/B1B
2#BBBBr   c                 K   |st        d|      ddi|xs i }| j                  t        d|      t        ||||t	        d|it
        j                         d{   dd	i
      t        j                         d{   S 7 (7 w)r   r   r   r   r   r   r   NrV   Tr   r   )	r   r   r   r.   r    r   r   r
   r   r   s          r<   r   zAsyncVideos.download_content  s     : VW_Vbcdd!#7QM<ORQYY6J(+'%1(*G*b*b  (.	 %??  
 
 	

s$   AB	B#B	 BB	B	c               @  K   t        ||ddgg      }t        t        t        t        t
        f   |      dgg      }ddi|xs i }| j                  dt        |t        j                         d{   |t        ||||dd	i
      t               d{   S 7 (7 w)r   r   rn   rQ   rS   rT   r   NrV   TrW   rY   )r   r   r   r   r^   r_   r`   r    r   r   r.   r,   r   s	            r<   r   zAsyncVideos.edit  s     < #  YK
 d73;#7>ykR ()>X=CVTVXZZ,T3D3T3TUU(+'%'.    
 
 	
U
r  c               B  K   t        |||ddgg      }t        t        t        t        t
        f   |      dgg      }	ddi|xs i }| j                  dt        |t        j                         d{   |	t        ||||dd	i
      t               d{   S 7 (7 w)r   r   rn   rQ   rS   rT   r   NrV   TrW   rY   )r   r   r   r   r^   r_   r`   r    r   r   r.   r,   r   s
             r<   r   zAsyncVideos.extendE  s     B # "
 YK
 d73;#7>ykR ()>X=CVTVXZZ ,T3F3X3XYY(+'%'.    
 
 	
Y
s$   A0B2B
3#BBBBc                  K   |st        d|      | j                  t        d|      t        ||||ddi      t               d{   S 7 w)	r   r   r   r   rV   TrW   r   Nr   r   s         r<   r   zAsyncVideos.get_character  sl     0 Z[gZjkllYY=LY(+'%'. .  

 

 
	
 

r   c                  K   |st        d|      | j                  t        d|      t        d|it        j
                         d{   t        ||||ddi      t        	       d{   S 7 '7 w)
r   r   r   r   rP   NrV   TrW   r   )r   r`   r   r    r   r   r.   r,   r   s          r<   r   zAsyncVideos.remix  s     6 VW_VbcddZZ4xH,h-?ASAdAdee(+'%'.    
 
 	
e
s$   AA5	A1

"A5,A3-A53A5)r   r   )r   r   r   r   r   r   )r   r   r   r   r   r   rI   r   rJ   r   rK   r   rL   r   r   z9AsyncPaginator[Video, AsyncConversationCursorPage[Video]]r   r   r   r   r   r   r   r   r   r>   r<   r5   r5     s   0 0 6 6 "!!"mn
 FJ(,'+!% )-$("&<EB
 B
 C	B

 &B
 %B
 B
 &B
 "B
  B
 :B
 
B
 oB
H "!!"mn
 FJ(,'+!%'+ )-$("&<E 
  
 C	 

 & 
 % 
  
 % 
 & 
 " 
   
 : 
 
 
 o 
D "!!"mn
 (,	%!%! %	%!
 
%! o%!N "!!"mn )-$("&<E#
#
 &#
 "#
  #
 :#
 
#
 o#
J "!!"mn ! /3 )-$("&<E3
 3
 	3

 -3
 &3
 "3
  3
 :3
 
C3
 o3
j "!!"mn )-$("&<E#
#
 &#
 "#
  #
 :#
 
#
 o#
J "!!"mn )-$("&<E4
 4
 	4
 &4
 "4
  4
 :4
 
&4
 o4
l "!!"mn
 HL )-$("&<E,
,
 E	,
 &,
 ",
  ,
 :,
 
5,
 o,
\ "!!"mn )-$("&<E5
 5
 '	5
 &5
 "5
  5
 :5
 
5
 o5
n "!!"mn )-$("&<E9
 9
 	9

 )9
 &9
 "9
  9
 :9
 
9
 o9
v "!!"mn )-$("&<E#
#
 &#
 "#
  #
 :#
 
##
 o#
J "!!"mn )-$("&<E'
'
 	'
 &'
 "'
  '
 :'
 
'
 o'
r>   c                      e Zd ZddZy)r9   c                   || _         t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j
                        | _        t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j                        | _	        t        j                  |j                        | _
        t        j                  |j                        | _        t        j                  |j                        | _        y N)_videosr
   to_raw_response_wrapperrc   r}   r   r   r   r   r   r   r   r   r;   videoss     r<   __init__zVideosWithRawResponse.__init__  s>    44 	 44 	 44 		 44 	 44'' 	 44'' 	 44 		 44 	 44$$ 	 44 	
r>   Nr  r4   r   Noner   r   r   r  r   r>   r<   r9   r9         4
r>   r9   c                      e Zd ZddZy)r   c                   || _         t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j
                        | _        t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j                        | _	        t        j                  |j                        | _
        t        j                  |j                        | _        t        j                  |j                        | _        y r	  )r
  r
   async_to_raw_response_wrapperrc   r}   r   r   r   r   r   r   r   r   r  s     r<   r  z#AsyncVideosWithRawResponse.__init__  s>    :: 	 :: 	 :: 		 :: 	 ::'' 	 ::'' 	 :: 		 :: 	 ::$$ 	 :: 	
r>   Nr  r5   r   r  r  r   r>   r<   r   r   
  r  r>   r   c                      e Zd ZddZy)rA   c                $   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                  t              | _        t        |j                        | _
        t        |j                        | _        t        |j                        | _        t        |j                        | _        y r	  )r
  r&   rc   r}   r   r   r   r(   r   r$   r   r   r   r   r  s     r<   r  z$VideosWithStreamingResponse.__init__C  s    ) 	 ) 	 ) 		 ) 	 )'' 	 0'') 	 ) 		 ) 	 )$$ 	 ) 	
r>   Nr  r  r   r>   r<   rA   rA   B      5
r>   rA   c                      e Zd ZddZy)r   c                $   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                  t              | _        t        |j                        | _
        t        |j                        | _        t        |j                        | _        t        |j                        | _        y r	  )r
  r'   rc   r}   r   r   r   r)   r   r%   r   r   r   r   r  s     r<   r  z)AsyncVideosWithStreamingResponse.__init__|  s    / 	 / 	 / 		 / 	 /'' 	 6''. 	 / 		 / 	 /$$ 	 / 	
r>   Nr  r  r   r>   r<   r   r   {  r  r>   r   )M
__future__r   r   typingr   r   r   r   r   httpx2 r
   typesr   r   r   r   r   r   r   r   r   _filesr   _typesr   r   r   r   r   r   r   r   _utilsr   r   r   r    _compatr!   	_resourcer"   r#   	_responser$   r%   r&   r'   r(   r)   
paginationr*   r+   types.videor,   _base_clientr-   r.   _utils._utilsr/   types.video_sizetypes.video_secondstypes.video_model_paramr0   types.video_delete_responser1   "types.video_get_character_responser2   %types.video_create_character_responser3   __all__r4   r5   r9   r   rA   r   r   r>   r<   <module>r2     s    #  / / 3  
 
 
 ) U U U Y Y % 9  Q  ? $ ( . 5 = J P]
#L	
_ L	
^N	
" N	
b5
 5
p5
 5
p6
 6
r6
 6
r>   