
    g                        S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJrJr  SSKJr  SSKJr  SSKJr  SSKJr   " S	 S
\5      r " S S\5      r " S S\5      rg)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                      ^  \ rS rSr " S S\5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r	 " S S\5      r
 S\S\\\4   4U 4S jjrS\4S jrSrU =r$ )CallSummariesInstance   c                   0    \ rS rSrSrSrSrSrSrSr	Sr
S	rg
) CallSummariesInstance.AnsweredBy   unknownmachine_startmachine_end_beepmachine_end_silencemachine_end_otherhumanfax N)__name__
__module____qualname____firstlineno__UNKNOWNMACHINE_STARTMACHINE_END_BEEPMACHINE_END_SILENCEMACHINE_END_OTHERHUMANFAX__static_attributes__r       n/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/insights/v1/call_summaries.py
AnsweredByr      s(    '-3/r,   r.   c                   4    \ rS rSrSrSrSrSrSrSr	Sr
S	rS
rg)CallSummariesInstance.CallState$   ringing	completedbusyfailnoanswercanceledansweredundialedr   N)r    r!   r"   r#   RINGING	COMPLETEDBUSYFAILNOANSWERCANCELEDANSWEREDUNDIALEDr+   r   r,   r-   	CallStater0   $   s*    	r,   rB   c                   (    \ rS rSrSrSrSrSrSrSr	g)	CallSummariesInstance.CallType.   carriersiptrunkingclientwhatsappr   N)
r    r!   r"   r#   CARRIERSIPTRUNKINGCLIENTWHATSAPPr+   r   r,   r-   CallTyperD   .   s    r,   rP   c                       \ rS rSrSrSrSrg)%CallSummariesInstance.ProcessingState5   completepartialr   N)r    r!   r"   r#   COMPLETEPARTIALr+   r   r,   r-   ProcessingStaterR   5   s    r,   rX   c                   $    \ rS rSrSrSrSrSrSrg),CallSummariesInstance.ProcessingStateRequest9   r3   startedrU   allr   N)	r    r!   r"   r#   r;   STARTEDrW   ALLr+   r   r,   r-   ProcessingStateRequestrZ   9   s    	r,   r`   c                       \ rS rSrSrSrSrg)CallSummariesInstance.SortBy?   
start_timeend_timer   N)r    r!   r"   r#   
START_TIMEEND_TIMEr+   r   r,   r-   SortByrb   ?   s    !
r,   rh   versionpayloadc                   > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S	5      5      U l        [        R                  " UR                  S
5      5      U l        [        R                  " UR                  S5      5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        g )Naccount_sidcall_sidanswered_by	call_type
call_stateprocessing_statecreated_timerd   re   durationconnect_durationfromtocarrier_edgeclient_edgesdk_edgesip_edgetagsurl
attributes
propertiestrust
annotation)super__init__getrl   rm   rn   ro   rp   rq   r   iso8601_datetimerr   rd   re   integerrs   rt   _fromrv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   )selfri   rj   	__class__s      r-   r   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                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z*<Twilio.Insights.V1.CallSummariesInstance>r   r   s    r-   __repr__CallSummariesInstance.__repr__   s     <r,   )r   rl   r   rn   r}   rm   rp   ro   rw   rx   rt   rr   rs   re   rq   r~   ry   rz   rd   r{   rv   r   r|   )r    r!   r"   r#   objectr.   rB   rP   rX   r`   rh   r   r   strr   r   r   r+   __classcell__r   s   @r-   r   r      s    V F 6 &   4)Q )Q$sCx. )QV<# < <r,   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)CallSummariesPage   rj   r   c                 .    [        U R                  U5      $ )z[
Build an instance of CallSummariesInstance

