
    j                        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 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)$    )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)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            
      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    v/var/www/internaltesting/Shamanth/prverification/HIS_auto/venv/lib/python3.12/site-packages/openai/resources/videos.pywith_raw_responsezVideos.with_raw_response2   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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
        promptrD   rE   rF   rG   rD   pathsContent-Typemultipart/form-data/videosbearer_authTrH   rI   rJ   rK   security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   rY   rZ   s               r<   createzVideos.createE   s    N # #2"   !	
 d73;#7>HYGZF[\ ()>X=CVTVXzz ':'L'LM(+'%'.   
 	
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   rd   rb   pollidr;   rO   rD   rE   rF   rG   rd   rH   rI   rJ   rK   videos               r<   create_and_pollzVideos.create_and_poll   sT    " +'#!  

 yyHH-  
 	
r>   rh   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_idrd   r   responserm   from_headers          r<   rj   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>   rH   rI   rJ   rK   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   rU   TrV   r[   r\   
ValueError_getr   r.   r,   r;   r   rH   rI   rJ   rK   s         r<   r|   zVideos.retrieve   s^    . VW_Vbcddyy.B(+'%'.   

 
	
r>   afterlimitorderrH   rI   rJ   rK   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
        rT   )r   r   r   rU   TrH   rI   rJ   rK   queryrW   )pager[   rE   )_get_api_listr*   r,   r.   r   r   VideoListParamsr;   r   r   r   rH   rI   rJ   rK   s           r<   listzVideos.list   sl    @ !!+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   rU   TrV   r   r   _deleter   r.   r1   r   s         r<   deletezVideos.delete,  s^    . 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
        namerm   rm   rP   rR   rS   /videos/charactersrU   TrV   rX   )r   r   r   r   r]   r^   r_   r   r   VideoCreateCharacterParamsr.   r3   	r;   r   rm   rH   rI   rJ   rK   rY   rZ   s	            r<   create_characterzVideos.create_characterQ  s    8 # YK
 d73;#7>ykR ()>X=CVTVXzz  'D'_'_`(+'%'. 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                        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   rU   Tr   r   )	r   r   r   r.   r   r   VideoDownloadContentParamsr
   HttpxBinaryResponseContentr;   r   r   rH   rI   rJ   rK   s          r<   download_contentzVideos.download_content  s    8 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
        rO   rm   rm   rP   rR   rS   /videos/editsrU   TrV   rX   )r   r   r   r   r]   r^   r_   r   r   VideoEditParamsr.   r,   	r;   rO   rm   rH   rI   rJ   rK   rY   rZ   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
        rO   rF   rm   rm   rP   rR   rS   /videos/extensionsrU   TrV   rX   )r   r   r   r   r]   r^   r_   r   r   VideoExtendParamsr.   r,   
r;   rO   rF   rm   rH   rI   rJ   rK   rY   rZ   s
             r<   extendzVideos.extend  s    @ # "
 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_idrU   TrV   r   r   r   r   r.   r2   r;   r   rH   rI   rJ   rK   s         r<   get_characterzVideos.get_character%  s^    . 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   rO   rU   TrV   rY   r[   r\   )r   r_   r   r   r   VideoRemixParamsr.   r,   r;   r   rO   rH   rI   rJ   rK   s          r<   remixzVideos.remixJ  st    4 VW_Vbcddzz4xH (F!35G5X5XY(+'%'.   
 	
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   rd   
int | OmitrH   r   rI   r   rJ   r   rK   r   r   r,   r   r]   rd   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]   rm   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]   rm   zvideo_edit_params.VideorH   r   rI   r   rJ   r   rK   r   r   r,   rO   r]   rF   r   rm   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   rb   rn   rj   r|   r   r   r   r   r   r   r   r    r>   r<   r4   r4   1   s   + + 1 1 FJ(,'+!% )-$("&;DB
 B
 C	B

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

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

 -3
 &3
 "3
  3
 93
 
+3
v )-$("&;D#
#
 &#
 "#
  #
 9#
 
#
X )-$("&;D4
 4
 	4
 &4
 "4
  4
 94
 
&4
t HL )-$("&;D*
*
 E	*
 &*
 "*
  *
 9*
 
5*
f )-$("&;D5
 5
 '	5
 &5
 "5
  5
 95
 
5
~ )-$("&;D9
 9
 	9

 )9
 &9
 "9
  9
 99
 
