telnyx 4.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- telnyx/__init__.py +94 -0
- telnyx/_base_client.py +2124 -0
- telnyx/_client.py +6465 -0
- telnyx/_compat.py +219 -0
- telnyx/_constants.py +14 -0
- telnyx/_exceptions.py +112 -0
- telnyx/_files.py +123 -0
- telnyx/_models.py +872 -0
- telnyx/_oauth2.py +118 -0
- telnyx/_qs.py +150 -0
- telnyx/_resource.py +43 -0
- telnyx/_response.py +830 -0
- telnyx/_streaming.py +333 -0
- telnyx/_types.py +270 -0
- telnyx/_utils/__init__.py +64 -0
- telnyx/_utils/_compat.py +45 -0
- telnyx/_utils/_datetime_parse.py +136 -0
- telnyx/_utils/_logs.py +25 -0
- telnyx/_utils/_proxy.py +65 -0
- telnyx/_utils/_reflection.py +42 -0
- telnyx/_utils/_resources_proxy.py +24 -0
- telnyx/_utils/_streams.py +12 -0
- telnyx/_utils/_sync.py +58 -0
- telnyx/_utils/_transform.py +457 -0
- telnyx/_utils/_typing.py +156 -0
- telnyx/_utils/_utils.py +421 -0
- telnyx/_version.py +4 -0
- telnyx/lib/.keep +4 -0
- telnyx/pagination.py +478 -0
- telnyx/py.typed +0 -0
- telnyx/resources/__init__.py +2095 -0
- telnyx/resources/access_ip_address.py +452 -0
- telnyx/resources/access_ip_ranges.py +370 -0
- telnyx/resources/actions/__init__.py +47 -0
- telnyx/resources/actions/actions.py +134 -0
- telnyx/resources/actions/purchase.py +231 -0
- telnyx/resources/actions/register.py +207 -0
- telnyx/resources/addresses/__init__.py +33 -0
- telnyx/resources/addresses/actions.py +314 -0
- telnyx/resources/addresses/addresses.py +659 -0
- telnyx/resources/advanced_orders.py +463 -0
- telnyx/resources/ai/__init__.py +145 -0
- telnyx/resources/ai/ai.py +564 -0
- telnyx/resources/ai/assistants/__init__.py +89 -0
- telnyx/resources/ai/assistants/assistants.py +1469 -0
- telnyx/resources/ai/assistants/canary_deploys.py +448 -0
- telnyx/resources/ai/assistants/scheduled_events.py +541 -0
- telnyx/resources/ai/assistants/tests/__init__.py +47 -0
- telnyx/resources/ai/assistants/tests/runs.py +380 -0
- telnyx/resources/ai/assistants/tests/test_suites/__init__.py +33 -0
- telnyx/resources/ai/assistants/tests/test_suites/runs.py +305 -0
- telnyx/resources/ai/assistants/tests/test_suites/test_suites.py +173 -0
- telnyx/resources/ai/assistants/tests/tests.py +761 -0
- telnyx/resources/ai/assistants/tools.py +199 -0
- telnyx/resources/ai/assistants/versions.py +678 -0
- telnyx/resources/ai/audio.py +248 -0
- telnyx/resources/ai/chat.py +404 -0
- telnyx/resources/ai/clusters.py +618 -0
- telnyx/resources/ai/conversations/__init__.py +61 -0
- telnyx/resources/ai/conversations/conversations.py +949 -0
- telnyx/resources/ai/conversations/insight_groups/__init__.py +33 -0
- telnyx/resources/ai/conversations/insight_groups/insight_groups.py +587 -0
- telnyx/resources/ai/conversations/insight_groups/insights.py +272 -0
- telnyx/resources/ai/conversations/insights.py +565 -0
- telnyx/resources/ai/conversations/messages.py +165 -0
- telnyx/resources/ai/embeddings/__init__.py +33 -0
- telnyx/resources/ai/embeddings/buckets.py +298 -0
- telnyx/resources/ai/embeddings/embeddings.py +709 -0
- telnyx/resources/ai/fine_tuning/__init__.py +33 -0
- telnyx/resources/ai/fine_tuning/fine_tuning.py +102 -0
- telnyx/resources/ai/fine_tuning/jobs.py +408 -0
- telnyx/resources/ai/integrations/__init__.py +33 -0
- telnyx/resources/ai/integrations/connections.py +294 -0
- telnyx/resources/ai/integrations/integrations.py +246 -0
- telnyx/resources/ai/mcp_servers.py +576 -0
- telnyx/resources/audit_events.py +212 -0
- telnyx/resources/authentication_providers.py +667 -0
- telnyx/resources/available_phone_number_blocks.py +181 -0
- telnyx/resources/available_phone_numbers.py +187 -0
- telnyx/resources/balance.py +135 -0
- telnyx/resources/billing_groups.py +512 -0
- telnyx/resources/bulk_sim_card_actions.py +291 -0
- telnyx/resources/bundle_pricing/__init__.py +47 -0
- telnyx/resources/bundle_pricing/billing_bundles.py +297 -0
- telnyx/resources/bundle_pricing/bundle_pricing.py +134 -0
- telnyx/resources/bundle_pricing/user_bundles.py +687 -0
- telnyx/resources/call_control_applications.py +873 -0
- telnyx/resources/call_events.py +214 -0
- telnyx/resources/calls/__init__.py +33 -0
- telnyx/resources/calls/actions.py +7093 -0
- telnyx/resources/calls/calls.py +888 -0
- telnyx/resources/channel_zones.py +293 -0
- telnyx/resources/charges_breakdown.py +211 -0
- telnyx/resources/charges_summary.py +202 -0
- telnyx/resources/comments.py +432 -0
- telnyx/resources/conferences/__init__.py +33 -0
- telnyx/resources/conferences/actions.py +2184 -0
- telnyx/resources/conferences/conferences.py +716 -0
- telnyx/resources/connections.py +432 -0
- telnyx/resources/country_coverage.py +214 -0
- telnyx/resources/credential_connections/__init__.py +33 -0
- telnyx/resources/credential_connections/actions.py +169 -0
- telnyx/resources/credential_connections/credential_connections.py +1068 -0
- telnyx/resources/custom_storage_credentials.py +441 -0
- telnyx/resources/customer_service_records.py +487 -0
- telnyx/resources/detail_records.py +212 -0
- telnyx/resources/dialogflow_connections.py +514 -0
- telnyx/resources/document_links.py +198 -0
- telnyx/resources/documents.py +811 -0
- telnyx/resources/dynamic_emergency_addresses.py +483 -0
- telnyx/resources/dynamic_emergency_endpoints.py +453 -0
- telnyx/resources/external_connections/__init__.py +89 -0
- telnyx/resources/external_connections/civic_addresses.py +268 -0
- telnyx/resources/external_connections/external_connections.py +929 -0
- telnyx/resources/external_connections/log_messages.py +356 -0
- telnyx/resources/external_connections/phone_numbers.py +388 -0
- telnyx/resources/external_connections/releases.py +293 -0
- telnyx/resources/external_connections/uploads.py +670 -0
- telnyx/resources/fax_applications.py +745 -0
- telnyx/resources/faxes/__init__.py +33 -0
- telnyx/resources/faxes/actions.py +244 -0
- telnyx/resources/faxes/faxes.py +659 -0
- telnyx/resources/fqdn_connections.py +994 -0
- telnyx/resources/fqdns.py +606 -0
- telnyx/resources/global_ip_allowed_ports.py +135 -0
- telnyx/resources/global_ip_assignment_health.py +183 -0
- telnyx/resources/global_ip_assignments.py +486 -0
- telnyx/resources/global_ip_assignments_usage.py +183 -0
- telnyx/resources/global_ip_health_check_types.py +135 -0
- telnyx/resources/global_ip_health_checks.py +453 -0
- telnyx/resources/global_ip_latency.py +181 -0
- telnyx/resources/global_ip_protocols.py +135 -0
- telnyx/resources/global_ip_usage.py +179 -0
- telnyx/resources/global_ips.py +453 -0
- telnyx/resources/inbound_channels.py +240 -0
- telnyx/resources/inexplicit_number_orders.py +408 -0
- telnyx/resources/integration_secrets.py +401 -0
- telnyx/resources/inventory_coverage.py +185 -0
- telnyx/resources/invoices.py +289 -0
- telnyx/resources/ip_connections.py +972 -0
- telnyx/resources/ips.py +576 -0
- telnyx/resources/ledger_billing_group_reports.py +264 -0
- telnyx/resources/legacy/__init__.py +33 -0
- telnyx/resources/legacy/legacy.py +102 -0
- telnyx/resources/legacy/reporting/__init__.py +47 -0
- telnyx/resources/legacy/reporting/batch_detail_records/__init__.py +61 -0
- telnyx/resources/legacy/reporting/batch_detail_records/batch_detail_records.py +166 -0
- telnyx/resources/legacy/reporting/batch_detail_records/messaging.py +482 -0
- telnyx/resources/legacy/reporting/batch_detail_records/speech_to_text.py +399 -0
- telnyx/resources/legacy/reporting/batch_detail_records/voice.py +539 -0
- telnyx/resources/legacy/reporting/reporting.py +134 -0
- telnyx/resources/legacy/reporting/usage_reports/__init__.py +61 -0
- telnyx/resources/legacy/reporting/usage_reports/messaging.py +474 -0
- telnyx/resources/legacy/reporting/usage_reports/number_lookup.py +415 -0
- telnyx/resources/legacy/reporting/usage_reports/usage_reports.py +288 -0
- telnyx/resources/legacy/reporting/usage_reports/voice.py +496 -0
- telnyx/resources/list.py +214 -0
- telnyx/resources/managed_accounts/__init__.py +33 -0
- telnyx/resources/managed_accounts/actions.py +266 -0
- telnyx/resources/managed_accounts/managed_accounts.py +774 -0
- telnyx/resources/media.py +678 -0
- telnyx/resources/messages/__init__.py +33 -0
- telnyx/resources/messages/messages.py +1545 -0
- telnyx/resources/messages/rcs.py +337 -0
- telnyx/resources/messaging/__init__.py +33 -0
- telnyx/resources/messaging/messaging.py +102 -0
- telnyx/resources/messaging/rcs/__init__.py +33 -0
- telnyx/resources/messaging/rcs/agents.py +379 -0
- telnyx/resources/messaging/rcs/rcs.py +387 -0
- telnyx/resources/messaging_10dlc/__init__.py +103 -0
- telnyx/resources/messaging_10dlc/brand/__init__.py +33 -0
- telnyx/resources/messaging_10dlc/brand/brand.py +1691 -0
- telnyx/resources/messaging_10dlc/brand/external_vetting.py +391 -0
- telnyx/resources/messaging_10dlc/campaign/__init__.py +47 -0
- telnyx/resources/messaging_10dlc/campaign/campaign.py +1069 -0
- telnyx/resources/messaging_10dlc/campaign/osr.py +163 -0
- telnyx/resources/messaging_10dlc/campaign/usecase.py +169 -0
- telnyx/resources/messaging_10dlc/campaign_builder/__init__.py +33 -0
- telnyx/resources/messaging_10dlc/campaign_builder/brand.py +171 -0
- telnyx/resources/messaging_10dlc/campaign_builder/campaign_builder.py +513 -0
- telnyx/resources/messaging_10dlc/messaging_10dlc.py +410 -0
- telnyx/resources/messaging_10dlc/partner_campaigns.py +638 -0
- telnyx/resources/messaging_10dlc/phone_number_assignment_by_profile.py +514 -0
- telnyx/resources/messaging_10dlc/phone_number_campaigns.py +582 -0
- telnyx/resources/messaging_hosted_number_orders/__init__.py +33 -0
- telnyx/resources/messaging_hosted_number_orders/actions.py +207 -0
- telnyx/resources/messaging_hosted_number_orders/messaging_hosted_number_orders.py +773 -0
- telnyx/resources/messaging_hosted_numbers.py +163 -0
- telnyx/resources/messaging_numbers_bulk_updates.py +276 -0
- telnyx/resources/messaging_optouts.py +218 -0
- telnyx/resources/messaging_profiles/__init__.py +33 -0
- telnyx/resources/messaging_profiles/autoresp_configs.py +598 -0
- telnyx/resources/messaging_profiles/messaging_profiles.py +1121 -0
- telnyx/resources/messaging_tollfree/__init__.py +33 -0
- telnyx/resources/messaging_tollfree/messaging_tollfree.py +102 -0
- telnyx/resources/messaging_tollfree/verification/__init__.py +33 -0
- telnyx/resources/messaging_tollfree/verification/requests.py +1154 -0
- telnyx/resources/messaging_tollfree/verification/verification.py +102 -0
- telnyx/resources/messaging_url_domains.py +186 -0
- telnyx/resources/mobile_network_operators.py +210 -0
- telnyx/resources/mobile_phone_numbers/__init__.py +33 -0
- telnyx/resources/mobile_phone_numbers/messaging.py +265 -0
- telnyx/resources/mobile_phone_numbers/mobile_phone_numbers.py +441 -0
- telnyx/resources/mobile_push_credentials.py +437 -0
- telnyx/resources/mobile_voice_connections.py +621 -0
- telnyx/resources/network_coverage.py +212 -0
- telnyx/resources/networks/__init__.py +33 -0
- telnyx/resources/networks/default_gateway.py +335 -0
- telnyx/resources/networks/networks.py +667 -0
- telnyx/resources/notification_channels.py +590 -0
- telnyx/resources/notification_event_conditions.py +204 -0
- telnyx/resources/notification_events.py +186 -0
- telnyx/resources/notification_profiles.py +524 -0
- telnyx/resources/notification_settings.py +473 -0
- telnyx/resources/number_block_orders.py +402 -0
- telnyx/resources/number_lookup.py +183 -0
- telnyx/resources/number_order_phone_numbers.py +461 -0
- telnyx/resources/number_orders.py +500 -0
- telnyx/resources/number_reservations/__init__.py +33 -0
- telnyx/resources/number_reservations/actions.py +167 -0
- telnyx/resources/number_reservations/number_reservations.py +411 -0
- telnyx/resources/numbers_features.py +167 -0
- telnyx/resources/oauth.py +855 -0
- telnyx/resources/oauth_clients.py +714 -0
- telnyx/resources/oauth_grants.py +352 -0
- telnyx/resources/operator_connect/__init__.py +33 -0
- telnyx/resources/operator_connect/actions.py +147 -0
- telnyx/resources/operator_connect/operator_connect.py +102 -0
- telnyx/resources/organizations/__init__.py +33 -0
- telnyx/resources/organizations/organizations.py +102 -0
- telnyx/resources/organizations/users/__init__.py +33 -0
- telnyx/resources/organizations/users/actions.py +163 -0
- telnyx/resources/organizations/users/users.py +444 -0
- telnyx/resources/ota_updates.py +277 -0
- telnyx/resources/outbound_voice_profiles.py +842 -0
- telnyx/resources/payment/__init__.py +33 -0
- telnyx/resources/payment/auto_recharge_prefs.py +260 -0
- telnyx/resources/payment/payment.py +102 -0
- telnyx/resources/phone_number_blocks/__init__.py +33 -0
- telnyx/resources/phone_number_blocks/jobs.py +378 -0
- telnyx/resources/phone_number_blocks/phone_number_blocks.py +102 -0
- telnyx/resources/phone_numbers/__init__.py +103 -0
- telnyx/resources/phone_numbers/actions.py +383 -0
- telnyx/resources/phone_numbers/csv_downloads.py +384 -0
- telnyx/resources/phone_numbers/jobs.py +699 -0
- telnyx/resources/phone_numbers/messaging.py +390 -0
- telnyx/resources/phone_numbers/phone_numbers.py +872 -0
- telnyx/resources/phone_numbers/voice.py +469 -0
- telnyx/resources/phone_numbers/voicemail.py +375 -0
- telnyx/resources/phone_numbers_regulatory_requirements.py +185 -0
- telnyx/resources/portability_checks.py +171 -0
- telnyx/resources/porting/__init__.py +61 -0
- telnyx/resources/porting/events.py +357 -0
- telnyx/resources/porting/loa_configurations.py +824 -0
- telnyx/resources/porting/porting.py +231 -0
- telnyx/resources/porting/reports.py +379 -0
- telnyx/resources/porting_orders/__init__.py +159 -0
- telnyx/resources/porting_orders/action_requirements.py +309 -0
- telnyx/resources/porting_orders/actions.py +438 -0
- telnyx/resources/porting_orders/activation_jobs.py +377 -0
- telnyx/resources/porting_orders/additional_documents.py +393 -0
- telnyx/resources/porting_orders/associated_phone_numbers.py +412 -0
- telnyx/resources/porting_orders/comments.py +275 -0
- telnyx/resources/porting_orders/phone_number_blocks.py +406 -0
- telnyx/resources/porting_orders/phone_number_configurations.py +297 -0
- telnyx/resources/porting_orders/phone_number_extensions.py +414 -0
- telnyx/resources/porting_orders/porting_orders.py +1459 -0
- telnyx/resources/porting_orders/verification_codes.py +400 -0
- telnyx/resources/porting_phone_numbers.py +198 -0
- telnyx/resources/portouts/__init__.py +75 -0
- telnyx/resources/portouts/comments.py +252 -0
- telnyx/resources/portouts/events.py +359 -0
- telnyx/resources/portouts/portouts.py +625 -0
- telnyx/resources/portouts/reports.py +379 -0
- telnyx/resources/portouts/supporting_documents.py +258 -0
- telnyx/resources/private_wireless_gateways.py +505 -0
- telnyx/resources/public_internet_gateways.py +461 -0
- telnyx/resources/queues/__init__.py +33 -0
- telnyx/resources/queues/calls.py +463 -0
- telnyx/resources/queues/queues.py +195 -0
- telnyx/resources/recording_transcriptions.py +301 -0
- telnyx/resources/recordings/__init__.py +33 -0
- telnyx/resources/recordings/actions.py +168 -0
- telnyx/resources/recordings/recordings.py +392 -0
- telnyx/resources/regions.py +135 -0
- telnyx/resources/regulatory_requirements.py +183 -0
- telnyx/resources/reports/__init__.py +47 -0
- telnyx/resources/reports/cdr_usage_reports.py +205 -0
- telnyx/resources/reports/mdr_usage_reports.py +570 -0
- telnyx/resources/reports/reports.py +505 -0
- telnyx/resources/requirement_groups.py +625 -0
- telnyx/resources/requirement_types.py +277 -0
- telnyx/resources/requirements.py +316 -0
- telnyx/resources/room_compositions.py +517 -0
- telnyx/resources/room_participants.py +289 -0
- telnyx/resources/room_recordings.py +482 -0
- telnyx/resources/rooms/__init__.py +47 -0
- telnyx/resources/rooms/actions.py +310 -0
- telnyx/resources/rooms/rooms.py +735 -0
- telnyx/resources/rooms/sessions/__init__.py +33 -0
- telnyx/resources/rooms/sessions/actions.py +489 -0
- telnyx/resources/rooms/sessions/sessions.py +605 -0
- telnyx/resources/seti.py +179 -0
- telnyx/resources/short_codes.py +384 -0
- telnyx/resources/sim_card_data_usage_notifications.py +576 -0
- telnyx/resources/sim_card_groups/__init__.py +33 -0
- telnyx/resources/sim_card_groups/actions.py +693 -0
- telnyx/resources/sim_card_groups/sim_card_groups.py +635 -0
- telnyx/resources/sim_card_order_preview.py +187 -0
- telnyx/resources/sim_card_orders.py +382 -0
- telnyx/resources/sim_cards/__init__.py +33 -0
- telnyx/resources/sim_cards/actions.py +933 -0
- telnyx/resources/sim_cards/sim_cards.py +978 -0
- telnyx/resources/siprec_connectors.py +481 -0
- telnyx/resources/speech_to_text.py +248 -0
- telnyx/resources/storage/__init__.py +61 -0
- telnyx/resources/storage/buckets/__init__.py +47 -0
- telnyx/resources/storage/buckets/buckets.py +255 -0
- telnyx/resources/storage/buckets/ssl_certificate.py +365 -0
- telnyx/resources/storage/buckets/usage.py +266 -0
- telnyx/resources/storage/migration_sources.py +412 -0
- telnyx/resources/storage/migrations/__init__.py +33 -0
- telnyx/resources/storage/migrations/actions.py +163 -0
- telnyx/resources/storage/migrations/migrations.py +371 -0
- telnyx/resources/storage/storage.py +231 -0
- telnyx/resources/sub_number_orders.py +561 -0
- telnyx/resources/sub_number_orders_report.py +388 -0
- telnyx/resources/telephony_credentials.py +666 -0
- telnyx/resources/texml/__init__.py +47 -0
- telnyx/resources/texml/accounts/__init__.py +89 -0
- telnyx/resources/texml/accounts/accounts.py +485 -0
- telnyx/resources/texml/accounts/calls/__init__.py +75 -0
- telnyx/resources/texml/accounts/calls/calls.py +1455 -0
- telnyx/resources/texml/accounts/calls/recordings.py +187 -0
- telnyx/resources/texml/accounts/calls/recordings_json.py +334 -0
- telnyx/resources/texml/accounts/calls/siprec.py +191 -0
- telnyx/resources/texml/accounts/calls/streams.py +189 -0
- telnyx/resources/texml/accounts/conferences/__init__.py +33 -0
- telnyx/resources/texml/accounts/conferences/conferences.py +659 -0
- telnyx/resources/texml/accounts/conferences/participants.py +1117 -0
- telnyx/resources/texml/accounts/queues.py +599 -0
- telnyx/resources/texml/accounts/recordings/__init__.py +33 -0
- telnyx/resources/texml/accounts/recordings/json.py +255 -0
- telnyx/resources/texml/accounts/recordings/recordings.py +102 -0
- telnyx/resources/texml/accounts/transcriptions/__init__.py +33 -0
- telnyx/resources/texml/accounts/transcriptions/json.py +265 -0
- telnyx/resources/texml/accounts/transcriptions/transcriptions.py +102 -0
- telnyx/resources/texml/calls.py +632 -0
- telnyx/resources/texml/texml.py +259 -0
- telnyx/resources/texml_applications.py +824 -0
- telnyx/resources/text_to_speech.py +327 -0
- telnyx/resources/usage_reports.py +389 -0
- telnyx/resources/user_addresses.py +540 -0
- telnyx/resources/user_tags.py +177 -0
- telnyx/resources/verifications/__init__.py +47 -0
- telnyx/resources/verifications/actions.py +195 -0
- telnyx/resources/verifications/by_phone_number/__init__.py +33 -0
- telnyx/resources/verifications/by_phone_number/actions.py +195 -0
- telnyx/resources/verifications/by_phone_number/by_phone_number.py +199 -0
- telnyx/resources/verifications/verifications.py +580 -0
- telnyx/resources/verified_numbers/__init__.py +33 -0
- telnyx/resources/verified_numbers/actions.py +179 -0
- telnyx/resources/verified_numbers/verified_numbers.py +500 -0
- telnyx/resources/verify_profiles.py +809 -0
- telnyx/resources/virtual_cross_connects.py +774 -0
- telnyx/resources/virtual_cross_connects_coverage.py +218 -0
- telnyx/resources/webhook_deliveries.py +283 -0
- telnyx/resources/webhooks.py +170 -0
- telnyx/resources/well_known.py +198 -0
- telnyx/resources/wireguard_interfaces.py +471 -0
- telnyx/resources/wireguard_peers.py +632 -0
- telnyx/resources/wireless/__init__.py +33 -0
- telnyx/resources/wireless/detail_records_reports.py +450 -0
- telnyx/resources/wireless/wireless.py +211 -0
- telnyx/resources/wireless_blocklist_values.py +181 -0
- telnyx/resources/wireless_blocklists.py +592 -0
- telnyx/types/__init__.py +1297 -0
- telnyx/types/access_ip_address_create_params.py +13 -0
- telnyx/types/access_ip_address_list_params.py +62 -0
- telnyx/types/access_ip_address_response.py +28 -0
- telnyx/types/access_ip_range.py +26 -0
- telnyx/types/access_ip_range_create_params.py +13 -0
- telnyx/types/access_ip_range_list_params.py +83 -0
- telnyx/types/actions/__init__.py +8 -0
- telnyx/types/actions/purchase_create_params.py +37 -0
- telnyx/types/actions/purchase_create_response.py +35 -0
- telnyx/types/actions/register_create_params.py +26 -0
- telnyx/types/actions/register_create_response.py +35 -0
- telnyx/types/address.py +102 -0
- telnyx/types/address_create_params.py +90 -0
- telnyx/types/address_create_response.py +12 -0
- telnyx/types/address_delete_response.py +12 -0
- telnyx/types/address_list_params.py +102 -0
- telnyx/types/address_retrieve_response.py +12 -0
- telnyx/types/addresses/__init__.py +8 -0
- telnyx/types/addresses/action_accept_suggestions_params.py +12 -0
- telnyx/types/addresses/action_accept_suggestions_response.py +22 -0
- telnyx/types/addresses/action_validate_params.py +36 -0
- telnyx/types/addresses/action_validate_response.py +71 -0
- telnyx/types/advanced_order_create_params.py +27 -0
- telnyx/types/advanced_order_create_response.py +35 -0
- telnyx/types/advanced_order_list_response.py +39 -0
- telnyx/types/advanced_order_retrieve_response.py +35 -0
- telnyx/types/advanced_order_update_requirement_group_params.py +27 -0
- telnyx/types/advanced_order_update_requirement_group_response.py +35 -0
- telnyx/types/ai/__init__.py +100 -0
- telnyx/types/ai/assistant_chat_params.py +18 -0
- telnyx/types/ai/assistant_chat_response.py +10 -0
- telnyx/types/ai/assistant_create_params.py +133 -0
- telnyx/types/ai/assistant_delete_response.py +18 -0
- telnyx/types/ai/assistant_get_texml_response.py +7 -0
- telnyx/types/ai/assistant_imports_params.py +27 -0
- telnyx/types/ai/assistant_param.py +112 -0
- telnyx/types/ai/assistant_retrieve_params.py +19 -0
- telnyx/types/ai/assistant_send_sms_params.py +22 -0
- telnyx/types/ai/assistant_send_sms_response.py +11 -0
- telnyx/types/ai/assistant_tool.py +139 -0
- telnyx/types/ai/assistant_tool_param.py +138 -0
- telnyx/types/ai/assistant_update_params.py +139 -0
- telnyx/types/ai/assistants/__init__.py +26 -0
- telnyx/types/ai/assistants/assistant_test.py +59 -0
- telnyx/types/ai/assistants/canary_deploy_create_params.py +15 -0
- telnyx/types/ai/assistants/canary_deploy_response.py +21 -0
- telnyx/types/ai/assistants/canary_deploy_update_params.py +15 -0
- telnyx/types/ai/assistants/conversation_channel_type.py +7 -0
- telnyx/types/ai/assistants/event_status.py +7 -0
- telnyx/types/ai/assistants/scheduled_event_create_params.py +35 -0
- telnyx/types/ai/assistants/scheduled_event_list_params.py +24 -0
- telnyx/types/ai/assistants/scheduled_event_list_response.py +15 -0
- telnyx/types/ai/assistants/scheduled_event_response.py +15 -0
- telnyx/types/ai/assistants/scheduled_phone_call_event_response.py +38 -0
- telnyx/types/ai/assistants/scheduled_sms_event_response.py +38 -0
- telnyx/types/ai/assistants/telnyx_conversation_channel.py +7 -0
- telnyx/types/ai/assistants/test_create_params.py +72 -0
- telnyx/types/ai/assistants/test_list_params.py +24 -0
- telnyx/types/ai/assistants/test_update_params.py +47 -0
- telnyx/types/ai/assistants/tests/__init__.py +9 -0
- telnyx/types/ai/assistants/tests/run_list_params.py +18 -0
- telnyx/types/ai/assistants/tests/run_trigger_params.py +16 -0
- telnyx/types/ai/assistants/tests/test_run_response.py +81 -0
- telnyx/types/ai/assistants/tests/test_status.py +7 -0
- telnyx/types/ai/assistants/tests/test_suite_list_response.py +18 -0
- telnyx/types/ai/assistants/tests/test_suites/__init__.py +9 -0
- telnyx/types/ai/assistants/tests/test_suites/meta.py +15 -0
- telnyx/types/ai/assistants/tests/test_suites/paginated_test_run_list.py +23 -0
- telnyx/types/ai/assistants/tests/test_suites/run_list_params.py +21 -0
- telnyx/types/ai/assistants/tests/test_suites/run_trigger_params.py +16 -0
- telnyx/types/ai/assistants/tests/test_suites/run_trigger_response.py +10 -0
- telnyx/types/ai/assistants/tool_test_params.py +18 -0
- telnyx/types/ai/assistants/tool_test_response.py +28 -0
- telnyx/types/ai/assistants/version_config.py +15 -0
- telnyx/types/ai/assistants/version_config_param.py +17 -0
- telnyx/types/ai/assistants/version_retrieve_params.py +13 -0
- telnyx/types/ai/assistants/version_update_params.py +135 -0
- telnyx/types/ai/assistants_list.py +12 -0
- telnyx/types/ai/audio_transcribe_params.py +46 -0
- telnyx/types/ai/audio_transcribe_response.py +38 -0
- telnyx/types/ai/background_task_status.py +7 -0
- telnyx/types/ai/chat_create_completion_params.py +184 -0
- telnyx/types/ai/chat_create_completion_response.py +8 -0
- telnyx/types/ai/cluster_compute_params.py +38 -0
- telnyx/types/ai/cluster_compute_response.py +13 -0
- telnyx/types/ai/cluster_fetch_graph_params.py +11 -0
- telnyx/types/ai/cluster_list_params.py +15 -0
- telnyx/types/ai/cluster_list_response.py +24 -0
- telnyx/types/ai/cluster_retrieve_params.py +18 -0
- telnyx/types/ai/cluster_retrieve_response.py +25 -0
- telnyx/types/ai/conversation.py +27 -0
- telnyx/types/ai/conversation_add_message_params.py +30 -0
- telnyx/types/ai/conversation_create_params.py +15 -0
- telnyx/types/ai/conversation_list_params.py +62 -0
- telnyx/types/ai/conversation_list_response.py +12 -0
- telnyx/types/ai/conversation_retrieve_conversations_insights_response.py +41 -0
- telnyx/types/ai/conversation_retrieve_response.py +12 -0
- telnyx/types/ai/conversation_update_params.py +13 -0
- telnyx/types/ai/conversation_update_response.py +12 -0
- telnyx/types/ai/conversations/__init__.py +17 -0
- telnyx/types/ai/conversations/insight_create_params.py +19 -0
- telnyx/types/ai/conversations/insight_group_insight_groups_params.py +15 -0
- telnyx/types/ai/conversations/insight_group_retrieve_insight_groups_params.py +15 -0
- telnyx/types/ai/conversations/insight_group_update_params.py +15 -0
- telnyx/types/ai/conversations/insight_groups/__init__.py +3 -0
- telnyx/types/ai/conversations/insight_list_params.py +15 -0
- telnyx/types/ai/conversations/insight_template.py +26 -0
- telnyx/types/ai/conversations/insight_template_detail.py +10 -0
- telnyx/types/ai/conversations/insight_template_group.py +23 -0
- telnyx/types/ai/conversations/insight_template_group_detail.py +10 -0
- telnyx/types/ai/conversations/insight_update_params.py +18 -0
- telnyx/types/ai/conversations/message_list_response.py +56 -0
- telnyx/types/ai/embedding_create_params.py +21 -0
- telnyx/types/ai/embedding_list_params.py +14 -0
- telnyx/types/ai/embedding_list_response.py +30 -0
- telnyx/types/ai/embedding_response.py +25 -0
- telnyx/types/ai/embedding_retrieve_response.py +25 -0
- telnyx/types/ai/embedding_similarity_search_params.py +15 -0
- telnyx/types/ai/embedding_similarity_search_response.py +49 -0
- telnyx/types/ai/embedding_url_params.py +15 -0
- telnyx/types/ai/embeddings/__init__.py +6 -0
- telnyx/types/ai/embeddings/bucket_list_response.py +15 -0
- telnyx/types/ai/embeddings/bucket_retrieve_response.py +26 -0
- telnyx/types/ai/enabled_features.py +7 -0
- telnyx/types/ai/fine_tuning/__init__.py +7 -0
- telnyx/types/ai/fine_tuning/fine_tuning_job.py +57 -0
- telnyx/types/ai/fine_tuning/job_create_params.py +33 -0
- telnyx/types/ai/fine_tuning/job_list_response.py +12 -0
- telnyx/types/ai/hangup_tool.py +14 -0
- telnyx/types/ai/hangup_tool_param.py +15 -0
- telnyx/types/ai/hangup_tool_params.py +12 -0
- telnyx/types/ai/hangup_tool_params_param.py +12 -0
- telnyx/types/ai/import_metadata.py +16 -0
- telnyx/types/ai/inference_embedding.py +140 -0
- telnyx/types/ai/inference_embedding_bucket_ids.py +19 -0
- telnyx/types/ai/inference_embedding_bucket_ids_param.py +21 -0
- telnyx/types/ai/inference_embedding_transfer_tool_params.py +49 -0
- telnyx/types/ai/inference_embedding_transfer_tool_params_param.py +56 -0
- telnyx/types/ai/inference_embedding_webhook_tool_params.py +116 -0
- telnyx/types/ai/inference_embedding_webhook_tool_params_param.py +118 -0
- telnyx/types/ai/insight_settings.py +16 -0
- telnyx/types/ai/insight_settings_param.py +16 -0
- telnyx/types/ai/integration_list_response.py +28 -0
- telnyx/types/ai/integration_retrieve_response.py +24 -0
- telnyx/types/ai/integrations/__init__.py +6 -0
- telnyx/types/ai/integrations/connection_list_response.py +19 -0
- telnyx/types/ai/integrations/connection_retrieve_response.py +19 -0
- telnyx/types/ai/mcp_server_create_params.py +22 -0
- telnyx/types/ai/mcp_server_create_response.py +24 -0
- telnyx/types/ai/mcp_server_list_params.py +19 -0
- telnyx/types/ai/mcp_server_list_response.py +24 -0
- telnyx/types/ai/mcp_server_retrieve_response.py +24 -0
- telnyx/types/ai/mcp_server_update_params.py +28 -0
- telnyx/types/ai/mcp_server_update_response.py +24 -0
- telnyx/types/ai/messaging_settings.py +21 -0
- telnyx/types/ai/messaging_settings_param.py +21 -0
- telnyx/types/ai/privacy_settings.py +19 -0
- telnyx/types/ai/privacy_settings_param.py +19 -0
- telnyx/types/ai/recursive_cluster.py +34 -0
- telnyx/types/ai/retrieval_tool.py +14 -0
- telnyx/types/ai/retrieval_tool_param.py +15 -0
- telnyx/types/ai/telephony_settings.py +56 -0
- telnyx/types/ai/telephony_settings_param.py +55 -0
- telnyx/types/ai/transcription_settings.py +45 -0
- telnyx/types/ai/transcription_settings_config.py +35 -0
- telnyx/types/ai/transcription_settings_config_param.py +35 -0
- telnyx/types/ai/transcription_settings_param.py +43 -0
- telnyx/types/ai/transfer_tool.py +14 -0
- telnyx/types/ai/transfer_tool_param.py +15 -0
- telnyx/types/ai/voice_settings.py +119 -0
- telnyx/types/ai/voice_settings_param.py +115 -0
- telnyx/types/ai/webhook_tool.py +14 -0
- telnyx/types/ai/webhook_tool_param.py +15 -0
- telnyx/types/ai_retrieve_models_response.py +23 -0
- telnyx/types/ai_summarize_params.py +18 -0
- telnyx/types/ai_summarize_response.py +13 -0
- telnyx/types/anchorsite_override.py +18 -0
- telnyx/types/audit_event_list_params.py +39 -0
- telnyx/types/audit_event_list_response.py +70 -0
- telnyx/types/authentication_provider.py +73 -0
- telnyx/types/authentication_provider_create_params.py +32 -0
- telnyx/types/authentication_provider_create_response.py +12 -0
- telnyx/types/authentication_provider_delete_response.py +12 -0
- telnyx/types/authentication_provider_list_params.py +43 -0
- telnyx/types/authentication_provider_retrieve_response.py +12 -0
- telnyx/types/authentication_provider_update_params.py +32 -0
- telnyx/types/authentication_provider_update_response.py +12 -0
- telnyx/types/available_phone_number_block_list_params.py +35 -0
- telnyx/types/available_phone_number_block_list_response.py +54 -0
- telnyx/types/available_phone_number_list_params.py +99 -0
- telnyx/types/available_phone_number_list_response.py +65 -0
- telnyx/types/available_service.py +7 -0
- telnyx/types/azure_configuration_data.py +22 -0
- telnyx/types/azure_configuration_data_param.py +21 -0
- telnyx/types/balance_retrieve_response.py +32 -0
- telnyx/types/billing_group.py +32 -0
- telnyx/types/billing_group_create_params.py +12 -0
- telnyx/types/billing_group_create_response.py +12 -0
- telnyx/types/billing_group_delete_response.py +12 -0
- telnyx/types/billing_group_list_params.py +15 -0
- telnyx/types/billing_group_retrieve_response.py +12 -0
- telnyx/types/billing_group_update_params.py +12 -0
- telnyx/types/billing_group_update_response.py +12 -0
- telnyx/types/bulk_sim_card_action_list_params.py +20 -0
- telnyx/types/bulk_sim_card_action_list_response.py +40 -0
- telnyx/types/bulk_sim_card_action_retrieve_response.py +44 -0
- telnyx/types/bundle_pricing/__init__.py +18 -0
- telnyx/types/bundle_pricing/billing_bundle_list_params.py +39 -0
- telnyx/types/bundle_pricing/billing_bundle_retrieve_response.py +68 -0
- telnyx/types/bundle_pricing/billing_bundle_summary.py +36 -0
- telnyx/types/bundle_pricing/pagination_response.py +19 -0
- telnyx/types/bundle_pricing/user_bundle.py +31 -0
- telnyx/types/bundle_pricing/user_bundle_create_params.py +29 -0
- telnyx/types/bundle_pricing/user_bundle_create_response.py +12 -0
- telnyx/types/bundle_pricing/user_bundle_deactivate_response.py +10 -0
- telnyx/types/bundle_pricing/user_bundle_list_params.py +39 -0
- telnyx/types/bundle_pricing/user_bundle_list_resources_response.py +12 -0
- telnyx/types/bundle_pricing/user_bundle_list_unused_params.py +34 -0
- telnyx/types/bundle_pricing/user_bundle_list_unused_response.py +19 -0
- telnyx/types/bundle_pricing/user_bundle_resource.py +25 -0
- telnyx/types/bundle_pricing/user_bundle_retrieve_response.py +10 -0
- telnyx/types/call_ai_gather_ended_webhook_event.py +78 -0
- telnyx/types/call_ai_gather_ended_webhook_event1.py +78 -0
- telnyx/types/call_ai_gather_message_history_updated_webhook_event.py +69 -0
- telnyx/types/call_ai_gather_message_history_updated_webhook_event1.py +69 -0
- telnyx/types/call_ai_gather_partial_results_webhook_event.py +75 -0
- telnyx/types/call_ai_gather_partial_results_webhook_event1.py +75 -0
- telnyx/types/call_answered_webhook_event.py +75 -0
- telnyx/types/call_answered_webhook_event1.py +75 -0
- telnyx/types/call_bridged_webhook_event.py +58 -0
- telnyx/types/call_bridged_webhook_event1.py +58 -0
- telnyx/types/call_control_application.py +99 -0
- telnyx/types/call_control_application_create_params.py +86 -0
- telnyx/types/call_control_application_create_response.py +12 -0
- telnyx/types/call_control_application_delete_response.py +12 -0
- telnyx/types/call_control_application_inbound.py +39 -0
- telnyx/types/call_control_application_inbound_param.py +38 -0
- telnyx/types/call_control_application_list_params.py +131 -0
- telnyx/types/call_control_application_outbound.py +18 -0
- telnyx/types/call_control_application_outbound_param.py +18 -0
- telnyx/types/call_control_application_retrieve_response.py +12 -0
- telnyx/types/call_control_application_update_params.py +90 -0
- telnyx/types/call_control_application_update_response.py +12 -0
- telnyx/types/call_conversation_ended_webhook_event.py +84 -0
- telnyx/types/call_conversation_ended_webhook_event1.py +84 -0
- telnyx/types/call_conversation_insights_generated_webhook_event.py +67 -0
- telnyx/types/call_conversation_insights_generated_webhook_event1.py +67 -0
- telnyx/types/call_dial_params.py +453 -0
- telnyx/types/call_dial_response.py +56 -0
- telnyx/types/call_dtmf_received_webhook_event.py +61 -0
- telnyx/types/call_dtmf_received_webhook_event1.py +61 -0
- telnyx/types/call_enqueued_webhook_event.py +59 -0
- telnyx/types/call_enqueued_webhook_event1.py +59 -0
- telnyx/types/call_event_list_params.py +113 -0
- telnyx/types/call_event_list_response.py +36 -0
- telnyx/types/call_fork_started_webhook_event.py +53 -0
- telnyx/types/call_fork_started_webhook_event1.py +53 -0
- telnyx/types/call_fork_stopped_webhook_event.py +53 -0
- telnyx/types/call_fork_stopped_webhook_event1.py +53 -0
- telnyx/types/call_gather_ended_webhook_event.py +64 -0
- telnyx/types/call_gather_ended_webhook_event1.py +64 -0
- telnyx/types/call_hangup_webhook_event.py +160 -0
- telnyx/types/call_hangup_webhook_event1.py +160 -0
- telnyx/types/call_initiated_webhook_event.py +96 -0
- telnyx/types/call_initiated_webhook_event1.py +96 -0
- telnyx/types/call_left_queue_webhook_event.py +62 -0
- telnyx/types/call_left_queue_webhook_event1.py +62 -0
- telnyx/types/call_machine_detection_ended_webhook_event.py +61 -0
- telnyx/types/call_machine_detection_ended_webhook_event1.py +61 -0
- telnyx/types/call_machine_greeting_ended_webhook_event.py +61 -0
- telnyx/types/call_machine_greeting_ended_webhook_event1.py +61 -0
- telnyx/types/call_machine_premium_detection_ended_webhook_event.py +63 -0
- telnyx/types/call_machine_premium_detection_ended_webhook_event1.py +63 -0
- telnyx/types/call_machine_premium_greeting_ended_webhook_event.py +61 -0
- telnyx/types/call_machine_premium_greeting_ended_webhook_event1.py +61 -0
- telnyx/types/call_playback_ended_webhook_event.py +70 -0
- telnyx/types/call_playback_ended_webhook_event1.py +70 -0
- telnyx/types/call_playback_started_webhook_event.py +62 -0
- telnyx/types/call_playback_started_webhook_event1.py +62 -0
- telnyx/types/call_recording_error_webhook_event.py +60 -0
- telnyx/types/call_recording_error_webhook_event1.py +60 -0
- telnyx/types/call_recording_saved_webhook_event.py +104 -0
- telnyx/types/call_recording_saved_webhook_event1.py +104 -0
- telnyx/types/call_recording_transcription_saved_webhook_event.py +71 -0
- telnyx/types/call_recording_transcription_saved_webhook_event1.py +71 -0
- telnyx/types/call_refer_completed_webhook_event.py +61 -0
- telnyx/types/call_refer_completed_webhook_event1.py +61 -0
- telnyx/types/call_refer_failed_webhook_event.py +61 -0
- telnyx/types/call_refer_failed_webhook_event1.py +61 -0
- telnyx/types/call_refer_started_webhook_event.py +61 -0
- telnyx/types/call_refer_started_webhook_event1.py +61 -0
- telnyx/types/call_retrieve_status_response.py +50 -0
- telnyx/types/call_siprec_failed_webhook_event.py +53 -0
- telnyx/types/call_siprec_failed_webhook_event1.py +53 -0
- telnyx/types/call_siprec_started_webhook_event.py +50 -0
- telnyx/types/call_siprec_started_webhook_event1.py +50 -0
- telnyx/types/call_siprec_stopped_webhook_event.py +53 -0
- telnyx/types/call_siprec_stopped_webhook_event1.py +53 -0
- telnyx/types/call_speak_ended_webhook_event.py +53 -0
- telnyx/types/call_speak_ended_webhook_event1.py +53 -0
- telnyx/types/call_speak_started_webhook_event.py +50 -0
- telnyx/types/call_speak_started_webhook_event1.py +50 -0
- telnyx/types/call_streaming_failed.py +68 -0
- telnyx/types/call_streaming_failed_webhook_event.py +12 -0
- telnyx/types/call_streaming_failed_webhook_event1.py +12 -0
- telnyx/types/call_streaming_started.py +49 -0
- telnyx/types/call_streaming_started_webhook_event.py +12 -0
- telnyx/types/call_streaming_started_webhook_event1.py +12 -0
- telnyx/types/call_streaming_stopped.py +49 -0
- telnyx/types/call_streaming_stopped_webhook_event.py +12 -0
- telnyx/types/call_streaming_stopped_webhook_event1.py +12 -0
- telnyx/types/calls/__init__.py +105 -0
- telnyx/types/calls/action_answer_params.py +148 -0
- telnyx/types/calls/action_answer_response.py +21 -0
- telnyx/types/calls/action_bridge_params.py +170 -0
- telnyx/types/calls/action_bridge_response.py +12 -0
- telnyx/types/calls/action_enqueue_params.py +44 -0
- telnyx/types/calls/action_enqueue_response.py +12 -0
- telnyx/types/calls/action_gather_params.py +55 -0
- telnyx/types/calls/action_gather_response.py +12 -0
- telnyx/types/calls/action_gather_using_ai_params.py +135 -0
- telnyx/types/calls/action_gather_using_ai_response.py +18 -0
- telnyx/types/calls/action_gather_using_audio_params.py +87 -0
- telnyx/types/calls/action_gather_using_audio_response.py +12 -0
- telnyx/types/calls/action_gather_using_speak_params.py +157 -0
- telnyx/types/calls/action_gather_using_speak_response.py +12 -0
- telnyx/types/calls/action_hangup_params.py +22 -0
- telnyx/types/calls/action_hangup_response.py +12 -0
- telnyx/types/calls/action_leave_queue_params.py +22 -0
- telnyx/types/calls/action_leave_queue_response.py +12 -0
- telnyx/types/calls/action_pause_recording_params.py +25 -0
- telnyx/types/calls/action_pause_recording_response.py +12 -0
- telnyx/types/calls/action_refer_params.py +44 -0
- telnyx/types/calls/action_refer_response.py +12 -0
- telnyx/types/calls/action_reject_params.py +25 -0
- telnyx/types/calls/action_reject_response.py +12 -0
- telnyx/types/calls/action_resume_recording_params.py +25 -0
- telnyx/types/calls/action_resume_recording_response.py +12 -0
- telnyx/types/calls/action_send_dtmf_params.py +35 -0
- telnyx/types/calls/action_send_dtmf_response.py +12 -0
- telnyx/types/calls/action_send_sip_info_params.py +31 -0
- telnyx/types/calls/action_send_sip_info_response.py +12 -0
- telnyx/types/calls/action_speak_params.py +125 -0
- telnyx/types/calls/action_speak_response.py +12 -0
- telnyx/types/calls/action_start_ai_assistant_params.py +99 -0
- telnyx/types/calls/action_start_ai_assistant_response.py +18 -0
- telnyx/types/calls/action_start_forking_params.py +41 -0
- telnyx/types/calls/action_start_forking_response.py +12 -0
- telnyx/types/calls/action_start_noise_suppression_params.py +44 -0
- telnyx/types/calls/action_start_noise_suppression_response.py +12 -0
- telnyx/types/calls/action_start_playback_params.py +83 -0
- telnyx/types/calls/action_start_playback_response.py +12 -0
- telnyx/types/calls/action_start_recording_params.py +245 -0
- telnyx/types/calls/action_start_recording_response.py +12 -0
- telnyx/types/calls/action_start_siprec_params.py +44 -0
- telnyx/types/calls/action_start_siprec_response.py +12 -0
- telnyx/types/calls/action_start_streaming_params.py +62 -0
- telnyx/types/calls/action_start_streaming_response.py +12 -0
- telnyx/types/calls/action_start_transcription_params.py +169 -0
- telnyx/types/calls/action_start_transcription_response.py +12 -0
- telnyx/types/calls/action_stop_ai_assistant_params.py +22 -0
- telnyx/types/calls/action_stop_ai_assistant_response.py +12 -0
- telnyx/types/calls/action_stop_forking_params.py +29 -0
- telnyx/types/calls/action_stop_forking_response.py +12 -0
- telnyx/types/calls/action_stop_gather_params.py +22 -0
- telnyx/types/calls/action_stop_gather_response.py +12 -0
- telnyx/types/calls/action_stop_noise_suppression_params.py +22 -0
- telnyx/types/calls/action_stop_noise_suppression_response.py +12 -0
- telnyx/types/calls/action_stop_playback_params.py +32 -0
- telnyx/types/calls/action_stop_playback_response.py +12 -0
- telnyx/types/calls/action_stop_recording_params.py +25 -0
- telnyx/types/calls/action_stop_recording_response.py +12 -0
- telnyx/types/calls/action_stop_siprec_params.py +22 -0
- telnyx/types/calls/action_stop_siprec_response.py +12 -0
- telnyx/types/calls/action_stop_streaming_params.py +29 -0
- telnyx/types/calls/action_stop_streaming_response.py +12 -0
- telnyx/types/calls/action_stop_transcription_params.py +22 -0
- telnyx/types/calls/action_stop_transcription_response.py +12 -0
- telnyx/types/calls/action_switch_supervisor_role_params.py +16 -0
- telnyx/types/calls/action_switch_supervisor_role_response.py +12 -0
- telnyx/types/calls/action_transfer_params.py +256 -0
- telnyx/types/calls/action_transfer_response.py +12 -0
- telnyx/types/calls/action_update_client_state_params.py +15 -0
- telnyx/types/calls/action_update_client_state_response.py +12 -0
- telnyx/types/calls/aws_voice_settings_param.py +16 -0
- telnyx/types/calls/call_control_command_result.py +11 -0
- telnyx/types/calls/eleven_labs_voice_settings_param.py +20 -0
- telnyx/types/calls/google_transcription_language.py +88 -0
- telnyx/types/calls/interruption_settings_param.py +14 -0
- telnyx/types/calls/loopcount_param.py +10 -0
- telnyx/types/calls/telnyx_transcription_language.py +108 -0
- telnyx/types/calls/telnyx_voice_settings_param.py +18 -0
- telnyx/types/calls/transcription_config_param.py +24 -0
- telnyx/types/calls/transcription_engine_a_config_param.py +65 -0
- telnyx/types/calls/transcription_engine_azure_config_param.py +103 -0
- telnyx/types/calls/transcription_engine_b_config_param.py +20 -0
- telnyx/types/calls/transcription_engine_google_config_param.py +65 -0
- telnyx/types/calls/transcription_engine_telnyx_config_param.py +20 -0
- telnyx/types/calls/transcription_start_request_param.py +169 -0
- telnyx/types/campaign_status_update_webhook_event.py +46 -0
- telnyx/types/campaign_status_update_webhook_event1.py +46 -0
- telnyx/types/channel_zone_list_params.py +15 -0
- telnyx/types/channel_zone_list_response.py +30 -0
- telnyx/types/channel_zone_update_params.py +12 -0
- telnyx/types/channel_zone_update_response.py +30 -0
- telnyx/types/charges_breakdown_retrieve_params.py +27 -0
- telnyx/types/charges_breakdown_retrieve_response.py +60 -0
- telnyx/types/charges_summary_retrieve_params.py +23 -0
- telnyx/types/charges_summary_retrieve_response.py +122 -0
- telnyx/types/cloudflare_sync_status.py +7 -0
- telnyx/types/comment_create_params.py +15 -0
- telnyx/types/comment_create_response.py +36 -0
- telnyx/types/comment_list_params.py +28 -0
- telnyx/types/comment_list_response.py +39 -0
- telnyx/types/comment_mark_as_read_response.py +36 -0
- telnyx/types/comment_retrieve_response.py +36 -0
- telnyx/types/conference.py +58 -0
- telnyx/types/conference_create_params.py +78 -0
- telnyx/types/conference_create_response.py +12 -0
- telnyx/types/conference_created_webhook_event.py +53 -0
- telnyx/types/conference_created_webhook_event1.py +53 -0
- telnyx/types/conference_ended_webhook_event.py +56 -0
- telnyx/types/conference_ended_webhook_event1.py +56 -0
- telnyx/types/conference_floor_changed_webhook_event.py +45 -0
- telnyx/types/conference_floor_changed_webhook_event1.py +45 -0
- telnyx/types/conference_list_params.py +116 -0
- telnyx/types/conference_list_participants_params.py +42 -0
- telnyx/types/conference_list_participants_response.py +64 -0
- telnyx/types/conference_participant_joined_webhook_event.py +53 -0
- telnyx/types/conference_participant_joined_webhook_event1.py +53 -0
- telnyx/types/conference_participant_left_webhook_event.py +53 -0
- telnyx/types/conference_participant_left_webhook_event1.py +53 -0
- telnyx/types/conference_participant_playback_ended_webhook_event.py +65 -0
- telnyx/types/conference_participant_playback_ended_webhook_event1.py +65 -0
- telnyx/types/conference_participant_playback_started_webhook_event.py +65 -0
- telnyx/types/conference_participant_playback_started_webhook_event1.py +65 -0
- telnyx/types/conference_participant_speak_ended_webhook_event.py +56 -0
- telnyx/types/conference_participant_speak_ended_webhook_event1.py +56 -0
- telnyx/types/conference_participant_speak_started_webhook_event.py +56 -0
- telnyx/types/conference_participant_speak_started_webhook_event1.py +56 -0
- telnyx/types/conference_playback_ended_webhook_event.py +49 -0
- telnyx/types/conference_playback_ended_webhook_event1.py +49 -0
- telnyx/types/conference_playback_started_webhook_event.py +49 -0
- telnyx/types/conference_playback_started_webhook_event1.py +49 -0
- telnyx/types/conference_recording_saved_webhook_event.py +113 -0
- telnyx/types/conference_recording_saved_webhook_event1.py +113 -0
- telnyx/types/conference_retrieve_params.py +12 -0
- telnyx/types/conference_retrieve_response.py +12 -0
- telnyx/types/conference_speak_ended_webhook_event.py +40 -0
- telnyx/types/conference_speak_ended_webhook_event1.py +40 -0
- telnyx/types/conference_speak_started_webhook_event.py +40 -0
- telnyx/types/conference_speak_started_webhook_event1.py +40 -0
- telnyx/types/conferences/__init__.py +33 -0
- telnyx/types/conferences/action_hold_params.py +37 -0
- telnyx/types/conferences/action_hold_response.py +12 -0
- telnyx/types/conferences/action_join_params.py +107 -0
- telnyx/types/conferences/action_join_response.py +12 -0
- telnyx/types/conferences/action_leave_params.py +32 -0
- telnyx/types/conferences/action_leave_response.py +12 -0
- telnyx/types/conferences/action_mute_params.py +23 -0
- telnyx/types/conferences/action_mute_response.py +12 -0
- telnyx/types/conferences/action_play_params.py +45 -0
- telnyx/types/conferences/action_play_response.py +12 -0
- telnyx/types/conferences/action_record_pause_params.py +25 -0
- telnyx/types/conferences/action_record_pause_response.py +12 -0
- telnyx/types/conferences/action_record_resume_params.py +25 -0
- telnyx/types/conferences/action_record_resume_response.py +12 -0
- telnyx/types/conferences/action_record_start_params.py +43 -0
- telnyx/types/conferences/action_record_start_response.py +12 -0
- telnyx/types/conferences/action_record_stop_params.py +31 -0
- telnyx/types/conferences/action_record_stop_response.py +12 -0
- telnyx/types/conferences/action_speak_params.py +117 -0
- telnyx/types/conferences/action_speak_response.py +12 -0
- telnyx/types/conferences/action_stop_params.py +23 -0
- telnyx/types/conferences/action_stop_response.py +12 -0
- telnyx/types/conferences/action_unhold_params.py +23 -0
- telnyx/types/conferences/action_unhold_response.py +12 -0
- telnyx/types/conferences/action_unmute_params.py +24 -0
- telnyx/types/conferences/action_unmute_response.py +12 -0
- telnyx/types/conferences/action_update_params.py +44 -0
- telnyx/types/conferences/action_update_response.py +12 -0
- telnyx/types/conferences/conference_command_result.py +9 -0
- telnyx/types/connection_list_active_calls_params.py +15 -0
- telnyx/types/connection_list_active_calls_response.py +30 -0
- telnyx/types/connection_list_params.py +70 -0
- telnyx/types/connection_list_response.py +53 -0
- telnyx/types/connection_retrieve_response.py +57 -0
- telnyx/types/connection_rtcp_settings.py +25 -0
- telnyx/types/connection_rtcp_settings_param.py +24 -0
- telnyx/types/consumed_data.py +15 -0
- telnyx/types/country_coverage_retrieve_country_response.py +78 -0
- telnyx/types/country_coverage_retrieve_response.py +78 -0
- telnyx/types/create_verification_response.py +10 -0
- telnyx/types/credential_connection.py +176 -0
- telnyx/types/credential_connection_create_params.py +175 -0
- telnyx/types/credential_connection_create_response.py +12 -0
- telnyx/types/credential_connection_delete_response.py +12 -0
- telnyx/types/credential_connection_list_params.py +70 -0
- telnyx/types/credential_connection_retrieve_response.py +12 -0
- telnyx/types/credential_connection_update_params.py +171 -0
- telnyx/types/credential_connection_update_response.py +12 -0
- telnyx/types/credential_connections/__init__.py +7 -0
- telnyx/types/credential_connections/action_check_registration_status_response.py +40 -0
- telnyx/types/credential_inbound.py +63 -0
- telnyx/types/credential_inbound_param.py +64 -0
- telnyx/types/credential_outbound.py +66 -0
- telnyx/types/credential_outbound_param.py +64 -0
- telnyx/types/custom_sip_header.py +13 -0
- telnyx/types/custom_sip_header_param.py +15 -0
- telnyx/types/custom_storage_configuration.py +22 -0
- telnyx/types/custom_storage_credential_create_params.py +21 -0
- telnyx/types/custom_storage_credential_create_response.py +21 -0
- telnyx/types/custom_storage_credential_retrieve_response.py +21 -0
- telnyx/types/custom_storage_credential_update_params.py +21 -0
- telnyx/types/custom_storage_credential_update_response.py +21 -0
- telnyx/types/customer_service_record.py +95 -0
- telnyx/types/customer_service_record_create_params.py +49 -0
- telnyx/types/customer_service_record_create_response.py +12 -0
- telnyx/types/customer_service_record_list_params.py +88 -0
- telnyx/types/customer_service_record_retrieve_response.py +12 -0
- telnyx/types/customer_service_record_verify_phone_number_coverage_params.py +14 -0
- telnyx/types/customer_service_record_verify_phone_number_coverage_response.py +50 -0
- telnyx/types/delivery_update_webhook_event.py +40 -0
- telnyx/types/delivery_update_webhook_event1.py +40 -0
- telnyx/types/detail_record_list_params.py +81 -0
- telnyx/types/detail_record_list_response.py +475 -0
- telnyx/types/dialogflow_config_param.py +15 -0
- telnyx/types/dialogflow_connection_create_params.py +28 -0
- telnyx/types/dialogflow_connection_create_response.py +30 -0
- telnyx/types/dialogflow_connection_retrieve_response.py +30 -0
- telnyx/types/dialogflow_connection_update_params.py +28 -0
- telnyx/types/dialogflow_connection_update_response.py +30 -0
- telnyx/types/doc_service_document.py +53 -0
- telnyx/types/document_delete_response.py +12 -0
- telnyx/types/document_generate_download_link_response.py +14 -0
- telnyx/types/document_link_list_params.py +34 -0
- telnyx/types/document_link_list_response.py +30 -0
- telnyx/types/document_list_params.py +71 -0
- telnyx/types/document_retrieve_response.py +12 -0
- telnyx/types/document_update_params.py +15 -0
- telnyx/types/document_update_response.py +12 -0
- telnyx/types/document_upload_json_params.py +39 -0
- telnyx/types/document_upload_json_response.py +12 -0
- telnyx/types/document_upload_params.py +39 -0
- telnyx/types/document_upload_response.py +12 -0
- telnyx/types/dtmf_type.py +7 -0
- telnyx/types/dynamic_emergency_address.py +52 -0
- telnyx/types/dynamic_emergency_address_create_params.py +31 -0
- telnyx/types/dynamic_emergency_address_create_response.py +12 -0
- telnyx/types/dynamic_emergency_address_delete_response.py +12 -0
- telnyx/types/dynamic_emergency_address_list_params.py +34 -0
- telnyx/types/dynamic_emergency_address_retrieve_response.py +12 -0
- telnyx/types/dynamic_emergency_endpoint.py +33 -0
- telnyx/types/dynamic_emergency_endpoint_create_params.py +16 -0
- telnyx/types/dynamic_emergency_endpoint_create_response.py +12 -0
- telnyx/types/dynamic_emergency_endpoint_delete_response.py +12 -0
- telnyx/types/dynamic_emergency_endpoint_list_params.py +34 -0
- telnyx/types/dynamic_emergency_endpoint_retrieve_response.py +12 -0
- telnyx/types/encrypted_media.py +8 -0
- telnyx/types/external_connection.py +75 -0
- telnyx/types/external_connection_create_params.py +62 -0
- telnyx/types/external_connection_create_response.py +12 -0
- telnyx/types/external_connection_delete_response.py +12 -0
- telnyx/types/external_connection_list_params.py +78 -0
- telnyx/types/external_connection_retrieve_response.py +12 -0
- telnyx/types/external_connection_update_location_params.py +14 -0
- telnyx/types/external_connection_update_location_response.py +19 -0
- telnyx/types/external_connection_update_params.py +56 -0
- telnyx/types/external_connection_update_response.py +12 -0
- telnyx/types/external_connections/__init__.py +28 -0
- telnyx/types/external_connections/civic_address_list_params.py +27 -0
- telnyx/types/external_connections/civic_address_list_response.py +60 -0
- telnyx/types/external_connections/civic_address_retrieve_response.py +60 -0
- telnyx/types/external_connections/external_connection_phone_number.py +35 -0
- telnyx/types/external_connections/log_message_dismiss_response.py +12 -0
- telnyx/types/external_connections/log_message_list_params.py +57 -0
- telnyx/types/external_connections/log_message_list_response.py +35 -0
- telnyx/types/external_connections/log_message_retrieve_response.py +39 -0
- telnyx/types/external_connections/phone_number_list_params.py +53 -0
- telnyx/types/external_connections/phone_number_retrieve_response.py +12 -0
- telnyx/types/external_connections/phone_number_update_params.py +14 -0
- telnyx/types/external_connections/phone_number_update_response.py +12 -0
- telnyx/types/external_connections/release_list_params.py +77 -0
- telnyx/types/external_connections/release_list_response.py +36 -0
- telnyx/types/external_connections/release_retrieve_response.py +40 -0
- telnyx/types/external_connections/tn_upload_entry.py +58 -0
- telnyx/types/external_connections/upload.py +33 -0
- telnyx/types/external_connections/upload_create_params.py +28 -0
- telnyx/types/external_connections/upload_create_response.py +15 -0
- telnyx/types/external_connections/upload_list_params.py +68 -0
- telnyx/types/external_connections/upload_pending_count_response.py +22 -0
- telnyx/types/external_connections/upload_refresh_status_response.py +12 -0
- telnyx/types/external_connections/upload_retrieve_response.py +12 -0
- telnyx/types/external_connections/upload_retry_response.py +12 -0
- telnyx/types/external_voice_integrations_pagination_meta.py +17 -0
- telnyx/types/fax.py +108 -0
- telnyx/types/fax_application.py +94 -0
- telnyx/types/fax_application_create_params.py +84 -0
- telnyx/types/fax_application_create_response.py +12 -0
- telnyx/types/fax_application_delete_response.py +12 -0
- telnyx/types/fax_application_list_params.py +64 -0
- telnyx/types/fax_application_retrieve_response.py +12 -0
- telnyx/types/fax_application_update_params.py +90 -0
- telnyx/types/fax_application_update_response.py +12 -0
- telnyx/types/fax_create_params.py +87 -0
- telnyx/types/fax_create_response.py +12 -0
- telnyx/types/fax_delivered_webhook_event.py +69 -0
- telnyx/types/fax_delivered_webhook_event1.py +69 -0
- telnyx/types/fax_failed_webhook_event.py +66 -0
- telnyx/types/fax_failed_webhook_event1.py +66 -0
- telnyx/types/fax_list_params.py +87 -0
- telnyx/types/fax_media_processed_webhook_event.py +63 -0
- telnyx/types/fax_media_processed_webhook_event1.py +63 -0
- telnyx/types/fax_queued_webhook_event.py +63 -0
- telnyx/types/fax_queued_webhook_event1.py +63 -0
- telnyx/types/fax_retrieve_response.py +12 -0
- telnyx/types/fax_sending_started_webhook_event.py +63 -0
- telnyx/types/fax_sending_started_webhook_event1.py +63 -0
- telnyx/types/faxes/__init__.py +6 -0
- telnyx/types/faxes/action_cancel_response.py +11 -0
- telnyx/types/faxes/action_refresh_response.py +11 -0
- telnyx/types/fqdn.py +38 -0
- telnyx/types/fqdn_connection.py +202 -0
- telnyx/types/fqdn_connection_create_params.py +163 -0
- telnyx/types/fqdn_connection_create_response.py +12 -0
- telnyx/types/fqdn_connection_delete_response.py +12 -0
- telnyx/types/fqdn_connection_list_params.py +70 -0
- telnyx/types/fqdn_connection_retrieve_response.py +12 -0
- telnyx/types/fqdn_connection_update_params.py +157 -0
- telnyx/types/fqdn_connection_update_response.py +12 -0
- telnyx/types/fqdn_create_params.py +27 -0
- telnyx/types/fqdn_create_response.py +12 -0
- telnyx/types/fqdn_delete_response.py +12 -0
- telnyx/types/fqdn_list_params.py +41 -0
- telnyx/types/fqdn_retrieve_response.py +12 -0
- telnyx/types/fqdn_update_params.py +27 -0
- telnyx/types/fqdn_update_response.py +12 -0
- telnyx/types/gcs_configuration_data.py +22 -0
- telnyx/types/gcs_configuration_data_param.py +21 -0
- telnyx/types/global_ip_allowed_port_list_response.py +31 -0
- telnyx/types/global_ip_assignment.py +21 -0
- telnyx/types/global_ip_assignment_create_response.py +12 -0
- telnyx/types/global_ip_assignment_delete_response.py +12 -0
- telnyx/types/global_ip_assignment_health_retrieve_params.py +71 -0
- telnyx/types/global_ip_assignment_health_retrieve_response.py +66 -0
- telnyx/types/global_ip_assignment_list_params.py +15 -0
- telnyx/types/global_ip_assignment_param.py +11 -0
- telnyx/types/global_ip_assignment_retrieve_response.py +12 -0
- telnyx/types/global_ip_assignment_update_params.py +20 -0
- telnyx/types/global_ip_assignment_update_response.py +12 -0
- telnyx/types/global_ip_assignments_usage_retrieve_params.py +71 -0
- telnyx/types/global_ip_assignments_usage_retrieve_response.py +75 -0
- telnyx/types/global_ip_create_params.py +19 -0
- telnyx/types/global_ip_create_response.py +26 -0
- telnyx/types/global_ip_delete_response.py +26 -0
- telnyx/types/global_ip_health_check_create_params.py +19 -0
- telnyx/types/global_ip_health_check_create_response.py +23 -0
- telnyx/types/global_ip_health_check_delete_response.py +23 -0
- telnyx/types/global_ip_health_check_list_params.py +15 -0
- telnyx/types/global_ip_health_check_list_response.py +18 -0
- telnyx/types/global_ip_health_check_retrieve_response.py +23 -0
- telnyx/types/global_ip_health_check_type_list_response.py +22 -0
- telnyx/types/global_ip_latency_retrieve_params.py +44 -0
- telnyx/types/global_ip_latency_retrieve_response.py +143 -0
- telnyx/types/global_ip_list_params.py +15 -0
- telnyx/types/global_ip_list_response.py +21 -0
- telnyx/types/global_ip_protocol_list_response.py +22 -0
- telnyx/types/global_ip_retrieve_response.py +26 -0
- telnyx/types/global_ip_usage_retrieve_params.py +44 -0
- telnyx/types/global_ip_usage_retrieve_response.py +47 -0
- telnyx/types/inbound_channel_list_response.py +19 -0
- telnyx/types/inbound_channel_update_params.py +12 -0
- telnyx/types/inbound_channel_update_response.py +19 -0
- telnyx/types/inbound_fqdn.py +111 -0
- telnyx/types/inbound_fqdn_param.py +113 -0
- telnyx/types/inbound_ip.py +111 -0
- telnyx/types/inbound_ip_param.py +112 -0
- telnyx/types/inbound_message_webhook_event.py +30 -0
- telnyx/types/inbound_message_webhook_event1.py +30 -0
- telnyx/types/inexplicit_number_order_create_params.py +97 -0
- telnyx/types/inexplicit_number_order_create_response.py +12 -0
- telnyx/types/inexplicit_number_order_list_params.py +15 -0
- telnyx/types/inexplicit_number_order_response.py +103 -0
- telnyx/types/inexplicit_number_order_retrieve_response.py +12 -0
- telnyx/types/integration_secret.py +20 -0
- telnyx/types/integration_secret_create_params.py +30 -0
- telnyx/types/integration_secret_create_response.py +10 -0
- telnyx/types/integration_secret_list_params.py +24 -0
- telnyx/types/interface_status.py +7 -0
- telnyx/types/inventory_coverage_list_params.py +91 -0
- telnyx/types/inventory_coverage_list_response.py +41 -0
- telnyx/types/invoice_list_params.py +18 -0
- telnyx/types/invoice_list_response.py +22 -0
- telnyx/types/invoice_retrieve_params.py +12 -0
- telnyx/types/invoice_retrieve_response.py +29 -0
- telnyx/types/ip.py +30 -0
- telnyx/types/ip_connection.py +160 -0
- telnyx/types/ip_connection_create_params.py +235 -0
- telnyx/types/ip_connection_create_response.py +12 -0
- telnyx/types/ip_connection_delete_response.py +12 -0
- telnyx/types/ip_connection_list_params.py +70 -0
- telnyx/types/ip_connection_retrieve_response.py +12 -0
- telnyx/types/ip_connection_update_params.py +154 -0
- telnyx/types/ip_connection_update_response.py +12 -0
- telnyx/types/ip_create_params.py +18 -0
- telnyx/types/ip_create_response.py +12 -0
- telnyx/types/ip_delete_response.py +12 -0
- telnyx/types/ip_list_params.py +37 -0
- telnyx/types/ip_retrieve_response.py +12 -0
- telnyx/types/ip_update_params.py +18 -0
- telnyx/types/ip_update_response.py +12 -0
- telnyx/types/ledger_billing_group_report.py +32 -0
- telnyx/types/ledger_billing_group_report_create_params.py +15 -0
- telnyx/types/ledger_billing_group_report_create_response.py +12 -0
- telnyx/types/ledger_billing_group_report_retrieve_response.py +12 -0
- telnyx/types/legacy/__init__.py +3 -0
- telnyx/types/legacy/reporting/__init__.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/__init__.py +24 -0
- telnyx/types/legacy/reporting/batch_detail_records/batch_csv_pagination_meta.py +17 -0
- telnyx/types/legacy/reporting/batch_detail_records/cdr_detailed_req_response.py +65 -0
- telnyx/types/legacy/reporting/batch_detail_records/mdr_detail_report_response.py +42 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_params.py +55 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_delete_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +15 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_retrieve_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_params.py +19 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_delete_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_list_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/stt_detail_report_response.py +27 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_params.py +57 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_response.py +13 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_delete_response.py +13 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +15 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_fields_response.py +25 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_response.py +13 -0
- telnyx/types/legacy/reporting/filter.py +36 -0
- telnyx/types/legacy/reporting/filter_param.py +35 -0
- telnyx/types/legacy/reporting/usage_report_retrieve_speech_to_text_params.py +17 -0
- telnyx/types/legacy/reporting/usage_report_retrieve_speech_to_text_response.py +11 -0
- telnyx/types/legacy/reporting/usage_reports/__init__.py +24 -0
- telnyx/types/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.py +45 -0
- telnyx/types/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.py +40 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_create_params.py +29 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_create_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_delete_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_list_params.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_retrieve_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_create_params.py +26 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_create_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_list_response.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_retrieve_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/standard_pagination_meta.py +17 -0
- telnyx/types/legacy/reporting/usage_reports/telco_data_aggregation.py +21 -0
- telnyx/types/legacy/reporting/usage_reports/telco_data_usage_record.py +19 -0
- telnyx/types/legacy/reporting/usage_reports/telco_data_usage_report_response.py +46 -0
- telnyx/types/legacy/reporting/usage_reports/voice_create_params.py +40 -0
- telnyx/types/legacy/reporting/usage_reports/voice_create_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/voice_delete_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/voice_list_params.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/voice_retrieve_response.py +13 -0
- telnyx/types/list_retrieve_all_response.py +30 -0
- telnyx/types/list_retrieve_by_zone_response.py +30 -0
- telnyx/types/managed_account.py +61 -0
- telnyx/types/managed_account_balance.py +25 -0
- telnyx/types/managed_account_create_params.py +48 -0
- telnyx/types/managed_account_create_response.py +12 -0
- telnyx/types/managed_account_get_allocatable_global_outbound_channels_response.py +39 -0
- telnyx/types/managed_account_list_params.py +83 -0
- telnyx/types/managed_account_list_response.py +52 -0
- telnyx/types/managed_account_retrieve_response.py +12 -0
- telnyx/types/managed_account_update_global_channel_limit_params.py +17 -0
- telnyx/types/managed_account_update_global_channel_limit_response.py +32 -0
- telnyx/types/managed_account_update_params.py +17 -0
- telnyx/types/managed_account_update_response.py +12 -0
- telnyx/types/managed_accounts/__init__.py +7 -0
- telnyx/types/managed_accounts/action_disable_response.py +12 -0
- telnyx/types/managed_accounts/action_enable_params.py +16 -0
- telnyx/types/managed_accounts/action_enable_response.py +12 -0
- telnyx/types/media_list_params.py +27 -0
- telnyx/types/media_list_response.py +15 -0
- telnyx/types/media_resource.py +24 -0
- telnyx/types/media_retrieve_response.py +12 -0
- telnyx/types/media_update_params.py +21 -0
- telnyx/types/media_update_response.py +12 -0
- telnyx/types/media_upload_params.py +24 -0
- telnyx/types/media_upload_response.py +12 -0
- telnyx/types/message_cancel_scheduled_response.py +230 -0
- telnyx/types/message_retrieve_response.py +19 -0
- telnyx/types/message_schedule_params.py +78 -0
- telnyx/types/message_schedule_response.py +12 -0
- telnyx/types/message_send_group_mms_params.py +43 -0
- telnyx/types/message_send_group_mms_response.py +12 -0
- telnyx/types/message_send_long_code_params.py +58 -0
- telnyx/types/message_send_long_code_response.py +12 -0
- telnyx/types/message_send_number_pool_params.py +57 -0
- telnyx/types/message_send_number_pool_response.py +12 -0
- telnyx/types/message_send_params.py +78 -0
- telnyx/types/message_send_response.py +12 -0
- telnyx/types/message_send_short_code_params.py +58 -0
- telnyx/types/message_send_short_code_response.py +12 -0
- telnyx/types/message_send_whatsapp_params.py +291 -0
- telnyx/types/message_send_whatsapp_response.py +345 -0
- telnyx/types/message_template.py +12 -0
- telnyx/types/messages/__init__.py +8 -0
- telnyx/types/messages/rc_generate_deeplink_params.py +15 -0
- telnyx/types/messages/rc_generate_deeplink_response.py +14 -0
- telnyx/types/messages/rc_send_params.py +67 -0
- telnyx/types/messages/rc_send_response.py +59 -0
- telnyx/types/messaging/__init__.py +9 -0
- telnyx/types/messaging/rc_invite_test_number_response.py +26 -0
- telnyx/types/messaging/rc_list_bulk_capabilities_params.py +17 -0
- telnyx/types/messaging/rc_list_bulk_capabilities_response.py +12 -0
- telnyx/types/messaging/rc_retrieve_capabilities_response.py +12 -0
- telnyx/types/messaging/rcs/__init__.py +6 -0
- telnyx/types/messaging/rcs/agent_list_params.py +15 -0
- telnyx/types/messaging/rcs/agent_update_params.py +19 -0
- telnyx/types/messaging/rcs_capabilities.py +25 -0
- telnyx/types/messaging_10dlc/__init__.py +75 -0
- telnyx/types/messaging_10dlc/alt_business_id_type.py +7 -0
- telnyx/types/messaging_10dlc/brand/__init__.py +9 -0
- telnyx/types/messaging_10dlc/brand/external_vetting_imports_params.py +23 -0
- telnyx/types/messaging_10dlc/brand/external_vetting_imports_response.py +43 -0
- telnyx/types/messaging_10dlc/brand/external_vetting_list_response.py +47 -0
- telnyx/types/messaging_10dlc/brand/external_vetting_order_params.py +17 -0
- telnyx/types/messaging_10dlc/brand/external_vetting_order_response.py +43 -0
- telnyx/types/messaging_10dlc/brand_create_params.py +92 -0
- telnyx/types/messaging_10dlc/brand_get_feedback_response.py +31 -0
- telnyx/types/messaging_10dlc/brand_identity_status.py +7 -0
- telnyx/types/messaging_10dlc/brand_list_params.py +51 -0
- telnyx/types/messaging_10dlc/brand_list_response.py +53 -0
- telnyx/types/messaging_10dlc/brand_retrieve_response.py +16 -0
- telnyx/types/messaging_10dlc/brand_retrieve_sms_otp_status_response.py +43 -0
- telnyx/types/messaging_10dlc/brand_trigger_sms_otp_params.py +20 -0
- telnyx/types/messaging_10dlc/brand_trigger_sms_otp_response.py +17 -0
- telnyx/types/messaging_10dlc/brand_update_params.py +97 -0
- telnyx/types/messaging_10dlc/brand_verify_sms_otp_params.py +14 -0
- telnyx/types/messaging_10dlc/campaign/__init__.py +7 -0
- telnyx/types/messaging_10dlc/campaign/osr_get_attributes_response.py +8 -0
- telnyx/types/messaging_10dlc/campaign/usecase_get_cost_params.py +11 -0
- telnyx/types/messaging_10dlc/campaign/usecase_get_cost_response.py +17 -0
- telnyx/types/messaging_10dlc/campaign_accept_sharing_response.py +8 -0
- telnyx/types/messaging_10dlc/campaign_builder/__init__.py +5 -0
- telnyx/types/messaging_10dlc/campaign_builder/brand_qualify_by_usecase_response.py +36 -0
- telnyx/types/messaging_10dlc/campaign_builder_submit_params.py +146 -0
- telnyx/types/messaging_10dlc/campaign_deactivate_response.py +15 -0
- telnyx/types/messaging_10dlc/campaign_get_mno_metadata_response.py +47 -0
- telnyx/types/messaging_10dlc/campaign_get_operation_status_response.py +8 -0
- telnyx/types/messaging_10dlc/campaign_get_sharing_status_response.py +16 -0
- telnyx/types/messaging_10dlc/campaign_list_params.py +39 -0
- telnyx/types/messaging_10dlc/campaign_list_response.py +217 -0
- telnyx/types/messaging_10dlc/campaign_sharing_status.py +21 -0
- telnyx/types/messaging_10dlc/campaign_submit_appeal_params.py +15 -0
- telnyx/types/messaging_10dlc/campaign_submit_appeal_response.py +13 -0
- telnyx/types/messaging_10dlc/campaign_update_params.py +47 -0
- telnyx/types/messaging_10dlc/entity_type.py +7 -0
- telnyx/types/messaging_10dlc/partner_campaign_list_params.py +39 -0
- telnyx/types/messaging_10dlc/partner_campaign_list_shared_by_me_params.py +20 -0
- telnyx/types/messaging_10dlc/partner_campaign_list_shared_by_me_response.py +41 -0
- telnyx/types/messaging_10dlc/partner_campaign_retrieve_sharing_status_response.py +10 -0
- telnyx/types/messaging_10dlc/partner_campaign_update_params.py +17 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_assign_params.py +29 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_assign_response.py +32 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_list_phone_number_status_params.py +15 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_list_phone_number_status_response.py +24 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_retrieve_phone_number_status_params.py +15 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_retrieve_phone_number_status_response.py +24 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_retrieve_status_response.py +22 -0
- telnyx/types/messaging_10dlc/phone_number_campaign.py +48 -0
- telnyx/types/messaging_10dlc/phone_number_campaign_create_params.py +17 -0
- telnyx/types/messaging_10dlc/phone_number_campaign_list_params.py +47 -0
- telnyx/types/messaging_10dlc/phone_number_campaign_update_params.py +17 -0
- telnyx/types/messaging_10dlc/stock_exchange.py +33 -0
- telnyx/types/messaging_10dlc/task_status.py +7 -0
- telnyx/types/messaging_10dlc/telnyx_brand.py +144 -0
- telnyx/types/messaging_10dlc/telnyx_campaign_csp.py +218 -0
- telnyx/types/messaging_10dlc/telnyx_downstream_campaign.py +158 -0
- telnyx/types/messaging_10dlc/vertical.py +25 -0
- telnyx/types/messaging_10dlc_get_enum_response.py +23 -0
- telnyx/types/messaging_error.py +27 -0
- telnyx/types/messaging_hosted_number_delete_response.py +12 -0
- telnyx/types/messaging_hosted_number_order_check_eligibility_params.py +14 -0
- telnyx/types/messaging_hosted_number_order_check_eligibility_response.py +42 -0
- telnyx/types/messaging_hosted_number_order_create_params.py +20 -0
- telnyx/types/messaging_hosted_number_order_create_response.py +12 -0
- telnyx/types/messaging_hosted_number_order_create_verification_codes_params.py +15 -0
- telnyx/types/messaging_hosted_number_order_create_verification_codes_response.py +28 -0
- telnyx/types/messaging_hosted_number_order_delete_response.py +12 -0
- telnyx/types/messaging_hosted_number_order_list_params.py +15 -0
- telnyx/types/messaging_hosted_number_order_retrieve_response.py +12 -0
- telnyx/types/messaging_hosted_number_order_validate_codes_params.py +18 -0
- telnyx/types/messaging_hosted_number_order_validate_codes_response.py +24 -0
- telnyx/types/messaging_hosted_number_orders/__init__.py +6 -0
- telnyx/types/messaging_hosted_number_orders/action_upload_file_params.py +20 -0
- telnyx/types/messaging_hosted_number_orders/action_upload_file_response.py +12 -0
- telnyx/types/messaging_numbers_bulk_update_create_params.py +23 -0
- telnyx/types/messaging_numbers_bulk_update_create_response.py +29 -0
- telnyx/types/messaging_numbers_bulk_update_retrieve_response.py +29 -0
- telnyx/types/messaging_optout_list_params.py +64 -0
- telnyx/types/messaging_optout_list_response.py +30 -0
- telnyx/types/messaging_profile.py +120 -0
- telnyx/types/messaging_profile_create_params.py +94 -0
- telnyx/types/messaging_profile_create_response.py +12 -0
- telnyx/types/messaging_profile_delete_response.py +12 -0
- telnyx/types/messaging_profile_list_params.py +25 -0
- telnyx/types/messaging_profile_list_phone_numbers_params.py +15 -0
- telnyx/types/messaging_profile_list_short_codes_params.py +15 -0
- telnyx/types/messaging_profile_retrieve_response.py +12 -0
- telnyx/types/messaging_profile_update_params.py +99 -0
- telnyx/types/messaging_profile_update_response.py +12 -0
- telnyx/types/messaging_profiles/__init__.py +11 -0
- telnyx/types/messaging_profiles/auto_resp_config.py +25 -0
- telnyx/types/messaging_profiles/auto_resp_config_response.py +10 -0
- telnyx/types/messaging_profiles/autoresp_config_create_params.py +19 -0
- telnyx/types/messaging_profiles/autoresp_config_delete_response.py +7 -0
- telnyx/types/messaging_profiles/autoresp_config_list_params.py +45 -0
- telnyx/types/messaging_profiles/autoresp_config_list_response.py +17 -0
- telnyx/types/messaging_profiles/autoresp_config_update_params.py +21 -0
- telnyx/types/messaging_tollfree/__init__.py +3 -0
- telnyx/types/messaging_tollfree/verification/__init__.py +17 -0
- telnyx/types/messaging_tollfree/verification/request_create_params.py +150 -0
- telnyx/types/messaging_tollfree/verification/request_list_params.py +31 -0
- telnyx/types/messaging_tollfree/verification/request_update_params.py +150 -0
- telnyx/types/messaging_tollfree/verification/tf_phone_number.py +13 -0
- telnyx/types/messaging_tollfree/verification/tf_phone_number_param.py +15 -0
- telnyx/types/messaging_tollfree/verification/tf_verification_status.py +9 -0
- telnyx/types/messaging_tollfree/verification/toll_free_verification_entity_type.py +9 -0
- telnyx/types/messaging_tollfree/verification/url.py +9 -0
- telnyx/types/messaging_tollfree/verification/url_param.py +11 -0
- telnyx/types/messaging_tollfree/verification/use_case_categories.py +51 -0
- telnyx/types/messaging_tollfree/verification/verification_request_egress.py +101 -0
- telnyx/types/messaging_tollfree/verification/verification_request_status.py +106 -0
- telnyx/types/messaging_tollfree/verification/volume.py +9 -0
- telnyx/types/messaging_url_domain_list_params.py +15 -0
- telnyx/types/messaging_url_domain_list_response.py +17 -0
- telnyx/types/mobile_network_operator_list_params.py +61 -0
- telnyx/types/mobile_network_operator_list_response.py +50 -0
- telnyx/types/mobile_phone_number.py +110 -0
- telnyx/types/mobile_phone_number_list_params.py +17 -0
- telnyx/types/mobile_phone_number_retrieve_response.py +12 -0
- telnyx/types/mobile_phone_number_update_params.py +72 -0
- telnyx/types/mobile_phone_number_update_response.py +12 -0
- telnyx/types/mobile_phone_numbers/__init__.py +7 -0
- telnyx/types/mobile_phone_numbers/messaging_list_params.py +15 -0
- telnyx/types/mobile_phone_numbers/messaging_list_response.py +53 -0
- telnyx/types/mobile_phone_numbers/messaging_retrieve_response.py +57 -0
- telnyx/types/mobile_push_credential_create_params.py +51 -0
- telnyx/types/mobile_push_credential_list_params.py +34 -0
- telnyx/types/mobile_voice_connection.py +56 -0
- telnyx/types/mobile_voice_connection_create_params.py +40 -0
- telnyx/types/mobile_voice_connection_create_response.py +12 -0
- telnyx/types/mobile_voice_connection_delete_response.py +12 -0
- telnyx/types/mobile_voice_connection_list_params.py +26 -0
- telnyx/types/mobile_voice_connection_retrieve_response.py +12 -0
- telnyx/types/mobile_voice_connection_update_params.py +40 -0
- telnyx/types/mobile_voice_connection_update_response.py +12 -0
- telnyx/types/month_detail.py +18 -0
- telnyx/types/network_coverage_list_params.py +75 -0
- telnyx/types/network_coverage_list_response.py +35 -0
- telnyx/types/network_create_params.py +12 -0
- telnyx/types/network_create_response.py +17 -0
- telnyx/types/network_delete_response.py +17 -0
- telnyx/types/network_interface.py +19 -0
- telnyx/types/network_interface_region.py +12 -0
- telnyx/types/network_list_interfaces_params.py +34 -0
- telnyx/types/network_list_interfaces_response.py +33 -0
- telnyx/types/network_list_params.py +25 -0
- telnyx/types/network_list_response.py +12 -0
- telnyx/types/network_retrieve_response.py +17 -0
- telnyx/types/network_update_params.py +12 -0
- telnyx/types/network_update_response.py +17 -0
- telnyx/types/networks/__init__.py +8 -0
- telnyx/types/networks/default_gateway_create_params.py +12 -0
- telnyx/types/networks/default_gateway_create_response.py +27 -0
- telnyx/types/networks/default_gateway_delete_response.py +27 -0
- telnyx/types/networks/default_gateway_retrieve_response.py +27 -0
- telnyx/types/notification_channel.py +31 -0
- telnyx/types/notification_channel_create_params.py +18 -0
- telnyx/types/notification_channel_create_response.py +13 -0
- telnyx/types/notification_channel_delete_response.py +13 -0
- telnyx/types/notification_channel_list_params.py +90 -0
- telnyx/types/notification_channel_retrieve_response.py +13 -0
- telnyx/types/notification_channel_update_params.py +18 -0
- telnyx/types/notification_channel_update_response.py +13 -0
- telnyx/types/notification_event_condition_list_params.py +90 -0
- telnyx/types/notification_event_condition_list_response.py +52 -0
- telnyx/types/notification_event_list_params.py +15 -0
- telnyx/types/notification_event_list_response.py +28 -0
- telnyx/types/notification_profile.py +24 -0
- telnyx/types/notification_profile_create_params.py +12 -0
- telnyx/types/notification_profile_create_response.py +13 -0
- telnyx/types/notification_profile_delete_response.py +13 -0
- telnyx/types/notification_profile_list_params.py +15 -0
- telnyx/types/notification_profile_retrieve_response.py +13 -0
- telnyx/types/notification_profile_update_params.py +12 -0
- telnyx/types/notification_profile_update_response.py +13 -0
- telnyx/types/notification_setting.py +55 -0
- telnyx/types/notification_setting_create_params.py +27 -0
- telnyx/types/notification_setting_create_response.py +12 -0
- telnyx/types/notification_setting_delete_response.py +12 -0
- telnyx/types/notification_setting_list_params.py +90 -0
- telnyx/types/notification_setting_retrieve_response.py +12 -0
- telnyx/types/number_block_order.py +48 -0
- telnyx/types/number_block_order_create_params.py +24 -0
- telnyx/types/number_block_order_create_response.py +12 -0
- telnyx/types/number_block_order_list_params.py +48 -0
- telnyx/types/number_block_order_retrieve_response.py +12 -0
- telnyx/types/number_lookup_retrieve_params.py +12 -0
- telnyx/types/number_lookup_retrieve_response.py +145 -0
- telnyx/types/number_order_create_params.py +35 -0
- telnyx/types/number_order_create_response.py +12 -0
- telnyx/types/number_order_list_params.py +54 -0
- telnyx/types/number_order_list_response.py +56 -0
- telnyx/types/number_order_phone_number.py +55 -0
- telnyx/types/number_order_phone_number_list_params.py +25 -0
- telnyx/types/number_order_phone_number_list_response.py +15 -0
- telnyx/types/number_order_phone_number_retrieve_response.py +12 -0
- telnyx/types/number_order_phone_number_update_requirement_group_params.py +12 -0
- telnyx/types/number_order_phone_number_update_requirement_group_response.py +54 -0
- telnyx/types/number_order_phone_number_update_requirements_params.py +14 -0
- telnyx/types/number_order_phone_number_update_requirements_response.py +12 -0
- telnyx/types/number_order_retrieve_response.py +12 -0
- telnyx/types/number_order_status_update_webhook_event.py +38 -0
- telnyx/types/number_order_status_update_webhook_event1.py +38 -0
- telnyx/types/number_order_update_params.py +17 -0
- telnyx/types/number_order_update_response.py +12 -0
- telnyx/types/number_order_with_phone_numbers.py +47 -0
- telnyx/types/number_pool_settings.py +59 -0
- telnyx/types/number_pool_settings_param.py +59 -0
- telnyx/types/number_reservation.py +30 -0
- telnyx/types/number_reservation_create_params.py +17 -0
- telnyx/types/number_reservation_create_response.py +12 -0
- telnyx/types/number_reservation_list_params.py +51 -0
- telnyx/types/number_reservation_retrieve_response.py +12 -0
- telnyx/types/number_reservations/__init__.py +5 -0
- telnyx/types/number_reservations/action_extend_response.py +12 -0
- telnyx/types/numbers_feature_create_params.py +13 -0
- telnyx/types/numbers_feature_create_response.py +17 -0
- telnyx/types/oauth_client.py +59 -0
- telnyx/types/oauth_client_create_params.py +39 -0
- telnyx/types/oauth_client_create_response.py +12 -0
- telnyx/types/oauth_client_list_params.py +38 -0
- telnyx/types/oauth_client_retrieve_response.py +12 -0
- telnyx/types/oauth_client_update_params.py +36 -0
- telnyx/types/oauth_client_update_response.py +12 -0
- telnyx/types/oauth_grant.py +29 -0
- telnyx/types/oauth_grant_delete_response.py +12 -0
- telnyx/types/oauth_grant_list_params.py +17 -0
- telnyx/types/oauth_grant_retrieve_response.py +12 -0
- telnyx/types/oauth_grants_params.py +15 -0
- telnyx/types/oauth_grants_response.py +10 -0
- telnyx/types/oauth_introspect_params.py +12 -0
- telnyx/types/oauth_introspect_response.py +30 -0
- telnyx/types/oauth_register_params.py +39 -0
- telnyx/types/oauth_register_response.py +45 -0
- telnyx/types/oauth_retrieve_authorize_params.py +30 -0
- telnyx/types/oauth_retrieve_jwks_response.py +25 -0
- telnyx/types/oauth_retrieve_response.py +47 -0
- telnyx/types/oauth_token_params.py +33 -0
- telnyx/types/oauth_token_response.py +25 -0
- telnyx/types/operator_connect/__init__.py +5 -0
- telnyx/types/operator_connect/action_refresh_response.py +15 -0
- telnyx/types/organizations/__init__.py +9 -0
- telnyx/types/organizations/user_get_groups_report_response.py +60 -0
- telnyx/types/organizations/user_list_params.py +30 -0
- telnyx/types/organizations/user_list_response.py +57 -0
- telnyx/types/organizations/user_retrieve_params.py +16 -0
- telnyx/types/organizations/user_retrieve_response.py +61 -0
- telnyx/types/organizations/users/__init__.py +5 -0
- telnyx/types/organizations/users/action_remove_response.py +61 -0
- telnyx/types/ota_update_list_params.py +37 -0
- telnyx/types/ota_update_list_response.py +37 -0
- telnyx/types/ota_update_retrieve_response.py +81 -0
- telnyx/types/outbound_call_recording.py +28 -0
- telnyx/types/outbound_call_recording_param.py +29 -0
- telnyx/types/outbound_fqdn.py +86 -0
- telnyx/types/outbound_fqdn_param.py +85 -0
- telnyx/types/outbound_ip.py +73 -0
- telnyx/types/outbound_ip_param.py +71 -0
- telnyx/types/outbound_message_payload.py +216 -0
- telnyx/types/outbound_voice_profile.py +114 -0
- telnyx/types/outbound_voice_profile_create_params.py +102 -0
- telnyx/types/outbound_voice_profile_create_response.py +12 -0
- telnyx/types/outbound_voice_profile_delete_response.py +12 -0
- telnyx/types/outbound_voice_profile_list_params.py +69 -0
- telnyx/types/outbound_voice_profile_retrieve_response.py +12 -0
- telnyx/types/outbound_voice_profile_update_params.py +102 -0
- telnyx/types/outbound_voice_profile_update_response.py +12 -0
- telnyx/types/pagination_meta.py +17 -0
- telnyx/types/pagination_meta_cloudflare_ip_list_sync.py +15 -0
- telnyx/types/pagination_meta_oauth.py +21 -0
- telnyx/types/payment/__init__.py +7 -0
- telnyx/types/payment/auto_recharge_pref_list_response.py +37 -0
- telnyx/types/payment/auto_recharge_pref_update_params.py +26 -0
- telnyx/types/payment/auto_recharge_pref_update_response.py +37 -0
- telnyx/types/phone_number.py +49 -0
- telnyx/types/phone_number_blocks/__init__.py +12 -0
- telnyx/types/phone_number_blocks/job.py +60 -0
- telnyx/types/phone_number_blocks/job_delete_phone_number_block_params.py +11 -0
- telnyx/types/phone_number_blocks/job_delete_phone_number_block_response.py +12 -0
- telnyx/types/phone_number_blocks/job_error.py +32 -0
- telnyx/types/phone_number_blocks/job_list_params.py +40 -0
- telnyx/types/phone_number_blocks/job_retrieve_response.py +12 -0
- telnyx/types/phone_number_delete_response.py +120 -0
- telnyx/types/phone_number_detailed.py +143 -0
- telnyx/types/phone_number_list_params.py +146 -0
- telnyx/types/phone_number_retrieve_response.py +12 -0
- telnyx/types/phone_number_slim_list_params.py +150 -0
- telnyx/types/phone_number_slim_list_response.py +118 -0
- telnyx/types/phone_number_update_params.py +34 -0
- telnyx/types/phone_number_update_response.py +12 -0
- telnyx/types/phone_numbers/__init__.py +52 -0
- telnyx/types/phone_numbers/action_change_bundle_status_params.py +18 -0
- telnyx/types/phone_numbers/action_change_bundle_status_response.py +12 -0
- telnyx/types/phone_numbers/action_enable_emergency_params.py +15 -0
- telnyx/types/phone_numbers/action_enable_emergency_response.py +12 -0
- telnyx/types/phone_numbers/action_verify_ownership_params.py +14 -0
- telnyx/types/phone_numbers/action_verify_ownership_response.py +30 -0
- telnyx/types/phone_numbers/call_forwarding.py +29 -0
- telnyx/types/phone_numbers/call_forwarding_param.py +28 -0
- telnyx/types/phone_numbers/call_recording.py +24 -0
- telnyx/types/phone_numbers/call_recording_param.py +23 -0
- telnyx/types/phone_numbers/cnam_listing.py +24 -0
- telnyx/types/phone_numbers/cnam_listing_param.py +24 -0
- telnyx/types/phone_numbers/csv_download.py +25 -0
- telnyx/types/phone_numbers/csv_download_create_params.py +103 -0
- telnyx/types/phone_numbers/csv_download_create_response.py +12 -0
- telnyx/types/phone_numbers/csv_download_list_params.py +15 -0
- telnyx/types/phone_numbers/csv_download_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/job_delete_batch_params.py +13 -0
- telnyx/types/phone_numbers/job_delete_batch_response.py +12 -0
- telnyx/types/phone_numbers/job_list_params.py +31 -0
- telnyx/types/phone_numbers/job_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/job_update_batch_params.py +144 -0
- telnyx/types/phone_numbers/job_update_batch_response.py +12 -0
- telnyx/types/phone_numbers/job_update_emergency_settings_batch_params.py +24 -0
- telnyx/types/phone_numbers/job_update_emergency_settings_batch_response.py +12 -0
- telnyx/types/phone_numbers/media_features.py +30 -0
- telnyx/types/phone_numbers/media_features_param.py +30 -0
- telnyx/types/phone_numbers/messaging_list_params.py +15 -0
- telnyx/types/phone_numbers/messaging_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/messaging_update_params.py +25 -0
- telnyx/types/phone_numbers/messaging_update_response.py +12 -0
- telnyx/types/phone_numbers/phone_number_with_voice_settings.py +86 -0
- telnyx/types/phone_numbers/phone_numbers_job.py +87 -0
- telnyx/types/phone_numbers/update_voice_settings_param.py +52 -0
- telnyx/types/phone_numbers/voice_list_params.py +60 -0
- telnyx/types/phone_numbers/voice_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/voice_update_params.py +52 -0
- telnyx/types/phone_numbers/voice_update_response.py +12 -0
- telnyx/types/phone_numbers/voicemail_create_params.py +15 -0
- telnyx/types/phone_numbers/voicemail_create_response.py +12 -0
- telnyx/types/phone_numbers/voicemail_pref_response.py +15 -0
- telnyx/types/phone_numbers/voicemail_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/voicemail_update_params.py +15 -0
- telnyx/types/phone_numbers/voicemail_update_response.py +12 -0
- telnyx/types/phone_numbers_regulatory_requirement_retrieve_params.py +25 -0
- telnyx/types/phone_numbers_regulatory_requirement_retrieve_response.py +62 -0
- telnyx/types/portability_check_run_params.py +14 -0
- telnyx/types/portability_check_run_response.py +31 -0
- telnyx/types/porting/__init__.py +24 -0
- telnyx/types/porting/event_list_params.py +58 -0
- telnyx/types/porting/event_list_response.py +407 -0
- telnyx/types/porting/event_retrieve_response.py +412 -0
- telnyx/types/porting/export_porting_orders_csv_report.py +47 -0
- telnyx/types/porting/export_porting_orders_csv_report_param.py +49 -0
- telnyx/types/porting/loa_configuration_create_params.py +63 -0
- telnyx/types/porting/loa_configuration_create_response.py +12 -0
- telnyx/types/porting/loa_configuration_list_params.py +15 -0
- telnyx/types/porting/loa_configuration_preview_0_params.py +63 -0
- telnyx/types/porting/loa_configuration_retrieve_response.py +12 -0
- telnyx/types/porting/loa_configuration_update_params.py +63 -0
- telnyx/types/porting/loa_configuration_update_response.py +12 -0
- telnyx/types/porting/porting_loa_configuration.py +83 -0
- telnyx/types/porting/porting_report.py +39 -0
- telnyx/types/porting/report_create_params.py +17 -0
- telnyx/types/porting/report_create_response.py +12 -0
- telnyx/types/porting/report_list_params.py +34 -0
- telnyx/types/porting/report_retrieve_response.py +12 -0
- telnyx/types/porting_list_uk_carriers_response.py +38 -0
- telnyx/types/porting_order.py +101 -0
- telnyx/types/porting_order_activation_settings.py +39 -0
- telnyx/types/porting_order_create_params.py +21 -0
- telnyx/types/porting_order_create_response.py +12 -0
- telnyx/types/porting_order_documents.py +17 -0
- telnyx/types/porting_order_documents_param.py +18 -0
- telnyx/types/porting_order_end_user.py +15 -0
- telnyx/types/porting_order_end_user_admin.py +33 -0
- telnyx/types/porting_order_end_user_admin_param.py +34 -0
- telnyx/types/porting_order_end_user_location.py +27 -0
- telnyx/types/porting_order_end_user_location_param.py +28 -0
- telnyx/types/porting_order_end_user_param.py +16 -0
- telnyx/types/porting_order_list_params.py +138 -0
- telnyx/types/porting_order_messaging.py +30 -0
- telnyx/types/porting_order_misc.py +32 -0
- telnyx/types/porting_order_misc_param.py +33 -0
- telnyx/types/porting_order_phone_number_configuration.py +23 -0
- telnyx/types/porting_order_phone_number_configuration_param.py +26 -0
- telnyx/types/porting_order_requirement.py +22 -0
- telnyx/types/porting_order_retrieve_allowed_foc_windows_response.py +26 -0
- telnyx/types/porting_order_retrieve_exception_types_response.py +12 -0
- telnyx/types/porting_order_retrieve_loa_template_params.py +15 -0
- telnyx/types/porting_order_retrieve_params.py +12 -0
- telnyx/types/porting_order_retrieve_requirements_params.py +15 -0
- telnyx/types/porting_order_retrieve_requirements_response.py +47 -0
- telnyx/types/porting_order_retrieve_response.py +19 -0
- telnyx/types/porting_order_retrieve_sub_request_response.py +19 -0
- telnyx/types/porting_order_type.py +7 -0
- telnyx/types/porting_order_update_params.py +78 -0
- telnyx/types/porting_order_update_response.py +19 -0
- telnyx/types/porting_order_user_feedback.py +18 -0
- telnyx/types/porting_order_user_feedback_param.py +19 -0
- telnyx/types/porting_orders/__init__.py +67 -0
- telnyx/types/porting_orders/action_activate_response.py +12 -0
- telnyx/types/porting_orders/action_cancel_response.py +19 -0
- telnyx/types/porting_orders/action_confirm_response.py +19 -0
- telnyx/types/porting_orders/action_requirement_initiate_params.py +29 -0
- telnyx/types/porting_orders/action_requirement_initiate_response.py +45 -0
- telnyx/types/porting_orders/action_requirement_list_params.py +55 -0
- telnyx/types/porting_orders/action_requirement_list_response.py +41 -0
- telnyx/types/porting_orders/action_share_params.py +15 -0
- telnyx/types/porting_orders/action_share_response.py +39 -0
- telnyx/types/porting_orders/activation_job_list_params.py +15 -0
- telnyx/types/porting_orders/activation_job_retrieve_response.py +12 -0
- telnyx/types/porting_orders/activation_job_update_params.py +21 -0
- telnyx/types/porting_orders/activation_job_update_response.py +12 -0
- telnyx/types/porting_orders/additional_document_create_params.py +20 -0
- telnyx/types/porting_orders/additional_document_create_response.py +42 -0
- telnyx/types/porting_orders/additional_document_list_params.py +45 -0
- telnyx/types/porting_orders/additional_document_list_response.py +38 -0
- telnyx/types/porting_orders/associated_phone_number_create_params.py +22 -0
- telnyx/types/porting_orders/associated_phone_number_create_response.py +12 -0
- telnyx/types/porting_orders/associated_phone_number_delete_response.py +12 -0
- telnyx/types/porting_orders/associated_phone_number_list_params.py +47 -0
- telnyx/types/porting_orders/comment_create_params.py +11 -0
- telnyx/types/porting_orders/comment_create_response.py +31 -0
- telnyx/types/porting_orders/comment_list_params.py +15 -0
- telnyx/types/porting_orders/comment_list_response.py +27 -0
- telnyx/types/porting_orders/phone_number_block_create_params.py +46 -0
- telnyx/types/porting_orders/phone_number_block_create_response.py +12 -0
- telnyx/types/porting_orders/phone_number_block_delete_response.py +12 -0
- telnyx/types/porting_orders/phone_number_block_list_params.py +105 -0
- telnyx/types/porting_orders/phone_number_configuration_create_params.py +20 -0
- telnyx/types/porting_orders/phone_number_configuration_create_response.py +32 -0
- telnyx/types/porting_orders/phone_number_configuration_list_params.py +69 -0
- telnyx/types/porting_orders/phone_number_configuration_list_response.py +28 -0
- telnyx/types/porting_orders/phone_number_extension_create_params.py +53 -0
- telnyx/types/porting_orders/phone_number_extension_create_response.py +12 -0
- telnyx/types/porting_orders/phone_number_extension_delete_response.py +12 -0
- telnyx/types/porting_orders/phone_number_extension_list_params.py +44 -0
- telnyx/types/porting_orders/porting_associated_phone_number.py +51 -0
- telnyx/types/porting_orders/porting_phone_number_block.py +71 -0
- telnyx/types/porting_orders/porting_phone_number_extension.py +68 -0
- telnyx/types/porting_orders/verification_code_list_params.py +38 -0
- telnyx/types/porting_orders/verification_code_list_response.py +31 -0
- telnyx/types/porting_orders/verification_code_send_params.py +15 -0
- telnyx/types/porting_orders/verification_code_verify_params.py +18 -0
- telnyx/types/porting_orders/verification_code_verify_response.py +35 -0
- telnyx/types/porting_orders_activation_job.py +46 -0
- telnyx/types/porting_phone_number_list_params.py +33 -0
- telnyx/types/porting_phone_number_list_response.py +69 -0
- telnyx/types/portout_details.py +98 -0
- telnyx/types/portout_list_params.py +93 -0
- telnyx/types/portout_list_rejection_codes_params.py +26 -0
- telnyx/types/portout_list_rejection_codes_response.py +19 -0
- telnyx/types/portout_retrieve_response.py +12 -0
- telnyx/types/portout_update_status_params.py +20 -0
- telnyx/types/portout_update_status_response.py +12 -0
- telnyx/types/portouts/__init__.py +20 -0
- telnyx/types/portouts/comment_create_params.py +12 -0
- telnyx/types/portouts/comment_create_response.py +33 -0
- telnyx/types/portouts/comment_list_response.py +36 -0
- telnyx/types/portouts/event_list_params.py +49 -0
- telnyx/types/portouts/event_list_response.py +172 -0
- telnyx/types/portouts/event_retrieve_response.py +175 -0
- telnyx/types/portouts/export_portouts_csv_report.py +42 -0
- telnyx/types/portouts/export_portouts_csv_report_param.py +44 -0
- telnyx/types/portouts/portout_report.py +39 -0
- telnyx/types/portouts/report_create_params.py +17 -0
- telnyx/types/portouts/report_create_response.py +12 -0
- telnyx/types/portouts/report_list_params.py +34 -0
- telnyx/types/portouts/report_retrieve_response.py +12 -0
- telnyx/types/portouts/supporting_document_create_params.py +21 -0
- telnyx/types/portouts/supporting_document_create_response.py +34 -0
- telnyx/types/portouts/supporting_document_list_response.py +34 -0
- telnyx/types/private_wireless_gateway.py +42 -0
- telnyx/types/private_wireless_gateway_create_params.py +21 -0
- telnyx/types/private_wireless_gateway_create_response.py +12 -0
- telnyx/types/private_wireless_gateway_delete_response.py +12 -0
- telnyx/types/private_wireless_gateway_list_params.py +32 -0
- telnyx/types/private_wireless_gateway_retrieve_response.py +12 -0
- telnyx/types/private_wireless_gateway_status.py +32 -0
- telnyx/types/public_internet_gateway_create_params.py +18 -0
- telnyx/types/public_internet_gateway_create_response.py +21 -0
- telnyx/types/public_internet_gateway_delete_response.py +21 -0
- telnyx/types/public_internet_gateway_list_params.py +31 -0
- telnyx/types/public_internet_gateway_list_response.py +16 -0
- telnyx/types/public_internet_gateway_retrieve_response.py +21 -0
- telnyx/types/push_credential.py +39 -0
- telnyx/types/push_credential_response.py +14 -0
- telnyx/types/pwg_assigned_resources_summary.py +19 -0
- telnyx/types/queue_retrieve_response.py +40 -0
- telnyx/types/queues/__init__.py +8 -0
- telnyx/types/queues/call_list_params.py +15 -0
- telnyx/types/queues/call_list_response.py +51 -0
- telnyx/types/queues/call_retrieve_response.py +55 -0
- telnyx/types/queues/call_update_params.py +14 -0
- telnyx/types/rcs_agent.py +37 -0
- telnyx/types/rcs_agent_message.py +83 -0
- telnyx/types/rcs_agent_message_param.py +85 -0
- telnyx/types/rcs_agent_response.py +12 -0
- telnyx/types/rcs_card_content.py +37 -0
- telnyx/types/rcs_card_content_param.py +38 -0
- telnyx/types/rcs_content_info.py +18 -0
- telnyx/types/rcs_content_info_param.py +18 -0
- telnyx/types/rcs_suggestion.py +138 -0
- telnyx/types/rcs_suggestion_param.py +140 -0
- telnyx/types/record.py +21 -0
- telnyx/types/recording_delete_response.py +12 -0
- telnyx/types/recording_list_params.py +79 -0
- telnyx/types/recording_response_data.py +74 -0
- telnyx/types/recording_retrieve_response.py +12 -0
- telnyx/types/recording_transcription.py +36 -0
- telnyx/types/recording_transcription_delete_response.py +12 -0
- telnyx/types/recording_transcription_list_response.py +32 -0
- telnyx/types/recording_transcription_retrieve_response.py +12 -0
- telnyx/types/recordings/__init__.py +5 -0
- telnyx/types/recordings/action_delete_params.py +14 -0
- telnyx/types/region_list_response.py +31 -0
- telnyx/types/regulatory_requirement_retrieve_params.py +38 -0
- telnyx/types/regulatory_requirement_retrieve_response.py +58 -0
- telnyx/types/replaced_link_click_webhook_event.py +32 -0
- telnyx/types/replaced_link_click_webhook_event1.py +32 -0
- telnyx/types/report_list_mdrs_params.py +36 -0
- telnyx/types/report_list_mdrs_response.py +65 -0
- telnyx/types/report_list_wdrs_params.py +52 -0
- telnyx/types/report_list_wdrs_response.py +83 -0
- telnyx/types/reports/__init__.py +15 -0
- telnyx/types/reports/cdr_usage_report_fetch_sync_params.py +23 -0
- telnyx/types/reports/cdr_usage_report_fetch_sync_response.py +42 -0
- telnyx/types/reports/mdr_usage_report.py +66 -0
- telnyx/types/reports/mdr_usage_report_create_params.py +21 -0
- telnyx/types/reports/mdr_usage_report_create_response.py +12 -0
- telnyx/types/reports/mdr_usage_report_delete_response.py +12 -0
- telnyx/types/reports/mdr_usage_report_fetch_sync_params.py +22 -0
- telnyx/types/reports/mdr_usage_report_fetch_sync_response.py +12 -0
- telnyx/types/reports/mdr_usage_report_list_params.py +15 -0
- telnyx/types/reports/mdr_usage_report_retrieve_response.py +12 -0
- telnyx/types/reports/pagination_meta_reporting.py +17 -0
- telnyx/types/requirement_group.py +47 -0
- telnyx/types/requirement_group_create_params.py +27 -0
- telnyx/types/requirement_group_list_params.py +38 -0
- telnyx/types/requirement_group_list_response.py +10 -0
- telnyx/types/requirement_group_update_params.py +23 -0
- telnyx/types/requirement_list_params.py +58 -0
- telnyx/types/requirement_list_response.py +46 -0
- telnyx/types/requirement_retrieve_response.py +50 -0
- telnyx/types/requirement_type_list_params.py +36 -0
- telnyx/types/requirement_type_list_response.py +15 -0
- telnyx/types/requirement_type_retrieve_response.py +12 -0
- telnyx/types/reserved_phone_number.py +38 -0
- telnyx/types/reserved_phone_number_param.py +11 -0
- telnyx/types/room.py +51 -0
- telnyx/types/room_composition.py +77 -0
- telnyx/types/room_composition_create_params.py +43 -0
- telnyx/types/room_composition_create_response.py +12 -0
- telnyx/types/room_composition_list_params.py +50 -0
- telnyx/types/room_composition_retrieve_response.py +12 -0
- telnyx/types/room_create_params.py +37 -0
- telnyx/types/room_create_response.py +12 -0
- telnyx/types/room_list_params.py +64 -0
- telnyx/types/room_participant_list_params.py +84 -0
- telnyx/types/room_participant_retrieve_response.py +12 -0
- telnyx/types/room_recording_delete_bulk_params.py +78 -0
- telnyx/types/room_recording_delete_bulk_response.py +16 -0
- telnyx/types/room_recording_list_params.py +78 -0
- telnyx/types/room_recording_list_response.py +58 -0
- telnyx/types/room_recording_retrieve_response.py +62 -0
- telnyx/types/room_retrieve_params.py +12 -0
- telnyx/types/room_retrieve_response.py +12 -0
- telnyx/types/room_session.py +33 -0
- telnyx/types/room_update_params.py +37 -0
- telnyx/types/room_update_response.py +12 -0
- telnyx/types/rooms/__init__.py +17 -0
- telnyx/types/rooms/action_generate_join_client_token_params.py +21 -0
- telnyx/types/rooms/action_generate_join_client_token_response.py +24 -0
- telnyx/types/rooms/action_refresh_client_token_params.py +17 -0
- telnyx/types/rooms/action_refresh_client_token_response.py +19 -0
- telnyx/types/rooms/session_list_0_params.py +82 -0
- telnyx/types/rooms/session_list_1_params.py +79 -0
- telnyx/types/rooms/session_retrieve_params.py +12 -0
- telnyx/types/rooms/session_retrieve_participants_params.py +87 -0
- telnyx/types/rooms/session_retrieve_response.py +12 -0
- telnyx/types/rooms/sessions/__init__.py +11 -0
- telnyx/types/rooms/sessions/action_end_response.py +15 -0
- telnyx/types/rooms/sessions/action_kick_params.py +21 -0
- telnyx/types/rooms/sessions/action_kick_response.py +15 -0
- telnyx/types/rooms/sessions/action_mute_params.py +21 -0
- telnyx/types/rooms/sessions/action_mute_response.py +15 -0
- telnyx/types/rooms/sessions/action_unmute_params.py +21 -0
- telnyx/types/rooms/sessions/action_unmute_response.py +15 -0
- telnyx/types/s3_configuration_data.py +25 -0
- telnyx/types/s3_configuration_data_param.py +24 -0
- telnyx/types/service_plan.py +7 -0
- telnyx/types/seti_retrieve_black_box_test_results_params.py +19 -0
- telnyx/types/seti_retrieve_black_box_test_results_response.py +30 -0
- telnyx/types/settings_param.py +26 -0
- telnyx/types/shared/__init__.py +23 -0
- telnyx/types/shared/api_error.py +27 -0
- telnyx/types/shared/available_phone_numbers_metadata.py +13 -0
- telnyx/types/shared/connections_pagination_meta.py +17 -0
- telnyx/types/shared/doc_reqs_requirement_type.py +62 -0
- telnyx/types/shared/hosted_number.py +35 -0
- telnyx/types/shared/inbound_message_payload.py +213 -0
- telnyx/types/shared/messaging_feature_set.py +23 -0
- telnyx/types/shared/messaging_hosted_number_order.py +42 -0
- telnyx/types/shared/messaging_pagination_meta.py +15 -0
- telnyx/types/shared/metadata.py +24 -0
- telnyx/types/shared/number_health_metrics.py +23 -0
- telnyx/types/shared/phone_number_with_messaging_settings.py +67 -0
- telnyx/types/shared/porting_order_status.py +30 -0
- telnyx/types/shared/porting_orders_exception_type.py +40 -0
- telnyx/types/shared/room_participant.py +30 -0
- telnyx/types/shared/short_code.py +34 -0
- telnyx/types/shared/sim_card_status.py +40 -0
- telnyx/types/shared/simple_sim_card.py +104 -0
- telnyx/types/shared/sub_number_order_regulatory_requirement_with_value.py +23 -0
- telnyx/types/shared_params/__init__.py +3 -0
- telnyx/types/shared_params/sim_card_status.py +11 -0
- telnyx/types/short_code_list_params.py +36 -0
- telnyx/types/short_code_retrieve_response.py +12 -0
- telnyx/types/short_code_update_params.py +16 -0
- telnyx/types/short_code_update_response.py +12 -0
- telnyx/types/sim_card.py +203 -0
- telnyx/types/sim_card_data_usage_notification.py +37 -0
- telnyx/types/sim_card_data_usage_notification_create_params.py +23 -0
- telnyx/types/sim_card_data_usage_notification_create_response.py +13 -0
- telnyx/types/sim_card_data_usage_notification_delete_response.py +13 -0
- telnyx/types/sim_card_data_usage_notification_list_params.py +20 -0
- telnyx/types/sim_card_data_usage_notification_retrieve_response.py +13 -0
- telnyx/types/sim_card_data_usage_notification_update_params.py +23 -0
- telnyx/types/sim_card_data_usage_notification_update_response.py +13 -0
- telnyx/types/sim_card_delete_params.py +15 -0
- telnyx/types/sim_card_delete_response.py +12 -0
- telnyx/types/sim_card_get_activation_code_response.py +18 -0
- telnyx/types/sim_card_get_device_details_response.py +32 -0
- telnyx/types/sim_card_get_public_ip_response.py +35 -0
- telnyx/types/sim_card_group.py +51 -0
- telnyx/types/sim_card_group_create_params.py +23 -0
- telnyx/types/sim_card_group_create_response.py +12 -0
- telnyx/types/sim_card_group_delete_response.py +12 -0
- telnyx/types/sim_card_group_list_params.py +26 -0
- telnyx/types/sim_card_group_list_response.py +54 -0
- telnyx/types/sim_card_group_retrieve_params.py +12 -0
- telnyx/types/sim_card_group_retrieve_response.py +12 -0
- telnyx/types/sim_card_group_update_params.py +23 -0
- telnyx/types/sim_card_group_update_response.py +12 -0
- telnyx/types/sim_card_groups/__init__.py +23 -0
- telnyx/types/sim_card_groups/action_list_params.py +34 -0
- telnyx/types/sim_card_groups/action_remove_private_wireless_gateway_response.py +17 -0
- telnyx/types/sim_card_groups/action_remove_wireless_blocklist_response.py +17 -0
- telnyx/types/sim_card_groups/action_retrieve_response.py +17 -0
- telnyx/types/sim_card_groups/action_set_private_wireless_gateway_params.py +12 -0
- telnyx/types/sim_card_groups/action_set_private_wireless_gateway_response.py +17 -0
- telnyx/types/sim_card_groups/action_set_wireless_blocklist_params.py +12 -0
- telnyx/types/sim_card_groups/action_set_wireless_blocklist_response.py +17 -0
- telnyx/types/sim_card_groups/sim_card_group_action.py +51 -0
- telnyx/types/sim_card_list_params.py +61 -0
- telnyx/types/sim_card_list_wireless_connectivity_logs_params.py +17 -0
- telnyx/types/sim_card_list_wireless_connectivity_logs_response.py +103 -0
- telnyx/types/sim_card_order.py +95 -0
- telnyx/types/sim_card_order_create_params.py +15 -0
- telnyx/types/sim_card_order_create_response.py +12 -0
- telnyx/types/sim_card_order_list_params.py +82 -0
- telnyx/types/sim_card_order_preview_preview_params.py +18 -0
- telnyx/types/sim_card_order_preview_preview_response.py +49 -0
- telnyx/types/sim_card_order_retrieve_response.py +12 -0
- telnyx/types/sim_card_retrieve_params.py +19 -0
- telnyx/types/sim_card_retrieve_response.py +12 -0
- telnyx/types/sim_card_update_params.py +39 -0
- telnyx/types/sim_card_update_response.py +12 -0
- telnyx/types/sim_cards/__init__.py +21 -0
- telnyx/types/sim_cards/action_bulk_set_public_ips_params.py +13 -0
- telnyx/types/sim_cards/action_bulk_set_public_ips_response.py +46 -0
- telnyx/types/sim_cards/action_disable_response.py +16 -0
- telnyx/types/sim_cards/action_enable_response.py +16 -0
- telnyx/types/sim_cards/action_list_params.py +43 -0
- telnyx/types/sim_cards/action_remove_public_ip_response.py +16 -0
- telnyx/types/sim_cards/action_retrieve_response.py +16 -0
- telnyx/types/sim_cards/action_set_public_ip_params.py +15 -0
- telnyx/types/sim_cards/action_set_public_ip_response.py +16 -0
- telnyx/types/sim_cards/action_set_standby_response.py +16 -0
- telnyx/types/sim_cards/action_validate_registration_codes_params.py +13 -0
- telnyx/types/sim_cards/action_validate_registration_codes_response.py +24 -0
- telnyx/types/sim_cards/sim_card_action.py +58 -0
- telnyx/types/sip_header.py +15 -0
- telnyx/types/sip_header_param.py +15 -0
- telnyx/types/siprec_connector_create_params.py +23 -0
- telnyx/types/siprec_connector_create_response.py +33 -0
- telnyx/types/siprec_connector_retrieve_response.py +33 -0
- telnyx/types/siprec_connector_update_params.py +23 -0
- telnyx/types/siprec_connector_update_response.py +33 -0
- telnyx/types/sound_modifications_param.py +26 -0
- telnyx/types/speech_to_text_transcribe_params.py +38 -0
- telnyx/types/storage/__init__.py +17 -0
- telnyx/types/storage/bucket_create_presigned_url_params.py +16 -0
- telnyx/types/storage/bucket_create_presigned_url_response.py +23 -0
- telnyx/types/storage/buckets/__init__.py +13 -0
- telnyx/types/storage/buckets/pagination_meta_simple.py +17 -0
- telnyx/types/storage/buckets/ssl_certificate.py +48 -0
- telnyx/types/storage/buckets/ssl_certificate_create_params.py +17 -0
- telnyx/types/storage/buckets/ssl_certificate_create_response.py +12 -0
- telnyx/types/storage/buckets/ssl_certificate_delete_response.py +12 -0
- telnyx/types/storage/buckets/ssl_certificate_retrieve_response.py +12 -0
- telnyx/types/storage/buckets/usage_get_api_usage_params.py +32 -0
- telnyx/types/storage/buckets/usage_get_api_usage_response.py +66 -0
- telnyx/types/storage/buckets/usage_get_bucket_usage_response.py +29 -0
- telnyx/types/storage/migration_create_params.py +27 -0
- telnyx/types/storage/migration_create_response.py +12 -0
- telnyx/types/storage/migration_list_response.py +15 -0
- telnyx/types/storage/migration_params.py +53 -0
- telnyx/types/storage/migration_retrieve_response.py +12 -0
- telnyx/types/storage/migration_source_create_params.py +37 -0
- telnyx/types/storage/migration_source_create_response.py +12 -0
- telnyx/types/storage/migration_source_delete_response.py +12 -0
- telnyx/types/storage/migration_source_list_response.py +15 -0
- telnyx/types/storage/migration_source_params.py +41 -0
- telnyx/types/storage/migration_source_retrieve_response.py +12 -0
- telnyx/types/storage/migrations/__init__.py +5 -0
- telnyx/types/storage/migrations/action_stop_response.py +12 -0
- telnyx/types/storage_list_migration_source_coverage_response.py +23 -0
- telnyx/types/stream_bidirectional_codec.py +7 -0
- telnyx/types/stream_bidirectional_mode.py +7 -0
- telnyx/types/stream_bidirectional_sampling_rate.py +7 -0
- telnyx/types/stream_bidirectional_target_legs.py +7 -0
- telnyx/types/stream_codec.py +7 -0
- telnyx/types/sub_number_order.py +47 -0
- telnyx/types/sub_number_order_cancel_response.py +12 -0
- telnyx/types/sub_number_order_list_params.py +38 -0
- telnyx/types/sub_number_order_list_response.py +15 -0
- telnyx/types/sub_number_order_regulatory_requirement.py +17 -0
- telnyx/types/sub_number_order_retrieve_params.py +25 -0
- telnyx/types/sub_number_order_retrieve_response.py +12 -0
- telnyx/types/sub_number_order_update_params.py +14 -0
- telnyx/types/sub_number_order_update_requirement_group_params.py +12 -0
- telnyx/types/sub_number_order_update_requirement_group_response.py +88 -0
- telnyx/types/sub_number_order_update_response.py +12 -0
- telnyx/types/sub_number_orders_report_create_params.py +31 -0
- telnyx/types/sub_number_orders_report_create_response.py +55 -0
- telnyx/types/sub_number_orders_report_download_response.py +7 -0
- telnyx/types/sub_number_orders_report_retrieve_response.py +55 -0
- telnyx/types/telephony_credential.py +38 -0
- telnyx/types/telephony_credential_create_params.py +20 -0
- telnyx/types/telephony_credential_create_response.py +12 -0
- telnyx/types/telephony_credential_create_token_response.py +7 -0
- telnyx/types/telephony_credential_delete_response.py +12 -0
- telnyx/types/telephony_credential_list_params.py +44 -0
- telnyx/types/telephony_credential_retrieve_response.py +12 -0
- telnyx/types/telephony_credential_update_params.py +20 -0
- telnyx/types/telephony_credential_update_response.py +12 -0
- telnyx/types/texml/__init__.py +24 -0
- telnyx/types/texml/account_retrieve_recordings_json_params.py +30 -0
- telnyx/types/texml/account_retrieve_recordings_json_response.py +36 -0
- telnyx/types/texml/account_retrieve_transcriptions_json_params.py +17 -0
- telnyx/types/texml/account_retrieve_transcriptions_json_response.py +71 -0
- telnyx/types/texml/accounts/__init__.py +37 -0
- telnyx/types/texml/accounts/call_calls_params.py +204 -0
- telnyx/types/texml/accounts/call_calls_response.py +17 -0
- telnyx/types/texml/accounts/call_retrieve_calls_params.py +50 -0
- telnyx/types/texml/accounts/call_retrieve_calls_response.py +101 -0
- telnyx/types/texml/accounts/call_retrieve_response.py +72 -0
- telnyx/types/texml/accounts/call_siprec_json_params.py +61 -0
- telnyx/types/texml/accounts/call_siprec_json_response.py +40 -0
- telnyx/types/texml/accounts/call_streams_json_params.py +37 -0
- telnyx/types/texml/accounts/call_streams_json_response.py +29 -0
- telnyx/types/texml/accounts/call_update_params.py +46 -0
- telnyx/types/texml/accounts/call_update_response.py +72 -0
- telnyx/types/texml/accounts/calls/__init__.py +21 -0
- telnyx/types/texml/accounts/calls/recording_recording_sid_json_params.py +17 -0
- telnyx/types/texml/accounts/calls/recording_recording_sid_json_response.py +58 -0
- telnyx/types/texml/accounts/calls/recordings_json_recordings_json_params.py +43 -0
- telnyx/types/texml/accounts/calls/recordings_json_recordings_json_response.py +58 -0
- telnyx/types/texml/accounts/calls/recordings_json_retrieve_recordings_json_response.py +36 -0
- telnyx/types/texml/accounts/calls/siprec_siprec_sid_json_params.py +21 -0
- telnyx/types/texml/accounts/calls/siprec_siprec_sid_json_response.py +31 -0
- telnyx/types/texml/accounts/calls/stream_streaming_sid_json_params.py +18 -0
- telnyx/types/texml/accounts/calls/stream_streaming_sid_json_response.py +26 -0
- telnyx/types/texml/accounts/conference_retrieve_conferences_params.py +43 -0
- telnyx/types/texml/accounts/conference_retrieve_conferences_response.py +85 -0
- telnyx/types/texml/accounts/conference_retrieve_recordings_json_response.py +36 -0
- telnyx/types/texml/accounts/conference_retrieve_recordings_response.py +94 -0
- telnyx/types/texml/accounts/conference_retrieve_response.py +56 -0
- telnyx/types/texml/accounts/conference_update_params.py +29 -0
- telnyx/types/texml/accounts/conference_update_response.py +56 -0
- telnyx/types/texml/accounts/conferences/__init__.py +12 -0
- telnyx/types/texml/accounts/conferences/participant_participants_params.py +266 -0
- telnyx/types/texml/accounts/conferences/participant_participants_response.py +37 -0
- telnyx/types/texml/accounts/conferences/participant_retrieve_participants_response.py +81 -0
- telnyx/types/texml/accounts/conferences/participant_retrieve_response.py +52 -0
- telnyx/types/texml/accounts/conferences/participant_update_params.py +69 -0
- telnyx/types/texml/accounts/conferences/participant_update_response.py +52 -0
- telnyx/types/texml/accounts/queue_create_params.py +17 -0
- telnyx/types/texml/accounts/queue_create_response.py +36 -0
- telnyx/types/texml/accounts/queue_list_params.py +37 -0
- telnyx/types/texml/accounts/queue_list_response.py +36 -0
- telnyx/types/texml/accounts/queue_retrieve_response.py +36 -0
- telnyx/types/texml/accounts/queue_update_params.py +16 -0
- telnyx/types/texml/accounts/queue_update_response.py +36 -0
- telnyx/types/texml/accounts/recordings/__init__.py +3 -0
- telnyx/types/texml/accounts/transcriptions/__init__.py +7 -0
- telnyx/types/texml/accounts/transcriptions/json_retrieve_recording_transcription_sid_json_response.py +43 -0
- telnyx/types/texml/call_initiate_params.py +163 -0
- telnyx/types/texml/call_initiate_response.py +21 -0
- telnyx/types/texml/call_update_params.py +44 -0
- telnyx/types/texml/call_update_response.py +17 -0
- telnyx/types/texml/texml_get_call_recording_response_body.py +57 -0
- telnyx/types/texml/texml_recording_subresources_uris.py +13 -0
- telnyx/types/texml_application.py +128 -0
- telnyx/types/texml_application_create_params.py +117 -0
- telnyx/types/texml_application_create_response.py +12 -0
- telnyx/types/texml_application_delete_response.py +12 -0
- telnyx/types/texml_application_list_params.py +56 -0
- telnyx/types/texml_application_retrieve_response.py +12 -0
- telnyx/types/texml_application_update_params.py +117 -0
- telnyx/types/texml_application_update_response.py +12 -0
- telnyx/types/texml_secrets_params.py +18 -0
- telnyx/types/texml_secrets_response.py +18 -0
- telnyx/types/text_to_speech_generate_speech_params.py +26 -0
- telnyx/types/text_to_speech_list_voices_params.py +15 -0
- telnyx/types/text_to_speech_list_voices_response.py +29 -0
- telnyx/types/traffic_type.py +7 -0
- telnyx/types/transcription_webhook_event.py +72 -0
- telnyx/types/transcription_webhook_event1.py +72 -0
- telnyx/types/transport_protocol.py +7 -0
- telnyx/types/unsafe_unwrap_webhook_event.py +130 -0
- telnyx/types/unwrap_webhook_event.py +130 -0
- telnyx/types/update_regulatory_requirement_param.py +19 -0
- telnyx/types/url_shortener_settings.py +40 -0
- telnyx/types/url_shortener_settings_param.py +40 -0
- telnyx/types/usage_payment_method.py +7 -0
- telnyx/types/usage_report_get_options_params.py +18 -0
- telnyx/types/usage_report_get_options_response.py +49 -0
- telnyx/types/usage_report_list_params.py +64 -0
- telnyx/types/usage_report_list_response.py +8 -0
- telnyx/types/user_address.py +77 -0
- telnyx/types/user_address_create_params.py +80 -0
- telnyx/types/user_address_create_response.py +12 -0
- telnyx/types/user_address_list_params.py +93 -0
- telnyx/types/user_address_retrieve_response.py +12 -0
- telnyx/types/user_tag_list_params.py +25 -0
- telnyx/types/user_tag_list_response.py +31 -0
- telnyx/types/verification.py +42 -0
- telnyx/types/verification_retrieve_response.py +10 -0
- telnyx/types/verification_trigger_call_params.py +29 -0
- telnyx/types/verification_trigger_flashcall_params.py +18 -0
- telnyx/types/verification_trigger_sms_params.py +22 -0
- telnyx/types/verifications/__init__.py +7 -0
- telnyx/types/verifications/action_verify_params.py +18 -0
- telnyx/types/verifications/by_phone_number/__init__.py +6 -0
- telnyx/types/verifications/by_phone_number/action_verify_params.py +15 -0
- telnyx/types/verifications/by_phone_number/verify_verification_code_response.py +19 -0
- telnyx/types/verifications/by_phone_number_list_response.py +15 -0
- telnyx/types/verifications/verify_meta.py +15 -0
- telnyx/types/verified_number.py +17 -0
- telnyx/types/verified_number_create_params.py +23 -0
- telnyx/types/verified_number_create_response.py +13 -0
- telnyx/types/verified_number_data_wrapper.py +12 -0
- telnyx/types/verified_number_list_params.py +15 -0
- telnyx/types/verified_numbers/__init__.py +7 -0
- telnyx/types/verified_numbers/action_submit_verification_code_params.py +11 -0
- telnyx/types/verify_profile.py +145 -0
- telnyx/types/verify_profile_create_params.py +116 -0
- telnyx/types/verify_profile_create_template_params.py +12 -0
- telnyx/types/verify_profile_data.py +12 -0
- telnyx/types/verify_profile_list_params.py +25 -0
- telnyx/types/verify_profile_message_template_response.py +13 -0
- telnyx/types/verify_profile_retrieve_templates_response.py +14 -0
- telnyx/types/verify_profile_update_params.py +116 -0
- telnyx/types/verify_profile_update_template_params.py +12 -0
- telnyx/types/video_region.py +53 -0
- telnyx/types/video_region_param.py +55 -0
- telnyx/types/virtual_cross_connect_create_params.py +95 -0
- telnyx/types/virtual_cross_connect_create_response.py +126 -0
- telnyx/types/virtual_cross_connect_delete_response.py +126 -0
- telnyx/types/virtual_cross_connect_list_params.py +31 -0
- telnyx/types/virtual_cross_connect_list_response.py +122 -0
- telnyx/types/virtual_cross_connect_retrieve_response.py +126 -0
- telnyx/types/virtual_cross_connect_update_params.py +41 -0
- telnyx/types/virtual_cross_connect_update_response.py +126 -0
- telnyx/types/virtual_cross_connects_coverage_list_params.py +81 -0
- telnyx/types/virtual_cross_connects_coverage_list_response.py +51 -0
- telnyx/types/webhook_api_version.py +7 -0
- telnyx/types/webhook_delivery_list_params.py +102 -0
- telnyx/types/webhook_delivery_list_response.py +114 -0
- telnyx/types/webhook_delivery_retrieve_response.py +120 -0
- telnyx/types/well_known_retrieve_authorization_server_metadata_response.py +42 -0
- telnyx/types/well_known_retrieve_protected_resource_metadata_response.py +15 -0
- telnyx/types/whatsapp_media.py +21 -0
- telnyx/types/whatsapp_media_param.py +21 -0
- telnyx/types/wireguard_interface_create_params.py +21 -0
- telnyx/types/wireguard_interface_create_response.py +40 -0
- telnyx/types/wireguard_interface_delete_response.py +40 -0
- telnyx/types/wireguard_interface_list_params.py +31 -0
- telnyx/types/wireguard_interface_list_response.py +36 -0
- telnyx/types/wireguard_interface_retrieve_response.py +40 -0
- telnyx/types/wireguard_peer_create_params.py +18 -0
- telnyx/types/wireguard_peer_create_response.py +30 -0
- telnyx/types/wireguard_peer_delete_response.py +30 -0
- telnyx/types/wireguard_peer_list_params.py +31 -0
- telnyx/types/wireguard_peer_list_response.py +25 -0
- telnyx/types/wireguard_peer_patch.py +15 -0
- telnyx/types/wireguard_peer_retrieve_config_response.py +7 -0
- telnyx/types/wireguard_peer_retrieve_response.py +30 -0
- telnyx/types/wireguard_peer_update_params.py +15 -0
- telnyx/types/wireguard_peer_update_response.py +30 -0
- telnyx/types/wireless/__init__.py +17 -0
- telnyx/types/wireless/detail_records_report_create_params.py +15 -0
- telnyx/types/wireless/detail_records_report_create_response.py +12 -0
- telnyx/types/wireless/detail_records_report_delete_response.py +12 -0
- telnyx/types/wireless/detail_records_report_list_params.py +17 -0
- telnyx/types/wireless/detail_records_report_list_response.py +12 -0
- telnyx/types/wireless/detail_records_report_retrieve_response.py +12 -0
- telnyx/types/wireless/wdr_report.py +33 -0
- telnyx/types/wireless_blocklist.py +30 -0
- telnyx/types/wireless_blocklist_create_params.py +20 -0
- telnyx/types/wireless_blocklist_create_response.py +12 -0
- telnyx/types/wireless_blocklist_delete_response.py +12 -0
- telnyx/types/wireless_blocklist_list_params.py +26 -0
- telnyx/types/wireless_blocklist_retrieve_response.py +12 -0
- telnyx/types/wireless_blocklist_update_params.py +20 -0
- telnyx/types/wireless_blocklist_update_response.py +12 -0
- telnyx/types/wireless_blocklist_value_list_params.py +15 -0
- telnyx/types/wireless_blocklist_value_list_response.py +38 -0
- telnyx/types/wireless_retrieve_regions_params.py +15 -0
- telnyx/types/wireless_retrieve_regions_response.py +26 -0
- telnyx-4.5.0.dist-info/METADATA +561 -0
- telnyx-4.5.0.dist-info/RECORD +2118 -0
- telnyx-4.5.0.dist-info/WHEEL +4 -0
- telnyx-4.5.0.dist-info/licenses/LICENSE +7 -0
|
@@ -0,0 +1,1455 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Iterable
|
|
6
|
+
from typing_extensions import Literal
|
|
7
|
+
|
|
8
|
+
import httpx
|
|
9
|
+
|
|
10
|
+
from .siprec import (
|
|
11
|
+
SiprecResource,
|
|
12
|
+
AsyncSiprecResource,
|
|
13
|
+
SiprecResourceWithRawResponse,
|
|
14
|
+
AsyncSiprecResourceWithRawResponse,
|
|
15
|
+
SiprecResourceWithStreamingResponse,
|
|
16
|
+
AsyncSiprecResourceWithStreamingResponse,
|
|
17
|
+
)
|
|
18
|
+
from .streams import (
|
|
19
|
+
StreamsResource,
|
|
20
|
+
AsyncStreamsResource,
|
|
21
|
+
StreamsResourceWithRawResponse,
|
|
22
|
+
AsyncStreamsResourceWithRawResponse,
|
|
23
|
+
StreamsResourceWithStreamingResponse,
|
|
24
|
+
AsyncStreamsResourceWithStreamingResponse,
|
|
25
|
+
)
|
|
26
|
+
from ....._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
27
|
+
from ....._utils import maybe_transform, async_maybe_transform
|
|
28
|
+
from .recordings import (
|
|
29
|
+
RecordingsResource,
|
|
30
|
+
AsyncRecordingsResource,
|
|
31
|
+
RecordingsResourceWithRawResponse,
|
|
32
|
+
AsyncRecordingsResourceWithRawResponse,
|
|
33
|
+
RecordingsResourceWithStreamingResponse,
|
|
34
|
+
AsyncRecordingsResourceWithStreamingResponse,
|
|
35
|
+
)
|
|
36
|
+
from ....._compat import cached_property
|
|
37
|
+
from ....._resource import SyncAPIResource, AsyncAPIResource
|
|
38
|
+
from ....._response import (
|
|
39
|
+
to_raw_response_wrapper,
|
|
40
|
+
to_streamed_response_wrapper,
|
|
41
|
+
async_to_raw_response_wrapper,
|
|
42
|
+
async_to_streamed_response_wrapper,
|
|
43
|
+
)
|
|
44
|
+
from .recordings_json import (
|
|
45
|
+
RecordingsJsonResource,
|
|
46
|
+
AsyncRecordingsJsonResource,
|
|
47
|
+
RecordingsJsonResourceWithRawResponse,
|
|
48
|
+
AsyncRecordingsJsonResourceWithRawResponse,
|
|
49
|
+
RecordingsJsonResourceWithStreamingResponse,
|
|
50
|
+
AsyncRecordingsJsonResourceWithStreamingResponse,
|
|
51
|
+
)
|
|
52
|
+
from ....._base_client import make_request_options
|
|
53
|
+
from .....types.texml.accounts import (
|
|
54
|
+
call_calls_params,
|
|
55
|
+
call_update_params,
|
|
56
|
+
call_siprec_json_params,
|
|
57
|
+
call_streams_json_params,
|
|
58
|
+
call_retrieve_calls_params,
|
|
59
|
+
)
|
|
60
|
+
from .....types.texml.accounts.call_calls_response import CallCallsResponse
|
|
61
|
+
from .....types.texml.accounts.call_update_response import CallUpdateResponse
|
|
62
|
+
from .....types.texml.accounts.call_retrieve_response import CallRetrieveResponse
|
|
63
|
+
from .....types.texml.accounts.call_siprec_json_response import CallSiprecJsonResponse
|
|
64
|
+
from .....types.texml.accounts.call_streams_json_response import CallStreamsJsonResponse
|
|
65
|
+
from .....types.texml.accounts.call_retrieve_calls_response import CallRetrieveCallsResponse
|
|
66
|
+
|
|
67
|
+
__all__ = ["CallsResource", "AsyncCallsResource"]
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class CallsResource(SyncAPIResource):
|
|
71
|
+
@cached_property
|
|
72
|
+
def recordings_json(self) -> RecordingsJsonResource:
|
|
73
|
+
return RecordingsJsonResource(self._client)
|
|
74
|
+
|
|
75
|
+
@cached_property
|
|
76
|
+
def recordings(self) -> RecordingsResource:
|
|
77
|
+
return RecordingsResource(self._client)
|
|
78
|
+
|
|
79
|
+
@cached_property
|
|
80
|
+
def siprec(self) -> SiprecResource:
|
|
81
|
+
return SiprecResource(self._client)
|
|
82
|
+
|
|
83
|
+
@cached_property
|
|
84
|
+
def streams(self) -> StreamsResource:
|
|
85
|
+
return StreamsResource(self._client)
|
|
86
|
+
|
|
87
|
+
@cached_property
|
|
88
|
+
def with_raw_response(self) -> CallsResourceWithRawResponse:
|
|
89
|
+
"""
|
|
90
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
91
|
+
the raw response object instead of the parsed content.
|
|
92
|
+
|
|
93
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
|
|
94
|
+
"""
|
|
95
|
+
return CallsResourceWithRawResponse(self)
|
|
96
|
+
|
|
97
|
+
@cached_property
|
|
98
|
+
def with_streaming_response(self) -> CallsResourceWithStreamingResponse:
|
|
99
|
+
"""
|
|
100
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
101
|
+
|
|
102
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#with_streaming_response
|
|
103
|
+
"""
|
|
104
|
+
return CallsResourceWithStreamingResponse(self)
|
|
105
|
+
|
|
106
|
+
def retrieve(
|
|
107
|
+
self,
|
|
108
|
+
call_sid: str,
|
|
109
|
+
*,
|
|
110
|
+
account_sid: str,
|
|
111
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
112
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
113
|
+
extra_headers: Headers | None = None,
|
|
114
|
+
extra_query: Query | None = None,
|
|
115
|
+
extra_body: Body | None = None,
|
|
116
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
117
|
+
) -> CallRetrieveResponse:
|
|
118
|
+
"""Returns an individual call identified by its CallSid.
|
|
119
|
+
|
|
120
|
+
This endpoint is
|
|
121
|
+
eventually consistent.
|
|
122
|
+
|
|
123
|
+
Args:
|
|
124
|
+
extra_headers: Send extra headers
|
|
125
|
+
|
|
126
|
+
extra_query: Add additional query parameters to the request
|
|
127
|
+
|
|
128
|
+
extra_body: Add additional JSON properties to the request
|
|
129
|
+
|
|
130
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
131
|
+
"""
|
|
132
|
+
if not account_sid:
|
|
133
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
134
|
+
if not call_sid:
|
|
135
|
+
raise ValueError(f"Expected a non-empty value for `call_sid` but received {call_sid!r}")
|
|
136
|
+
return self._get(
|
|
137
|
+
f"/texml/Accounts/{account_sid}/Calls/{call_sid}",
|
|
138
|
+
options=make_request_options(
|
|
139
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
140
|
+
),
|
|
141
|
+
cast_to=CallRetrieveResponse,
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
def update(
|
|
145
|
+
self,
|
|
146
|
+
call_sid: str,
|
|
147
|
+
*,
|
|
148
|
+
account_sid: str,
|
|
149
|
+
fallback_method: Literal["GET", "POST"] | Omit = omit,
|
|
150
|
+
fallback_url: str | Omit = omit,
|
|
151
|
+
method: Literal["GET", "POST"] | Omit = omit,
|
|
152
|
+
status: str | Omit = omit,
|
|
153
|
+
status_callback: str | Omit = omit,
|
|
154
|
+
status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
155
|
+
texml: str | Omit = omit,
|
|
156
|
+
url: str | Omit = omit,
|
|
157
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
158
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
159
|
+
extra_headers: Headers | None = None,
|
|
160
|
+
extra_query: Query | None = None,
|
|
161
|
+
extra_body: Body | None = None,
|
|
162
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
163
|
+
) -> CallUpdateResponse:
|
|
164
|
+
"""Update TeXML call.
|
|
165
|
+
|
|
166
|
+
Please note that the keys present in the payload MUST BE
|
|
167
|
+
formatted in CamelCase as specified in the example.
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
fallback_method: HTTP request type used for `FallbackUrl`.
|
|
171
|
+
|
|
172
|
+
fallback_url: A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
173
|
+
Url is not responding.
|
|
174
|
+
|
|
175
|
+
method: HTTP request type used for `Url`.
|
|
176
|
+
|
|
177
|
+
status: The value to set the call status to. Setting the status to completed ends the
|
|
178
|
+
call.
|
|
179
|
+
|
|
180
|
+
status_callback: URL destination for Telnyx to send status callback events to for the call.
|
|
181
|
+
|
|
182
|
+
status_callback_method: HTTP request type used for `StatusCallback`.
|
|
183
|
+
|
|
184
|
+
texml: TeXML to replace the current one with.
|
|
185
|
+
|
|
186
|
+
url: The URL where TeXML will make a request to retrieve a new set of TeXML
|
|
187
|
+
instructions to continue the call flow.
|
|
188
|
+
|
|
189
|
+
extra_headers: Send extra headers
|
|
190
|
+
|
|
191
|
+
extra_query: Add additional query parameters to the request
|
|
192
|
+
|
|
193
|
+
extra_body: Add additional JSON properties to the request
|
|
194
|
+
|
|
195
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
196
|
+
"""
|
|
197
|
+
if not account_sid:
|
|
198
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
199
|
+
if not call_sid:
|
|
200
|
+
raise ValueError(f"Expected a non-empty value for `call_sid` but received {call_sid!r}")
|
|
201
|
+
return self._post(
|
|
202
|
+
f"/texml/Accounts/{account_sid}/Calls/{call_sid}",
|
|
203
|
+
body=maybe_transform(
|
|
204
|
+
{
|
|
205
|
+
"fallback_method": fallback_method,
|
|
206
|
+
"fallback_url": fallback_url,
|
|
207
|
+
"method": method,
|
|
208
|
+
"status": status,
|
|
209
|
+
"status_callback": status_callback,
|
|
210
|
+
"status_callback_method": status_callback_method,
|
|
211
|
+
"texml": texml,
|
|
212
|
+
"url": url,
|
|
213
|
+
},
|
|
214
|
+
call_update_params.CallUpdateParams,
|
|
215
|
+
),
|
|
216
|
+
options=make_request_options(
|
|
217
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
218
|
+
),
|
|
219
|
+
cast_to=CallUpdateResponse,
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
def calls(
|
|
223
|
+
self,
|
|
224
|
+
account_sid: str,
|
|
225
|
+
*,
|
|
226
|
+
application_sid: str,
|
|
227
|
+
from_: str,
|
|
228
|
+
to: str,
|
|
229
|
+
async_amd: bool | Omit = omit,
|
|
230
|
+
async_amd_status_callback: str | Omit = omit,
|
|
231
|
+
async_amd_status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
232
|
+
caller_id: str | Omit = omit,
|
|
233
|
+
cancel_playback_on_detect_message_end: bool | Omit = omit,
|
|
234
|
+
cancel_playback_on_machine_detection: bool | Omit = omit,
|
|
235
|
+
custom_headers: Iterable[call_calls_params.CustomHeader] | Omit = omit,
|
|
236
|
+
detection_mode: Literal["Premium", "Regular"] | Omit = omit,
|
|
237
|
+
fallback_url: str | Omit = omit,
|
|
238
|
+
machine_detection: Literal["Enable", "Disable", "DetectMessageEnd"] | Omit = omit,
|
|
239
|
+
machine_detection_silence_timeout: int | Omit = omit,
|
|
240
|
+
machine_detection_speech_end_threshold: int | Omit = omit,
|
|
241
|
+
machine_detection_speech_threshold: int | Omit = omit,
|
|
242
|
+
machine_detection_timeout: int | Omit = omit,
|
|
243
|
+
preferred_codecs: str | Omit = omit,
|
|
244
|
+
record: bool | Omit = omit,
|
|
245
|
+
recording_channels: Literal["mono", "dual"] | Omit = omit,
|
|
246
|
+
recording_status_callback: str | Omit = omit,
|
|
247
|
+
recording_status_callback_event: str | Omit = omit,
|
|
248
|
+
recording_status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
249
|
+
recording_timeout: int | Omit = omit,
|
|
250
|
+
recording_track: Literal["inbound", "outbound", "both"] | Omit = omit,
|
|
251
|
+
send_recording_url: bool | Omit = omit,
|
|
252
|
+
sip_auth_password: str | Omit = omit,
|
|
253
|
+
sip_auth_username: str | Omit = omit,
|
|
254
|
+
sip_region: Literal["US", "Europe", "Canada", "Australia", "Middle East"] | Omit = omit,
|
|
255
|
+
status_callback: str | Omit = omit,
|
|
256
|
+
status_callback_event: Literal["initiated", "ringing", "answered", "completed"] | Omit = omit,
|
|
257
|
+
status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
258
|
+
supervise_call_sid: str | Omit = omit,
|
|
259
|
+
supervising_role: Literal["barge", "whisper", "monitor"] | Omit = omit,
|
|
260
|
+
trim: Literal["trim-silence", "do-not-trim"] | Omit = omit,
|
|
261
|
+
url: str | Omit = omit,
|
|
262
|
+
url_method: Literal["GET", "POST"] | Omit = omit,
|
|
263
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
264
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
265
|
+
extra_headers: Headers | None = None,
|
|
266
|
+
extra_query: Query | None = None,
|
|
267
|
+
extra_body: Body | None = None,
|
|
268
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
269
|
+
) -> CallCallsResponse:
|
|
270
|
+
"""Initiate an outbound TeXML call.
|
|
271
|
+
|
|
272
|
+
Telnyx will request TeXML from the XML Request
|
|
273
|
+
URL configured for the connection in the Mission Control Portal.
|
|
274
|
+
|
|
275
|
+
Args:
|
|
276
|
+
application_sid: The ID of the TeXML Application.
|
|
277
|
+
|
|
278
|
+
from_: The phone number of the party that initiated the call. Phone numbers are
|
|
279
|
+
formatted with a `+` and country code.
|
|
280
|
+
|
|
281
|
+
to: The phone number of the called party. Phone numbers are formatted with a `+` and
|
|
282
|
+
country code.
|
|
283
|
+
|
|
284
|
+
async_amd: Select whether to perform answering machine detection in the background. By
|
|
285
|
+
default execution is blocked until Answering Machine Detection is completed.
|
|
286
|
+
|
|
287
|
+
async_amd_status_callback: URL destination for Telnyx to send AMD callback events to for the call.
|
|
288
|
+
|
|
289
|
+
async_amd_status_callback_method: HTTP request type used for `AsyncAmdStatusCallback`. The default value is
|
|
290
|
+
inherited from TeXML Application setting.
|
|
291
|
+
|
|
292
|
+
caller_id: To be used as the caller id name (SIP From Display Name) presented to the
|
|
293
|
+
destination (`To` number). The string should have a maximum of 128 characters,
|
|
294
|
+
containing only letters, numbers, spaces, and `-_~!.+` special characters. If
|
|
295
|
+
ommited, the display name will be the same as the number in the `From` field.
|
|
296
|
+
|
|
297
|
+
cancel_playback_on_detect_message_end: Whether to cancel ongoing playback on `greeting ended` detection. Defaults to
|
|
298
|
+
`true`.
|
|
299
|
+
|
|
300
|
+
cancel_playback_on_machine_detection: Whether to cancel ongoing playback on `machine` detection. Defaults to `true`.
|
|
301
|
+
|
|
302
|
+
custom_headers: Custom HTTP headers to be sent with the call. Each header should be an object
|
|
303
|
+
with 'name' and 'value' properties.
|
|
304
|
+
|
|
305
|
+
detection_mode: Allows you to chose between Premium and Standard detections.
|
|
306
|
+
|
|
307
|
+
fallback_url: A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
308
|
+
`Url` is not responding.
|
|
309
|
+
|
|
310
|
+
machine_detection: Enables Answering Machine Detection.
|
|
311
|
+
|
|
312
|
+
machine_detection_silence_timeout: If initial silence duration is greater than this value, consider it a machine.
|
|
313
|
+
Ignored when `premium` detection is used.
|
|
314
|
+
|
|
315
|
+
machine_detection_speech_end_threshold: Silence duration threshold after a greeting message or voice for it be
|
|
316
|
+
considered human. Ignored when `premium` detection is used.
|
|
317
|
+
|
|
318
|
+
machine_detection_speech_threshold: Maximum threshold of a human greeting. If greeting longer than this value,
|
|
319
|
+
considered machine. Ignored when `premium` detection is used.
|
|
320
|
+
|
|
321
|
+
machine_detection_timeout: Maximum timeout threshold in milliseconds for overall detection.
|
|
322
|
+
|
|
323
|
+
preferred_codecs: The list of comma-separated codecs to be offered on a call.
|
|
324
|
+
|
|
325
|
+
record: Whether to record the entire participant's call leg. Defaults to `false`.
|
|
326
|
+
|
|
327
|
+
recording_channels: The number of channels in the final recording. Defaults to `mono`.
|
|
328
|
+
|
|
329
|
+
recording_status_callback: The URL the recording callbacks will be sent to.
|
|
330
|
+
|
|
331
|
+
recording_status_callback_event: The changes to the recording's state that should generate a call to
|
|
332
|
+
`RecoridngStatusCallback`. Can be: `in-progress`, `completed` and `absent`.
|
|
333
|
+
Separate multiple values with a space. Defaults to `completed`.
|
|
334
|
+
|
|
335
|
+
recording_status_callback_method: HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.
|
|
336
|
+
|
|
337
|
+
recording_timeout: The number of seconds that Telnyx will wait for the recording to be stopped if
|
|
338
|
+
silence is detected. The timer only starts when the speech is detected. Please
|
|
339
|
+
note that the transcription is used to detect silence and the related charge
|
|
340
|
+
will be applied. The minimum value is 0. The default value is 0 (infinite)
|
|
341
|
+
|
|
342
|
+
recording_track: The audio track to record for the call. The default is `both`.
|
|
343
|
+
|
|
344
|
+
send_recording_url: Whether to send RecordingUrl in webhooks.
|
|
345
|
+
|
|
346
|
+
sip_auth_password: The password to use for SIP authentication.
|
|
347
|
+
|
|
348
|
+
sip_auth_username: The username to use for SIP authentication.
|
|
349
|
+
|
|
350
|
+
sip_region: Defines the SIP region to be used for the call.
|
|
351
|
+
|
|
352
|
+
status_callback: URL destination for Telnyx to send status callback events to for the call.
|
|
353
|
+
|
|
354
|
+
status_callback_event: The call events for which Telnyx should send a webhook. Multiple events can be
|
|
355
|
+
defined when separated by a space.
|
|
356
|
+
|
|
357
|
+
status_callback_method: HTTP request type used for `StatusCallback`.
|
|
358
|
+
|
|
359
|
+
supervise_call_sid: The call control ID of the existing call to supervise. When provided, the
|
|
360
|
+
created leg will be added to the specified call in supervising mode. Status
|
|
361
|
+
callbacks and action callbacks will NOT be sent for the supervising leg.
|
|
362
|
+
|
|
363
|
+
supervising_role: The supervising role for the new leg. Determines the audio behavior: barge (hear
|
|
364
|
+
both sides), whisper (only hear supervisor), monitor (hear both sides but
|
|
365
|
+
supervisor muted). Default: barge
|
|
366
|
+
|
|
367
|
+
trim: Whether to trim any leading and trailing silence from the recording. Defaults to
|
|
368
|
+
`trim-silence`.
|
|
369
|
+
|
|
370
|
+
url: The URL from which Telnyx will retrieve the TeXML call instructions.
|
|
371
|
+
|
|
372
|
+
url_method: HTTP request type used for `Url`. The default value is inherited from TeXML
|
|
373
|
+
Application setting.
|
|
374
|
+
|
|
375
|
+
extra_headers: Send extra headers
|
|
376
|
+
|
|
377
|
+
extra_query: Add additional query parameters to the request
|
|
378
|
+
|
|
379
|
+
extra_body: Add additional JSON properties to the request
|
|
380
|
+
|
|
381
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
382
|
+
"""
|
|
383
|
+
if not account_sid:
|
|
384
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
385
|
+
return self._post(
|
|
386
|
+
f"/texml/Accounts/{account_sid}/Calls",
|
|
387
|
+
body=maybe_transform(
|
|
388
|
+
{
|
|
389
|
+
"application_sid": application_sid,
|
|
390
|
+
"from_": from_,
|
|
391
|
+
"to": to,
|
|
392
|
+
"async_amd": async_amd,
|
|
393
|
+
"async_amd_status_callback": async_amd_status_callback,
|
|
394
|
+
"async_amd_status_callback_method": async_amd_status_callback_method,
|
|
395
|
+
"caller_id": caller_id,
|
|
396
|
+
"cancel_playback_on_detect_message_end": cancel_playback_on_detect_message_end,
|
|
397
|
+
"cancel_playback_on_machine_detection": cancel_playback_on_machine_detection,
|
|
398
|
+
"custom_headers": custom_headers,
|
|
399
|
+
"detection_mode": detection_mode,
|
|
400
|
+
"fallback_url": fallback_url,
|
|
401
|
+
"machine_detection": machine_detection,
|
|
402
|
+
"machine_detection_silence_timeout": machine_detection_silence_timeout,
|
|
403
|
+
"machine_detection_speech_end_threshold": machine_detection_speech_end_threshold,
|
|
404
|
+
"machine_detection_speech_threshold": machine_detection_speech_threshold,
|
|
405
|
+
"machine_detection_timeout": machine_detection_timeout,
|
|
406
|
+
"preferred_codecs": preferred_codecs,
|
|
407
|
+
"record": record,
|
|
408
|
+
"recording_channels": recording_channels,
|
|
409
|
+
"recording_status_callback": recording_status_callback,
|
|
410
|
+
"recording_status_callback_event": recording_status_callback_event,
|
|
411
|
+
"recording_status_callback_method": recording_status_callback_method,
|
|
412
|
+
"recording_timeout": recording_timeout,
|
|
413
|
+
"recording_track": recording_track,
|
|
414
|
+
"send_recording_url": send_recording_url,
|
|
415
|
+
"sip_auth_password": sip_auth_password,
|
|
416
|
+
"sip_auth_username": sip_auth_username,
|
|
417
|
+
"sip_region": sip_region,
|
|
418
|
+
"status_callback": status_callback,
|
|
419
|
+
"status_callback_event": status_callback_event,
|
|
420
|
+
"status_callback_method": status_callback_method,
|
|
421
|
+
"supervise_call_sid": supervise_call_sid,
|
|
422
|
+
"supervising_role": supervising_role,
|
|
423
|
+
"trim": trim,
|
|
424
|
+
"url": url,
|
|
425
|
+
"url_method": url_method,
|
|
426
|
+
},
|
|
427
|
+
call_calls_params.CallCallsParams,
|
|
428
|
+
),
|
|
429
|
+
options=make_request_options(
|
|
430
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
431
|
+
),
|
|
432
|
+
cast_to=CallCallsResponse,
|
|
433
|
+
)
|
|
434
|
+
|
|
435
|
+
def retrieve_calls(
|
|
436
|
+
self,
|
|
437
|
+
account_sid: str,
|
|
438
|
+
*,
|
|
439
|
+
end_time: str | Omit = omit,
|
|
440
|
+
end_time_gt: str | Omit = omit,
|
|
441
|
+
end_time_lt: str | Omit = omit,
|
|
442
|
+
from_: str | Omit = omit,
|
|
443
|
+
page: int | Omit = omit,
|
|
444
|
+
page_size: int | Omit = omit,
|
|
445
|
+
page_token: str | Omit = omit,
|
|
446
|
+
start_time: str | Omit = omit,
|
|
447
|
+
start_time_gt: str | Omit = omit,
|
|
448
|
+
start_time_lt: str | Omit = omit,
|
|
449
|
+
status: Literal["canceled", "completed", "failed", "busy", "no-answer"] | Omit = omit,
|
|
450
|
+
to: str | Omit = omit,
|
|
451
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
452
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
453
|
+
extra_headers: Headers | None = None,
|
|
454
|
+
extra_query: Query | None = None,
|
|
455
|
+
extra_body: Body | None = None,
|
|
456
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
457
|
+
) -> CallRetrieveCallsResponse:
|
|
458
|
+
"""Returns multiple call resouces for an account.
|
|
459
|
+
|
|
460
|
+
This endpoint is eventually
|
|
461
|
+
consistent.
|
|
462
|
+
|
|
463
|
+
Args:
|
|
464
|
+
end_time: Filters calls by their end date. Expected format is YYYY-MM-DD
|
|
465
|
+
|
|
466
|
+
end_time_gt: Filters calls by their end date (after). Expected format is YYYY-MM-DD
|
|
467
|
+
|
|
468
|
+
end_time_lt: Filters calls by their end date (before). Expected format is YYYY-MM-DD
|
|
469
|
+
|
|
470
|
+
from_: Filters calls by the from number.
|
|
471
|
+
|
|
472
|
+
page: The number of the page to be displayed, zero-indexed, should be used in
|
|
473
|
+
conjuction with PageToken.
|
|
474
|
+
|
|
475
|
+
page_size: The number of records to be displayed on a page
|
|
476
|
+
|
|
477
|
+
page_token: Used to request the next page of results.
|
|
478
|
+
|
|
479
|
+
start_time: Filters calls by their start date. Expected format is YYYY-MM-DD.
|
|
480
|
+
|
|
481
|
+
start_time_gt: Filters calls by their start date (after). Expected format is YYYY-MM-DD
|
|
482
|
+
|
|
483
|
+
start_time_lt: Filters calls by their start date (before). Expected format is YYYY-MM-DD
|
|
484
|
+
|
|
485
|
+
status: Filters calls by status.
|
|
486
|
+
|
|
487
|
+
to: Filters calls by the to number.
|
|
488
|
+
|
|
489
|
+
extra_headers: Send extra headers
|
|
490
|
+
|
|
491
|
+
extra_query: Add additional query parameters to the request
|
|
492
|
+
|
|
493
|
+
extra_body: Add additional JSON properties to the request
|
|
494
|
+
|
|
495
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
496
|
+
"""
|
|
497
|
+
if not account_sid:
|
|
498
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
499
|
+
return self._get(
|
|
500
|
+
f"/texml/Accounts/{account_sid}/Calls",
|
|
501
|
+
options=make_request_options(
|
|
502
|
+
extra_headers=extra_headers,
|
|
503
|
+
extra_query=extra_query,
|
|
504
|
+
extra_body=extra_body,
|
|
505
|
+
timeout=timeout,
|
|
506
|
+
query=maybe_transform(
|
|
507
|
+
{
|
|
508
|
+
"end_time": end_time,
|
|
509
|
+
"end_time_gt": end_time_gt,
|
|
510
|
+
"end_time_lt": end_time_lt,
|
|
511
|
+
"from_": from_,
|
|
512
|
+
"page": page,
|
|
513
|
+
"page_size": page_size,
|
|
514
|
+
"page_token": page_token,
|
|
515
|
+
"start_time": start_time,
|
|
516
|
+
"start_time_gt": start_time_gt,
|
|
517
|
+
"start_time_lt": start_time_lt,
|
|
518
|
+
"status": status,
|
|
519
|
+
"to": to,
|
|
520
|
+
},
|
|
521
|
+
call_retrieve_calls_params.CallRetrieveCallsParams,
|
|
522
|
+
),
|
|
523
|
+
),
|
|
524
|
+
cast_to=CallRetrieveCallsResponse,
|
|
525
|
+
)
|
|
526
|
+
|
|
527
|
+
def siprec_json(
|
|
528
|
+
self,
|
|
529
|
+
call_sid: str,
|
|
530
|
+
*,
|
|
531
|
+
account_sid: str,
|
|
532
|
+
connector_name: str | Omit = omit,
|
|
533
|
+
include_metadata_custom_headers: Literal[True, False] | Omit = omit,
|
|
534
|
+
name: str | Omit = omit,
|
|
535
|
+
secure: Literal[True, False] | Omit = omit,
|
|
536
|
+
session_timeout_secs: int | Omit = omit,
|
|
537
|
+
sip_transport: Literal["udp", "tcp", "tls"] | Omit = omit,
|
|
538
|
+
status_callback: str | Omit = omit,
|
|
539
|
+
status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
540
|
+
track: Literal["both_tracks", "inbound_track", "outbound_track"] | Omit = omit,
|
|
541
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
542
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
543
|
+
extra_headers: Headers | None = None,
|
|
544
|
+
extra_query: Query | None = None,
|
|
545
|
+
extra_body: Body | None = None,
|
|
546
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
547
|
+
) -> CallSiprecJsonResponse:
|
|
548
|
+
"""
|
|
549
|
+
Starts siprec session with specified parameters for call idientified by
|
|
550
|
+
call_sid.
|
|
551
|
+
|
|
552
|
+
Args:
|
|
553
|
+
connector_name: The name of the connector to use for the SIPREC session.
|
|
554
|
+
|
|
555
|
+
include_metadata_custom_headers: When set, custom parameters will be added as metadata
|
|
556
|
+
(recording.session.ExtensionParameters). Otherwise, they’ll be added to sip
|
|
557
|
+
headers.
|
|
558
|
+
|
|
559
|
+
name: Name of the SIPREC session. May be used to stop the SIPREC session from TeXML
|
|
560
|
+
instruction.
|
|
561
|
+
|
|
562
|
+
secure: Controls whether to encrypt media sent to your SRS using SRTP and TLS. When set
|
|
563
|
+
you need to configure SRS port in your connector to 5061.
|
|
564
|
+
|
|
565
|
+
session_timeout_secs: Sets `Session-Expires` header to the INVITE. A reinvite is sent every half the
|
|
566
|
+
value set. Usefull for session keep alive. Minimum value is 90, set to 0 to
|
|
567
|
+
disable.
|
|
568
|
+
|
|
569
|
+
sip_transport: Specifies SIP transport protocol.
|
|
570
|
+
|
|
571
|
+
status_callback: URL destination for Telnyx to send status callback events to for the siprec
|
|
572
|
+
session.
|
|
573
|
+
|
|
574
|
+
status_callback_method: HTTP request type used for `StatusCallback`.
|
|
575
|
+
|
|
576
|
+
track: The track to be used for siprec session. Can be `both_tracks`, `inbound_track`
|
|
577
|
+
or `outbound_track`. Defaults to `both_tracks`.
|
|
578
|
+
|
|
579
|
+
extra_headers: Send extra headers
|
|
580
|
+
|
|
581
|
+
extra_query: Add additional query parameters to the request
|
|
582
|
+
|
|
583
|
+
extra_body: Add additional JSON properties to the request
|
|
584
|
+
|
|
585
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
586
|
+
"""
|
|
587
|
+
if not account_sid:
|
|
588
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
589
|
+
if not call_sid:
|
|
590
|
+
raise ValueError(f"Expected a non-empty value for `call_sid` but received {call_sid!r}")
|
|
591
|
+
return self._post(
|
|
592
|
+
f"/texml/Accounts/{account_sid}/Calls/{call_sid}/Siprec.json",
|
|
593
|
+
body=maybe_transform(
|
|
594
|
+
{
|
|
595
|
+
"connector_name": connector_name,
|
|
596
|
+
"include_metadata_custom_headers": include_metadata_custom_headers,
|
|
597
|
+
"name": name,
|
|
598
|
+
"secure": secure,
|
|
599
|
+
"session_timeout_secs": session_timeout_secs,
|
|
600
|
+
"sip_transport": sip_transport,
|
|
601
|
+
"status_callback": status_callback,
|
|
602
|
+
"status_callback_method": status_callback_method,
|
|
603
|
+
"track": track,
|
|
604
|
+
},
|
|
605
|
+
call_siprec_json_params.CallSiprecJsonParams,
|
|
606
|
+
),
|
|
607
|
+
options=make_request_options(
|
|
608
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
609
|
+
),
|
|
610
|
+
cast_to=CallSiprecJsonResponse,
|
|
611
|
+
)
|
|
612
|
+
|
|
613
|
+
def streams_json(
|
|
614
|
+
self,
|
|
615
|
+
call_sid: str,
|
|
616
|
+
*,
|
|
617
|
+
account_sid: str,
|
|
618
|
+
bidirectional_codec: Literal["PCMU", "PCMA", "G722"] | Omit = omit,
|
|
619
|
+
bidirectional_mode: Literal["mp3", "rtp"] | Omit = omit,
|
|
620
|
+
name: str | Omit = omit,
|
|
621
|
+
status_callback: str | Omit = omit,
|
|
622
|
+
status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
623
|
+
track: Literal["inbound_track", "outbound_track", "both_tracks"] | Omit = omit,
|
|
624
|
+
url: str | Omit = omit,
|
|
625
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
626
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
627
|
+
extra_headers: Headers | None = None,
|
|
628
|
+
extra_query: Query | None = None,
|
|
629
|
+
extra_body: Body | None = None,
|
|
630
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
631
|
+
) -> CallStreamsJsonResponse:
|
|
632
|
+
"""
|
|
633
|
+
Starts streaming media from a call to a specific WebSocket address.
|
|
634
|
+
|
|
635
|
+
Args:
|
|
636
|
+
bidirectional_codec: Indicates codec for bidirectional streaming RTP payloads. Used only with
|
|
637
|
+
stream_bidirectional_mode=rtp. Case sensitive.
|
|
638
|
+
|
|
639
|
+
bidirectional_mode: Configures method of bidirectional streaming (mp3, rtp).
|
|
640
|
+
|
|
641
|
+
name: The user specified name of Stream.
|
|
642
|
+
|
|
643
|
+
status_callback: Url where status callbacks will be sent.
|
|
644
|
+
|
|
645
|
+
status_callback_method: HTTP method used to send status callbacks.
|
|
646
|
+
|
|
647
|
+
track: Tracks to be included in the stream
|
|
648
|
+
|
|
649
|
+
url: The destination WebSocket address where the stream is going to be delivered.
|
|
650
|
+
|
|
651
|
+
extra_headers: Send extra headers
|
|
652
|
+
|
|
653
|
+
extra_query: Add additional query parameters to the request
|
|
654
|
+
|
|
655
|
+
extra_body: Add additional JSON properties to the request
|
|
656
|
+
|
|
657
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
658
|
+
"""
|
|
659
|
+
if not account_sid:
|
|
660
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
661
|
+
if not call_sid:
|
|
662
|
+
raise ValueError(f"Expected a non-empty value for `call_sid` but received {call_sid!r}")
|
|
663
|
+
return self._post(
|
|
664
|
+
f"/texml/Accounts/{account_sid}/Calls/{call_sid}/Streams.json",
|
|
665
|
+
body=maybe_transform(
|
|
666
|
+
{
|
|
667
|
+
"bidirectional_codec": bidirectional_codec,
|
|
668
|
+
"bidirectional_mode": bidirectional_mode,
|
|
669
|
+
"name": name,
|
|
670
|
+
"status_callback": status_callback,
|
|
671
|
+
"status_callback_method": status_callback_method,
|
|
672
|
+
"track": track,
|
|
673
|
+
"url": url,
|
|
674
|
+
},
|
|
675
|
+
call_streams_json_params.CallStreamsJsonParams,
|
|
676
|
+
),
|
|
677
|
+
options=make_request_options(
|
|
678
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
679
|
+
),
|
|
680
|
+
cast_to=CallStreamsJsonResponse,
|
|
681
|
+
)
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
class AsyncCallsResource(AsyncAPIResource):
|
|
685
|
+
@cached_property
|
|
686
|
+
def recordings_json(self) -> AsyncRecordingsJsonResource:
|
|
687
|
+
return AsyncRecordingsJsonResource(self._client)
|
|
688
|
+
|
|
689
|
+
@cached_property
|
|
690
|
+
def recordings(self) -> AsyncRecordingsResource:
|
|
691
|
+
return AsyncRecordingsResource(self._client)
|
|
692
|
+
|
|
693
|
+
@cached_property
|
|
694
|
+
def siprec(self) -> AsyncSiprecResource:
|
|
695
|
+
return AsyncSiprecResource(self._client)
|
|
696
|
+
|
|
697
|
+
@cached_property
|
|
698
|
+
def streams(self) -> AsyncStreamsResource:
|
|
699
|
+
return AsyncStreamsResource(self._client)
|
|
700
|
+
|
|
701
|
+
@cached_property
|
|
702
|
+
def with_raw_response(self) -> AsyncCallsResourceWithRawResponse:
|
|
703
|
+
"""
|
|
704
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
705
|
+
the raw response object instead of the parsed content.
|
|
706
|
+
|
|
707
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
|
|
708
|
+
"""
|
|
709
|
+
return AsyncCallsResourceWithRawResponse(self)
|
|
710
|
+
|
|
711
|
+
@cached_property
|
|
712
|
+
def with_streaming_response(self) -> AsyncCallsResourceWithStreamingResponse:
|
|
713
|
+
"""
|
|
714
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
715
|
+
|
|
716
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#with_streaming_response
|
|
717
|
+
"""
|
|
718
|
+
return AsyncCallsResourceWithStreamingResponse(self)
|
|
719
|
+
|
|
720
|
+
async def retrieve(
|
|
721
|
+
self,
|
|
722
|
+
call_sid: str,
|
|
723
|
+
*,
|
|
724
|
+
account_sid: str,
|
|
725
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
726
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
727
|
+
extra_headers: Headers | None = None,
|
|
728
|
+
extra_query: Query | None = None,
|
|
729
|
+
extra_body: Body | None = None,
|
|
730
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
731
|
+
) -> CallRetrieveResponse:
|
|
732
|
+
"""Returns an individual call identified by its CallSid.
|
|
733
|
+
|
|
734
|
+
This endpoint is
|
|
735
|
+
eventually consistent.
|
|
736
|
+
|
|
737
|
+
Args:
|
|
738
|
+
extra_headers: Send extra headers
|
|
739
|
+
|
|
740
|
+
extra_query: Add additional query parameters to the request
|
|
741
|
+
|
|
742
|
+
extra_body: Add additional JSON properties to the request
|
|
743
|
+
|
|
744
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
745
|
+
"""
|
|
746
|
+
if not account_sid:
|
|
747
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
748
|
+
if not call_sid:
|
|
749
|
+
raise ValueError(f"Expected a non-empty value for `call_sid` but received {call_sid!r}")
|
|
750
|
+
return await self._get(
|
|
751
|
+
f"/texml/Accounts/{account_sid}/Calls/{call_sid}",
|
|
752
|
+
options=make_request_options(
|
|
753
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
754
|
+
),
|
|
755
|
+
cast_to=CallRetrieveResponse,
|
|
756
|
+
)
|
|
757
|
+
|
|
758
|
+
async def update(
|
|
759
|
+
self,
|
|
760
|
+
call_sid: str,
|
|
761
|
+
*,
|
|
762
|
+
account_sid: str,
|
|
763
|
+
fallback_method: Literal["GET", "POST"] | Omit = omit,
|
|
764
|
+
fallback_url: str | Omit = omit,
|
|
765
|
+
method: Literal["GET", "POST"] | Omit = omit,
|
|
766
|
+
status: str | Omit = omit,
|
|
767
|
+
status_callback: str | Omit = omit,
|
|
768
|
+
status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
769
|
+
texml: str | Omit = omit,
|
|
770
|
+
url: str | Omit = omit,
|
|
771
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
772
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
773
|
+
extra_headers: Headers | None = None,
|
|
774
|
+
extra_query: Query | None = None,
|
|
775
|
+
extra_body: Body | None = None,
|
|
776
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
777
|
+
) -> CallUpdateResponse:
|
|
778
|
+
"""Update TeXML call.
|
|
779
|
+
|
|
780
|
+
Please note that the keys present in the payload MUST BE
|
|
781
|
+
formatted in CamelCase as specified in the example.
|
|
782
|
+
|
|
783
|
+
Args:
|
|
784
|
+
fallback_method: HTTP request type used for `FallbackUrl`.
|
|
785
|
+
|
|
786
|
+
fallback_url: A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
787
|
+
Url is not responding.
|
|
788
|
+
|
|
789
|
+
method: HTTP request type used for `Url`.
|
|
790
|
+
|
|
791
|
+
status: The value to set the call status to. Setting the status to completed ends the
|
|
792
|
+
call.
|
|
793
|
+
|
|
794
|
+
status_callback: URL destination for Telnyx to send status callback events to for the call.
|
|
795
|
+
|
|
796
|
+
status_callback_method: HTTP request type used for `StatusCallback`.
|
|
797
|
+
|
|
798
|
+
texml: TeXML to replace the current one with.
|
|
799
|
+
|
|
800
|
+
url: The URL where TeXML will make a request to retrieve a new set of TeXML
|
|
801
|
+
instructions to continue the call flow.
|
|
802
|
+
|
|
803
|
+
extra_headers: Send extra headers
|
|
804
|
+
|
|
805
|
+
extra_query: Add additional query parameters to the request
|
|
806
|
+
|
|
807
|
+
extra_body: Add additional JSON properties to the request
|
|
808
|
+
|
|
809
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
810
|
+
"""
|
|
811
|
+
if not account_sid:
|
|
812
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
813
|
+
if not call_sid:
|
|
814
|
+
raise ValueError(f"Expected a non-empty value for `call_sid` but received {call_sid!r}")
|
|
815
|
+
return await self._post(
|
|
816
|
+
f"/texml/Accounts/{account_sid}/Calls/{call_sid}",
|
|
817
|
+
body=await async_maybe_transform(
|
|
818
|
+
{
|
|
819
|
+
"fallback_method": fallback_method,
|
|
820
|
+
"fallback_url": fallback_url,
|
|
821
|
+
"method": method,
|
|
822
|
+
"status": status,
|
|
823
|
+
"status_callback": status_callback,
|
|
824
|
+
"status_callback_method": status_callback_method,
|
|
825
|
+
"texml": texml,
|
|
826
|
+
"url": url,
|
|
827
|
+
},
|
|
828
|
+
call_update_params.CallUpdateParams,
|
|
829
|
+
),
|
|
830
|
+
options=make_request_options(
|
|
831
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
832
|
+
),
|
|
833
|
+
cast_to=CallUpdateResponse,
|
|
834
|
+
)
|
|
835
|
+
|
|
836
|
+
async def calls(
|
|
837
|
+
self,
|
|
838
|
+
account_sid: str,
|
|
839
|
+
*,
|
|
840
|
+
application_sid: str,
|
|
841
|
+
from_: str,
|
|
842
|
+
to: str,
|
|
843
|
+
async_amd: bool | Omit = omit,
|
|
844
|
+
async_amd_status_callback: str | Omit = omit,
|
|
845
|
+
async_amd_status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
846
|
+
caller_id: str | Omit = omit,
|
|
847
|
+
cancel_playback_on_detect_message_end: bool | Omit = omit,
|
|
848
|
+
cancel_playback_on_machine_detection: bool | Omit = omit,
|
|
849
|
+
custom_headers: Iterable[call_calls_params.CustomHeader] | Omit = omit,
|
|
850
|
+
detection_mode: Literal["Premium", "Regular"] | Omit = omit,
|
|
851
|
+
fallback_url: str | Omit = omit,
|
|
852
|
+
machine_detection: Literal["Enable", "Disable", "DetectMessageEnd"] | Omit = omit,
|
|
853
|
+
machine_detection_silence_timeout: int | Omit = omit,
|
|
854
|
+
machine_detection_speech_end_threshold: int | Omit = omit,
|
|
855
|
+
machine_detection_speech_threshold: int | Omit = omit,
|
|
856
|
+
machine_detection_timeout: int | Omit = omit,
|
|
857
|
+
preferred_codecs: str | Omit = omit,
|
|
858
|
+
record: bool | Omit = omit,
|
|
859
|
+
recording_channels: Literal["mono", "dual"] | Omit = omit,
|
|
860
|
+
recording_status_callback: str | Omit = omit,
|
|
861
|
+
recording_status_callback_event: str | Omit = omit,
|
|
862
|
+
recording_status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
863
|
+
recording_timeout: int | Omit = omit,
|
|
864
|
+
recording_track: Literal["inbound", "outbound", "both"] | Omit = omit,
|
|
865
|
+
send_recording_url: bool | Omit = omit,
|
|
866
|
+
sip_auth_password: str | Omit = omit,
|
|
867
|
+
sip_auth_username: str | Omit = omit,
|
|
868
|
+
sip_region: Literal["US", "Europe", "Canada", "Australia", "Middle East"] | Omit = omit,
|
|
869
|
+
status_callback: str | Omit = omit,
|
|
870
|
+
status_callback_event: Literal["initiated", "ringing", "answered", "completed"] | Omit = omit,
|
|
871
|
+
status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
872
|
+
supervise_call_sid: str | Omit = omit,
|
|
873
|
+
supervising_role: Literal["barge", "whisper", "monitor"] | Omit = omit,
|
|
874
|
+
trim: Literal["trim-silence", "do-not-trim"] | Omit = omit,
|
|
875
|
+
url: str | Omit = omit,
|
|
876
|
+
url_method: Literal["GET", "POST"] | Omit = omit,
|
|
877
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
878
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
879
|
+
extra_headers: Headers | None = None,
|
|
880
|
+
extra_query: Query | None = None,
|
|
881
|
+
extra_body: Body | None = None,
|
|
882
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
883
|
+
) -> CallCallsResponse:
|
|
884
|
+
"""Initiate an outbound TeXML call.
|
|
885
|
+
|
|
886
|
+
Telnyx will request TeXML from the XML Request
|
|
887
|
+
URL configured for the connection in the Mission Control Portal.
|
|
888
|
+
|
|
889
|
+
Args:
|
|
890
|
+
application_sid: The ID of the TeXML Application.
|
|
891
|
+
|
|
892
|
+
from_: The phone number of the party that initiated the call. Phone numbers are
|
|
893
|
+
formatted with a `+` and country code.
|
|
894
|
+
|
|
895
|
+
to: The phone number of the called party. Phone numbers are formatted with a `+` and
|
|
896
|
+
country code.
|
|
897
|
+
|
|
898
|
+
async_amd: Select whether to perform answering machine detection in the background. By
|
|
899
|
+
default execution is blocked until Answering Machine Detection is completed.
|
|
900
|
+
|
|
901
|
+
async_amd_status_callback: URL destination for Telnyx to send AMD callback events to for the call.
|
|
902
|
+
|
|
903
|
+
async_amd_status_callback_method: HTTP request type used for `AsyncAmdStatusCallback`. The default value is
|
|
904
|
+
inherited from TeXML Application setting.
|
|
905
|
+
|
|
906
|
+
caller_id: To be used as the caller id name (SIP From Display Name) presented to the
|
|
907
|
+
destination (`To` number). The string should have a maximum of 128 characters,
|
|
908
|
+
containing only letters, numbers, spaces, and `-_~!.+` special characters. If
|
|
909
|
+
ommited, the display name will be the same as the number in the `From` field.
|
|
910
|
+
|
|
911
|
+
cancel_playback_on_detect_message_end: Whether to cancel ongoing playback on `greeting ended` detection. Defaults to
|
|
912
|
+
`true`.
|
|
913
|
+
|
|
914
|
+
cancel_playback_on_machine_detection: Whether to cancel ongoing playback on `machine` detection. Defaults to `true`.
|
|
915
|
+
|
|
916
|
+
custom_headers: Custom HTTP headers to be sent with the call. Each header should be an object
|
|
917
|
+
with 'name' and 'value' properties.
|
|
918
|
+
|
|
919
|
+
detection_mode: Allows you to chose between Premium and Standard detections.
|
|
920
|
+
|
|
921
|
+
fallback_url: A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
922
|
+
`Url` is not responding.
|
|
923
|
+
|
|
924
|
+
machine_detection: Enables Answering Machine Detection.
|
|
925
|
+
|
|
926
|
+
machine_detection_silence_timeout: If initial silence duration is greater than this value, consider it a machine.
|
|
927
|
+
Ignored when `premium` detection is used.
|
|
928
|
+
|
|
929
|
+
machine_detection_speech_end_threshold: Silence duration threshold after a greeting message or voice for it be
|
|
930
|
+
considered human. Ignored when `premium` detection is used.
|
|
931
|
+
|
|
932
|
+
machine_detection_speech_threshold: Maximum threshold of a human greeting. If greeting longer than this value,
|
|
933
|
+
considered machine. Ignored when `premium` detection is used.
|
|
934
|
+
|
|
935
|
+
machine_detection_timeout: Maximum timeout threshold in milliseconds for overall detection.
|
|
936
|
+
|
|
937
|
+
preferred_codecs: The list of comma-separated codecs to be offered on a call.
|
|
938
|
+
|
|
939
|
+
record: Whether to record the entire participant's call leg. Defaults to `false`.
|
|
940
|
+
|
|
941
|
+
recording_channels: The number of channels in the final recording. Defaults to `mono`.
|
|
942
|
+
|
|
943
|
+
recording_status_callback: The URL the recording callbacks will be sent to.
|
|
944
|
+
|
|
945
|
+
recording_status_callback_event: The changes to the recording's state that should generate a call to
|
|
946
|
+
`RecoridngStatusCallback`. Can be: `in-progress`, `completed` and `absent`.
|
|
947
|
+
Separate multiple values with a space. Defaults to `completed`.
|
|
948
|
+
|
|
949
|
+
recording_status_callback_method: HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.
|
|
950
|
+
|
|
951
|
+
recording_timeout: The number of seconds that Telnyx will wait for the recording to be stopped if
|
|
952
|
+
silence is detected. The timer only starts when the speech is detected. Please
|
|
953
|
+
note that the transcription is used to detect silence and the related charge
|
|
954
|
+
will be applied. The minimum value is 0. The default value is 0 (infinite)
|
|
955
|
+
|
|
956
|
+
recording_track: The audio track to record for the call. The default is `both`.
|
|
957
|
+
|
|
958
|
+
send_recording_url: Whether to send RecordingUrl in webhooks.
|
|
959
|
+
|
|
960
|
+
sip_auth_password: The password to use for SIP authentication.
|
|
961
|
+
|
|
962
|
+
sip_auth_username: The username to use for SIP authentication.
|
|
963
|
+
|
|
964
|
+
sip_region: Defines the SIP region to be used for the call.
|
|
965
|
+
|
|
966
|
+
status_callback: URL destination for Telnyx to send status callback events to for the call.
|
|
967
|
+
|
|
968
|
+
status_callback_event: The call events for which Telnyx should send a webhook. Multiple events can be
|
|
969
|
+
defined when separated by a space.
|
|
970
|
+
|
|
971
|
+
status_callback_method: HTTP request type used for `StatusCallback`.
|
|
972
|
+
|
|
973
|
+
supervise_call_sid: The call control ID of the existing call to supervise. When provided, the
|
|
974
|
+
created leg will be added to the specified call in supervising mode. Status
|
|
975
|
+
callbacks and action callbacks will NOT be sent for the supervising leg.
|
|
976
|
+
|
|
977
|
+
supervising_role: The supervising role for the new leg. Determines the audio behavior: barge (hear
|
|
978
|
+
both sides), whisper (only hear supervisor), monitor (hear both sides but
|
|
979
|
+
supervisor muted). Default: barge
|
|
980
|
+
|
|
981
|
+
trim: Whether to trim any leading and trailing silence from the recording. Defaults to
|
|
982
|
+
`trim-silence`.
|
|
983
|
+
|
|
984
|
+
url: The URL from which Telnyx will retrieve the TeXML call instructions.
|
|
985
|
+
|
|
986
|
+
url_method: HTTP request type used for `Url`. The default value is inherited from TeXML
|
|
987
|
+
Application setting.
|
|
988
|
+
|
|
989
|
+
extra_headers: Send extra headers
|
|
990
|
+
|
|
991
|
+
extra_query: Add additional query parameters to the request
|
|
992
|
+
|
|
993
|
+
extra_body: Add additional JSON properties to the request
|
|
994
|
+
|
|
995
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
996
|
+
"""
|
|
997
|
+
if not account_sid:
|
|
998
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
999
|
+
return await self._post(
|
|
1000
|
+
f"/texml/Accounts/{account_sid}/Calls",
|
|
1001
|
+
body=await async_maybe_transform(
|
|
1002
|
+
{
|
|
1003
|
+
"application_sid": application_sid,
|
|
1004
|
+
"from_": from_,
|
|
1005
|
+
"to": to,
|
|
1006
|
+
"async_amd": async_amd,
|
|
1007
|
+
"async_amd_status_callback": async_amd_status_callback,
|
|
1008
|
+
"async_amd_status_callback_method": async_amd_status_callback_method,
|
|
1009
|
+
"caller_id": caller_id,
|
|
1010
|
+
"cancel_playback_on_detect_message_end": cancel_playback_on_detect_message_end,
|
|
1011
|
+
"cancel_playback_on_machine_detection": cancel_playback_on_machine_detection,
|
|
1012
|
+
"custom_headers": custom_headers,
|
|
1013
|
+
"detection_mode": detection_mode,
|
|
1014
|
+
"fallback_url": fallback_url,
|
|
1015
|
+
"machine_detection": machine_detection,
|
|
1016
|
+
"machine_detection_silence_timeout": machine_detection_silence_timeout,
|
|
1017
|
+
"machine_detection_speech_end_threshold": machine_detection_speech_end_threshold,
|
|
1018
|
+
"machine_detection_speech_threshold": machine_detection_speech_threshold,
|
|
1019
|
+
"machine_detection_timeout": machine_detection_timeout,
|
|
1020
|
+
"preferred_codecs": preferred_codecs,
|
|
1021
|
+
"record": record,
|
|
1022
|
+
"recording_channels": recording_channels,
|
|
1023
|
+
"recording_status_callback": recording_status_callback,
|
|
1024
|
+
"recording_status_callback_event": recording_status_callback_event,
|
|
1025
|
+
"recording_status_callback_method": recording_status_callback_method,
|
|
1026
|
+
"recording_timeout": recording_timeout,
|
|
1027
|
+
"recording_track": recording_track,
|
|
1028
|
+
"send_recording_url": send_recording_url,
|
|
1029
|
+
"sip_auth_password": sip_auth_password,
|
|
1030
|
+
"sip_auth_username": sip_auth_username,
|
|
1031
|
+
"sip_region": sip_region,
|
|
1032
|
+
"status_callback": status_callback,
|
|
1033
|
+
"status_callback_event": status_callback_event,
|
|
1034
|
+
"status_callback_method": status_callback_method,
|
|
1035
|
+
"supervise_call_sid": supervise_call_sid,
|
|
1036
|
+
"supervising_role": supervising_role,
|
|
1037
|
+
"trim": trim,
|
|
1038
|
+
"url": url,
|
|
1039
|
+
"url_method": url_method,
|
|
1040
|
+
},
|
|
1041
|
+
call_calls_params.CallCallsParams,
|
|
1042
|
+
),
|
|
1043
|
+
options=make_request_options(
|
|
1044
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1045
|
+
),
|
|
1046
|
+
cast_to=CallCallsResponse,
|
|
1047
|
+
)
|
|
1048
|
+
|
|
1049
|
+
async def retrieve_calls(
|
|
1050
|
+
self,
|
|
1051
|
+
account_sid: str,
|
|
1052
|
+
*,
|
|
1053
|
+
end_time: str | Omit = omit,
|
|
1054
|
+
end_time_gt: str | Omit = omit,
|
|
1055
|
+
end_time_lt: str | Omit = omit,
|
|
1056
|
+
from_: str | Omit = omit,
|
|
1057
|
+
page: int | Omit = omit,
|
|
1058
|
+
page_size: int | Omit = omit,
|
|
1059
|
+
page_token: str | Omit = omit,
|
|
1060
|
+
start_time: str | Omit = omit,
|
|
1061
|
+
start_time_gt: str | Omit = omit,
|
|
1062
|
+
start_time_lt: str | Omit = omit,
|
|
1063
|
+
status: Literal["canceled", "completed", "failed", "busy", "no-answer"] | Omit = omit,
|
|
1064
|
+
to: str | Omit = omit,
|
|
1065
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1066
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1067
|
+
extra_headers: Headers | None = None,
|
|
1068
|
+
extra_query: Query | None = None,
|
|
1069
|
+
extra_body: Body | None = None,
|
|
1070
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1071
|
+
) -> CallRetrieveCallsResponse:
|
|
1072
|
+
"""Returns multiple call resouces for an account.
|
|
1073
|
+
|
|
1074
|
+
This endpoint is eventually
|
|
1075
|
+
consistent.
|
|
1076
|
+
|
|
1077
|
+
Args:
|
|
1078
|
+
end_time: Filters calls by their end date. Expected format is YYYY-MM-DD
|
|
1079
|
+
|
|
1080
|
+
end_time_gt: Filters calls by their end date (after). Expected format is YYYY-MM-DD
|
|
1081
|
+
|
|
1082
|
+
end_time_lt: Filters calls by their end date (before). Expected format is YYYY-MM-DD
|
|
1083
|
+
|
|
1084
|
+
from_: Filters calls by the from number.
|
|
1085
|
+
|
|
1086
|
+
page: The number of the page to be displayed, zero-indexed, should be used in
|
|
1087
|
+
conjuction with PageToken.
|
|
1088
|
+
|
|
1089
|
+
page_size: The number of records to be displayed on a page
|
|
1090
|
+
|
|
1091
|
+
page_token: Used to request the next page of results.
|
|
1092
|
+
|
|
1093
|
+
start_time: Filters calls by their start date. Expected format is YYYY-MM-DD.
|
|
1094
|
+
|
|
1095
|
+
start_time_gt: Filters calls by their start date (after). Expected format is YYYY-MM-DD
|
|
1096
|
+
|
|
1097
|
+
start_time_lt: Filters calls by their start date (before). Expected format is YYYY-MM-DD
|
|
1098
|
+
|
|
1099
|
+
status: Filters calls by status.
|
|
1100
|
+
|
|
1101
|
+
to: Filters calls by the to number.
|
|
1102
|
+
|
|
1103
|
+
extra_headers: Send extra headers
|
|
1104
|
+
|
|
1105
|
+
extra_query: Add additional query parameters to the request
|
|
1106
|
+
|
|
1107
|
+
extra_body: Add additional JSON properties to the request
|
|
1108
|
+
|
|
1109
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1110
|
+
"""
|
|
1111
|
+
if not account_sid:
|
|
1112
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
1113
|
+
return await self._get(
|
|
1114
|
+
f"/texml/Accounts/{account_sid}/Calls",
|
|
1115
|
+
options=make_request_options(
|
|
1116
|
+
extra_headers=extra_headers,
|
|
1117
|
+
extra_query=extra_query,
|
|
1118
|
+
extra_body=extra_body,
|
|
1119
|
+
timeout=timeout,
|
|
1120
|
+
query=await async_maybe_transform(
|
|
1121
|
+
{
|
|
1122
|
+
"end_time": end_time,
|
|
1123
|
+
"end_time_gt": end_time_gt,
|
|
1124
|
+
"end_time_lt": end_time_lt,
|
|
1125
|
+
"from_": from_,
|
|
1126
|
+
"page": page,
|
|
1127
|
+
"page_size": page_size,
|
|
1128
|
+
"page_token": page_token,
|
|
1129
|
+
"start_time": start_time,
|
|
1130
|
+
"start_time_gt": start_time_gt,
|
|
1131
|
+
"start_time_lt": start_time_lt,
|
|
1132
|
+
"status": status,
|
|
1133
|
+
"to": to,
|
|
1134
|
+
},
|
|
1135
|
+
call_retrieve_calls_params.CallRetrieveCallsParams,
|
|
1136
|
+
),
|
|
1137
|
+
),
|
|
1138
|
+
cast_to=CallRetrieveCallsResponse,
|
|
1139
|
+
)
|
|
1140
|
+
|
|
1141
|
+
async def siprec_json(
|
|
1142
|
+
self,
|
|
1143
|
+
call_sid: str,
|
|
1144
|
+
*,
|
|
1145
|
+
account_sid: str,
|
|
1146
|
+
connector_name: str | Omit = omit,
|
|
1147
|
+
include_metadata_custom_headers: Literal[True, False] | Omit = omit,
|
|
1148
|
+
name: str | Omit = omit,
|
|
1149
|
+
secure: Literal[True, False] | Omit = omit,
|
|
1150
|
+
session_timeout_secs: int | Omit = omit,
|
|
1151
|
+
sip_transport: Literal["udp", "tcp", "tls"] | Omit = omit,
|
|
1152
|
+
status_callback: str | Omit = omit,
|
|
1153
|
+
status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
1154
|
+
track: Literal["both_tracks", "inbound_track", "outbound_track"] | Omit = omit,
|
|
1155
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1156
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1157
|
+
extra_headers: Headers | None = None,
|
|
1158
|
+
extra_query: Query | None = None,
|
|
1159
|
+
extra_body: Body | None = None,
|
|
1160
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1161
|
+
) -> CallSiprecJsonResponse:
|
|
1162
|
+
"""
|
|
1163
|
+
Starts siprec session with specified parameters for call idientified by
|
|
1164
|
+
call_sid.
|
|
1165
|
+
|
|
1166
|
+
Args:
|
|
1167
|
+
connector_name: The name of the connector to use for the SIPREC session.
|
|
1168
|
+
|
|
1169
|
+
include_metadata_custom_headers: When set, custom parameters will be added as metadata
|
|
1170
|
+
(recording.session.ExtensionParameters). Otherwise, they’ll be added to sip
|
|
1171
|
+
headers.
|
|
1172
|
+
|
|
1173
|
+
name: Name of the SIPREC session. May be used to stop the SIPREC session from TeXML
|
|
1174
|
+
instruction.
|
|
1175
|
+
|
|
1176
|
+
secure: Controls whether to encrypt media sent to your SRS using SRTP and TLS. When set
|
|
1177
|
+
you need to configure SRS port in your connector to 5061.
|
|
1178
|
+
|
|
1179
|
+
session_timeout_secs: Sets `Session-Expires` header to the INVITE. A reinvite is sent every half the
|
|
1180
|
+
value set. Usefull for session keep alive. Minimum value is 90, set to 0 to
|
|
1181
|
+
disable.
|
|
1182
|
+
|
|
1183
|
+
sip_transport: Specifies SIP transport protocol.
|
|
1184
|
+
|
|
1185
|
+
status_callback: URL destination for Telnyx to send status callback events to for the siprec
|
|
1186
|
+
session.
|
|
1187
|
+
|
|
1188
|
+
status_callback_method: HTTP request type used for `StatusCallback`.
|
|
1189
|
+
|
|
1190
|
+
track: The track to be used for siprec session. Can be `both_tracks`, `inbound_track`
|
|
1191
|
+
or `outbound_track`. Defaults to `both_tracks`.
|
|
1192
|
+
|
|
1193
|
+
extra_headers: Send extra headers
|
|
1194
|
+
|
|
1195
|
+
extra_query: Add additional query parameters to the request
|
|
1196
|
+
|
|
1197
|
+
extra_body: Add additional JSON properties to the request
|
|
1198
|
+
|
|
1199
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1200
|
+
"""
|
|
1201
|
+
if not account_sid:
|
|
1202
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
1203
|
+
if not call_sid:
|
|
1204
|
+
raise ValueError(f"Expected a non-empty value for `call_sid` but received {call_sid!r}")
|
|
1205
|
+
return await self._post(
|
|
1206
|
+
f"/texml/Accounts/{account_sid}/Calls/{call_sid}/Siprec.json",
|
|
1207
|
+
body=await async_maybe_transform(
|
|
1208
|
+
{
|
|
1209
|
+
"connector_name": connector_name,
|
|
1210
|
+
"include_metadata_custom_headers": include_metadata_custom_headers,
|
|
1211
|
+
"name": name,
|
|
1212
|
+
"secure": secure,
|
|
1213
|
+
"session_timeout_secs": session_timeout_secs,
|
|
1214
|
+
"sip_transport": sip_transport,
|
|
1215
|
+
"status_callback": status_callback,
|
|
1216
|
+
"status_callback_method": status_callback_method,
|
|
1217
|
+
"track": track,
|
|
1218
|
+
},
|
|
1219
|
+
call_siprec_json_params.CallSiprecJsonParams,
|
|
1220
|
+
),
|
|
1221
|
+
options=make_request_options(
|
|
1222
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1223
|
+
),
|
|
1224
|
+
cast_to=CallSiprecJsonResponse,
|
|
1225
|
+
)
|
|
1226
|
+
|
|
1227
|
+
async def streams_json(
|
|
1228
|
+
self,
|
|
1229
|
+
call_sid: str,
|
|
1230
|
+
*,
|
|
1231
|
+
account_sid: str,
|
|
1232
|
+
bidirectional_codec: Literal["PCMU", "PCMA", "G722"] | Omit = omit,
|
|
1233
|
+
bidirectional_mode: Literal["mp3", "rtp"] | Omit = omit,
|
|
1234
|
+
name: str | Omit = omit,
|
|
1235
|
+
status_callback: str | Omit = omit,
|
|
1236
|
+
status_callback_method: Literal["GET", "POST"] | Omit = omit,
|
|
1237
|
+
track: Literal["inbound_track", "outbound_track", "both_tracks"] | Omit = omit,
|
|
1238
|
+
url: str | Omit = omit,
|
|
1239
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1240
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1241
|
+
extra_headers: Headers | None = None,
|
|
1242
|
+
extra_query: Query | None = None,
|
|
1243
|
+
extra_body: Body | None = None,
|
|
1244
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1245
|
+
) -> CallStreamsJsonResponse:
|
|
1246
|
+
"""
|
|
1247
|
+
Starts streaming media from a call to a specific WebSocket address.
|
|
1248
|
+
|
|
1249
|
+
Args:
|
|
1250
|
+
bidirectional_codec: Indicates codec for bidirectional streaming RTP payloads. Used only with
|
|
1251
|
+
stream_bidirectional_mode=rtp. Case sensitive.
|
|
1252
|
+
|
|
1253
|
+
bidirectional_mode: Configures method of bidirectional streaming (mp3, rtp).
|
|
1254
|
+
|
|
1255
|
+
name: The user specified name of Stream.
|
|
1256
|
+
|
|
1257
|
+
status_callback: Url where status callbacks will be sent.
|
|
1258
|
+
|
|
1259
|
+
status_callback_method: HTTP method used to send status callbacks.
|
|
1260
|
+
|
|
1261
|
+
track: Tracks to be included in the stream
|
|
1262
|
+
|
|
1263
|
+
url: The destination WebSocket address where the stream is going to be delivered.
|
|
1264
|
+
|
|
1265
|
+
extra_headers: Send extra headers
|
|
1266
|
+
|
|
1267
|
+
extra_query: Add additional query parameters to the request
|
|
1268
|
+
|
|
1269
|
+
extra_body: Add additional JSON properties to the request
|
|
1270
|
+
|
|
1271
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1272
|
+
"""
|
|
1273
|
+
if not account_sid:
|
|
1274
|
+
raise ValueError(f"Expected a non-empty value for `account_sid` but received {account_sid!r}")
|
|
1275
|
+
if not call_sid:
|
|
1276
|
+
raise ValueError(f"Expected a non-empty value for `call_sid` but received {call_sid!r}")
|
|
1277
|
+
return await self._post(
|
|
1278
|
+
f"/texml/Accounts/{account_sid}/Calls/{call_sid}/Streams.json",
|
|
1279
|
+
body=await async_maybe_transform(
|
|
1280
|
+
{
|
|
1281
|
+
"bidirectional_codec": bidirectional_codec,
|
|
1282
|
+
"bidirectional_mode": bidirectional_mode,
|
|
1283
|
+
"name": name,
|
|
1284
|
+
"status_callback": status_callback,
|
|
1285
|
+
"status_callback_method": status_callback_method,
|
|
1286
|
+
"track": track,
|
|
1287
|
+
"url": url,
|
|
1288
|
+
},
|
|
1289
|
+
call_streams_json_params.CallStreamsJsonParams,
|
|
1290
|
+
),
|
|
1291
|
+
options=make_request_options(
|
|
1292
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1293
|
+
),
|
|
1294
|
+
cast_to=CallStreamsJsonResponse,
|
|
1295
|
+
)
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
class CallsResourceWithRawResponse:
|
|
1299
|
+
def __init__(self, calls: CallsResource) -> None:
|
|
1300
|
+
self._calls = calls
|
|
1301
|
+
|
|
1302
|
+
self.retrieve = to_raw_response_wrapper(
|
|
1303
|
+
calls.retrieve,
|
|
1304
|
+
)
|
|
1305
|
+
self.update = to_raw_response_wrapper(
|
|
1306
|
+
calls.update,
|
|
1307
|
+
)
|
|
1308
|
+
self.calls = to_raw_response_wrapper(
|
|
1309
|
+
calls.calls,
|
|
1310
|
+
)
|
|
1311
|
+
self.retrieve_calls = to_raw_response_wrapper(
|
|
1312
|
+
calls.retrieve_calls,
|
|
1313
|
+
)
|
|
1314
|
+
self.siprec_json = to_raw_response_wrapper(
|
|
1315
|
+
calls.siprec_json,
|
|
1316
|
+
)
|
|
1317
|
+
self.streams_json = to_raw_response_wrapper(
|
|
1318
|
+
calls.streams_json,
|
|
1319
|
+
)
|
|
1320
|
+
|
|
1321
|
+
@cached_property
|
|
1322
|
+
def recordings_json(self) -> RecordingsJsonResourceWithRawResponse:
|
|
1323
|
+
return RecordingsJsonResourceWithRawResponse(self._calls.recordings_json)
|
|
1324
|
+
|
|
1325
|
+
@cached_property
|
|
1326
|
+
def recordings(self) -> RecordingsResourceWithRawResponse:
|
|
1327
|
+
return RecordingsResourceWithRawResponse(self._calls.recordings)
|
|
1328
|
+
|
|
1329
|
+
@cached_property
|
|
1330
|
+
def siprec(self) -> SiprecResourceWithRawResponse:
|
|
1331
|
+
return SiprecResourceWithRawResponse(self._calls.siprec)
|
|
1332
|
+
|
|
1333
|
+
@cached_property
|
|
1334
|
+
def streams(self) -> StreamsResourceWithRawResponse:
|
|
1335
|
+
return StreamsResourceWithRawResponse(self._calls.streams)
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
class AsyncCallsResourceWithRawResponse:
|
|
1339
|
+
def __init__(self, calls: AsyncCallsResource) -> None:
|
|
1340
|
+
self._calls = calls
|
|
1341
|
+
|
|
1342
|
+
self.retrieve = async_to_raw_response_wrapper(
|
|
1343
|
+
calls.retrieve,
|
|
1344
|
+
)
|
|
1345
|
+
self.update = async_to_raw_response_wrapper(
|
|
1346
|
+
calls.update,
|
|
1347
|
+
)
|
|
1348
|
+
self.calls = async_to_raw_response_wrapper(
|
|
1349
|
+
calls.calls,
|
|
1350
|
+
)
|
|
1351
|
+
self.retrieve_calls = async_to_raw_response_wrapper(
|
|
1352
|
+
calls.retrieve_calls,
|
|
1353
|
+
)
|
|
1354
|
+
self.siprec_json = async_to_raw_response_wrapper(
|
|
1355
|
+
calls.siprec_json,
|
|
1356
|
+
)
|
|
1357
|
+
self.streams_json = async_to_raw_response_wrapper(
|
|
1358
|
+
calls.streams_json,
|
|
1359
|
+
)
|
|
1360
|
+
|
|
1361
|
+
@cached_property
|
|
1362
|
+
def recordings_json(self) -> AsyncRecordingsJsonResourceWithRawResponse:
|
|
1363
|
+
return AsyncRecordingsJsonResourceWithRawResponse(self._calls.recordings_json)
|
|
1364
|
+
|
|
1365
|
+
@cached_property
|
|
1366
|
+
def recordings(self) -> AsyncRecordingsResourceWithRawResponse:
|
|
1367
|
+
return AsyncRecordingsResourceWithRawResponse(self._calls.recordings)
|
|
1368
|
+
|
|
1369
|
+
@cached_property
|
|
1370
|
+
def siprec(self) -> AsyncSiprecResourceWithRawResponse:
|
|
1371
|
+
return AsyncSiprecResourceWithRawResponse(self._calls.siprec)
|
|
1372
|
+
|
|
1373
|
+
@cached_property
|
|
1374
|
+
def streams(self) -> AsyncStreamsResourceWithRawResponse:
|
|
1375
|
+
return AsyncStreamsResourceWithRawResponse(self._calls.streams)
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
class CallsResourceWithStreamingResponse:
|
|
1379
|
+
def __init__(self, calls: CallsResource) -> None:
|
|
1380
|
+
self._calls = calls
|
|
1381
|
+
|
|
1382
|
+
self.retrieve = to_streamed_response_wrapper(
|
|
1383
|
+
calls.retrieve,
|
|
1384
|
+
)
|
|
1385
|
+
self.update = to_streamed_response_wrapper(
|
|
1386
|
+
calls.update,
|
|
1387
|
+
)
|
|
1388
|
+
self.calls = to_streamed_response_wrapper(
|
|
1389
|
+
calls.calls,
|
|
1390
|
+
)
|
|
1391
|
+
self.retrieve_calls = to_streamed_response_wrapper(
|
|
1392
|
+
calls.retrieve_calls,
|
|
1393
|
+
)
|
|
1394
|
+
self.siprec_json = to_streamed_response_wrapper(
|
|
1395
|
+
calls.siprec_json,
|
|
1396
|
+
)
|
|
1397
|
+
self.streams_json = to_streamed_response_wrapper(
|
|
1398
|
+
calls.streams_json,
|
|
1399
|
+
)
|
|
1400
|
+
|
|
1401
|
+
@cached_property
|
|
1402
|
+
def recordings_json(self) -> RecordingsJsonResourceWithStreamingResponse:
|
|
1403
|
+
return RecordingsJsonResourceWithStreamingResponse(self._calls.recordings_json)
|
|
1404
|
+
|
|
1405
|
+
@cached_property
|
|
1406
|
+
def recordings(self) -> RecordingsResourceWithStreamingResponse:
|
|
1407
|
+
return RecordingsResourceWithStreamingResponse(self._calls.recordings)
|
|
1408
|
+
|
|
1409
|
+
@cached_property
|
|
1410
|
+
def siprec(self) -> SiprecResourceWithStreamingResponse:
|
|
1411
|
+
return SiprecResourceWithStreamingResponse(self._calls.siprec)
|
|
1412
|
+
|
|
1413
|
+
@cached_property
|
|
1414
|
+
def streams(self) -> StreamsResourceWithStreamingResponse:
|
|
1415
|
+
return StreamsResourceWithStreamingResponse(self._calls.streams)
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
class AsyncCallsResourceWithStreamingResponse:
|
|
1419
|
+
def __init__(self, calls: AsyncCallsResource) -> None:
|
|
1420
|
+
self._calls = calls
|
|
1421
|
+
|
|
1422
|
+
self.retrieve = async_to_streamed_response_wrapper(
|
|
1423
|
+
calls.retrieve,
|
|
1424
|
+
)
|
|
1425
|
+
self.update = async_to_streamed_response_wrapper(
|
|
1426
|
+
calls.update,
|
|
1427
|
+
)
|
|
1428
|
+
self.calls = async_to_streamed_response_wrapper(
|
|
1429
|
+
calls.calls,
|
|
1430
|
+
)
|
|
1431
|
+
self.retrieve_calls = async_to_streamed_response_wrapper(
|
|
1432
|
+
calls.retrieve_calls,
|
|
1433
|
+
)
|
|
1434
|
+
self.siprec_json = async_to_streamed_response_wrapper(
|
|
1435
|
+
calls.siprec_json,
|
|
1436
|
+
)
|
|
1437
|
+
self.streams_json = async_to_streamed_response_wrapper(
|
|
1438
|
+
calls.streams_json,
|
|
1439
|
+
)
|
|
1440
|
+
|
|
1441
|
+
@cached_property
|
|
1442
|
+
def recordings_json(self) -> AsyncRecordingsJsonResourceWithStreamingResponse:
|
|
1443
|
+
return AsyncRecordingsJsonResourceWithStreamingResponse(self._calls.recordings_json)
|
|
1444
|
+
|
|
1445
|
+
@cached_property
|
|
1446
|
+
def recordings(self) -> AsyncRecordingsResourceWithStreamingResponse:
|
|
1447
|
+
return AsyncRecordingsResourceWithStreamingResponse(self._calls.recordings)
|
|
1448
|
+
|
|
1449
|
+
@cached_property
|
|
1450
|
+
def siprec(self) -> AsyncSiprecResourceWithStreamingResponse:
|
|
1451
|
+
return AsyncSiprecResourceWithStreamingResponse(self._calls.siprec)
|
|
1452
|
+
|
|
1453
|
+
@cached_property
|
|
1454
|
+
def streams(self) -> AsyncStreamsResourceWithStreamingResponse:
|
|
1455
|
+
return AsyncStreamsResourceWithStreamingResponse(self._calls.streams)
|