
    i/                       d dl mZ d dlmZmZmZ d dlmZmZ d dl	Z	ddl
mZ ddlmZmZmZmZmZmZmZmZmZ ddlmZmZmZmZmZmZmZmZ dd	lm Z m!Z!m"Z"m#Z#m$Z$ dd
l%m&Z& ddl'm(Z(m)Z) ddl*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0 ddl1m2Z2m3Z3 ddl4m5Z5 ddl6m7Z7m8Z8 ddl9m:Z: ddl;mZ ddl<mZ ddl=m>Z> ddl?m@Z@ ddlAmBZB ddlCmDZD ddgZE G d de(          ZF G d de)          ZG G d d          ZH G d d          ZI G d d           ZJ G d! d"          ZKd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path_templatemaybe_transformdeepcopy_minimalasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)StreamedBinaryAPIResponseAsyncStreamedBinaryAPIResponseto_streamed_response_wrapper"async_to_streamed_response_wrapper#to_custom_streamed_response_wrapper)async_to_custom_streamed_response_wrapper)SyncConversationCursorPageAsyncConversationCursorPage)Video)AsyncPaginatormake_request_options)is_given)r   )r   )VideoModelParam)VideoDeleteResponse)VideoGetCharacterResponse)VideoCreateCharacterResponseVideosAsyncVideosc            
      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   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
        )r8   selfs    ^/home/ubuntu/.hermes/hermes-agent/venv/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strrE   )video_create_params.InputReference | OmitrF   VideoModelParam | OmitrG   VideoSeconds | OmitrH   VideoSize | OmitrI   Headers | NonerJ   Query | NonerK   Body | NonerL   '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
        rM   rE   rF   rG   rH   rE   pathsContent-Typemultipart/form-data/videosrI   rJ   rK   rL   bodyfilesoptionscast_to)r   r   r   r   rN   object_postr   r   VideoCreateParamsr.   r,   r<   rM   rE   rF   rG   rH   rI   rJ   rK   rL   ra   rb   s               r=   createzVideos.createD   s    N   #2" 
 
 d73;#7>>HYGZF[\\\ ()>X=CVTVXzz ':'LMM(+Q[el     
 
 	
r?   	rE   rF   rG   rH   poll_interval_msrI   rJ   rK   rL   rk   
int | Omitc       
        v    |                      ||||||||	|
	  	        }|                     |j        |          S )/Create a video and wait for it to be processed.	rF   rM   rE   rG   rH   rI   rJ   rK   rL   rk   ri   pollidr<   rM   rE   rF   rG   rH   rk   rI   rJ   rK   rL   videos               r=   create_and_pollzVideos.create_and_poll   s\    " +'#!  

 

 yyH-  
 
 	
r?   rp   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rI   in_progressqueuedopenai-poll-after-msN  	completedfailedr/   rN   r>   retrieveparsestatusheadersgetint_sleepr   r   r<   rw   rk   r   responseru   from_headers          r=   rr   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|          |                     t          d|          t          ||||          t                    S )d  
        Fetch the latest metadata for a generated video.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        7Expected a non-empty value for `video_id` but received /videos/{video_id}rw   r_   rc   rd   
