
    Yǻ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# 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.m/Z/ ddl0m1Z1m2Z2 ddl3m4Z4 ddl5m6Z6m7Z7 ddl8m9Z9 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gZD G d de'      ZE G d de(      ZF G d d      ZG G d d      ZH G d d       ZI G d! d"      ZJy)#    )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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)$r3   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    U/opt/lhia/marcimex/agent/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
        )VideosWithStreamingResponser9   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
        promptrC   rD   rE   rF   rC   pathsContent-Typemultipart/form-data/videosrG   rH   rI   rJ   bodyfilesoptionscast_to)r   r   r   r   strobject_postr   r   VideoCreateParamsr-   r+   r:   rN   rC   rD   rE   rF   rG   rH   rI   rJ   rV   rW   s               r;   createzVideos.createD   s    N   #2"
 d73;#7>HYGZF[\ ()>X=CVTVXzz ':'L'LM(+Q[el   
 	
r=   	rC   rD   rE   rF   poll_interval_msrG   rH   rI   rJ   c       
        p    | j                  ||||||||	|
	      }| j                  |j                  |      S )/Create a video and wait for it to be processed.	rD   rN   rC   rE   rF   rG   rH   rI   rJ   ra   r_   pollidr:   rN   rC   rD   rE   rF   ra   rG   rH   rI   rJ   videos               r;   create_and_pollzVideos.create_and_poll   sT    " +'#!  

 yyHH-  
 	
