
    hi4                      d dl mZ d dlmZ d dlmZ d dlmZ d dlZddl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 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" 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/m0Z0 ddl1m2Z2 ddl3m4Z4 ddl5m6Z6 ddl7m8Z8 ddl9m:Z: ddl;m<Z< ddl=m>Z> ddl?m@Z@ ddgZA G d de&      ZB G d de'      ZC G d d      ZD G d d       ZE G d! d"      ZF G d# d$      ZGy)%    )annotations)Union)datetime)LiteralN   )RcsResourceAsyncRcsResourceRcsResourceWithRawResponseAsyncRcsResourceWithRawResponse RcsResourceWithStreamingResponse%AsyncRcsResourceWithStreamingResponse   )message_send_paramsmessage_schedule_paramsmessage_send_whatsapp_paramsmessage_send_group_mms_paramsmessage_send_long_code_paramsmessage_send_short_code_paramsmessage_send_number_pool_params)BodyOmitQueryHeadersNotGivenSequenceNotStromit	not_given)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)MessageSendResponse)MessageRetrieveResponse)MessageScheduleResponse)MessageSendWhatsappResponse)MessageSendGroupMmsResponse)MessageSendLongCodeResponse)MessageSendShortCodeResponse)MessageCancelScheduledResponse)MessageSendNumberPoolResponseMessagesResourceAsyncMessagesResourcec                  0   e Zd Zedd       Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 ddZddded	 	 	 	 	 	 	 	 	 	 	 ddZ	e
e
e
e
e
e
e
e
e
e
e
ddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd	Ze
e
e
e
e
e
e
e
e
e
e
e
ddded
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe
e
e
e
e
e
ddded
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe
e
e
e
e
e
e
e
e
ddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe
e
e
e
e
e
e
e
e
ddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe
e
e
e
e
e
e
e
e
ddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe
e
ddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy) r1   c                ,    t        | j                        S N)r   _clientselfs    e/mnt/e/genesis-system/.venv_telnyx/lib/python3.12/site-packages/telnyx/resources/messages/messages.pyrcszMessagesResource.rcs5   s    4<<((    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/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
        )MessagesResourceWithRawResponser7   s    r9   with_raw_responsez"MessagesResource.with_raw_response9   s     /t44r;   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/team-telnyx/telnyx-python#with_streaming_response
        )%MessagesResourceWithStreamingResponser7   s    r9   with_streaming_responsez(MessagesResource.with_streaming_responseC   s     5T::r;   Nextra_headersextra_query
extra_bodytimeoutc          	     r    |st        d|      | j                  d| t        ||||      t              S )T  
        Note: This API endpoint can only retrieve messages that are no older than 10
        days since their creation. If you require messages older than this, please
        generate an
        [MDR report.](https://developers.telnyx.com/api-reference/mdr-usage-reports/create-mdr-usage-report)

        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
        1Expected a non-empty value for `id` but received 
/messages/rD   optionscast_to
ValueError_getr'   r)   r8   idrE   rF   rG   rH   s         r9   retrievezMessagesResource.retrieveL   sT    4 PQSPVWXXyy(+Q[el ,  
 	
r;   c          	     r    |st        d|      | j                  d| t        ||||      t              S )  Cancel a scheduled message that has not yet been sent.

        Only messages with
        `status=scheduled` and `send_at` more than a minute from now can be cancelled.

        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
        rK   rL   rD   rM   rQ   _deleter'   r/   rS   s         r9   cancel_scheduledz!MessagesResource.cancel_scheduledp   sT    2 PQSPVWXX||(+Q[el 3  
 	