ValueError_getr   r.   r,   r<   rw   rI   rJ   rK   rL   s         r=   r   zVideos.retrieve   ss    .  	ecW_ccdddyy.BBB(+Q[el     
 
 	
r?   afterlimitorderrI   rJ   rK   rL   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   rI   rJ   rK   rL   query)pagerc   rF   )_get_api_listr*   r,   r.   r   r   VideoListParamsr<   r   r   r   rI   rJ   rK   rL   s           r=   listzVideos.list   sx    @ !!+E2(+'%%!&!&!& 
 &5    # " 
 
 	
r?   r1   c          	         |st          d|          |                     t          d|          t          ||||          t                    S )y  
        Permanently delete a completed or failed video and its stored assets.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        r   r   r   r_   r   r   _deleter   r.   r1   r   s         r=   deletezVideos.delete!  ss    .  	ecW_ccddd||.BBB(+Q[el   (  
 
 	
r?   nameru   r   r3   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   ru   ru   rZ   r\   r]   /videos/charactersr_   r`   )r   r   r   r   rN   re   rf   r   r   VideoCreateCharacterParamsr.   r3   	r<   r   ru   rI   rJ   rK   rL   ra   rb   s	            r=   create_characterzVideos.create_characterB  s    8   
 
 d73;#7>>ykRRR ()>X=CVTVXzz  'D'_``(+Q[el   1  
 
 	
r?   variantrI   rJ   rK   rL   r   3Literal['video', 'thumbnail', 'spritesheet'] | Omit+_legacy_response.HttpxBinaryResponseContentc                   |st          d|          ddi|pi }|                     t          d|          t          ||||t	          d|it
          j                            t          j                  S )	  
        Download the generated video bytes or a derived preview asset.

        Streams the rendered video content for the specified video job.

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

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        r   Acceptapplication/binary/videos/{video_id}/contentr   r   r   r   )	r   r   r   r.   r   r   VideoDownloadContentParamsr
   HttpxBinaryResponseContentr<   rw   r   rI   rJ   rK   rL   s          r=   download_contentzVideos.download_contents  s    8  	ecW_ccddd!#7QM<ORQyy6JJJ(+'%%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
        rM   ru   ru   rZ   r\   r]   /videos/editsr_   r`   )r   r   r   r   rN   re   rf   r   r   VideoEditParamsr.   r,   	r<   rM   ru   rI   rJ   rK   rL   ra   rb   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
        rM   rG   ru   ru   rZ   r\   r]   /videos/extensionsr_   r`   )r   r   r   r   rN   re   rf   r   r   VideoExtendParamsr.   r,   
r<   rM   rG   ru   rI   rJ   rK   rL   ra   rb   s
             r=   extendzVideos.extend  s    @   " 
 
 d73;#7>>ykRRR ()>X=CVTVXzz  ':'LMM(+Q[el     
 
 	
r?   character_idr2   c          	         |st          d|          |                     t          d|          t          ||||          t                    S )F  
        Fetch a character.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        ;Expected a non-empty value for `character_id` but received !/videos/characters/{character_id}r   r_   r   r   r   r   r.   r2   r<   r   rI   rJ   rK   rL   s         r=   get_characterzVideos.get_character  ss    .  	mk[gkklllyy=LYYY(+Q[el   .  
 
 	
r?   c          
         |st          d|          |                     t          d|          t          d|it          j                  t          ||||          t                    S )  
        Create a remix of a completed video using a refreshed prompt.

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

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        r   /videos/{video_id}/remixr   rM   r_   ra   rc   rd   )r   rf   r   r   r   VideoRemixParamsr.   r,   r<   rw   rM   rI   rJ   rK   rL   s          r=   remixzVideos.remix'  s    4  	ecW_ccdddzz4xHHH (F!35G5XYY(+Q[el     
 
 	
r?   )r7   r8   )r7   r@   rM   rN   rE   rO   rF   rP   rG   rQ   rH   rR   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r,   rM   rN   rE   rO   rF   rP   rG   rQ   rH   rR   rk   rl   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r,   rw   rN   rk   rl   r7   r,   rw   rN   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r,   )r   r   r   rl   r   r   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r   rw   rN   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r1   r   rN   ru   r   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r3   rw   rN   r   r   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r   rM   rN   ru   r   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r,   rM   rN   rG   r   ru   r   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r,   r   rN   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r2   rw   rN   rM   rN   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r,   __name__
__module____qualname__r!   r>   rC   r   r   ri   rv   rr   r   r   r   r   r   r   r   r   r    r?   r=   r4   r4   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 )Pr5   r7   AsyncVideosWithRawResponsec                     t          |           S r:   )r   r;   s    r=   r>   zAsyncVideos.with_raw_responseN  s     *$///r?    AsyncVideosWithStreamingResponsec                     t          |           S rB   )r   r;   s    r=   rC   z#AsyncVideos.with_streaming_responseX  s     0555r?   NrD   rM   rN   rE   rO   rF   rP   rG   rQ   rH   rR   rI   rS   rJ   rT   rK   rU   rL   rV   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 )
rX   rY   rE   rZ   r\   r]   r^   Nr_   r`   )r   r   r   r   rN   re   rf   r    r   rg   r.   r,   rh   s               r=   ri   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?   rj   rk   rl   c       
           K   |                      ||||||||	|
	  	         d{V }|                     |j        |           d{V S )rn   ro   Nrp   rq   rt   s               r=   rv   zAsyncVideos.create_and_poll  s      " kk+'#! " 

 

 

 

 

 

 

 

 YYH-  
 
 
 
 
 
 
 
 	
