
    =h                     ,   d dl mZ d dlmZ d dlZddlmZ ddlmZm	Z	m
Z
mZmZ ddl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 ddlmZ ddlmZ ddgZ G d de      Z G d de      Z  G d d      Z! G d d      Z" G d d      Z# G d d      Z$y)    )annotations)IterableN   )#batch_call_create_batch_call_params)	NOT_GIVENBodyQueryHeadersNotGiven)maybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_raw_response_wrapperto_streamed_response_wrapperasync_to_raw_response_wrapper"async_to_streamed_response_wrapper)make_request_options)BatchCallResponseBatchCallResourceAsyncBatchCallResourcec                  j    e Zd Zedd       Zedd       Zeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)	r   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/RetellAI/retell-python-sdk#accessing-raw-response-data-eg-headers
        ) BatchCallResourceWithRawResponseselfs    k/var/www/html/phonemate/phone_mate_backend/venv/lib/python3.12/site-packages/retell/resources/batch_call.pywith_raw_responsez#BatchCallResource.with_raw_response   s     055    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/RetellAI/retell-python-sdk#with_streaming_response
        )&BatchCallResourceWithStreamingResponser   s    r   with_streaming_responsez)BatchCallResource.with_streaming_response(   s     6d;;r!   Nnametrigger_timestampextra_headersextra_query
extra_bodytimeoutc          
         | j                  dt        ||||dt        j                        t	        ||||      t
              S )  Create a batch call

        Args:
          from_number: The number you own in E.164 format.

        Must be a number purchased from Retell or
              imported to Retell.

          tasks: A list of individual call tasks to be executed as part of the batch call. Each
              task represents a single outbound call and includes details such as the
              recipient's phone number and optional dynamic variables to personalize the call
              content.

          name: The name of the batch call. Only used for your own reference.

          trigger_timestamp: The scheduled time for sending the batch call, represented as a Unix timestamp
              in milliseconds. If omitted, the call will be sent immediately.

          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
        /create-batch-callfrom_numbertasksr'   r(   r)   r*   r+   r,   bodyoptionscast_to)_postr   r   BatchCallCreateBatchCallParamsr   r   	r   r1   r2   r'   r(   r)   r*   r+   r,   s	            r   create_batch_callz#BatchCallResource.create_batch_call1   s\    P zz  #." ):	 4RR )+Q[el &  
 	
r!   )returnr   )r<   r$   r1   strr2   z2Iterable[batch_call_create_batch_call_params.Task]r'   zstr | NotGivenr(   zfloat | NotGivenr)   zHeaders | Noner*   zQuery | Noner+   zBody | Noner,   z'float | httpx.Timeout | None | NotGivenr<   r   __name__
__module____qualname__r   r    r%   r   r;    r!   r   r   r      s    6 6 < <  ).7 )-$("&;D7
 7
 B	7

 7
 ,7
 &7
 "7
  7
 97
 
7
r!   c                  j    e Zd Zedd       Zedd       Zeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)	r   c                    t        |       S r   )%AsyncBatchCallResourceWithRawResponser   s    r   r    z(AsyncBatchCallResource.with_raw_responsel   s     5T::r!   c                    t        |       S r#   )+AsyncBatchCallResourceWithStreamingResponser   s    r   r%   z.AsyncBatchCallResource.with_streaming_responsev   s     ;4@@r!   Nr&   c          
        K   | j                  dt        ||||dt        j                         d{   t	        ||||      t
               d{   S 7 $7 w)r.   r/   r0   Nr3   r4   )r8   r   r   r9   r   r   r:   s	            r   r;   z(AsyncBatchCallResource.create_batch_call   su     P ZZ ,#." ):	 4RR  )+Q[el &   
 
 	

s!   /AA
AAAA)r<   rF   )r<   rH   r=   r?   rC   r!   r   r   r   k   s    ; ; A A  ).7 )-$("&;D7
 7
 B	7

 7
 ,7
 &7
 "7
  7
 97
 
7
r!   c                      e Zd ZddZy)r   c                F    || _         t        |j                        | _        y N)_batch_callr   r;   r   
batch_calls     r   __init__z)BatchCallResourceWithRawResponse.__init__   s     %!8(("
r!   NrO   r   r<   Noner@   rA   rB   rP   rC   r!   r   r   r          
r!   r   c                      e Zd ZddZy)rF   c                F    || _         t        |j                        | _        y rL   )rM   r   r;   rN   s     r   rP   z.AsyncBatchCallResourceWithRawResponse.__init__   s     %!>(("
r!   NrO   r   r<   rR   rS   rC   r!   r   rF   rF      rT   r!   rF   c                      e Zd ZddZy)r$   c                F    || _         t        |j                        | _        y rL   )rM   r   r;   rN   s     r   rP   z/BatchCallResourceWithStreamingResponse.__init__   s     %!=(("
r!   NrQ   rS   rC   r!   r   r$   r$      rT   r!   r$   c                      e Zd ZddZy)rH   c                F    || _         t        |j                        | _        y rL   )rM   r   r;   rN   s     r   rP   z4AsyncBatchCallResourceWithStreamingResponse.__init__   s     %!C(("
r!   NrW   rS   rC   r!   r   rH   rH      rT   r!   rH   )%
__future__r   typingr   httpxtypesr   _typesr   r   r	   r
   r   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   types.batch_call_responser   __all__r   r   r   rF   r$   rH   rC   r!   r   <module>rh      s    #   7 > > & 9  0 9 8
9K
 K
\K
- K
\
 

 

 

 
r!   