r;   auto_detectfrom_
media_urlsmessaging_profile_idsend_atsubjecttexttypeuse_profile_webhookswebhook_failover_urlwebhook_urlrE   rF   rG   rH   c                   | j                  dt        |||||||||	|
||dt        j                        t	        ||||      t
              S )  
        Schedule a message with a Phone Number, Alphanumeric Sender ID, Short Code or
        Number Pool.

        This endpoint allows you to schedule a message with any messaging resource.
        Current messaging resources include: long-code, short-code, number-pool, and
        alphanumeric-sender-id.

        Args:
          to: Receiving address (+E.164 formatted phone number or short code).

          auto_detect: Automatically detect if an SMS message is unusually long and exceeds a
              recommended limit of message parts.

          from_: Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short
              code).

              **Required if sending with a phone number, short code, or alphanumeric sender
              ID.**

          media_urls: A list of media URLs. The total media size must be less than 1 MB.

              **Required for MMS**

          messaging_profile_id: Unique identifier for a messaging profile.

              **Required if sending via number pool or with an alphanumeric sender ID.**

          send_at: ISO 8601 formatted date indicating when to send the message - accurate up till a
              minute.

          subject: Subject of multimedia message

          text: Message body (i.e., content) as a non-empty string.

              **Required for SMS**

          type: The protocol for sending the message, either SMS or MMS.

          use_profile_webhooks: If the profile this number is associated with has webhooks, use them for
              delivery notifications. If webhooks are also specified on the message itself,
              they will be attempted first, then those on the profile.

          webhook_failover_url: The failover URL where webhooks related to this message will be sent if sending
              to the primary URL fails.

          webhook_url: The URL where webhooks related to this message will be sent.

          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
        /messages/scheduletor\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rD   bodyrN   rO   )_postr   r   MessageScheduleParamsr'   r*   r8   rk   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rE   rF   rG   rH   s                    r9   schedulezMessagesResource.schedule   st    \ zz  #."",,@&&  ,@,@#. (==" )+Q[el ,-  
 	
