
    g                        d Z ddl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 ddlmZ ddlmZ ddlmZ ddlmZ  G d	 d
e      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Insights
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserialize	serializevalues)InstanceResource)ListResource)Version)Pagec                        e Zd Z G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z		 de
deeef   f fdZdefdZ xZS )CallSummariesInstancec                   (    e Zd ZdZdZdZdZdZdZdZ	y)	 CallSummariesInstance.AnsweredByunknownmachine_startmachine_end_beepmachine_end_silencemachine_end_otherhumanfaxN)
__name__
__module____qualname__UNKNOWNMACHINE_STARTMACHINE_END_BEEPMACHINE_END_SILENCEMACHINE_END_OTHERHUMANFAX     c/var/www/html/Manimaran/venv/lib/python3.12/site-packages/twilio/rest/insights/v1/call_summaries.py
AnsweredByr      s(    '-3/r(   r*   c                   ,    e Zd ZdZdZdZdZdZdZdZ	dZ
y	)
CallSummariesInstance.CallStateringing	completedbusyfailnoanswercanceledansweredundialedN)r   r   r   RINGING	COMPLETEDBUSYFAILNOANSWERCANCELEDANSWEREDUNDIALEDr'   r(   r)   	CallStater,   $   s*    	r(   r=   c                        e Zd ZdZdZdZdZdZy)CallSummariesInstance.CallTypecarriersiptrunkingclientwhatsappN)r   r   r   CARRIERSIPTRUNKINGCLIENTWHATSAPPr'   r(   r)   CallTyper?   .   s    r(   rJ   c                       e Zd ZdZdZy)%CallSummariesInstance.ProcessingStatecompletepartialN)r   r   r   COMPLETEPARTIALr'   r(   r)   ProcessingStaterL   5   s    r(   rQ   c                       e Zd ZdZdZdZdZy),CallSummariesInstance.ProcessingStateRequestr.   startedrN   allN)r   r   r   r6   STARTEDrP   ALLr'   r(   r)   ProcessingStateRequestrS   9   s    	r(   rX   c                       e Zd ZdZdZy)CallSummariesInstance.SortBy
start_timeend_timeN)r   r   r   
START_TIMEEND_TIMEr'   r(   r)   SortByrZ   ?   s    !
r(   r_   versionpayloadc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        t        j                  |j                  d	            | _        t        j                  |j                  d
            | _        t        j                  |j                  d            | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        y )Naccount_sidcall_sidanswered_by	call_type
