
    2i                       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"          ZJdS )#    )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            
      B   e Zd ZedBd            ZedCd            ZeeeedddeddDdZeeeeeddded	dEdZ	ed dFd"Z
ddded#dGd$Zeeeddded%dHd,Zddded#dId.Zddded#dJd3Zeddded4dKd8Zddded#dLd:Zddded#dMd=Zddded#dNd@Zddded#dOdAZdS )Pr3   returnVideosWithRawResponsec                     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
        )r7   selfs    ^/root/.openclaw/workspace/.venv-openai/lib/python3.11/site-packages/openai/resources/videos.pywith_raw_responsezVideos.with_raw_response1   s     %T***    VideosWithStreamingResponsec                     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
        )r?   r:   s    r<   with_streaming_responsezVideos.with_streaming_response;   s     +4000r>   Ninput_referencemodelsecondssizeextra_headersextra_query
extra_bodytimeoutpromptstrrD   )video_create_params.InputReference | OmitrE   VideoModelParam | OmitrF   VideoSeconds | OmitrG   VideoSize | OmitrH   Headers | NonerI   Query | NonerJ   Body | NonerK   'float | httpx.Timeout | None | NotGivenr+   c       	        <   t          |||||d          }
t          t          t          t          t
          f         |
          dgg          }ddi|pi }|                     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
        rL   rD   rE   rF   rG   rD   pathsContent-Typemultipart/form-data/videosrH   rI   rJ   rK   bodyfilesoptionscast_to)r   r   r   r   rM   object_postr   r   VideoCreateParamsr-   r+   r;   rL   rD   rE   rF   rG   rH   rI   rJ   rK   r`   ra   s               r<   createzVideos.createD   s    N   #2" 
 
 d73;#7>>HYGZF[\\\ ()>X=CVTVXzz ':'LMM(+Q[el     
 
 	
r>   	rD   rE   rF   rG   poll_interval_msrH   rI   rJ   rK   rj   
int | Omitc       
        v    |                      ||||||||	|
	  	        }|                     |j        |          S )/Create a video and wait for it to be processed.	rE   rL   rD   rF   rG   rH   rI   rJ   rK   rj   rh   pollidr;   rL   rD   rE   rF   rG   rj   rH   rI   rJ   rK   videos               r<   create_and_pollzVideos.create_and_poll   s\    " +'#!  

 

 yyH-  
 
 	
r>   ro   video_idc                  ddi}t          |          rt          |          |d<   	 | j                            ||          }|                                }|j        dk    s|j        dk    rVt          |          s.|j                            d          }|t          |          }nd
}| 	                    |d
z             n6|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-IntervalTrH   in_progressqueuedopenai-poll-after-msN  	completedfailedr.   rM   r=   retrieveparsestatusheadersgetint_sleepr   r   r;   rv   rj   r   responsert   from_headers          r<   rq   zVideos.poll   s)    $=f"E$%% 	P:=>N:O:OG67	!-66% 7  H
 NN$$E|},,0H0H 011 0"*"2"6"67M"N"NK".+.{+;+;((+/(,t34444,,0H0H  ! .... L-	!r>   r^   c          	         |st          d|          |                     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/r^   rb   rc   
ValueError_getr-   r+   r;   rv   rH   rI   rJ   rK   s         r<   r   zVideos.retrieve   sm    .  	ecW_ccdddyy!x!!(+Q[el     
 
 	
r>   afterlimitorderrH   rI   rJ   rK   r   
str | Omitr   r   Literal['asc', 'desc'] | Omit!SyncConversationCursorPage[Video]c                   |                      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
        r]   )r   r   r   rH   rI   rJ   rK   query)pagerb   rE   )_get_api_listr)   r+   r-   r   r   VideoListParamsr;   r   r   r   rH   rI   rJ   rK   s           r<   listzVideos.list   sx    @ !!+E2(+'%%!&!&!& 
 &5    # " 
 
 	
r>   r0   c          	         |st          d|          |                     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^   r   r   _deleter-   r0   r   s         r<   deletezVideos.delete!  sm    .  	ecW_ccddd||!x!!(+Q[el   (  
 
 	
r>   namert   r   r2   c               6   t          ||d          }t          t          t          t          t
          f         |          dgg          }ddi|pi }|                     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
        r   rt   rt   rY   r[   r\   /videos/charactersr^   r_   )r   r   r   r   rM   rd   re   r   r   VideoCreateCharacterParamsr-   r2   	r;   r   rt   rH   rI   rJ   rK   r`   ra   s	            r<   create_characterzVideos.create_characterB  s    8   
 
 d73;#7>>ykRRR ()>X=CVTVXzz  'D'_``(+Q[el   1  
 
 	