r=   re   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rG   in_progressqueuedopenai-poll-after-ms  	completedfailedr.   rZ   r<   retrieveparsestatusheadersgetint_sleepr   r   r:   video_idra   r|   responserj   from_headers          r;   rg   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=   rT   c          	     r    |st        d|      | j                  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/rT   rX   rY   
ValueError_getr-   r+   r:   r   rG   rH   rI   rJ   s         r;   ry   zVideos.retrieve   sT    . VW_Vbcddyyxj!(+Q[el   
 	
r=   afterlimitorderrG   rH   rI   rJ   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
        rS   )r   r   r   rG   rH   rI   rJ   query)pagerX   rD   )_get_api_listr)   r+   r-   r   r   VideoListParamsr:   r   r   r   rG   rH   rI   rJ   s           r;   listzVideos.list   sb    @ !!+E2(+'%%!&!&!&
 &55 # " 
 	
r=   c          	     r    |st        d|      | j                  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   rT   r   r   _deleter-   r0   r   s         r;   deletezVideos.delete!  sT    . VW_Vbcdd||xj!(+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
        namerj   rj   rO   rQ   rR   /videos/charactersrT   rU   )r   r   r   r   rZ   r[   r\   r   r   VideoCreateCharacterParamsr-   r2   	r:   r   rj   rG   rH   rI   rJ   rV   rW   s	            r;   create_characterzVideos.create_characterB  s    8  
 d73;#7>ykR ()>X=CVTVXzz  'D'_'_`(+Q[el 1  
 	
r=   variantrG   rH   rI   rJ   c                   |st        d|      ddi|xs i }| j                  d| 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/binaryr   /contentr   r   r   )r   r   r-   r   r   VideoDownloadContentParamsr
   HttpxBinaryResponseContentr:   r   r   rG   rH   rI   rJ   s          r;   download_contentzVideos.download_contents  s    8 VW_Vbcdd!#7QM<ORQyyxj)(+'%%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
        rN   rj   rj   rO   rQ   rR   /videos/editsrT   rU   )r   r   r   r   rZ   r[   r\   r   r   VideoEditParamsr-   r+   	r:   rN   rj   rG   rH   rI   rJ   rV   rW   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
        rN   rE   rj   rj   rO   rQ   rR   /videos/extensionsrT   rU   )r   r   r   r   rZ   r[   r\   r   r   VideoExtendParamsr-   r+   
r:   rN   rE   rj   rG   rH   rI   rJ   rV   rW   s
             r;   extendzVideos.extend  s    @   "
 d73;#7>ykR ()>X=CVTVXzz  ':'L'LM(+Q[el   
 	
r=   c          	     r    |st        d|      | j                  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/rT   r   r   r   r-   r1   r:   character_idrG   rH   rI   rJ   s         r;   get_characterzVideos.get_character  sT    . Z[gZjkllyy!,0(+Q[el .  
 	
r=   c          
         |st        d|      | j                  d| 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   r   /remixrN   rT   rV   rX   rY   )r   r\   r   r   VideoRemixParamsr-   r+   r:   r   rN   rG   rH   rI   rJ   s          r;   remixzVideos.remix'  sl    4 VW_Vbcddzzxj' (F!35G5X5XY(+Q[el   
 	
r=   )returnr8   )r   r@   rN   rZ   rC   )video_create_params.InputReference | OmitrD   VideoModelParam | OmitrE   VideoSeconds | OmitrF   VideoSize | OmitrG   Headers | NonerH   Query | NonerI   Body | NonerJ   'float | httpx.Timeout | None | NotGivenr   r+   rN   rZ   rC   r   rD   r   rE   r   rF   r   ra   
int | OmitrG   r   rH   r   rI   r   rJ   r   r   r+   r   rZ   ra   r   r   r+   r   rZ   rG   r   rH   r   rI   r   rJ   r   r   r+   )r   
str | Omitr   r   r   Literal['asc', 'desc'] | OmitrG   r   rH   r   rI   r   rJ   r   r   z!SyncConversationCursorPage[Video]r   rZ   rG   r   rH   r   rI   r   rJ   r   r   r0   r   rZ   rj   r   rG   r   rH   r   rI   r   rJ   r   r   r2   r   rZ   r   z3Literal['video', 'thumbnail', 'spritesheet'] | OmitrG   r   rH   r   rI   r   rJ   r   r   z+_legacy_response.HttpxBinaryResponseContentrN   rZ   rj   zvideo_edit_params.VideorG   r   rH   r   rI   r   rJ   r   r   r+   rN   rZ   rE   r   rj   zvideo_extend_params.VideorG   r   rH   r   rI   r   rJ   r   r   r+   r   rZ   rG   r   rH   r   rI   r   rJ   r   r   r1   r   rZ   rN   rZ   rG   r   rH   r   rI   r   rJ   r   r   r+   __name__
__module____qualname__r    r<   rA   r   r   r_   rk   rg   ry   r   r   r   r   r   r   r   r    r=   r;   r3   r3   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)$r4   c                    t        |       S r7   )AsyncVideosWithRawResponser9   s    r;   r<   zAsyncVideos.with_raw_responseN  s     *$//r=   c                    t        |       S r?   ) AsyncVideosWithStreamingResponser9   s    r;   rA   z#AsyncVideos.with_streaming_responseX  s     055r=   NrB   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)
rL   rM   rC   rO   rQ   rR   rS   NrT   rU   )r   r   r   r   rZ   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r`   c       
           K   | j                  ||||||||	|
	       d{   }| j                  |j                  |       d{   S 7 )7 w)rc   rd   Nre   rf   ri   s               r;   rk   zAsyncVideos.create_and_poll  sm     " kk+'#! " 

 

 YYHH-  
 
 	



s!   AA
$AAAAre   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)rm   rn   ro   rp   rq   Nrr   rs   rt   ru   rv   rw   rx   r   s          r;   rg   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
rT   c          	        K   |st        d|      | j                  d| t        ||||      t               d{   S 7 w)r   r   r   rT   r   Nr   r   s         r;   ry   zAsyncVideos.retrieve  sb     . VW_VbcddYYxj!(+Q[el   
 
 	
 
   <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                  d| t        ||||      t               d{   S 7 w)r   r   r   rT   r   Nr   r   s         r;   r   zAsyncVideos.delete>  sb     . VW_Vbcdd\\xj!(+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   rj   rO   rQ   rR   r   NrT   rU   )r   r   r   r   rZ   r[   r\   r   r   r   r-   r2   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                  d| 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   s          r;   r   zAsyncVideos.download_content  s     8 VW_Vbcdd!#7QM<ORQYYxj)(+'%1(*G*b*b  %??  
 
 	

s$   AA?A; A?6A=7A?=A?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   rj   rO   rQ   rR   r   NrT   rU   )r   r   r   r   rZ   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   rj   rO   rQ   rR   r   NrT   rU   )r   r   r   r   rZ   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                  d| t        ||||      t               d{   S 7 w)r   r   r   rT   r   Nr   r   s         r;   r   zAsyncVideos.get_character%  sb     . Z[gZjkllYY!,0(+Q[el .  
 
 	
 
r   c          
        K   |st        d|      | j                  d| dt        d|it        j                         d{   t        ||||      t               d{   S 7 $7 w)r   r   r   r   rN   NrT   r   )r   r\   r   r   r   r-   r+   r   s          r;   r   zAsyncVideos.remixF  s     4 VW_VbcddZZxj',h-?ASAdAdee(+Q[el    
 
 	
e
s$   A A+A'
A+"A)#A+)A+)r   r   )r   r   r   r   r   r   )r   r   r   r   r   r   rG   r   rH   r   rI   r   rJ   r   r   z9AsyncPaginator[Video, AsyncConversationCursorPage[Video]]r   r   r   r   r   r   r   r   r   r=   r;   r4   r4   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)r8   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_   ry   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  r3   r   Noner   r   r   r  r   r=   r;   r8   r8   l       
r=   r8   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_   ry   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  r4   r   r  r  r   r=   r;   r   r     r	  r=   r   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_   ry   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;   r@   r@         !
r=   r@   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_   ry   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   )K
__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   _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_paramr/   types.video_delete_responser0   "types.video_get_character_responser1   %types.video_create_character_responser2   __all__r3   r4   r8   r   r@   r   r   r=   r;   <module>r)     s    # / / 3  
 
 
 V U U \ \ % 9  Q  ? $ ( . 5 = J P]
#Z
_ Z
z\
" \
~!
 !
H!
 !
H"
 "
J"
 "
r=   