call_stateprocessing_statecreated_timer[   r\   durationconnect_durationfromtocarrier_edgeclient_edgesdk_edgesip_edgetagsurl
attributes
propertiestrust
annotation)super__init__getrc   rd   re   rf   rg   rh   r   iso8601_datetimeri   r[   r\   integerrj   rk   _fromrm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   )selfr`   ra   	__class__s      r)   ry   zCallSummariesInstance.__init__]   s   !*1++m*D'.{{:'>IPJ
 FM[[F
 HO{{H
 KK*+ 	 1<0L0LKK'1
 /:.J.JKK%/
 -8,H,HKK
#-
 (3':':7;;z;R'S/:/B/BKK*+0
 3:++f2E
/6{{4/@9@^9T8?M8R5<[[5L5<[[5L)0V)<	")++e"47>{{<7P7>{{<7P29++g2F
7>{{<7Pr(   returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z*<Twilio.Insights.V1.CallSummariesInstance>r'   r~   s    r)   __repr__zCallSummariesInstance.__repr__   s     <r(   )r   r   r   objectr*   r=   rJ   rQ   rX   r_   r   r   strr   ry   r   __classcell__r   s   @r)   r   r      s{    V F 6 &   4)Q )Q$sCx. )QV<# <r(   r   c                   2    e Zd Zdeeef   defdZdefdZy)CallSummariesPagera   r   c                 .    t        | j                  |      S )zs
        Build an instance of CallSummariesInstance

        :param payload: Payload response from the API
        )r   _version)r~   ra   s     r)   get_instancezCallSummariesPage.get_instance   s     %T]]G<<r(   c                      y)r   z&<Twilio.Insights.V1.CallSummariesPage>r'   r   s    r)   r   zCallSummariesPage.__repr__        8r(   N)	r   r   r   r   r   r   r   r   r   r'   r(   r)   r   r      s*    =DcN =7L =8# 8r(   r   c            I           e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf"deee	f   deee	f   deee	f   deee	f   deee	f   d	eee	f   d
ee
e	f   dee
e	f   deee	f   deee	f   deee	f   deee	f   deee	f   dede	f   dede	f   deee	f   dee
e	f   dede	f   deee	f   deee	f   deee	f   dee
e	f   deee	f   dee
e	f   dee
e	f   d eee	f   d!eee	f   d"eee	f   d#eee	f   d$eee	f   d%eee	f   d&eee	f   d'ee   d(ee   d)ee   fFd*Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf"deee	f   deee	f   deee	f   deee	f   deee	f   d	eee	f   d
ee
e	f   dee
e	f   deee	f   deee	f   deee	f   deee	f   deee	f   dede	f   dede	f   deee	f   dee
e	f   dede	f   deee	f   deee	f   deee	f   dee
e	f   deee	f   dee
e	f   dee
e	f   d eee	f   d!eee	f   d"eee	f   d#eee	f   d$eee	f   d%eee	f   d&eee	f   d'ee   d(ee   d)ee   fFd+Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf"deee	f   deee	f   deee	f   deee	f   deee	f   d	eee	f   d
ee
e	f   dee
e	f   deee	f   deee	f   deee	f   deee	f   deee	f   dede	f   dede	f   deee	f   dee
e	f   dede	f   deee	f   deee	f   deee	f   dee
e	f   deee	f   dee
e	f   dee
e	f   d eee	f   d!eee	f   d"eee	f   d#eee	f   d$eee	f   d%eee	f   d&eee	f   d'ee   d(ee   d)ee   fFd,Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf"deee	f   deee	f   deee	f   deee	f   deee	f   d	eee	f   d
ee
e	f   dee
e	f   deee	f   deee	f   deee	f   deee	f   deee	f   dede	f   dede	f   deee	f   dee
e	f   dede	f   deee	f   deee	f   deee	f   dee
e	f   deee	f   dee
e	f   dee
e	f   d eee	f   d!eee	f   d"eee	f   d#eee	f   d$eee	f   d%eee	f   d&eee	f   d'ee   d(ee   d)ee   fFd-Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f#deee	f   deee	f   deee	f   deee	f   deee	f   d	eee	f   d
ee
e	f   dee
e	f   deee	f   deee	f   deee	f   deee	f   deee	f   dede	f   dede	f   deee	f   dee
e	f   dede	f   deee	f   deee	f   deee	f   dee
e	f   deee	f   dee
e	f   dee
e	f   d eee	f   d!eee	f   d"eee	f   d#eee	f   d$eee	f   d%eee	f   d&eee	f   d.eee	f   d/eee	f   d(eee	f   d)efHd0Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f#deee	f   deee	f   deee	f   deee	f   deee	f   d	eee	f   d
ee
e	f   dee
e	f   deee	f   deee	f   deee	f   deee	f   deee	f   dede	f   dede	f   deee	f   dee
e	f   dede	f   deee	f   deee	f   deee	f   dee
e	f   deee	f   dee
e	f   dee
e	f   d eee	f   d!eee	f   d"eee	f   d#eee	f   d$eee	f   d%eee	f   d&eee	f   d.eee	f   d/eee	f   d(eee	f   d)efHd1Zd2ed)efd3Zd2ed)efd4Zd)efd5Z xZS )6CallSummariesListr`   c                 2    t         |   |       d| _        y)zo
        Initialize the CallSummariesList

        :param version: Version that contains the resource

        z/Voice/SummariesN)rx   ry   _uri)r~   r`   r   s     r)   ry   zCallSummariesList.__init__   s     	!&	r(   Nfrom_rm   from_carrier
to_carrierfrom_country_codeto_country_codeverified_callerhas_tagr[   r\   rf   rg   	directionrh   rS   sort_byrZ   
subaccountabnormal_sessionre   r   answered_by_annotationconnectivity_issue_annotationquality_issue_annotationspam_annotationcall_score_annotationbranded_enabledvoice_integrity_enabledbranded_bundle_sidvoice_integrity_bundle_sidvoice_integrity_use_casebusiness_profile_identitybusiness_profile_industrybusiness_profile_bundle_sidbusiness_profile_typelimit	page_sizer   c#                 d   | j                   j                  |!|"      }# | j                  d#i d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d | d!|#d!   }$| j                   j                  |$|#d"         S )$a>  
        Streams CallSummariesInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param str from_: A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param str to: A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param str from_carrier: An origination carrier.
        :param str to_carrier: A destination carrier.
        :param str from_country_code: A source country code based on phone number in From.
        :param str to_country_code: A destination country code. Based on phone number in To.
        :param bool verified_caller: A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'.
        :param bool has_tag: A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags).
        :param str start_time: A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
        :param str end_time: An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
        :param str call_type: A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`.
        :param str call_state: A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`.
        :param str direction: A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`.
        :param &quot;CallSummariesInstance.ProcessingStateRequest&quot; processing_state: A Processing State of the Call Summaries. One of `completed`, `partial` or `all`.
        :param &quot;CallSummariesInstance.SortBy&quot; sort_by: A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`.
        :param str subaccount: A unique SID identifier of a Subaccount.
        :param bool abnormal_session: A boolean flag indicating an abnormal session where the last SIP response was not 200 OK.
        :param &quot;CallSummariesInstance.AnsweredBy&quot; answered_by: An Answered By value for the calls based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`.
        :param str answered_by_annotation: Either machine or human.
        :param str connectivity_issue_annotation: A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`.
        :param str quality_issue_annotation: A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`.
        :param bool spam_annotation: A boolean flag indicating spam calls.
        :param str call_score_annotation: A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
        :param bool branded_enabled: A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
        :param bool voice_integrity_enabled: A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
        :param str branded_bundle_sid: A unique SID identifier of the Branded Call.
        :param str voice_integrity_bundle_sid: A unique SID identifier of the Voice Integrity Profile.
        :param str voice_integrity_use_case: A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
        :param str business_profile_identity: A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
        :param str business_profile_industry: A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit'
        :param str business_profile_bundle_sid: A unique SID identifier of the Business Profile.
        :param str business_profile_type: A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   rm   r   r   r   r   r   r   r[   r\   rf   rg   r   rh   r   r   r   re   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r'   )r   read_limitspagestream%r~   r   rm   r   r   r   r   r   r   r[   r\   rf   rg   r   rh   r   r   r   re   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   limitsr   s%                                        r)   r   zCallSummariesList.stream   s   l **5)<tyy "
"
"
 &"
 "	"

 0"
 ,"
 ,"
 "
 ""
 "
  "
 ""
  "
 ."
 "
  "!"
" .#"
$ $%"
& $:'"
( +H)"
* &>+"
, ,-"
. #8/"
0 ,1"
2 %<3"
4  25"
6 (B7"
8 &>9"
: '@;"
< '@="
> )D?"
@ #8A"
B [)C"
H }}##D&/::r(   c#                   K   | j                   j                  |!|"      }# | j                  d$i d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d | d!|#d!    d"{   }$| j                   j                  |$|#d#         S 7 #w)%aM  
        Asynchronously streams CallSummariesInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param str from_: A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param str to: A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param str from_carrier: An origination carrier.
        :param str to_carrier: A destination carrier.
        :param str from_country_code: A source country code based on phone number in From.
        :param str to_country_code: A destination country code. Based on phone number in To.
        :param bool verified_caller: A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'.
        :param bool has_tag: A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags).
        :param str start_time: A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
        :param str end_time: An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
        :param str call_type: A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`.
        :param str call_state: A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`.
        :param str direction: A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`.
        :param &quot;CallSummariesInstance.ProcessingStateRequest&quot; processing_state: A Processing State of the Call Summaries. One of `completed`, `partial` or `all`.
        :param &quot;CallSummariesInstance.SortBy&quot; sort_by: A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`.
        :param str subaccount: A unique SID identifier of a Subaccount.
        :param bool abnormal_session: A boolean flag indicating an abnormal session where the last SIP response was not 200 OK.
        :param &quot;CallSummariesInstance.AnsweredBy&quot; answered_by: An Answered By value for the calls based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`.
        :param str answered_by_annotation: Either machine or human.
        :param str connectivity_issue_annotation: A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`.
        :param str quality_issue_annotation: A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`.
        :param bool spam_annotation: A boolean flag indicating spam calls.
        :param str call_score_annotation: A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
        :param bool branded_enabled: A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
        :param bool voice_integrity_enabled: A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
        :param str branded_bundle_sid: A unique SID identifier of the Branded Call.
        :param str voice_integrity_bundle_sid: A unique SID identifier of the Voice Integrity Profile.
        :param str voice_integrity_use_case: A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
        :param str business_profile_identity: A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
        :param str business_profile_industry: A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit'
        :param str business_profile_bundle_sid: A unique SID identifier of the Business Profile.
        :param str business_profile_type: A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   rm   r   r   r   r   r   r   r[   r\   rf   rg   r   rh   r   r   r   re   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Nr   r'   )r   r   
page_asyncstream_asyncr   s%                                        r)   r   zCallSummariesList.stream_async/  s    l **5)<$T__ "
"
"
 &"
 "	"

 0"
 ,"
 ,"
 "
 ""
 "
  "
 ""
  "
 ."
 "
  "!"
" .#"
$ $%"
& $:'"
( +H)"
* &>+"
, ,-"
. #8/"
0 ,1"
2 %<3"
4  25"
6 (B7"
8 &>9"
: '@;"
< '@="
> )D?"
@ #8A"
B [)C"
 "
H }}))$w@@I"
s   BB>B<$B>c#                     t         | j                  d#i d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d | d!|!d"|"      S )$a  
        Lists CallSummariesInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str from_: A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param str to: A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param str from_carrier: An origination carrier.
        :param str to_carrier: A destination carrier.
        :param str from_country_code: A source country code based on phone number in From.
        :param str to_country_code: A destination country code. Based on phone number in To.
        :param bool verified_caller: A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'.
        :param bool has_tag: A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags).
        :param str start_time: A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
        :param str end_time: An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
        :param str call_type: A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`.
        :param str call_state: A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`.
        :param str direction: A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`.
        :param &quot;CallSummariesInstance.ProcessingStateRequest&quot; processing_state: A Processing State of the Call Summaries. One of `completed`, `partial` or `all`.
        :param &quot;CallSummariesInstance.SortBy&quot; sort_by: A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`.
        :param str subaccount: A unique SID identifier of a Subaccount.
        :param bool abnormal_session: A boolean flag indicating an abnormal session where the last SIP response was not 200 OK.
        :param &quot;CallSummariesInstance.AnsweredBy&quot; answered_by: An Answered By value for the calls based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`.
        :param str answered_by_annotation: Either machine or human.
        :param str connectivity_issue_annotation: A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`.
        :param str quality_issue_annotation: A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`.
        :param bool spam_annotation: A boolean flag indicating spam calls.
        :param str call_score_annotation: A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
        :param bool branded_enabled: A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
        :param bool voice_integrity_enabled: A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
        :param str branded_bundle_sid: A unique SID identifier of the Branded Call.
        :param str voice_integrity_bundle_sid: A unique SID identifier of the Voice Integrity Profile.
        :param str voice_integrity_use_case: A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
        :param str business_profile_identity: A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
        :param str business_profile_industry: A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit'
        :param str business_profile_bundle_sid: A unique SID identifier of the Business Profile.
        :param str business_profile_type: A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   rm   r   r   r   r   r   r   r[   r\   rf   rg   r   rh   r   r   r   re   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r'   )listr   )#r~   r   rm   r   r   r   r   r   r   r[   r\   rf   rg   r   rh   r   r   r   re   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s#                                      r)   r   zCallSummariesList.list  s~   j DKK ### *# &	#
 #4# !0# !0#  # &# "# $# &# $# "2#  #  &!#" "2##$ (%#& (>'#( /L)#* *B+#, !0-#. '</#0 !01#2 )@3#4 $65#6 ,F7#8 *B9#: +D;#< +D=#> -H?#@ '<A#B C#D $E#%
 %	
r(   c#                 @  K    | j                   d$i d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d | d!|!d"|" d#{   2 #cg c3 d#{   }#|#7 7 	6 c}#S c c}#w w)%a  
        Asynchronously lists CallSummariesInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str from_: A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param str to: A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param str from_carrier: An origination carrier.
        :param str to_carrier: A destination carrier.
        :param str from_country_code: A source country code based on phone number in From.
        :param str to_country_code: A destination country code. Based on phone number in To.
        :param bool verified_caller: A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'.
        :param bool has_tag: A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags).
        :param str start_time: A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
        :param str end_time: An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
        :param str call_type: A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`.
        :param str call_state: A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`.
        :param str direction: A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`.
        :param &quot;CallSummariesInstance.ProcessingStateRequest&quot; processing_state: A Processing State of the Call Summaries. One of `completed`, `partial` or `all`.
        :param &quot;CallSummariesInstance.SortBy&quot; sort_by: A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`.
        :param str subaccount: A unique SID identifier of a Subaccount.
        :param bool abnormal_session: A boolean flag indicating an abnormal session where the last SIP response was not 200 OK.
        :param &quot;CallSummariesInstance.AnsweredBy&quot; answered_by: An Answered By value for the calls based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`.
        :param str answered_by_annotation: Either machine or human.
        :param str connectivity_issue_annotation: A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`.
        :param str quality_issue_annotation: A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`.
        :param bool spam_annotation: A boolean flag indicating spam calls.
        :param str call_score_annotation: A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
        :param bool branded_enabled: A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
        :param bool voice_integrity_enabled: A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
        :param str branded_bundle_sid: A unique SID identifier of the Branded Call.
        :param str voice_integrity_bundle_sid: A unique SID identifier of the Voice Integrity Profile.
        :param str voice_integrity_use_case: A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
        :param str business_profile_identity: A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
        :param str business_profile_industry: A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit'
        :param str business_profile_bundle_sid: A unique SID identifier of the Business Profile.
        :param str business_profile_type: A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   rm   r   r   r   r   r   r   r[   r\   rf   rg   r   rh   r   r   r   re   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Nr'   )r   )$r~   r   rm   r   r   r   r   r   r   r[   r\   rf   rg   r   rh   r   r   r   re   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   records$                                       r)   
list_asynczCallSummariesList.list_async(  s    n '8d&7&7 #'#'#' *#' &	#'
 #4#' !0#' !0#'  #' &#' "#' $#' &#' $#' "2#'  #'  &!#'" "2##'$ (%#'& (>'#'( /L)#'* *B+#', !0-#'. '</#'0 !01#'2 )@3#'4 $65#'6 ,F7#'8 *B9#': +D;#'< +D=#'> -H?#'@ '<A#'B C#'D $E#' #! #!&
 &
 #!&
 &
 &	
 &
sH   A:B<B=BBB	B

BBBBBB
page_tokenpage_numberc$                    t        j                  i d|d|d|d|d|d|dt        j                  |      dt        j                  |      d	|	d
|
d|d|d|d|d|d|dt        j                  |      i d|d|d|d|dt        j                  |      d|dt        j                  |      dt        j                  |      d|d|d|d|d|d|d | d!|!d"|"d#|#i      }$t        j                  d$d%i      }%d&|%d'<   | j                  j                  d(| j                  |$|%)      }&t        | j                  |&      S )*aQ  
        Retrieve a single page of CallSummariesInstance records from the API.
        Request is executed immediately

        :param from_: A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param to: A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param from_carrier: An origination carrier.
        :param to_carrier: A destination carrier.
        :param from_country_code: A source country code based on phone number in From.
        :param to_country_code: A destination country code. Based on phone number in To.
        :param verified_caller: A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'.
        :param has_tag: A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags).
        :param start_time: A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
        :param end_time: An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
        :param call_type: A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`.
        :param call_state: A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`.
        :param direction: A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`.
        :param processing_state: A Processing State of the Call Summaries. One of `completed`, `partial` or `all`.
        :param sort_by: A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`.
        :param subaccount: A unique SID identifier of a Subaccount.
        :param abnormal_session: A boolean flag indicating an abnormal session where the last SIP response was not 200 OK.
        :param answered_by: An Answered By value for the calls based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`.
        :param answered_by_annotation: Either machine or human.
        :param connectivity_issue_annotation: A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`.
        :param quality_issue_annotation: A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`.
        :param spam_annotation: A boolean flag indicating spam calls.
        :param call_score_annotation: A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
        :param branded_enabled: A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
        :param voice_integrity_enabled: A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
        :param branded_bundle_sid: A unique SID identifier of the Branded Call.
        :param voice_integrity_bundle_sid: A unique SID identifier of the Voice Integrity Profile.
        :param voice_integrity_use_case: A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
        :param business_profile_identity: A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
        :param business_profile_industry: A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit'
        :param business_profile_bundle_sid: A unique SID identifier of the Business Profile.
        :param business_profile_type: A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of CallSummariesInstance
        FromToFromCarrier	ToCarrierFromCountryCodeToCountryCodeVerifiedCallerHasTag	StartTimeEndTimerJ   r=   	DirectionrQ   r_   
SubaccountAbnormalSessionr*   AnsweredByAnnotationConnectivityIssueAnnotationQualityIssueAnnotationSpamAnnotationCallScoreAnnotationBrandedEnabledVoiceIntegrityEnabledBrandedBundleSidVoiceIntegrityBundleSidVoiceIntegrityUseCaseBusinessProfileIdentityBusinessProfileIndustryBusinessProfileBundleSidBusinessProfileType	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr   boolean_to_stringr   r   r   r   'r~   r   rm   r   r   r   r   r   r   r[   r\   rf   rg   r   rh   r   r   r   re   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   datar   responses'                                          r)   r   zCallSummariesList.page  sq   d yy&&b& |& Z	&
 "#4&  & !)"="=o"N& )55g>& Z& 8& I& Z& Y& "#3& '&  j!&" "9#>#>?O#P#&$ k%&& '(>'&( ./L)&* )*B+&, !)"="=o"N-&. &'</&0 !)"="=o"N1&2 ()D)D+*3&8 #$69&: *+E;&< ()A=&> *+D?&@ *+DA&B +,GC&D &'<E&F ZG&H I&J IK&(
T ))^-PQR.==%%diig & 
 !99r(   c$                   K   t        j                  i d|d|d|d|d|d|dt        j                  |      dt        j                  |      d	|	d
|
d|d|d|d|d|d|dt        j                  |      i d|d|d|d|dt        j                  |      d|dt        j                  |      dt        j                  |      d|d|d|d|d|d|d | d!|!d"|"d#|#i      }$t        j                  d$d%i      }%d&|%d'<   | j                  j                  d(| j                  |$|%)       d*{   }&t        | j                  |&      S 7 w)+a`  
        Asynchronously retrieve a single page of CallSummariesInstance records from the API.
        Request is executed immediately

        :param from_: A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param to: A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        :param from_carrier: An origination carrier.
        :param to_carrier: A destination carrier.
        :param from_country_code: A source country code based on phone number in From.
        :param to_country_code: A destination country code. Based on phone number in To.
        :param verified_caller: A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'.
        :param has_tag: A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags).
        :param start_time: A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
        :param end_time: An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
        :param call_type: A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`.
        :param call_state: A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`.
        :param direction: A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`.
        :param processing_state: A Processing State of the Call Summaries. One of `completed`, `partial` or `all`.
        :param sort_by: A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`.
        :param subaccount: A unique SID identifier of a Subaccount.
        :param abnormal_session: A boolean flag indicating an abnormal session where the last SIP response was not 200 OK.
        :param answered_by: An Answered By value for the calls based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`.
        :param answered_by_annotation: Either machine or human.
        :param connectivity_issue_annotation: A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`.
        :param quality_issue_annotation: A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`.
        :param spam_annotation: A boolean flag indicating spam calls.
        :param call_score_annotation: A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
        :param branded_enabled: A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
        :param voice_integrity_enabled: A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
        :param branded_bundle_sid: A unique SID identifier of the Branded Call.
        :param voice_integrity_bundle_sid: A unique SID identifier of the Voice Integrity Profile.
        :param voice_integrity_use_case: A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
        :param business_profile_identity: A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
        :param business_profile_industry: A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit'
        :param business_profile_bundle_sid: A unique SID identifier of the Business Profile.
        :param business_profile_type: A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of CallSummariesInstance
        r   r   r   r   r   r   r   r   r   r   rJ   r=   r   rQ   r_   r   r   r*   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   N)r   r   r   r   r   r   r   r   r   s'                                          r)   r   zCallSummariesList.page_async*  s    d yy&&b& |& Z	&
 "#4&  & !)"="=o"N& )55g>& Z& 8& I& Z& Y& "#3& '&  j!&" "9#>#>?O#P#&$ k%&& '(>'&( ./L)&* )*B+&, !)"="=o"N-&. &'</&0 !)"="=o"N1&2 ()D)D+*3&8 #$69&: *+E;&< ()A=&> *+D?&@ *+DA&B +,GC&D &'<E&F ZG&H I&J IK&(
T ))^-PQR.11diig 2 
 
 !99
s   D<E>E?E
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of CallSummariesInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of CallSummariesInstance
        r   )r   domaintwiliorequestr   r~   r   r   s      r)   get_pagezCallSummariesList.get_page  s7     ==''..66ujI 99r(   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of CallSummariesInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of CallSummariesInstance
        r   N)r   r   r   request_asyncr   r   s      r)   get_page_asyncz CallSummariesList.get_page_async  sD      --44BB5*UU 99 Vs   4AAAc                      y)r   z&<Twilio.Insights.V1.CallSummariesList>r'   r   s    r)   r   zCallSummariesList.__repr__  r   r(   )r   r   r   r   ry   r   unsetr   r   r   boolr   intr	   r   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   s   @r)   r   r      s   	' 	' %+LL!'+1<<)/06.4ll/5||'-||)/'-||(.)/(. LLAG)/06IO5;\\<BLL7=||/5||4:LL/5||7=||179?7=||8>8>:@,,4:LL##'K{;S&[!{; #v+{; CK(	{;
 #v+&{; !f-{; sF{+{; tV|,{; tV|${; #v+&{; V${; f%{; #v+&{; f%{;  :FB
{;$ 5v=>%{;& #v+&'{;(  f-){;* =vEF+{;, !&c6k 2-{;. (-S&['9/{;0 #(V"41{;2 tV|,3{;4  %S&[15{;6 tV|,7{;8 "'tV|!49{;: "#v+.;{;< %*#v+$6={;> #(V"4?{;@ $)f#5A{;B $)f#5C{;D &+3;%7E{;F  %S&[1G{;H }I{;J C=K{;L 
'	(M{;~ %+LL!'+1<<)/06.4ll/5||'-||)/'-||(.)/(. LLAG)/06IO5;\\<BLL7=||/5||4:LL/5||7=||179?7=||8>8>:@,,4:LL##'K{AS&[!{A #v+{A CK(	{A
 #v+&{A !f-{A sF{+{A tV|,{A tV|${A #v+&{A V${A f%{A #v+&{A f%{A  :FB
{A$ 5v=>%{A& #v+&'{A(  f-){A* =vEF+{A, !&c6k 2-{A. (-S&['9/{A0 #(V"41{A2 tV|,3{A4  %S&[15{A6 tV|,7{A8 "'tV|!49{A: "#v+.;{A< %*#v+$6={A> #(V"4?{A@ $)f#5A{AB $)f#5C{AD &+3;%7E{AF  %S&[1G{AH }I{AJ C=K{AL 
,	-M{A~ %+LL!'+1<<)/06.4ll/5||'-||)/'-||(.)/(. LLAG)/06IO5;\\<BLL7=||/5||4:LL/5||7=||179?7=||8>8>:@,,4:LL##'Kz
S&[!z
 #v+z
 CK(	z

 #v+&z
 !f-z
 sF{+z
 tV|,z
 tV|$z
 #v+&z
 V$z
 f%z
 #v+&z
 f%z
  :FB
z
$ 5v=>%z
& #v+&'z
(  f-)z
* =vEF+z
, !&c6k 2-z
. (-S&['9/z
0 #(V"41z
2 tV|,3z
4  %S&[15z
6 tV|,7z
8 "'tV|!49z
: "#v+.;z
< %*#v+$6=z
> #(V"4?z
@ $)f#5Az
B $)f#5Cz
D &+3;%7Ez
F  %S&[1Gz
H }Iz
J C=Kz
L 
#	$Mz
| %+LL!'+1<<)/06.4ll/5||'-||)/'-||(.)/(. LLAG)/06IO5;\\<BLL7=||/5||4:LL/5||7=||179?7=||8>8>:@,,4:LL##'K{
S&[!{
 #v+{
 CK(	{

 #v+&{
 !f-{
 sF{+{
 tV|,{
 tV|${
 #v+&{
 V${
 f%{
 #v+&{
 f%{
  :FB
{
$ 5v=>%{
& #v+&'{
(  f-){
* =vEF+{
, !&c6k 2-{
. (-S&['9/{
0 #(V"41{
2 tV|,3{
4  %S&[15{
6 tV|,7{
8 "'tV|!49{
: "#v+.;{
< %*#v+$6={
> #(V"4?{
@ $)f#5A{
B $)f#5C{
D &+3;%7E{
F  %S&[1G{
H }I{
J C=K{
L 
#	$M{
~ %+LL!'+1<<)/06.4ll/5||'-||)/'-||(.)/(. LLAG)/06IO5;\\<BLL7=||/5||4:LL/5||7=||179?7=||8>8>:@,,4:LL)/*0,,(.MC:S&[!C: #v+C: CK(	C:
 #v+&C: !f-C: sF{+C: tV|,C: tV|$C: #v+&C: V$C: f%C: #v+&C: f%C:  :FB
C:$ 5v=>%C:& #v+&'C:(  f-)C:* =vEF+C:, !&c6k 2-C:. (-S&['9/C:0 #(V"41C:2 tV|,3C:4  %S&[15C:6 tV|,7C:8 "'tV|!49C:: "#v+.;C:< %*#v+$6=C:> #(V"4?C:@ $)f#5AC:B $)f#5CC:D &+3;%7EC:F  %S&[1GC:H #v+&IC:J 3;'KC:L f%MC:N 
OC:N %+LL!'+1<<)/06.4ll/5||'-||)/'-||(.)/(. LLAG)/06IO5;\\<BLL7=||/5||4:LL/5||7=||179?7=||8>8>:@,,4:LL)/*0,,(.MC:S&[!C: #v+C: CK(	C:
 #v+&C: !f-C: sF{+C: tV|,C: tV|$C: #v+&C: V$C: f%C: #v+&C: f%C:  :FB
C:$ 5v=>%C:& #v+&'C:(  f-)C:* =vEF+C:, !&c6k 2-C:. (-S&['9/C:0 #(V"41C:2 tV|,3C:4  %S&[15C:6 tV|,7C:8 "'tV|!49C:: "#v+.;C:< %*#v+$6=C:> #(V"4?C:@ $)f#5AC:B $)f#5CC:D &+3;%7EC:F  %S&[1GC:H #v+&IC:J 3;'KC:L f%MC:N 
OC:J
:3 
:+< 
:
:s 
:7H 
:8# 8r(   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r   r   r'   r(   r)   <module>r     sT     L L L 6 6 : 2 ' !v<, v<r8 8&h8 h8r(   