9
B )-$("&;D#
#
 &#
 "#
  #
 9#
 
##
X )-$("&;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_responseu  s     *$//r>   c                    t        |       S r@   ) AsyncVideosWithStreamingResponser:   s    r<   rB   z#AsyncVideos.with_streaming_response  s     055r>   NrC   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)rM   rN   rD   rP   rR   rS   rT   NrU   TrV   rX   )r   r   r   r   r]   r^   r_   r    r   r`   r.   r,   ra   s               r<   rb   zAsyncVideos.create  s     N # #2"   !	
 d73;#7>HYGZF[\ ()>X=CVTVXZZ,T3F3X3XYY(+'%'.    
 
 	
Y
s$   A2B!4B
5#B!BB!B!rc   c       
           K   | j                  ||||||||	|
	       d{   }| j                  |j                  |       d{   S 7 )7 w)rf   rg   Nrh   ri   rl   s               r<   rn   zAsyncVideos.create_and_poll  sm     " kk+'#! " 

 

 YYHH-  
 
 	



s!   AA
$AAAArh   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)rp   rq   rr   rs   rt   Nru   rv   rw   rx   ry   rz   r{   r   s          r<   rj   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   rU   TrV   r   Nr   r   s         r<   r|   zAsyncVideos.retrieve  sl     . 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.list:  sl    @ !!,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   rU   TrV   r   Nr   r   s         r<   r   zAsyncVideos.deleteo  sl     . 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   rm   rP   rR   rS   r   NrU   TrV   rX   )r   r   r   r   r]   r^   r_   r    r   r   r.   r3   r   s	            r<   r   zAsyncVideos.create_character  s     8 # 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   NrU   Tr   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               @  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   rm   rP   rR   rS   r   NrU   TrV   rX   )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   rm   rP   rR   rS   r   NrU   TrV   rX   )r   r   r   r   r]   r^   r_   r    r   r   r.   r,   r   s
             r<   r   zAsyncVideos.extend/  s     @ # "
 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   rU   TrV   r   Nr   r   s         r<   r   zAsyncVideos.get_characterj  sl     . 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   rO   NrU   TrV   r   )r   r_   r   r    r   r   r.   r,   r   s          r<   r   zAsyncVideos.remix  s     4 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   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   t  s   0 0 6 6 FJ(,'+!% )-$("&;DB
 B
 C	B

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

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

 -3
 &3
 "3
  3
 93
 
C3
v )-$("&;D#
#
 &#
 "#
  #
 9#
 
#
X )-$("&;D4
 4
 	4
 &4
 "4
  4
 94
 
&4
t HL )-$("&;D,
,
 E	,
 &,
 ",
  ,
 9,
 
5,
j )-$("&;D5
 5
 '	5
 &5
 "5
  5
 95
 
5
~ )-$("&;D9
 9
 	9

 )9
 &9
 "9
  9
 99
 
9
B )-$("&;D#
#
 &#
 "#
  #
 9#
 
##
X )-$("&;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_wrapperrb   r|   r   r   r   r   r   r   r   r   r;   videoss     r<   __init__zVideosWithRawResponse.__init__  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          
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_wrapperrb   r|   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&   rb   r|   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'   rb   r|   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   )M
__future__r   typingr   r   r   typing_extensionsr   r   httpx 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>r0     s    # / / 3  
 
 
 ) U U U Y Y % 9  Q  ? $ ( . 5 = J P]
#@	
_ @	
FB	
" B	
J!
 !
H!
 !
H"
 "
J"
 "
r>   