r?   rp   rw   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 )ry   rz   r{   r|   Tr}   Nr~   r   r   r   r   r   r   r   s          r=   rr   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|          |                     t          d|          t          ||||          t                     d{V S )r   r   r   r   r_   r   Nr   r   s         r=   r   zAsyncVideos.retrieve  s      .  	ecW_ccdddYY.BBB(+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?   r1   c          	        K   |st          d|          |                     t          d|          t          ||||          t                     d{V S )r   r   r   r   r_   r   Nr   r   s         r=   r   zAsyncVideos.delete>  s      .  	ecW_ccddd\\.BBB(+Q[el   ( " 
 
 
 
 
 
 
 
 	
r?   r   ru   r   r3   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   ru   rZ   r\   r]   r   Nr_   r`   )r   r   r   r   rN   re   rf   r    r   r   r.   r3   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 }|                     t          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   r   s          r=   r   zAsyncVideos.download_content  s      8  	ecW_ccddd!#7QM<ORQYY6JJJ(+'%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   ru   rZ   r\   r]   r   Nr_   r`   )r   r   r   r   rN   re   rf   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   ru   rZ   r\   r]   r   Nr_   r`   )r   r   r   r   rN   re   rf   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   r2   c          	        K   |st          d|          |                     t          d|          t          ||||          t                     d{V S )r   r   r   r   r_   r   Nr   r   s         r=   r   zAsyncVideos.get_character%  s      .  	mk[gkklllYY=LYYY(+Q[el   .  
 
 
 
 
 
 
 
 	
r?   c          
        K   |st          d|          |                     t          d|          t          d|it          j                   d{V t          ||||          t                     d{V S )r   r   r   r   rM   Nr_   r   )r   rf   r   r    r   r   r.   r,   r   s          r=   r   zAsyncVideos.remixF  s      4  	ecW_ccdddZZ4xHHH,h-?ASAdeeeeeeee(+Q[el      
 
 
 
 
 
 
 
 	
r?   )r7   r   )r7   r   r   r   r   r   )r   r   r   rl   r   r   rI   rS   rJ   rT   rK   rU   rL   rV   r7   r   r   r   r   r   r   r   r   r   r   r?   r=   r5   r5   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 )r8   videosr4   r7   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_wrapperri   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  r4   r7   r  r   r   r   r  r   r?   r=   r8   r8   l  (         
  
  
  
  
  
r?   r8   c                      e Zd ZddZdS )r   r  r5   r7   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_wrapperri   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  r5   r7   r  r  r   r?   r=   r   r     r  r?   r   c                      e Zd ZddZdS )r@   r  r4   r7   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&   ri   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  r5   r7   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'   ri   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   )L
__future__r   typingr   r   r   typing_extensionsr   r   httpx r
   typesr   r   r   r   r   r   r   r   r   _typesr   r   r   r   r   r   r   r   _utilsr   r   r   r   r    _compatr!   	_resourcer"   r#   	_responser$   r%   r&   r'   r(   r)   
paginationr*   r+   types.videor,   _base_clientr-   r.   _utils._utilsr/   types.video_sizetypes.video_secondstypes.video_model_paramr0   types.video_delete_responser1   "types.video_get_character_responser2   %types.video_create_character_responser3   __all__r4   r5   r8   r   r@   r   r   r?   r=   <module>r0     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 k k k k k k k k k k k k k k % % % % % % 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?   