
    i/                       d dl m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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#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.m/Z/m0Z0 ddl1m2Z2m3Z3 ddl4m5Z5 ddl6m7Z7m8Z8 ddl9m:Z: ddl;mZ ddl<mZ ddl=m>Z> ddl?m@Z@ ddlAmBZB ddlCmDZD ddgZE G d de(      ZF G d de)      ZG G d d      ZH G d d      ZI G d d       ZJ G d! d"      ZKy)#    )annotations)TYPE_CHECKINGMappingcast)Literalassert_neverN   )_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)BodyOmitQueryHeadersNotGiven	FileTypesomit	not_given)extract_filespath_templatemaybe_transformdeepcopy_minimal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            
      t   e Zd Zedd       Zedd       Zeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZeeeeeddded		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZ	ed	 	 	 	 	 dd	Z
ddded
	 	 	 	 	 	 	 	 	 	 	 ddZeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZddded
	 	 	 	 	 	 	 	 	 	 	 ddZddded
	 	 	 	 	 	 	 	 	 	 	 	 	 ddZeddded	 	 	 	 	 	 	 	 	 	 	 	 	 ddZddded
	 	 	 	 	 	 	 	 	 	 	 	 	 d dZddded
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d!dZddded
	 	 	 	 	 	 	 	 	 	 	 d"dZ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    h/Users/manta/Documents/Projects/TheRoad-I1/.venv/lib/python3.12/site-packages/openai/resources/videos.pywith_raw_responsezVideos.with_raw_response1   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>   Ninput_referencemodelsecondssizeextra_headersextra_query
extra_bodytimeoutc       	        
   t        |||||d      }
t        t        t        t        t
        f   |
      dgg      }ddi|xs i }| j                  dt        |
t        j                        |t        ||||	      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
        promptrD   rE   rF   rG   rD   pathsContent-Typemultipart/form-data/videosrH   rI   rJ   rK   bodyfilesoptionscast_to)r   r   r   r   strobject_postr   r   VideoCreateParamsr.   r,   r;   rO   rD   rE   rF   rG   rH   rI   rJ   rK   rW   rX   s               r<   createzVideos.createD   s    N   #2"
 d73;#7>HYGZF[\ ()>X=CVTVXzz ':'L'LM(+Q[el   
 	
r>   	rD   rE   rF   rG   poll_interval_msrH   rI   rJ   rK   c       
        p    | j                  ||||||||	|
	      }| j                  |j                  |      S )/Create a video and wait for it to be processed.	rE   rO   rD   rF   rG   rH   rI   rJ   rK   rb   r`   pollidr;   rO   rD   rE   rF   rG   rb   rH   rI   rJ   rK   videos               r<   create_and_pollzVideos.create_and_poll   sT    " +'#!  

 yyHH-  
 	
r>   rf   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rH   in_progressqueuedopenai-poll-after-ms  	completedfailedr/   r[   r=   retrieveparsestatusheadersgetint_sleepr   r   r;   video_idrb   r}   responserk   from_headers          r<   rh   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>   rU   c          	         |st        d|      | j                  t        d|      t        ||||      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   rU   rY   rZ   
ValueError_getr   r.   r,   r;   r   rH   rI   rJ   rK   s         r<   rz   zVideos.retrieve   sU    . VW_Vbcddyy.B(+Q[el   
 	
r>   afterlimitorderrH   rI   rJ   rK   c                   | j                  dt        t           t        ||||t	        |||dt
        j                              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
        rT   )r   r   r   rH   rI   rJ   rK   query)pagerY   rE   )_get_api_listr*   r,   r.   r   r   VideoListParamsr;   r   r   r   rH   rI   rJ   rK   s           r<   listzVideos.list   sb    @ !!+E2(+'%%!&!&!&
 &55 # " 
 	
r>   c          	         |st        d|      | j                  t        d|      t        ||||      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   rU   r   r   _deleter   r.   r1   r   s         r<   deletezVideos.delete!  sU    . VW_Vbcdd||.B(+Q[el (  
 	
r>   c                  t        ||d      }t        t        t        t        t
        f   |      dgg      }ddi|xs i }| j                  dt        |t        j                        |t        ||||      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
        namerk   rk   rP   rR   rS   /videos/charactersrU   rV   )r   r   r   r   r[   r\   r]   r   r   VideoCreateCharacterParamsr.   r3   	r;   r   rk   rH   rI   rJ   rK   rW   rX   s	            r<   create_characterzVideos.create_characterB  s    8  
 d73;#7>ykR ()>X=CVTVXzz  'D'_'_`(+Q[el 1  
 	
r>   variantrH   rI   rJ   rK   c                   |st        d|      ddi|xs i }| j                  t        d|      t        ||||t	        d|it
        j                              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   r   r   )	r   r   r   r.   r   r   VideoDownloadContentParamsr
   HttpxBinaryResponseContentr;   r   r   rH   rI   rJ   rK   s          r<   download_contentzVideos.download_contents  s    8 VW_Vbcdd!#7QM<ORQyy6J(+'%%y'&:<Y<t<tu %??  

 
	