r>   variantrH   rI   rJ   rK   r   3Literal['video', 'thumbnail', 'spritesheet'] | Omit+_legacy_response.HttpxBinaryResponseContentc                   |st          d|          ddi|pi }|                     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;   rv   r   rH   rI   rJ   rK   s          r<   download_contentzVideos.download_contents  s    8  	ecW_ccddd!#7QM<ORQyy)x)))(+'%%y'&:<Y<tuu   %?  

 

 
	
r>   video_edit_params.Videoc               6   t          ||d          }t          t          t          t          t
          f         |          dgg          }ddi|pi }|                     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
        rL   rt   rt   rY   r[   r\   /videos/editsr^   r_   )r   r   r   r   rM   rd   re   r   r   VideoEditParamsr-   r+   	r;   rL   rt   rH   rI   rJ   rK   r`   ra   s	            r<   editzVideos.edit  s    :    
 
 d73;#7>>ykRRR ()>X=CVTVXzz '8'HII(+Q[el     
 
 	
r>   r   video_extend_params.Videoc               8   t          |||d          }t          t          t          t          t
          f         |          dgg          }	ddi|pi }|                     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
        rL   rF   rt   rt   rY   r[   r\   /videos/extensionsr^   r_   )r   r   r   r   rM   rd   re   r   r   VideoExtendParamsr-   r+   
r;   rL   rF   rt   rH   rI   rJ   rK   r`   ra   s
             r<   extendzVideos.extend  s    @   " 
 
 d73;#7>>ykRRR ()>X=CVTVXzz  ':'LMM(+Q[el     
 
 	