:param payload: Payload response from the API
)r   _version)r   rj   s     r-   get_instanceCallSummariesPage.get_instance   s     %T]]G<<r,   c                     g)r   z&<Twilio.Insights.V1.CallSummariesPage>r   r   s    r-   r   CallSummariesPage.__repr__        8r,   r   N)r    r!   r"   r#   r   r   r   r   r   r   r+   r   r,   r-   r   r      s*    =DcN =7L =8# 8r,   r   c            I         ^  \ rS rSrS\4U 4S jj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                  \R                  \R                  \R                  \R                  \R                  \R                  SS4"S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S	\\	\
4   S
\\	\
4   S\\\
4   S\\\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\S\
4   S\S\
4   S\\	\
4   S\\\
4   S\S\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\\
4   S\\	\
4   S\\\
4   S \\\
4   S!\\	\
4   S"\\	\
4   S#\\	\
4   S$\\	\
4   S%\\	\
4   S&\\	\
4   S'\\	\
4   S(\\   S)\\   S*\\   4FS+ jj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                  \R                  \R                  \R                  \R                  \R                  \R                  SS4"S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S	\\	\
4   S
\\	\
4   S\\\
4   S\\\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\S\
4   S\S\
4   S\\	\
4   S\\\
4   S\S\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\\
4   S\\	\
4   S\\\
4   S \\\
4   S!\\	\
4   S"\\	\
4   S#\\	\
4   S$\\	\
4   S%\\	\
4   S&\\	\
4   S'\\	\
4   S(\\   S)\\   S*\\   4FS, jj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                  \R                  \R                  \R                  \R                  \R                  \R                  SS4"S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S	\\	\
4   S
\\	\
4   S\\\
4   S\\\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\S\
4   S\S\
4   S\\	\
4   S\\\
4   S\S\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\\
4   S\\	\
4   S\\\
4   S \\\
4   S!\\	\
4   S"\\	\
4   S#\\	\
4   S$\\	\
4   S%\\	\
4   S&\\	\
4   S'\\	\
4   S(\\   S)\\   S*\\   4FS- jj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                  \R                  \R                  \R                  \R                  \R                  \R                  SS4"S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S	\\	\
4   S
\\	\
4   S\\\
4   S\\\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\S\
4   S\S\
4   S\\	\
4   S\\\
4   S\S\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\\
4   S\\	\
4   S\\\
4   S \\\
4   S!\\	\
4   S"\\	\
4   S#\\	\
4   S$\\	\
4   S%\\	\
4   S&\\	\
4   S'\\	\
4   S(\\   S)\\   S*\\   4FS. jj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                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4#S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S	\\	\
4   S
\\	\
4   S\\\
4   S\\\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\S\
4   S\S\
4   S\\	\
4   S\\\
4   S\S\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\\
4   S\\	\
4   S\\\
4   S \\\
4   S!\\	\
4   S"\\	\
4   S#\\	\
4   S$\\	\
4   S%\\	\
4   S&\\	\
4   S'\\	\
4   S/\\	\
4   S0\\\
4   S)\\\
4   S*\4HS1 jj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                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4#S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S	\\	\
4   S
\\	\
4   S\\\
4   S\\\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\S\
4   S\S\
4   S\\	\
4   S\\\
4   S\S\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\\
4   S\\	\
4   S\\\
4   S \\\
4   S!\\	\
4   S"\\	\
4   S#\\	\
4   S$\\	\
4   S%\\	\
4   S&\\	\
4   S'\\	\
4   S/\\	\
4   S0\\\
4   S)\\\
4   S*\4HS2 jjrS3\	S*\4S4 jrS3\	S*\4S5 jrS*\	4S6 jrS7rU =r$ )8CallSummariesList   ri   c                 2   > [         TU ]  U5        SU l        g)zW
Initialize the CallSummariesList

:param version: Version that contains the resource

z/Voice/SummariesN)r   r   _uri)r   ri   r   s     r-   r   CallSummariesList.__init__   s     	!&	r,   Nfrom_rv   from_carrier
to_carrierfrom_country_codeto_country_codeverified_callerhas_tagrd   re   ro   rp   	directionrq   rZ   sort_byrb   
subaccountabnormal_sessionrn   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   U R                   R                  U!U"5      n#U R                  " S#0 SU_SU_SU_SU_SU_SU_SU_SU_S	U	_S
U
_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_S U _S!U#S!   _6n$U R                   R                  U$U#S"   5      $ )$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   rv   r   r   r   r   r   r   rd   re   ro   rp   r   rq   r   r   r   rn   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r   read_limitspagestream%r   r   rv   r   r   r   r   r   r   rd   re   ro   rp   r   rq   r   r   r   rn   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   limitsr   s%                                        r-   r   CallSummariesList.stream   s   l **5)<yy "
"
"
 &"
 "	"

 0"
 ,"
 ,"
 "
 ""
 "
  "
 ""
  "
 ."
 "
  "!"