r>   c                  t        ||d      }t        t        t        t        t
        f   |      dgg      }ddi|xs i }| j                  dt        |t        j                        |t        ||||      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
        rO   rk   rk   rP   rR   rS   /videos/editsrU   rV   )r   r   r   r   r[   r\   r]   r   r   VideoEditParamsr.   r,   	r;   rO   rk   rH   rI   rJ   rK   rW   rX   s	            r<   editzVideos.edit  s    :   
 d73;#7>ykR ()>X=CVTVXzz '8'H'HI(+Q[el   
 	
r>   c                  t        |||d      }t        t        t        t        t
        f   |      dgg      }	ddi|xs i }| j                  dt        |t        j                        |	t        ||||      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
        rO   rF   rk   rk   rP   rR   rS   /videos/extensionsrU   rV   )r   r   r   r   r[   r\   r]   r   r   VideoExtendParamsr.   r,   
r;   rO   rF   rk   rH   rI   rJ   rK   rW   rX   s
             r<   extendzVideos.extend  s    @   "
 d73;#7>ykR ()>X=CVTVXzz  ':'L'LM(+Q[el   
 	
r>   c          	         |st        d|      | j                  t        d|      t        ||||      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_idrU   r   r   r   r   r.   r2   r;   r   rH   rI   rJ   rK   s         r<   get_characterzVideos.get_character  sU    . Z[gZjkllyy=LY(+Q[el .  
 	
r>   c          
         |st        d|      | j                  t        d|      t        d|it        j
                        t        ||||      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   rO   rU   rW   rY   rZ   )r   r]   r   r   r   VideoRemixParamsr.   r,   r;   r   rO   rH   rI   rJ   rK   s          r<   remixzVideos.remix'  sk    4 VW_Vbcddzz4xH (F!35G5X5XY(+Q[el   
 	
r>   )returnr9   )r   rA   rO   r[   rD   )video_create_params.InputReference | OmitrE   VideoModelParam | OmitrF   VideoSeconds | OmitrG   VideoSize | OmitrH   Headers | NonerI   Query | NonerJ   Body | NonerK   'float | httpx.Timeout | None | NotGivenr   r,   rO   r[   rD   r   rE   r   rF   r   rG   r   rb   
int | OmitrH   r   rI   r   rJ   r   rK   r   r   r,   r   r[   rb   r   r   r,   r   r[   rH   r   rI   r   rJ   r   rK   r   r   r,   )r   
str | Omitr   r   r   Literal['asc', 'desc'] | OmitrH   r   rI   r   rJ   r   rK   r   r   z!SyncConversationCursorPage[Video]r   r[   rH   r   rI   r   rJ   r   rK   r   r   r1   r   r[   rk   r   rH   r   rI   r   rJ   r   rK   r   r   r3   r   r[   r   z3Literal['video', 'thumbnail', 'spritesheet'] | OmitrH   r   rI   r   rJ   r   rK   r   r   z+_legacy_response.HttpxBinaryResponseContentrO   r[   rk   zvideo_edit_params.VideorH   r   rI   r   rJ   r   rK   r   r   r,   rO   r[   rF   r   rk   zvideo_extend_params.VideorH   r   rI   r   rJ   r   rK   r   r   r,   r   r[   rH   r   rI   r   rJ   r   rK   r   r   r2   r   r[   rO   r[   rH   r   rI   r   rJ   r   rK   r   r   r,   __name__
__module____qualname__r!   r=   rB   r   r   r`   rl   rh   rz   r   r   r   r   r   r   r   r    r>   r<   r4   r4   0   s   + + 1 1 FJ(,'+!% )-$("&;D=
 =
 C	=

 &=
 %=
 =
 &=
 "=
  =
 9=
 
=
F FJ(,'+!%'+ )-$("&;D 
  
 C	 

 & 
 % 
  
 % 
 & 
 " 
   
 9 
 
 
L (,	%!%! %	%!
 
%!Z )-$("&;D

 &
 "
  
 9
 

H ! /3 )-$("&;D2
 2
 	2

 -2
 &2
 "2
  2
 92
 
+2
t )-$("&;D

 &
 "
  
 9
 

P )-$("&;D/
 /
 	/
 &/
 "/
  /
 9/
 
&/
j HL )-$("&;D)
)
 E	)
 &)
 ")
  )
 9)
 
5)
d )-$("&;D0
 0
 '	0
 &0
 "0
  0
 90
 
0
t )-$("&;D4
 4
 	4

 )4
 &4
 "4
  4
 94
 
4
x )-$("&;D

 &
 "
  
 9
 
#
P )-$("&;D#
#
 	#
 &#
 "#
  #
 9#
 
#
r>   c            
      t   e Zd Zedd       Zedd       Zeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZeeeeeddded		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZ	ed	 	 	 	 	 dd	Z
ddded
	 	 	 	 	 	 	 	 	 	 	 ddZeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZddded
	 	 	 	 	 	 	 	 	 	 	 ddZddded
	 	 	 	 	 	 	 	 	 	 	 	 	 ddZeddded	 	 	 	 	 	 	 	 	 	 	 	 	 ddZddded
	 	 	 	 	 	 	 	 	 	 	 	 	 d dZddded
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d!dZddded
	 	 	 	 	 	 	 	 	 	 	 d"dZddded
	 	 	 	 	 	 	 	 	 	 	 	 	 d#dZy)$r5   c                    t        |       S r8   )AsyncVideosWithRawResponser:   s    r<   r=   zAsyncVideos.with_raw_responseN  s     *$//r>   c                    t        |       S r@   ) AsyncVideosWithStreamingResponser:   s    r<   rB   z#AsyncVideos.with_streaming_responseX  s     055r>   NrC   c       	        :  K   t        |||||d      }
t        t        t        t        t
        f   |
      dgg      }ddi|xs i }| j                  dt        |
t        j                         d{   |t        ||||	      t        	       d{   S 7 %7 w)
rM   rN   rD   rP   rR   rS   rT   NrU   rV   )r   r   r   r   r[   r\   r]   r    r   r^   r.   r,   r_   s               r<   r`   zAsyncVideos.createa  s     N   #2"
 d73;#7>HYGZF[\ ()>X=CVTVXZZ,T3F3X3XYY(+Q[el    
 
 	
Y
s$   A/B1B
2 BBBBra   c       
           K   | j                  ||||||||	|
	       d{   }| j                  |j                  |       d{   S 7 )7 w)rd   re   Nrf   rg   rj   s               r<   rl   zAsyncVideos.create_and_poll  sm     " kk+'#! " 

 

 YYHH-  
 
 	



s!   AA
$AAAArf   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)rn   ro   rp   rq   rr   Nrs   rt   ru   rv   rw   rx   ry   r   s          r<   rh   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
rU   c          	        K   |st        d|      | j                  t        d|      t        ||||      t               d{   S 7 w)r   r   r   r   rU   r   Nr   r   s         r<   rz   zAsyncVideos.retrieve  sc     . VW_VbcddYY.B(+Q[el   
 
 	
 
   AAAAr   c                   | j                  dt        t           t        ||||t	        |||dt
        j                              t              S r   )r   r+   r,   r.   r   r   r   r   s           r<   r   zAsyncVideos.list
  sb    @ !!,U3(+'%%!&!&!&
 &55 # " 
 	
r>   c          	        K   |st        d|      | j                  t        d|      t        ||||      t               d{   S 7 w)r   r   r   r   rU   r   Nr   r   s         r<   r   zAsyncVideos.delete>  sc     . VW_Vbcdd\\.B(+Q[el ( " 
 
 	
 
r   c               4  K   t        ||d      }t        t        t        t        t
        f   |      dgg      }ddi|xs i }| j                  dt        |t        j                         d{   |t        ||||      t        	       d{   S 7 %7 w)
r   r   rk   rP   rR   rS   r   NrU   rV   )r   r   r   r   r[   r\   r]   r    r   r   r.   r3   r   s	            r<   r   zAsyncVideos.create_character_  s     8  
 d73;#7>ykR ()>X=CVTVXZZ ,T3P3k3kll(+Q[el 1   
 
 	
l
$   A,B.B
/ 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{         t        j                  	       d{   S 7 %7 w)
r   r   r   r   r   r   r   Nr   r   )	r   r   r   r.   r    r   r   r
   r   r   s          r<   r   zAsyncVideos.download_content  s     8 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               4  K   t        ||d      }t        t        t        t        t
        f   |      dgg      }ddi|xs i }| j                  dt        |t        j                         d{   |t        ||||      t        	       d{   S 7 %7 w)
r   r   rk   rP   rR   rS   r   NrU   rV   )r   r   r   r   r[   r\   r]   r    r   r   r.   r,   r   s	            r<   r   zAsyncVideos.edit  s     :   
 d73;#7>ykR ()>X=CVTVXZZ,T3D3T3TUU(+Q[el    
 
 	
U
r   c               6  K   t        |||d      }t        t        t        t        t
        f   |      dgg      }	ddi|xs i }| j                  dt        |t        j                         d{   |	t        ||||      t        	       d{   S 7 %7 w)
r   r   rk   rP   rR   rS   r   NrU   rV   )r   r   r   r   r[   r\   r]   r    r   r   r.   r,   r   s
             r<   r   zAsyncVideos.extend  s     @   "
 d73;#7>ykR ()>X=CVTVXZZ ,T3F3X3XYY(+Q[el    
 
 	
Y
s$   A-B/B
0 BBBBc          	        K   |st        d|      | j                  t        d|      t        ||||      t               d{   S 7 w)r   r   r   r   rU   r   Nr   r   s         r<   r   zAsyncVideos.get_character%  sc     . Z[gZjkllYY=LY(+Q[el .  
 
 	
 
r   c          
        K   |st        d|      | j                  t        d|      t        d|it        j
                         d{   t        ||||      t               d{   S 7 $7 w)r   r   r   r   rO   NrU   r   )r   r]   r   r    r   r   r.   r,   r   s          r<   r   zAsyncVideos.remixF  s     4 VW_VbcddZZ4xH,h-?ASAdAdee(+Q[el    
 
 	
e
s$   AA2	A.

A2)A0*A20A2)r   r   )r   r   r   r   r   r   )r   r   r   r   r   r   rH   r   rI   r   rJ   r   rK   r   r   z9AsyncPaginator[Video, AsyncConversationCursorPage[Video]]r   r   r   r   r   r   r   r   r   r>   r<   r5   r5   M  s   0 0 6 6 FJ(,'+!% )-$("&;D=
 =
 C	=

 &=
 %=
 =
 &=
 "=
  =
 9=
 
=
F FJ(,'+!%'+ )-$("&;D 
  
 C	 

 & 
 % 
  
 % 
 & 
 " 
   
 9 
 
 
L (,	%!%! %	%!
 
%!Z )-$("&;D

 &
 "
  
 9
 

H ! /3 )-$("&;D2
 2
 	2

 -2
 &2
 "2
  2
 92
 
C2
t )-$("&;D

 &
 "
  
 9
 

P )-$("&;D/
 /
 	/
 &/
 "/
  /
 9/
 
&/
j HL )-$("&;D+
+
 E	+
 &+
 "+
  +
 9+
 
5+
h )-$("&;D0
 0
 '	0
 &0
 "0
  0
 90
 
0
t )-$("&;D4
 4
 	4

 )4
 &4
 "4
  4
 94
 
4
x )-$("&;D

 &
 "
  
 9
 
#
P )-$("&;D#
#
 	#
 &#
 "#
  #
 9#
 
#
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_wrapperr`   rz   r   r   r   r   r   r   r   r   r;   videoss     r<   __init__zVideosWithRawResponse.__init__m  s   &>>MM
 )@@OO
 %<<KK
	 '>>MM
 !1 H H##!
 !1 H H##!
 %<<KK
	 '>>MM
 .EE  
 &==LL

r>   Nr  r4   r   Noner   r   r   r  r   r>   r<   r9   r9   l       
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_wrapperr`   rz   r   r   r   r   r   r   r   r   r  s     r<   r  z#AsyncVideosWithRawResponse.__init__  s   &DDMM
 )FFOO
 %BBKK
	 'DDMM
 !1 N N##!
 !1 N N##!
 %BBKK
	 'DDMM
 .KK  
 &CCLL

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&   r`   rz   r   r   r   r(   r   r$   r   r   r   r   r  s     r<   r  z$VideosWithStreamingResponse.__init__  s    2MM
 5OO
 1KK
	 3MM
 !=##!
 !D##%!
 1KK
	 3MM
 :  
 2LL

r>   Nr	  r  r   r>   r<   rA   rA         !
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'   r`   rz   r   r   r   r)   r   r%   r   r   r   r   r  s     r<   r  z)AsyncVideosWithStreamingResponse.__init__  s    8MM
 ;OO
 7KK
	 9MM
 !C##!
 !J##*!
 7KK
	 9MM
 @  
 8LL

r>   Nr  r  r   r>   r<   r   r     r  r>   r   )L
__future__r   typingr   r   r   typing_extensionsr   r   httpx r
   typesr   r   r   r   r   r   r   r   r   _typesr   r   r   r   r   r   r   r   _utilsr   r   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>r,     s    # / / 3  
 
 
 V U U k k % 9  Q  ? $ ( . 5 = J P]
#Z
_ Z
z\
" \
~!
 !
H!
 !
H"
 "
J"
 "
r>   