r>   character_idr1   c          	         |st          d|          |                     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/r^   r   r   r   r-   r1   r;   r   rH   rI   rJ   rK   s         r<   get_characterzVideos.get_character  sm    .  	mk[gkklllyy0,00(+Q[el   .  
 
 	
r>   c          
         |st          d|          |                     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   /remixrL   r^   r`   rb   rc   )r   re   r   r   VideoRemixParamsr-   r+   r;   rv   rL   rH   rI   rJ   rK   s          r<   remixzVideos.remix'  s    4  	ecW_ccdddzz'x''' (F!35G5XYY(+Q[el     
 
 	
r>   )r6   r7   )r6   r?   rL   rM   rD   rN   rE   rO   rF   rP   rG   rQ   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r+   rL   rM   rD   rN   rE   rO   rF   rP   rG   rQ   rj   rk   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r+   rv   rM   rj   rk   r6   r+   rv   rM   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r+   )r   r   r   rk   r   r   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r   rv   rM   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r0   r   rM   rt   r   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r2   rv   rM   r   r   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r   rL   rM   rt   r   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r+   rL   rM   rF   r   rt   r   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r+   r   rM   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r1   rv   rM   rL   rM   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r+   __name__
__module____qualname__r    r=   rB   r   r   rh   ru   rq   r   r   r   r   r   r   r   r   r    r>   r<   r3   r3   0   s       + + + _+ 1 1 1 _1 FJ(,'+!% )-$("&;D=
 =
 =
 =
 =
 =
F FJ(,'+!%'+ )-$("&;D 
  
  
  
  
  
L (,	%! %! %! %! %! %!Z )-$("&;D
 
 
 
 
 
H ! /3 )-$("&;D2
 2
 2
 2
 2
 2
t )-$("&;D
 
 
 
 
 
P )-$("&;D/
 /
 /
 /
 /
 /
j HL )-$("&;D)
 )
 )
 )
 )
 )
d )-$("&;D0
 0
 0
 0
 0
 0
t )-$("&;D4
 4
 4
 4
 4
 4
x )-$("&;D
 
 
 
 
 
P )-$("&;D#
 #
 #
 #
 #
 #
 #
 #
r>   c            
      B   e Zd ZedBd            ZedCd            ZeeeedddeddDdZeeeeeddded	dEdZ	ed dFd"Z
ddded#dGd$Zeeeddded%dHd,Zddded#dId.Zddded#dJd3Zeddded4dKd8Zddded#dLd:Zddded#dMd=Zddded#dNd@Zddded#dOdAZdS )Pr4   r6   AsyncVideosWithRawResponsec                     t          |           S r9   )r   r:   s    r<   r=   zAsyncVideos.with_raw_responseN  s     *$///r>    AsyncVideosWithStreamingResponsec                     t          |           S rA   )r   r:   s    r<   rB   z#AsyncVideos.with_streaming_responseX  s     0555r>   NrC   rL   rM   rD   rN   rE   rO   rF   rP   rG   rQ   rH   rR   rI   rS   rJ   rT   rK   rU   r+   c       	        X  K   t          |||||d          }
t          t          t          t          t
          f         |
          dgg          }ddi|pi }|                     dt          |
t          j	                   d{V |t          ||||	          t          	           d{V S )
rW   rX   rD   rY   r[   r\   r]   Nr^   r_   )r   r   r   r   rM   rd   re   r   r   rf   r-   r+   rg   s               r<   rh   zAsyncVideos.createa  s      N   #2" 
 
 d73;#7>>HYGZF[\\\ ()>X=CVTVXZZ,T3F3XYYYYYYYY(+Q[el      
 
 
 
 
 
 
 
 	
r>   ri   rj   rk   c       
           K   |                      ||||||||	|
	  	         d{V }|                     |j        |           d{V S )rm   rn   Nro   rp   rs   s               r<   ru   zAsyncVideos.create_and_poll  s      " kk+'#! " 

 

 

 

 

 

 

 

 YYH-  
 
 
 
 
 
 
 
 	
r>   ro   rv   c                 K   ddi}t          |          rt          |          |d<   	 | j                            ||           d{V }|                                }|j        dk    s|j        dk    r\t          |          s.|j                            d	          }|t          |          }nd
}| 	                    |d
z             d{V  n6|j        dk    s|j        dk    r|S t          rt          |j                   n|S )rx   ry   rz   r{   Tr|   Nr}   r~   r   r   r   r   r   r   s          r<   rq   zAsyncVideos.poll  s]      $=f"E$%% 	P:=>N:O:OG67	!!3<<% =        H
 NN$$E|},,0H0H 011 0"*"2"6"67M"N"NK".+.{+;+;((+/(kk"2T"9::::::::::,,0H0H  ! .... L-	!r>   r^   c          	        K   |st          d|          |                     d| t          ||||          t                     d{V S )r   r   r   r^   r   Nr   r   s         r<   r   zAsyncVideos.retrieve  s      .  	ecW_ccdddYY!x!!(+Q[el     
 
 
 
 
 
 
 
 	
r>   r   r   r   r   r   r   9AsyncPaginator[Video, AsyncConversationCursorPage[Video]]c                   |                      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
  sx    @ !!,U3(+'%%!&!&!& 
 &5    # " 
 
 	
r>   r0   c          	        K   |st          d|          |                     d| t          ||||          t                     d{V S )r   r   r   r^   r   Nr   r   s         r<   r   zAsyncVideos.delete>  s      .  	ecW_ccddd\\!x!!(+Q[el   ( " 
 
 
 
 
 
 
 
 	
r>   r   rt   r   r2   c               R  K   t          ||d          }t          t          t          t          t
          f         |          dgg          }ddi|pi }|                     dt          |t          j	                   d{V |t          ||||          t          	           d{V S )
r   r   rt   rY   r[   r\   r   Nr^   r_   )r   r   r   r   rM   rd   re   r   r   r   r-   r2   r   s	            r<   r   zAsyncVideos.create_character_  s      8   
 
 d73;#7>>ykRRR ()>X=CVTVXZZ ,T3P3kllllllll(+Q[el   1   
 
 
 
 
 
 
 
 	
r>   r   r   r   r   c                  K   |st          d|          ddi|pi }|                     d| dt          ||||t          d|it          j                   d{V           t          j        	           d{V S )
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  	ecW_ccddd!#7QM<ORQYY)x)))(+'%1(*G*b          %?  
 
 
 
 
 
 
 
 	
r>   r   c               R  K   t          ||d          }t          t          t          t          t
          f         |          dgg          }ddi|pi }|                     dt          |t          j	                   d{V |t          ||||          t          	           d{V S )
r   r   rt   rY   r[   r\   r   Nr^   r_   )r   r   r   r   rM   rd   re   r   r   r   r-   r+   r   s	            r<   r   zAsyncVideos.edit  s      :    
 
 d73;#7>>ykRRR ()>X=CVTVXZZ,T3D3TUUUUUUUU(+Q[el      
 
 
 
 
 
 
 
 	
r>   r   r   c               T  K   t          |||d          }t          t          t          t          t
          f         |          dgg          }	ddi|pi }|                     dt          |t          j	                   d{V |	t          ||||          t          	           d{V S )
r   r   rt   rY   r[   r\   r   Nr^   r_   )r   r   r   r   rM   rd   re   r   r   r   r-   r+   r   s
             r<   r   zAsyncVideos.extend  s      @   " 
 
 d73;#7>>ykRRR ()>X=CVTVXZZ ,T3F3XYYYYYYYY(+Q[el      
 
 
 
 
 
 
 
 	
r>   r   r1   c          	        K   |st          d|          |                     d| t          ||||          t                     d{V S )r   r   r   r^   r   Nr   r   s         r<   r   zAsyncVideos.get_character%  s      .  	mk[gkklllYY0,00(+Q[el   .  
 
 
 
 
 
 
 
 	
r>   c          
        K   |st          d|          |                     d| dt          d|it          j                   d{V t          ||||          t                     d{V S )r   r   r   r   rL   Nr^   r   )r   re   r   r   r   r-   r+   r   s          r<   r   zAsyncVideos.remixF  s      4  	ecW_ccdddZZ'x''',h-?ASAdeeeeeeee(+Q[el      
 
 
 
 
 
 
 
 	
r>   )r6   r   )r6   r   r   r   r   r   )r   r   r   rk   r   r   rH   rR   rI   rS   rJ   rT   rK   rU   r6   r   r   r   r   r   r   r   r   r   r   r>   r<   r4   r4   M  s       0 0 0 _0 6 6 6 _6 FJ(,'+!% )-$("&;D=
 =
 =
 =
 =
 =
F FJ(,'+!%'+ )-$("&;D 
  
  
  
  
  
L (,	%! %! %! %! %! %!Z )-$("&;D
 
 
 
 
 
H ! /3 )-$("&;D2
 2
 2
 2
 2
 2
t )-$("&;D
 
 
 
 
 
P )-$("&;D/
 /
 /
 /
 /
 /
j HL )-$("&;D+
 +
 +
 +
 +
 +
h )-$("&;D0
 0
 0
 0
 0
 0
t )-$("&;D4
 4
 4
 4
 4
 4
x )-$("&;D
 
 
 
 
 
P )-$("&;D#
 #
 #
 #
 #
 #
 #
 #
r>   c                      e Zd ZddZdS )r7   videosr3   r6   Nonec                l   || _         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                  | _        d S N)_videosr
   to_raw_response_wrapperrh   r   r   r   r   r   r   r   r   r   r;   r  s     r<   __init__zVideosWithRawResponse.__init__m  s   &>M
 
 )@O
 
 %<K
 
	 '>M
 
 !1 H#!
 !
 !1 H#!
 !
 %<K
 
	 '>M
 
 .E 
 
 &=L
 



r>   Nr  r3   r6   r  r   r   r   r
  r   r>   r<   r7   r7   l  (         
  
  
  
  
  
r>   r7   c                      e Zd ZddZdS )r   r  r4   r6   r  c                l   || _         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                  | _        d S r  )r  r
   async_to_raw_response_wrapperrh   r   r   r   r   r   r   r   r   r   r	  s     r<   r
  z#AsyncVideosWithRawResponse.__init__  s   &DM
 
 )FO
 
 %BK
 
	 'DM
 
 !1 N#!
 !
 !1 N#!
 !
 %BK
 
	 'DM
 
 .K 
 
 &CL
 



r>   Nr  r4   r6   r  r  r   r>   r<   r   r     r  r>   r   c                      e Zd ZddZdS )r?   r  r3   r6   r  c                   || _         t          |j                  | _        t          |j                  | _        t          |j                  | _        t          |j                  | _        t          |j                  | _        t          |j        t                    | _        t          |j
                  | _
        t          |j                  | _        t          |j                  | _        t          |j                  | _        d S r  )r  r%   rh   r   r   r   r   r'   r   r#   r   r   r   r   r	  s     r<   r
  z$VideosWithStreamingResponse.__init__  s   2M
 
 5O
 
 1K
 
	 3M
 
 !=#!
 !
 !D#%!
 !
 1K
 
	 3M
 
 : 
 
 2L
 



r>   Nr  r  r   r>   r<   r?   r?     (        !
 !
 !
 !
 !
 !
r>   r?   c                      e Zd ZddZdS )r   r  r4   r6   r  c                   || _         t          |j                  | _        t          |j                  | _        t          |j                  | _        t          |j                  | _        t          |j                  | _        t          |j        t                    | _        t          |j
                  | _
        t          |j                  | _        t          |j                  | _        t          |j                  | _        d S r  )r  r&   rh   r   r   r   r   r(   r   r$   r   r   r   r   r	  s     r<   r
  z)AsyncVideosWithStreamingResponse.__init__  s   8M
 
 ;O
 
 7K
 
	 9M
 
 !C#!
 !
 !J#*!
 !
 7K
 
	 9M
 
 @ 
 
 8L
 



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   r7   r   r?   r   r   r>   r<   <module>r-     s   # " " " " " / / / / / / / / / / 3 3 3 3 3 3 3 3       
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 V U U U U U U U U U U U U U U U U U U U \ \ \ \ \ \ \ \ \ \ \ \ % % % % % % 9 9 9 9 9 9 9 9                Q P P P P P P P       ? ? ? ? ? ? ? ? $ $ $ $ $ $ ( ( ( ( ( ( . . . . . . 5 5 5 5 5 5 = = = = = = J J J J J J P P P P P P]
#Z
 Z
 Z
 Z
 Z
_ Z
 Z
 Z
z\
 \
 \
 \
 \
" \
 \
 \
~!
 !
 !
 !
 !
 !
 !
 !
H!
 !
 !
 !
 !
 !
 !
 !
H"
 "
 "
 "
 "
 "
 "
 "
J"
 "
 "
 "
 "
 "
 "
 "
 "
 "
r>   