r;   r\   encodingr]   r^   r_   r`   ra   rb   rc   rd   re   rf   rE   rF   rG   rH   c                   | j                  dt        |||||||||	|
|||dt        j                        t	        ||||      t
              S )P
  
        Send a message with a Phone Number, Alphanumeric Sender ID, Short Code or Number
        Pool.

        This endpoint allows you to send a message with any messaging resource. Current
        messaging resources include: long-code, short-code, number-pool, and
        alphanumeric-sender-id.

        Args:
          to: Receiving address (+E.164 formatted phone number or short code).

          auto_detect: Automatically detect if an SMS message is unusually long and exceeds a
              recommended limit of message parts.

          encoding: Encoding to use for the message. `auto` (default) uses smart encoding to
              automatically select the most efficient encoding. `gsm7` forces GSM-7 encoding
              (returns 400 if message contains characters that cannot be encoded). `ucs2`
              forces UCS-2 encoding and disables smart encoding. When set, this overrides the
              messaging profile's `smart_encoding` setting.

          from_: Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short
              code).

              **Required if sending with a phone number, short code, or alphanumeric sender
              ID.**

          media_urls: A list of media URLs. The total media size must be less than 1 MB.

              **Required for MMS**

          messaging_profile_id: Unique identifier for a messaging profile.

              **Required if sending via number pool or with an alphanumeric sender ID.**

          send_at: ISO 8601 formatted date indicating when to send the message - accurate up till a
              minute.

          subject: Subject of multimedia message

          text: Message body (i.e., content) as a non-empty string.

              **Required for SMS**

          type: The protocol for sending the message, either SMS or MMS.

          use_profile_webhooks: If the profile this number is associated with has webhooks, use them for
              delivery notifications. If webhooks are also specified on the message itself,
              they will be attempted first, then those on the profile.

          webhook_failover_url: The failover URL where webhooks related to this message will be sent if sending
              to the primary URL fails.

          webhook_url: The URL where webhooks related to this message will be sent.

          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
        	/messagesrk   r\   rs   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rD   rl   )rn   r   r   MessageSendParamsr'   r(   r8   rk   r\   rs   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rE   rF   rG   rH   s                     r9   sendzMessagesResource.send   sw    j zz #. ("",,@&&  ,@,@#. $55!$ )+Q[el (/  
 	
r;   
r^   ra   rb   rd   re   rf   rE   rF   rG   rH   c                   | j                  dt        ||||||||dt        j                        t	        |	|
||      t
              S )  
        Send a group MMS message

        Args:
          from_: Phone number, in +E.164 format, used to send the message.

          to: A list of destinations. No more than 8 destinations are allowed.

          media_urls: A list of media URLs. The total media size must be less than 1 MB.

          subject: Subject of multimedia message

          text: Message body (i.e., content) as a non-empty string.

          use_profile_webhooks: If the profile this number is associated with has webhooks, use them for
              delivery notifications. If webhooks are also specified on the message itself,
              they will be attempted first, then those on the profile.

          webhook_failover_url: The failover URL where webhooks related to this message will be sent if sending
              to the primary URL fails.

          webhook_url: The URL where webhooks related to this message will be sent.

          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
        /messages/group_mmsr]   rk   r^   ra   rb   rd   re   rf   rD   rl   )rn   r   r   MessageSendGroupMmsParamsr'   r,   r8   r]   rk   r^   ra   rb   rd   re   rf   rE   rF   rG   rH   s                r9   send_group_mmszMessagesResource.send_group_mmsi  sh    b zz! "",& ,@,@#.	 .GG )+Q[el 0%  
 	
r;   r\   rs   r^   ra   rb   rc   rd   re   rf   rE   rF   rG   rH   c                   | j                  dt        |||||||||	|
|dt        j                        t	        ||||      t
              S )  
        Send a long code message

        Args:
          from_: Phone number, in +E.164 format, used to send the message.

          to: Receiving address (+E.164 formatted phone number or short code).

          auto_detect: Automatically detect if an SMS message is unusually long and exceeds a
              recommended limit of message parts.

          encoding: Encoding to use for the message. `auto` (default) uses smart encoding to
              automatically select the most efficient encoding. `gsm7` forces GSM-7 encoding
              (returns 400 if message contains characters that cannot be encoded). `ucs2`
              forces UCS-2 encoding and disables smart encoding. When set, this overrides the
              messaging profile's `smart_encoding` setting.

          media_urls: A list of media URLs. The total media size must be less than 1 MB.

              **Required for MMS**

          subject: Subject of multimedia message

          text: Message body (i.e., content) as a non-empty string.

              **Required for SMS**

          type: The protocol for sending the message, either SMS or MMS.

          use_profile_webhooks: If the profile this number is associated with has webhooks, use them for
              delivery notifications. If webhooks are also specified on the message itself,
              they will be attempted first, then those on the profile.

          webhook_failover_url: The failover URL where webhooks related to this message will be sent if sending
              to the primary URL fails.

          webhook_url: The URL where webhooks related to this message will be sent.

          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
        /messages/long_coder]   rk   r\   rs   r^   ra   rb   rc   rd   re   rf   rD   rl   )rn   r   r   MessageSendLongCodeParamsr'   r-   r8   r]   rk   r\   rs   r^   ra   rb   rc   rd   re   rf   rE   rF   rG   rH   s                   r9   send_long_codezMessagesResource.send_long_code  sq    F zz! "#. (",&  ,@,@#. .GG  )+Q[el 0+  
 	
r;   c                   | j                  dt        |||||||||	|
|dt        j                        t	        ||||      t
              S )  
        Send a message using number pool

        Args:
          messaging_profile_id: Unique identifier for a messaging profile.

          to: Receiving address (+E.164 formatted phone number or short code).

          auto_detect: Automatically detect if an SMS message is unusually long and exceeds a
              recommended limit of message parts.

          encoding: Encoding to use for the message. `auto` (default) uses smart encoding to
              automatically select the most efficient encoding. `gsm7` forces GSM-7 encoding
              (returns 400 if message contains characters that cannot be encoded). `ucs2`
              forces UCS-2 encoding and disables smart encoding. When set, this overrides the
              messaging profile's `smart_encoding` setting.

          media_urls: A list of media URLs. The total media size must be less than 1 MB.

              **Required for MMS**

          subject: Subject of multimedia message

          text: Message body (i.e., content) as a non-empty string.

              **Required for SMS**

          type: The protocol for sending the message, either SMS or MMS.

          use_profile_webhooks: If the profile this number is associated with has webhooks, use them for
              delivery notifications. If webhooks are also specified on the message itself,
              they will be attempted first, then those on the profile.

          webhook_failover_url: The failover URL where webhooks related to this message will be sent if sending
              to the primary URL fails.

          webhook_url: The URL where webhooks related to this message will be sent.

          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
        /messages/number_poolr_   rk   r\   rs   r^   ra   rb   rc   rd   re   rf   rD   rl   )rn   r   r   MessageSendNumberPoolParamsr'   r0   r8   r_   rk   r\   rs   r^   ra   rb   rc   rd   re   rf   rE   rF   rG   rH   s                   r9   send_number_poolz!MessagesResource.send_number_pool
  sq    F zz# ,@#. (",&  ,@,@#. 0KK  )+Q[el 2+  
 	
r;   c                   | j                  dt        |||||||||	|
|dt        j                        t	        ||||      t
              S )  
        Send a short code message

        Args:
          from_: Phone number, in +E.164 format, used to send the message.

          to: Receiving address (+E.164 formatted phone number or short code).

          auto_detect: Automatically detect if an SMS message is unusually long and exceeds a
              recommended limit of message parts.

          encoding: Encoding to use for the message. `auto` (default) uses smart encoding to
              automatically select the most efficient encoding. `gsm7` forces GSM-7 encoding
              (returns 400 if message contains characters that cannot be encoded). `ucs2`
              forces UCS-2 encoding and disables smart encoding. When set, this overrides the
              messaging profile's `smart_encoding` setting.

          media_urls: A list of media URLs. The total media size must be less than 1 MB.

              **Required for MMS**

          subject: Subject of multimedia message

          text: Message body (i.e., content) as a non-empty string.

              **Required for SMS**

          type: The protocol for sending the message, either SMS or MMS.

          use_profile_webhooks: If the profile this number is associated with has webhooks, use them for
              delivery notifications. If webhooks are also specified on the message itself,
              they will be attempted first, then those on the profile.

          webhook_failover_url: The failover URL where webhooks related to this message will be sent if sending
              to the primary URL fails.

          webhook_url: The URL where webhooks related to this message will be sent.

          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
        /messages/short_coder   rD   rl   )rn   r   r   MessageSendShortCodeParamsr'   r.   r   s                   r9   send_short_codez MessagesResource.send_short_codee  sq    F zz" "#. (",&  ,@,@#. /II  )+Q[el 1+  
 	
r;   rc   rf   rE   rF   rG   rH   c       	            | j                  dt        |||||dt        j                        t	        ||||	      t
              S )X  
        Send a Whatsapp message

        Args:
          from_: Phone number in +E.164 format associated with Whatsapp account

          to: Phone number in +E.164 format

          type: Message type - must be set to "WHATSAPP"

          webhook_url: The URL where webhooks related to this message will be sent.

          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
        /messages/whatsappr]   rk   whatsapp_messagerc   rf   rD   rl   )rn   r   r   MessageSendWhatsappParamsr'   r+   
r8   r]   rk   r   rc   rf   rE   rF   rG   rH   s
             r9   send_whatsappzMessagesResource.send_whatsapp  s_    F zz  "(8 #. -FF	 )+Q[el 0  
 	
r;   )returnr   )r   r>   )r   rB   rT   strrE   Headers | NonerF   Query | NonerG   Body | NonerH   'float | httpx.Timeout | None | NotGivenr   r)   rT   r   rE   r   rF   r   rG   r   rH   r   r   r/   "rk   r   r\   bool | Omitr]   
str | Omitr^   SequenceNotStr[str] | Omitr_   r   r`   zUnion[str, datetime] | Omitra   r   rb   r   rc   Literal['SMS', 'MMS'] | Omitrd   r   re   r   rf   r   rE   r   rF   r   rG   r   rH   r   r   r*   $rk   r   r\   r   rs   &Literal['auto', 'gsm7', 'ucs2'] | Omitr]   r   r^   r   r_   r   r`   z!Union[str, datetime, None] | Omitra   r   rb   r   rc   r   rd   r   re   r   rf   r   rE   r   rF   r   rG   r   rH   r   r   r(   r]   r   rk   zSequenceNotStr[str]r^   r   ra   r   rb   r   rd   r   re   r   rf   r   rE   r   rF   r   rG   r   rH   r   r   r,    r]   r   rk   r   r\   r   rs   r   r^   r   ra   r   rb   r   rc   r   rd   r   re   r   rf   r   rE   r   rF   r   rG   r   rH   r   r   r-    r_   r   rk   r   r\   r   rs   r   r^   r   ra   r   rb   r   rc   r   rd   r   re   r   rf   r   rE   r   rF   r   rG   r   rH   r   r   r0    r]   r   rk   r   r\   r   rs   r   r^   r   ra   r   rb   r   rc   r   rd   r   re   r   rf   r   rE   r   rF   r   rG   r   rH   r   r   r.   r]   r   rk   r   r   z,message_send_whatsapp_params.WhatsappMessagerc   zLiteral['WHATSAPP'] | Omitrf   r   rE   r   rF   r   rG   r   rH   r   r   r+   __name__
__module____qualname__r    r:   r?   rC   r   rU   rZ   r   rq   rz   r   r   r   r   r    r;   r9   r1   r1   4   s   ) ) 5 5 ; ; )-$("&;D"
"
 &"
 ""
  "
 9"
 
!"
T )-$("&;D!
!
 &!
 "!
  !
 9!
 
(!
N $( 15+//3"-1,0+/"& )-$("&;D)e
 e
 !	e

 e
 /e
 )e
 -e
 e
 e
 +e
 *e
 )e
  e
" &#e
$ "%e
&  'e
( 9)e
* 
!+e
V $(;? 15+/59"-1,0+/"& )-$("&;D+m
 m
 !	m

 9m
 m
 /m
 )m
 3m
 m
 m
 +m
 *m
 )m
  m
$ &%m
& "'m
(  )m
* 9+m
, 
-m
h 26",0+/"& )-$("&;D!D
 D
  	D

 /D
 D
 D
 *D
 )D
  D
 &D
 "D
  D
  9!D
" 
%#D
V $(;?15"-1,0+/"& )-$("&;D'Y
 Y
 	Y

 !Y
 9Y
 /Y
 Y
 Y
 +Y
 *Y
 )Y
  Y
  &!Y
" "#Y
$  %Y
& 9'Y
( 
%)Y
@ $(;?15"-1,0+/"& )-$("&;D'Y
 "Y
 	Y

 !Y
 9Y
 /Y
 Y
 Y
 +Y
 *Y
 )Y
  Y
  &!Y
" "#Y
$  %Y
& 9'Y
( 
')Y
@ $(;?15"-1,0+/"& )-$("&;D'Y
 Y
 	Y

 !Y
 9Y
 /Y
 Y
 Y
 +Y
 *Y
 )Y
  Y
  &!Y
" "#Y
$  %Y
& 9'Y
( 
&)Y
B ,0"& )-$("&;D3
 3
 	3

 G3
 )3
  3
 &3
 "3
  3
 93
 
%3
r;   c                  0   e Zd Zedd       Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 ddZddded	 	 	 	 	 	 	 	 	 	 	 ddZ	e
e
e
e
e
e
e
e
e
e
e
ddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd	Ze
e
e
e
e
e
e
e
e
e
e
e
ddded
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe
e
e
e
e
e
ddded
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe
e
e
e
e
e
e
e
e
ddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe
e
e
e
e
e
e
e
e
ddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe
e
e
e
e
e
e
e
e
ddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe
e
ddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy) r2   c                ,    t        | j                        S r5   )r	   r6   r7   s    r9   r:   zAsyncMessagesResource.rcs  s    --r;   c                    t        |       S r=   )$AsyncMessagesResourceWithRawResponser7   s    r9   r?   z'AsyncMessagesResource.with_raw_response  s     4D99r;   c                    t        |       S rA   )*AsyncMessagesResourceWithStreamingResponser7   s    r9   rC   z-AsyncMessagesResource.with_streaming_response  s     :$??r;   NrD   c          	        K   |st        d|      | j                  d| t        ||||      t               d{   S 7 w)rJ   rK   rL   rD   rM   NrP   rS   s         r9   rU   zAsyncMessagesResource.retrieve  sb     4 PQSPVWXXYY(+Q[el ,  
 
 	
 
   <AAAc          	        K   |st        d|      | j                  d| t        ||||      t               d{   S 7 w)rW   rK   rL   rD   rM   NrX   rS   s         r9   rZ   z&AsyncMessagesResource.cancel_scheduled2  sb     2 PQSPVWXX\\(+Q[el 3 " 
 
 	
 
r   r[   c                  K   | j                  dt        |||||||||	|
||dt        j                         d{   t	        ||||      t
               d{   S 7 $7 w)rh   ri   rj   NrD   rl   )rn   r   r   ro   r'   r*   rp   s                    r9   rq   zAsyncMessagesResource.scheduleU  s     \ ZZ ,#."",,@&&  ,@,@#. (== " )+Q[el ,-   
 
 	

s!   7A"A
A"A A" A"rr   c                  K   | j                  dt        |||||||||	|
|||dt        j                         d{   t	        ||||      t
               d{   S 7 $7 w)ru   rv   rw   NrD   rl   )rn   r   r   rx   r'   r(   ry   s                     r9   rz   zAsyncMessagesResource.send  s     j ZZ,#. ("",,@&&  ,@,@#. $55! $ )+Q[el (/   
 
 	

s!   8A#A
A#A!A#!A#r{   c                  K   | j                  dt        ||||||||dt        j                         d{   t	        |	|
||      t
               d{   S 7 $7 w)r}   r~   r   NrD   rl   )rn   r   r   r   r'   r,   r   s                r9   r   z$AsyncMessagesResource.send_group_mms+  s     b ZZ!,"",& ,@,@#.	 .GG  )+Q[el 0%   
 
 	

s!   3AA
AAAAr   c                  K   | j                  dt        |||||||||	|
|dt        j                         d{   t	        ||||      t
               d{   S 7 $7 w)r   r   r   NrD   rl   )rn   r   r   r   r'   r-   r   s                   r9   r   z$AsyncMessagesResource.send_long_codeq  s     F ZZ!,"#. (",&  ,@,@#. .GG   )+Q[el 0+   
 
 	

!   6A!A
A!AA!A!c                  K   | j                  dt        |||||||||	|
|dt        j                         d{   t	        ||||      t
               d{   S 7 $7 w)r   r   r   NrD   rl   )rn   r   r   r   r'   r0   r   s                   r9   r   z&AsyncMessagesResource.send_number_pool  s     F ZZ#,,@#. (",&  ,@,@#. 0KK   )+Q[el 2+   
 
 	

r   c                  K   | j                  dt        |||||||||	|
|dt        j                         d{   t	        ||||      t
               d{   S 7 $7 w)r   r   r   NrD   rl   )rn   r   r   r   r'   r.   r   s                   r9   r   z%AsyncMessagesResource.send_short_code'  s     F ZZ","#. (",&  ,@,@#. /II   )+Q[el 1+   
 
 	

r   r   c       	           K   | j                  dt        |||||dt        j                         d{   t	        ||||	      t
               d{   S 7 $7 w)r   r   r   NrD   rl   )rn   r   r   r   r'   r+   r   s
             r9   r   z#AsyncMessagesResource.send_whatsapp  sx     F ZZ ,"(8 #. -FF	 	 )+Q[el 0   
 
 	
	
s!   0AA
AAAA)r   r	   )r   r   )r   r   r   r   r   r   r   r   r   r   r   r   r   r;   r9   r2   r2     s   . . : : @ @ )-$("&;D"
"
 &"
 ""
  "
 9"
 
!"
T )-$("&;D!
!
 &!
 "!
  !
 9!
 
(!
N $( 15+//3"-1,0+/"& )-$("&;D)e
 e
 !	e

 e
 /e
 )e
 -e
 e
 e
 +e
 *e
 )e
  e
" &#e
$ "%e
&  'e
( 9)e
* 
!+e
V $(;? 15+/59"-1,0+/"& )-$("&;D+m
 m
 !	m

 9m
 m
 /m
 )m
 3m
 m
 m
 +m
 *m
 )m
  m
$ &%m
& "'m
(  )m
* 9+m
, 
-m
h 26",0+/"& )-$("&;D!D
 D
  	D

 /D
 D
 D
 *D
 )D
  D
 &D
 "D
  D
  9!D
" 
%#D
V $(;?15"-1,0+/"& )-$("&;D'Y
 Y
 	Y

 !Y
 9Y
 /Y
 Y
 Y
 +Y
 *Y
 )Y
  Y
  &!Y
" "#Y
$  %Y
& 9'Y
( 
%)Y
@ $(;?15"-1,0+/"& )-$("&;D'Y
 "Y
 	Y

 !Y
 9Y
 /Y
 Y
 Y
 +Y
 *Y
 )Y
  Y
  &!Y
" "#Y
$  %Y
& 9'Y
( 
')Y
@ $(;?15"-1,0+/"& )-$("&;D'Y
 Y
 	Y

 !Y
 9Y
 /Y
 Y
 Y
 +Y
 *Y
 )Y
  Y
  &!Y
" "#Y
$  %Y
& 9'Y
( 
&)Y
B ,0"& )-$("&;D3
 3
 	3

 G3
 )3
  3
 &3
 "3
  3
 93
 
%3
r;   c                  &    e Zd ZddZedd       Zy)r>   c                   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j                        | _	        t        |j                        | _
        y r5   )	_messagesr#   rU   rZ   rq   rz   r   r   r   r   r   r8   messagess     r9   __init__z(MessagesResourceWithRawResponse.__init__  s    !/
 !8%%!
 0
 ,MM
	 6##
 6##
 !8%%!
  7$$ 
 5""
r;   c                @    t        | j                  j                        S r5   )r
   r   r:   r7   s    r9   r:   z#MessagesResourceWithRawResponse.rcs  s    )$..*<*<==r;   Nr   r1   r   None)r   r
   r   r   r   r   r    r:   r   r;   r9   r>   r>     s    
> > >r;   r>   c                  &    e Zd ZddZedd       Zy)r   c                   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j                        | _	        t        |j                        | _
        y r5   )r   r%   rU   rZ   rq   rz   r   r   r   r   r   r   s     r9   r   z-AsyncMessagesResourceWithRawResponse.__init__  s    !5
 !>%%!
 6
 2MM
	 <##
 <##
 !>%%!
  =$$ 
 ;""
r;   c                @    t        | j                  j                        S r5   )r   r   r:   r7   s    r9   r:   z(AsyncMessagesResourceWithRawResponse.rcs  s    .t~~/A/ABBr;   Nr   r2   r   r   )r   r   r   r   r;   r9   r   r     s    
> C Cr;   r   c                  &    e Zd ZddZedd       Zy)rB   c                   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j                        | _	        t        |j                        | _
        y r5   )r   r$   rU   rZ   rq   rz   r   r   r   r   r   r   s     r9   r   z.MessagesResourceWithStreamingResponse.__init__  s    !4
 !=%%!
 5
 1MM
	 ;##
 ;##
 !=%%!
  <$$ 
 :""
r;   c                @    t        | j                  j                        S r5   )r   r   r:   r7   s    r9   r:   z)MessagesResourceWithStreamingResponse.rcs"  s    /0B0BCCr;   Nr   )r   r   r   r   r;   r9   rB   rB     s    
> D Dr;   rB   c                  &    e Zd ZddZedd       Zy)r   c                   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j                        | _	        t        |j                        | _
        y r5   )r   r&   rU   rZ   rq   rz   r   r   r   r   r   r   s     r9   r   z3AsyncMessagesResourceWithStreamingResponse.__init__(  s    !:
 !C%%!
 ;
 7MM
	 A##
 A##
 !C%%!
  B$$ 
 @""
r;   c                @    t        | j                  j                        S r5   )r   r   r:   r7   s    r9   r:   z.AsyncMessagesResourceWithStreamingResponse.rcsG  s    4T^^5G5GHHr;   Nr   )r   r   r   r   r;   r9   r   r   '  s    
> I Ir;   r   )H
__future__r   typingr   r   typing_extensionsr   httpxr:   r   r	   r
   r   r   r   typesr   r   r   r   r   r   r   _typesr   r   r   r   r   r   r   r   _utilsr   r   _compatr    	_resourcer!   r"   	_responser#   r$   r%   r&   _base_clientr'   types.message_send_responser(   types.message_retrieve_responser)   types.message_schedule_responser*   $types.message_send_whatsapp_responser+   %types.message_send_group_mms_responser,   %types.message_send_long_code_responser-   &types.message_send_short_code_responser.   'types.message_cancel_scheduled_responser/   'types.message_send_number_pool_responser0   __all__r1   r2   r>   r   rB   r   r   r;   r9   <module>r      s    #   %     \ [ [ < & :  1 > F F O P P R U T6
7

 

D

, 

D"> ">J"C "CJ"D "DJ"I "Ir;   