" .#"
$ $%"
& $:'"
( +H)"
* &>+"
, ,-"
. #8/"
0 ,1"
2 %<3"
4  25"
6 (B7"
8 &>9"
: '@;"
< '@="
> )D?"
@ #8A"
B [)C"
H }}##D&/::r,   c#                   #    U R                   R                  U!U"5      n#U R                  " S$0 SU_SU_SU_SU_SU_SU_SU_SU_S	U	_S
U
_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_S U _S!U#S!   _6I S"h  vN n$U R                   R                  U$U#S#   5      $  N#7f)%a  
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   rv   r   r   r   r   r   r   rd   re   ro   rp   r   rq   r   r   r   rn   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   CallSummariesList.stream_async/  s    l **5)<__ "
"
"
 &"
 "	"

 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#                     [        U R                  " S#0 SU_SU_SU_SU_SU_SU_SU_SU_S	U	_S
U
_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_S U _S!U!_S"U"_65      $ )$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   rv   r   r   r   r   r   r   rd   re   ro   rp   r   rq   r   r   r   rn   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )listr   )#r   r   rv   r   r   r   r   r   r   rd   re   ro   rp   r   rq   r   r   r   rn   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s#                                      r-   r   CallSummariesList.list  s|   j KK ### *# &	#
 #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#                 B  #    U R                   " S$0 SU_SU_SU_SU_SU_SU_SU_SU_S	U	_S
U
_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_S U _S!U!_S"U"_6I S#h  vN  V#s/ s S#h  vN n#U#PM   N N

 sn#$ s  sn#f 7f)%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   rv   r   r   r   r   r   r   rd   re   ro   rp   r   rq   r   r   r   rn   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Nr   )r   )$r   r   rv   r   r   r   r   r   r   rd   re   ro   rp   r   rq   r   r   r   rn   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   records$                                       r-   
list_asyncCallSummariesList.list_async(  s    n '+&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$                    [         R                  " 0 SU_SU_SU_SU_SU_SU_S[        R                  " U5      _S[        R                  " U5      _S	U	_S
U
_SU_SU_SU_SU_SU_SU_S[        R                  " U5      _0 SU_SU_SU_SU_S[        R                  " U5      _SU_S[        R                  " U5      _S[        R                  " U5      _SU_SU_SU_SU_SU_SU_S U _S!U!_S"U"_ES#U#0E5      n$[         R                  " S$S%05      n%S&U%S''   U R                  R                  S(U R                  U$U%S)9n&[        U R                  U&5      $ )*a  
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EndTimerP   rB   	DirectionrX   rh   
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   rv   r   r   r   r   r   r   rd   re   ro   rp   r   rq   r   r   r   rn   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   datar   responses'                                          r-   r   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$                   #    [         R                  " 0 SU_SU_SU_SU_SU_SU_S[        R                  " U5      _S[        R                  " U5      _S	U	_S
U
_SU_SU_SU_SU_SU_SU_S[        R                  " U5      _0 SU_SU_SU_SU_S[        R                  " U5      _SU_S[        R                  " U5      _S[        R                  " U5      _SU_SU_SU_SU_SU_SU_S U _S!U!_S"U"_ES#U#0E5      n$[         R                  " S$S%05      n%S&U%S''   U R                  R                  S(U R                  U$U%S)9I S*h  vN n&[        U R                  U&5      $  N7f)+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   rP   rB   r   rX   rh   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   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   EE EE 
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )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_pageCallSummariesList.get_page  s7     ==''..66ujI 99r,   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
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_async CallSummariesList.get_page_async  sC      --44BB5*UU 99 Vs   4AAAc                     g)r   z&<Twilio.Insights.V1.CallSummariesList>r   r   s    r-   r   CallSummariesList.__repr__  r   r,   )r   )r    r!   r"   r#   r   r   r   unsetr   r   r   boolr   intr	   r   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# 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,   