telnyx 3.0.0a0__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.
Potentially problematic release.
This version of telnyx might be problematic. Click here for more details.
- telnyx/__init__.py +90 -0
- telnyx/_base_client.py +1995 -0
- telnyx/_client.py +3163 -0
- telnyx/_compat.py +219 -0
- telnyx/_constants.py +14 -0
- telnyx/_exceptions.py +108 -0
- telnyx/_files.py +123 -0
- telnyx/_models.py +829 -0
- telnyx/_qs.py +150 -0
- telnyx/_resource.py +43 -0
- telnyx/_response.py +830 -0
- telnyx/_streaming.py +333 -0
- telnyx/_types.py +219 -0
- telnyx/_utils/__init__.py +57 -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 +86 -0
- telnyx/_utils/_transform.py +447 -0
- telnyx/_utils/_typing.py +151 -0
- telnyx/_utils/_utils.py +422 -0
- telnyx/_version.py +4 -0
- telnyx/lib/.keep +4 -0
- telnyx/py.typed +0 -0
- telnyx/resources/__init__.py +2049 -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 +232 -0
- telnyx/resources/actions/register.py +208 -0
- telnyx/resources/addresses/__init__.py +33 -0
- telnyx/resources/addresses/actions.py +314 -0
- telnyx/resources/addresses/addresses.py +660 -0
- telnyx/resources/advanced_orders.py +329 -0
- telnyx/resources/ai/__init__.py +117 -0
- telnyx/resources/ai/ai.py +500 -0
- telnyx/resources/ai/assistants/__init__.py +89 -0
- telnyx/resources/ai/assistants/assistants.py +1313 -0
- telnyx/resources/ai/assistants/canary_deploys.py +448 -0
- telnyx/resources/ai/assistants/scheduled_events.py +534 -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 +304 -0
- telnyx/resources/ai/assistants/tests/test_suites/test_suites.py +173 -0
- telnyx/resources/ai/assistants/tests/tests.py +759 -0
- telnyx/resources/ai/assistants/tools.py +199 -0
- telnyx/resources/ai/assistants/versions.py +672 -0
- telnyx/resources/ai/audio.py +248 -0
- telnyx/resources/ai/chat.py +409 -0
- telnyx/resources/ai/clusters.py +597 -0
- telnyx/resources/ai/conversations/__init__.py +61 -0
- telnyx/resources/ai/conversations/conversations.py +813 -0
- telnyx/resources/ai/conversations/insight_groups/__init__.py +33 -0
- telnyx/resources/ai/conversations/insight_groups/insight_groups.py +580 -0
- telnyx/resources/ai/conversations/insight_groups/insights.py +268 -0
- telnyx/resources/ai/conversations/insights.py +554 -0
- telnyx/resources/ai/conversations/messages.py +298 -0
- telnyx/resources/ai/embeddings/__init__.py +33 -0
- telnyx/resources/ai/embeddings/buckets.py +298 -0
- telnyx/resources/ai/embeddings/embeddings.py +710 -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/audit_events.py +211 -0
- telnyx/resources/authentication_providers.py +666 -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 +501 -0
- telnyx/resources/brand/__init__.py +33 -0
- telnyx/resources/brand/brand.py +1316 -0
- telnyx/resources/brand/external_vetting.py +389 -0
- telnyx/resources/bulk_sim_card_actions.py +288 -0
- telnyx/resources/bundle_pricing/__init__.py +47 -0
- telnyx/resources/bundle_pricing/billing_bundles.py +296 -0
- telnyx/resources/bundle_pricing/bundle_pricing.py +134 -0
- telnyx/resources/bundle_pricing/user_bundles.py +686 -0
- telnyx/resources/call_control_applications.py +812 -0
- telnyx/resources/call_events.py +213 -0
- telnyx/resources/calls/__init__.py +33 -0
- telnyx/resources/calls/actions.py +7061 -0
- telnyx/resources/calls/calls.py +872 -0
- telnyx/resources/campaign/__init__.py +47 -0
- telnyx/resources/campaign/campaign.py +1064 -0
- telnyx/resources/campaign/osr.py +162 -0
- telnyx/resources/campaign/usecase.py +169 -0
- telnyx/resources/campaign_builder/__init__.py +33 -0
- telnyx/resources/campaign_builder/brand.py +171 -0
- telnyx/resources/campaign_builder/campaign_builder.py +523 -0
- telnyx/resources/channel_zones.py +282 -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 +2029 -0
- telnyx/resources/conferences/conferences.py +670 -0
- telnyx/resources/connections.py +423 -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 +995 -0
- telnyx/resources/custom_storage_credentials.py +441 -0
- telnyx/resources/customer_service_records.py +488 -0
- telnyx/resources/detail_records.py +207 -0
- telnyx/resources/dialogflow_connections.py +514 -0
- telnyx/resources/document_links.py +197 -0
- telnyx/resources/documents.py +804 -0
- telnyx/resources/dynamic_emergency_addresses.py +482 -0
- telnyx/resources/dynamic_emergency_endpoints.py +452 -0
- telnyx/resources/enum.py +210 -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 +928 -0
- telnyx/resources/external_connections/log_messages.py +355 -0
- telnyx/resources/external_connections/phone_numbers.py +387 -0
- telnyx/resources/external_connections/releases.py +292 -0
- telnyx/resources/external_connections/uploads.py +671 -0
- telnyx/resources/fax_applications.py +744 -0
- telnyx/resources/faxes/__init__.py +33 -0
- telnyx/resources/faxes/actions.py +244 -0
- telnyx/resources/faxes/faxes.py +648 -0
- telnyx/resources/fqdn_connections.py +921 -0
- telnyx/resources/fqdns.py +605 -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 +529 -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 +444 -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 +442 -0
- telnyx/resources/inbound_channels.py +240 -0
- telnyx/resources/integration_secrets.py +400 -0
- telnyx/resources/inventory_coverage.py +185 -0
- telnyx/resources/invoices.py +288 -0
- telnyx/resources/ip_connections.py +899 -0
- telnyx/resources/ips.py +575 -0
- telnyx/resources/ledger_billing_group_reports.py +264 -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 +773 -0
- telnyx/resources/media.py +678 -0
- telnyx/resources/messages/__init__.py +33 -0
- telnyx/resources/messages/messages.py +1425 -0
- telnyx/resources/messages/rcs.py +199 -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 +368 -0
- telnyx/resources/messaging/rcs/rcs.py +389 -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 +766 -0
- telnyx/resources/messaging_hosted_numbers.py +163 -0
- telnyx/resources/messaging_numbers_bulk_updates.py +278 -0
- telnyx/resources/messaging_optouts.py +217 -0
- telnyx/resources/messaging_profiles/__init__.py +33 -0
- telnyx/resources/messaging_profiles/autoresp_configs.py +599 -0
- telnyx/resources/messaging_profiles/messaging_profiles.py +1048 -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 +922 -0
- telnyx/resources/messaging_tollfree/verification/verification.py +102 -0
- telnyx/resources/messaging_url_domains.py +177 -0
- telnyx/resources/messsages.py +224 -0
- telnyx/resources/mobile_network_operators.py +207 -0
- telnyx/resources/mobile_push_credentials.py +579 -0
- telnyx/resources/network_coverage.py +211 -0
- telnyx/resources/networks/__init__.py +33 -0
- telnyx/resources/networks/default_gateway.py +335 -0
- telnyx/resources/networks/networks.py +666 -0
- telnyx/resources/notification_channels.py +585 -0
- telnyx/resources/notification_event_conditions.py +201 -0
- telnyx/resources/notification_events.py +177 -0
- telnyx/resources/notification_profiles.py +511 -0
- telnyx/resources/notification_settings.py +472 -0
- telnyx/resources/number_block_orders.py +401 -0
- telnyx/resources/number_lookup.py +183 -0
- telnyx/resources/number_order_phone_numbers.py +461 -0
- telnyx/resources/number_orders.py +499 -0
- telnyx/resources/number_reservations/__init__.py +33 -0
- telnyx/resources/number_reservations/actions.py +167 -0
- telnyx/resources/number_reservations/number_reservations.py +410 -0
- telnyx/resources/numbers_features.py +169 -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/ota_updates.py +276 -0
- telnyx/resources/outbound_voice_profiles.py +821 -0
- telnyx/resources/partner_campaigns.py +630 -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_assignment_by_profile.py +416 -0
- telnyx/resources/phone_number_blocks/__init__.py +33 -0
- telnyx/resources/phone_number_blocks/jobs.py +377 -0
- telnyx/resources/phone_number_blocks/phone_number_blocks.py +102 -0
- telnyx/resources/phone_number_campaigns.py +576 -0
- telnyx/resources/phone_numbers/__init__.py +103 -0
- telnyx/resources/phone_numbers/actions.py +385 -0
- telnyx/resources/phone_numbers/csv_downloads.py +375 -0
- telnyx/resources/phone_numbers/jobs.py +686 -0
- telnyx/resources/phone_numbers/messaging.py +379 -0
- telnyx/resources/phone_numbers/phone_numbers.py +854 -0
- telnyx/resources/phone_numbers/voice.py +468 -0
- telnyx/resources/phone_numbers/voicemail.py +375 -0
- telnyx/resources/phone_numbers_regulatory_requirements.py +185 -0
- telnyx/resources/portability_checks.py +173 -0
- telnyx/resources/porting/__init__.py +61 -0
- telnyx/resources/porting/events.py +354 -0
- telnyx/resources/porting/loa_configurations.py +815 -0
- telnyx/resources/porting/porting.py +231 -0
- telnyx/resources/porting/reports.py +378 -0
- telnyx/resources/porting_orders/__init__.py +159 -0
- telnyx/resources/porting_orders/action_requirements.py +308 -0
- telnyx/resources/porting_orders/actions.py +438 -0
- telnyx/resources/porting_orders/activation_jobs.py +366 -0
- telnyx/resources/porting_orders/additional_documents.py +392 -0
- telnyx/resources/porting_orders/associated_phone_numbers.py +411 -0
- telnyx/resources/porting_orders/comments.py +264 -0
- telnyx/resources/porting_orders/phone_number_blocks.py +405 -0
- telnyx/resources/porting_orders/phone_number_configurations.py +294 -0
- telnyx/resources/porting_orders/phone_number_extensions.py +413 -0
- telnyx/resources/porting_orders/porting_orders.py +1438 -0
- telnyx/resources/porting_orders/verification_codes.py +399 -0
- telnyx/resources/porting_phone_numbers.py +197 -0
- telnyx/resources/portouts/__init__.py +75 -0
- telnyx/resources/portouts/comments.py +252 -0
- telnyx/resources/portouts/events.py +356 -0
- telnyx/resources/portouts/portouts.py +622 -0
- telnyx/resources/portouts/reports.py +378 -0
- telnyx/resources/portouts/supporting_documents.py +258 -0
- telnyx/resources/private_wireless_gateways.py +502 -0
- telnyx/resources/public_internet_gateways.py +458 -0
- telnyx/resources/queues/__init__.py +33 -0
- telnyx/resources/queues/calls.py +266 -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 +170 -0
- telnyx/resources/recordings/recordings.py +391 -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 +561 -0
- telnyx/resources/reports/reports.py +505 -0
- telnyx/resources/requirement_groups.py +625 -0
- telnyx/resources/requirement_types.py +279 -0
- telnyx/resources/requirements.py +315 -0
- telnyx/resources/room_compositions.py +516 -0
- telnyx/resources/room_participants.py +288 -0
- telnyx/resources/room_recordings.py +483 -0
- telnyx/resources/rooms/__init__.py +47 -0
- telnyx/resources/rooms/actions.py +310 -0
- telnyx/resources/rooms/rooms.py +736 -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 +371 -0
- telnyx/resources/sim_card_data_usage_notifications.py +569 -0
- telnyx/resources/sim_card_groups/__init__.py +33 -0
- telnyx/resources/sim_card_groups/actions.py +690 -0
- telnyx/resources/sim_card_groups/sim_card_groups.py +632 -0
- telnyx/resources/sim_card_order_preview.py +187 -0
- telnyx/resources/sim_card_orders.py +381 -0
- telnyx/resources/sim_cards/__init__.py +33 -0
- telnyx/resources/sim_cards/actions.py +934 -0
- telnyx/resources/sim_cards/sim_cards.py +970 -0
- telnyx/resources/siprec_connectors.py +481 -0
- telnyx/resources/storage/__init__.py +61 -0
- telnyx/resources/storage/buckets/__init__.py +47 -0
- telnyx/resources/storage/buckets/buckets.py +257 -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 +665 -0
- telnyx/resources/texml/__init__.py +47 -0
- telnyx/resources/texml/accounts/__init__.py +75 -0
- telnyx/resources/texml/accounts/accounts.py +453 -0
- telnyx/resources/texml/accounts/calls/__init__.py +75 -0
- telnyx/resources/texml/accounts/calls/calls.py +1412 -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 +1106 -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 +808 -0
- telnyx/resources/text_to_speech.py +327 -0
- telnyx/resources/usage_reports.py +389 -0
- telnyx/resources/user_addresses.py +541 -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 +570 -0
- telnyx/resources/verified_numbers/__init__.py +33 -0
- telnyx/resources/verified_numbers/actions.py +179 -0
- telnyx/resources/verified_numbers/verified_numbers.py +469 -0
- telnyx/resources/verify_profiles.py +627 -0
- telnyx/resources/virtual_cross_connects.py +773 -0
- telnyx/resources/virtual_cross_connects_coverage.py +215 -0
- telnyx/resources/webhook_deliveries.py +282 -0
- telnyx/resources/wireguard_interfaces.py +470 -0
- telnyx/resources/wireguard_peers.py +631 -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 +590 -0
- telnyx/types/__init__.py +1223 -0
- telnyx/types/access_ip_address_create_params.py +13 -0
- telnyx/types/access_ip_address_list_params.py +63 -0
- telnyx/types/access_ip_address_list_response.py +24 -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/access_ip_range_list_response.py +24 -0
- telnyx/types/actions/__init__.py +8 -0
- telnyx/types/actions/purchase_create_params.py +36 -0
- telnyx/types/actions/purchase_create_response.py +35 -0
- telnyx/types/actions/register_create_params.py +25 -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 +106 -0
- telnyx/types/address_list_response.py +15 -0
- telnyx/types/address_retrieve_response.py +12 -0
- telnyx/types/addresses/__init__.py +8 -0
- telnyx/types/addresses/action_accept_suggestions_params.py +14 -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 +64 -0
- telnyx/types/advanced_order_create_params.py +24 -0
- telnyx/types/ai/__init__.py +87 -0
- telnyx/types/ai/assistant_chat_params.py +18 -0
- telnyx/types/ai/assistant_chat_response.py +10 -0
- telnyx/types/ai/assistant_clone_response.py +92 -0
- telnyx/types/ai/assistant_create_params.py +86 -0
- telnyx/types/ai/assistant_create_response.py +92 -0
- telnyx/types/ai/assistant_delete_response.py +13 -0
- telnyx/types/ai/assistant_get_texml_response.py +7 -0
- telnyx/types/ai/assistant_import_params.py +19 -0
- telnyx/types/ai/assistant_param.py +108 -0
- telnyx/types/ai/assistant_retrieve_params.py +19 -0
- telnyx/types/ai/assistant_retrieve_response.py +92 -0
- telnyx/types/ai/assistant_tool.py +122 -0
- telnyx/types/ai/assistant_tool_param.py +123 -0
- telnyx/types/ai/assistant_update_params.py +92 -0
- telnyx/types/ai/assistants/__init__.py +30 -0
- telnyx/types/ai/assistants/assistant_test.py +52 -0
- telnyx/types/ai/assistants/canary_deploy_create_params.py +15 -0
- telnyx/types/ai/assistants/canary_deploy_response.py +19 -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 +32 -0
- telnyx/types/ai/assistants/scheduled_event_list_response.py +19 -0
- telnyx/types/ai/assistants/scheduled_event_response.py +11 -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 +32 -0
- telnyx/types/ai/assistants/test_list_response.py +18 -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 +26 -0
- telnyx/types/ai/assistants/tests/run_trigger_params.py +16 -0
- telnyx/types/ai/assistants/tests/test_run_response.py +76 -0
- telnyx/types/ai/assistants/tests/test_status.py +7 -0
- telnyx/types/ai/assistants/tests/test_suite_list_response.py +13 -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 +17 -0
- telnyx/types/ai/assistants/tests/test_suites/run_list_params.py +29 -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 +24 -0
- telnyx/types/ai/assistants/version_config.py +13 -0
- telnyx/types/ai/assistants/version_config_param.py +15 -0
- telnyx/types/ai/assistants/version_promote_response.py +92 -0
- telnyx/types/ai/assistants/version_retrieve_params.py +13 -0
- telnyx/types/ai/assistants/version_retrieve_response.py +92 -0
- telnyx/types/ai/assistants/version_update_params.py +88 -0
- telnyx/types/ai/assistants/version_update_response.py +92 -0
- telnyx/types/ai/assistants_list.py +96 -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/cluster_compute_params.py +37 -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 +21 -0
- telnyx/types/ai/cluster_list_response.py +32 -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_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 +22 -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 +23 -0
- telnyx/types/ai/conversations/insight_group_retrieve_insight_groups_response.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 +23 -0
- telnyx/types/ai/conversations/insight_list_response.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_create_params.py +29 -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 +13 -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 +33 -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 +51 -0
- telnyx/types/ai/fine_tuning/job_create_params.py +31 -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_bucket_ids.py +19 -0
- telnyx/types/ai/inference_embedding_bucket_ids_param.py +20 -0
- telnyx/types/ai/inference_embedding_transfer_tool_params.py +43 -0
- telnyx/types/ai/inference_embedding_transfer_tool_params_param.py +50 -0
- telnyx/types/ai/inference_embedding_webhook_tool_params.py +99 -0
- telnyx/types/ai/inference_embedding_webhook_tool_params_param.py +99 -0
- telnyx/types/ai/insight_settings.py +16 -0
- telnyx/types/ai/insight_settings_param.py +16 -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 +22 -0
- telnyx/types/ai/telephony_settings_param.py +22 -0
- telnyx/types/ai/transcription_settings.py +26 -0
- telnyx/types/ai/transcription_settings_param.py +26 -0
- telnyx/types/ai/transfer_tool.py +14 -0
- telnyx/types/ai/transfer_tool_param.py +15 -0
- telnyx/types/ai/voice_settings.py +36 -0
- telnyx/types/ai/voice_settings_param.py +36 -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/alt_business_id_type.py +7 -0
- telnyx/types/anchorsite_override.py +18 -0
- telnyx/types/audit_event_list_params.py +44 -0
- telnyx/types/audit_event_list_response.py +82 -0
- telnyx/types/authentication_provider.py +71 -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 +51 -0
- telnyx/types/authentication_provider_list_response.py +15 -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 +30 -0
- telnyx/types/available_phone_number_block_list_response.py +60 -0
- telnyx/types/available_phone_number_list_params.py +92 -0
- telnyx/types/available_phone_number_list_response.py +75 -0
- telnyx/types/available_service.py +7 -0
- telnyx/types/azure_configuration_data.py +18 -0
- telnyx/types/azure_configuration_data_param.py +18 -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 +23 -0
- telnyx/types/billing_group_list_response.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/brand/__init__.py +7 -0
- telnyx/types/brand/external_vetting_import_params.py +23 -0
- telnyx/types/brand/external_vetting_import_response.py +43 -0
- telnyx/types/brand/external_vetting_order_params.py +17 -0
- telnyx/types/brand_create_params.py +91 -0
- telnyx/types/brand_get_feedback_response.py +31 -0
- telnyx/types/brand_identity_status.py +7 -0
- telnyx/types/brand_list_params.py +51 -0
- telnyx/types/brand_list_response.py +61 -0
- telnyx/types/brand_retrieve_response.py +14 -0
- telnyx/types/brand_update_params.py +96 -0
- telnyx/types/bulk_sim_card_action_list_params.py +20 -0
- telnyx/types/bulk_sim_card_action_list_response.py +47 -0
- telnyx/types/bulk_sim_card_action_retrieve_response.py +44 -0
- telnyx/types/bundle_pricing/__init__.py +20 -0
- telnyx/types/bundle_pricing/billing_bundle_list_params.py +42 -0
- telnyx/types/bundle_pricing/billing_bundle_list_response.py +15 -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 +42 -0
- telnyx/types/bundle_pricing/user_bundle_list_resources_response.py +12 -0
- telnyx/types/bundle_pricing/user_bundle_list_response.py +15 -0
- telnyx/types/bundle_pricing/user_bundle_list_unused_params.py +28 -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_control_application.py +80 -0
- telnyx/types/call_control_application_create_params.py +70 -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 +141 -0
- telnyx/types/call_control_application_list_response.py +15 -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 +73 -0
- telnyx/types/call_control_application_update_response.py +12 -0
- telnyx/types/call_dial_params.py +435 -0
- telnyx/types/call_dial_response.py +56 -0
- telnyx/types/call_event_list_params.py +123 -0
- telnyx/types/call_event_list_response.py +43 -0
- telnyx/types/call_retrieve_status_response.py +50 -0
- telnyx/types/calls/__init__.py +95 -0
- telnyx/types/calls/action_answer_params.py +149 -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 +37 -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 +138 -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 +97 -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 +31 -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 +59 -0
- telnyx/types/calls/action_start_streaming_response.py +12 -0
- telnyx/types/calls/action_start_transcription_params.py +41 -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 +199 -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 +9 -0
- telnyx/types/calls/call_control_command_result.py +11 -0
- telnyx/types/calls/eleven_labs_voice_settings_param.py +17 -0
- telnyx/types/calls/google_transcription_language.py +88 -0
- telnyx/types/calls/interruption_settings_param.py +12 -0
- telnyx/types/calls/loopcount_param.py +10 -0
- telnyx/types/calls/telnyx_voice_settings_param.py +15 -0
- telnyx/types/calls/transcription_config_param.py +19 -0
- telnyx/types/calls/transcription_engine_a_config_param.py +64 -0
- telnyx/types/calls/transcription_engine_b_config_param.py +119 -0
- telnyx/types/calls/transcription_start_request_param.py +40 -0
- telnyx/types/campaign/__init__.py +6 -0
- telnyx/types/campaign/usecase_get_cost_params.py +11 -0
- telnyx/types/campaign/usecase_get_cost_response.py +17 -0
- telnyx/types/campaign_builder/__init__.py +5 -0
- telnyx/types/campaign_builder/brand_qualify_by_usecase_response.py +36 -0
- telnyx/types/campaign_builder_create_params.py +145 -0
- telnyx/types/campaign_builder_create_response.py +10 -0
- telnyx/types/campaign_deactivate_response.py +15 -0
- telnyx/types/campaign_get_mno_metadata_response.py +35 -0
- telnyx/types/campaign_get_sharing_status_response.py +16 -0
- telnyx/types/campaign_list_params.py +39 -0
- telnyx/types/campaign_list_response.py +225 -0
- telnyx/types/campaign_sharing_status.py +21 -0
- telnyx/types/campaign_submit_appeal_params.py +15 -0
- telnyx/types/campaign_submit_appeal_response.py +16 -0
- telnyx/types/campaign_update_params.py +47 -0
- telnyx/types/channel_zone_list_params.py +23 -0
- telnyx/types/channel_zone_list_response.py +37 -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/client_create_bucket_params.py +13 -0
- telnyx/types/client_delete_objects_params.py +20 -0
- telnyx/types/client_get_object_params.py +15 -0
- telnyx/types/client_list_objects_params.py +13 -0
- telnyx/types/client_put_object_params.py +20 -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 +23 -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 +53 -0
- telnyx/types/conference_create_params.py +72 -0
- telnyx/types/conference_create_response.py +12 -0
- telnyx/types/conference_list_params.py +123 -0
- telnyx/types/conference_list_participants_params.py +51 -0
- telnyx/types/conference_list_participants_response.py +69 -0
- telnyx/types/conference_list_response.py +15 -0
- telnyx/types/conference_retrieve_response.py +12 -0
- telnyx/types/conferences/__init__.py +33 -0
- telnyx/types/conferences/action_hold_params.py +30 -0
- telnyx/types/conferences/action_hold_response.py +12 -0
- telnyx/types/conferences/action_join_params.py +100 -0
- telnyx/types/conferences/action_join_response.py +12 -0
- telnyx/types/conferences/action_leave_params.py +26 -0
- telnyx/types/conferences/action_leave_response.py +12 -0
- telnyx/types/conferences/action_mute_params.py +16 -0
- telnyx/types/conferences/action_mute_response.py +12 -0
- telnyx/types/conferences/action_play_params.py +39 -0
- telnyx/types/conferences/action_play_response.py +12 -0
- telnyx/types/conferences/action_record_pause_params.py +19 -0
- telnyx/types/conferences/action_record_pause_response.py +12 -0
- telnyx/types/conferences/action_record_resume_params.py +19 -0
- telnyx/types/conferences/action_record_resume_response.py +12 -0
- telnyx/types/conferences/action_record_start_params.py +37 -0
- telnyx/types/conferences/action_record_start_response.py +12 -0
- telnyx/types/conferences/action_record_stop_params.py +25 -0
- telnyx/types/conferences/action_record_stop_response.py +12 -0
- telnyx/types/conferences/action_speak_params.py +110 -0
- telnyx/types/conferences/action_speak_response.py +12 -0
- telnyx/types/conferences/action_stop_params.py +16 -0
- telnyx/types/conferences/action_stop_response.py +12 -0
- telnyx/types/conferences/action_unhold_params.py +16 -0
- telnyx/types/conferences/action_unhold_response.py +12 -0
- telnyx/types/conferences/action_unmute_params.py +17 -0
- telnyx/types/conferences/action_unmute_response.py +12 -0
- telnyx/types/conferences/action_update_params.py +37 -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 +32 -0
- telnyx/types/connection_list_active_calls_response.py +57 -0
- telnyx/types/connection_list_params.py +71 -0
- telnyx/types/connection_list_response.py +60 -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 +13 -0
- telnyx/types/country_coverage_retrieve_country_response.py +71 -0
- telnyx/types/country_coverage_retrieve_response.py +71 -0
- telnyx/types/create_verification_response.py +10 -0
- telnyx/types/credential_connection.py +122 -0
- telnyx/types/credential_connection_create_params.py +122 -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 +71 -0
- telnyx/types/credential_connection_list_response.py +15 -0
- telnyx/types/credential_connection_retrieve_response.py +12 -0
- telnyx/types/credential_connection_update_params.py +118 -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 +60 -0
- telnyx/types/credential_inbound_param.py +60 -0
- telnyx/types/credential_outbound.py +66 -0
- telnyx/types/credential_outbound_param.py +64 -0
- telnyx/types/custom_sip_header_param.py +15 -0
- telnyx/types/custom_storage_configuration.py +19 -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 +86 -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 +98 -0
- telnyx/types/customer_service_record_list_response.py +15 -0
- telnyx/types/customer_service_record_retrieve_response.py +12 -0
- telnyx/types/customer_service_record_verify_phone_number_coverage_params.py +13 -0
- telnyx/types/customer_service_record_verify_phone_number_coverage_response.py +50 -0
- telnyx/types/detail_record_list_params.py +83 -0
- telnyx/types/detail_record_list_response.py +493 -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 +48 -0
- telnyx/types/document_delete_response.py +12 -0
- telnyx/types/document_link_list_params.py +37 -0
- telnyx/types/document_link_list_response.py +37 -0
- telnyx/types/document_list_params.py +75 -0
- telnyx/types/document_list_response.py +15 -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_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 +37 -0
- telnyx/types/dynamic_emergency_address_list_response.py +15 -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 +37 -0
- telnyx/types/dynamic_emergency_endpoint_list_response.py +15 -0
- telnyx/types/dynamic_emergency_endpoint_retrieve_response.py +12 -0
- telnyx/types/encrypted_media.py +8 -0
- telnyx/types/entity_type.py +7 -0
- telnyx/types/enum_retrieve_response.py +8 -0
- telnyx/types/error.py +27 -0
- telnyx/types/external_connection.py +75 -0
- telnyx/types/external_connection_create_params.py +57 -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 +76 -0
- telnyx/types/external_connection_list_response.py +15 -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 +54 -0
- telnyx/types/external_connection_update_response.py +12 -0
- telnyx/types/external_connections/__init__.py +30 -0
- telnyx/types/external_connections/civic_address_list_params.py +21 -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 +55 -0
- telnyx/types/external_connections/log_message_list_response.py +42 -0
- telnyx/types/external_connections/log_message_retrieve_response.py +39 -0
- telnyx/types/external_connections/phone_number_list_params.py +56 -0
- telnyx/types/external_connections/phone_number_list_response.py +15 -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 +76 -0
- telnyx/types/external_connections/release_list_response.py +43 -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 +26 -0
- telnyx/types/external_connections/upload_create_response.py +15 -0
- telnyx/types/external_connections/upload_list_params.py +72 -0
- telnyx/types/external_connections/upload_list_response.py +15 -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 +83 -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 +65 -0
- telnyx/types/fax_application_list_response.py +15 -0
- telnyx/types/fax_application_retrieve_response.py +12 -0
- telnyx/types/fax_application_update_params.py +89 -0
- telnyx/types/fax_application_update_response.py +12 -0
- telnyx/types/fax_create_params.py +81 -0
- telnyx/types/fax_create_response.py +12 -0
- telnyx/types/fax_list_params.py +84 -0
- telnyx/types/fax_list_response.py +14 -0
- telnyx/types/fax_retrieve_response.py +12 -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 +150 -0
- telnyx/types/fqdn_connection_create_params.py +110 -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 +71 -0
- telnyx/types/fqdn_connection_list_response.py +15 -0
- telnyx/types/fqdn_connection_retrieve_response.py +12 -0
- telnyx/types/fqdn_connection_update_params.py +104 -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 +44 -0
- telnyx/types/fqdn_list_response.py +15 -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 +18 -0
- telnyx/types/gcs_configuration_data_param.py +18 -0
- telnyx/types/global_ip_allowed_port_list_response.py +31 -0
- telnyx/types/global_ip_assignment.py +31 -0
- telnyx/types/global_ip_assignment_create_params.py +18 -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 +62 -0
- telnyx/types/global_ip_assignment_health_retrieve_response.py +66 -0
- telnyx/types/global_ip_assignment_list_params.py +23 -0
- telnyx/types/global_ip_assignment_list_response.py +15 -0
- telnyx/types/global_ip_assignment_param.py +18 -0
- telnyx/types/global_ip_assignment_retrieve_response.py +12 -0
- telnyx/types/global_ip_assignment_update_params.py +17 -0
- telnyx/types/global_ip_assignment_update_response.py +12 -0
- telnyx/types/global_ip_assignments_usage_retrieve_params.py +62 -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 +29 -0
- telnyx/types/global_ip_delete_response.py +29 -0
- telnyx/types/global_ip_health_check_create_params.py +19 -0
- telnyx/types/global_ip_health_check_create_response.py +26 -0
- telnyx/types/global_ip_health_check_delete_response.py +26 -0
- telnyx/types/global_ip_health_check_list_params.py +23 -0
- telnyx/types/global_ip_health_check_list_response.py +29 -0
- telnyx/types/global_ip_health_check_retrieve_response.py +26 -0
- telnyx/types/global_ip_health_check_type_list_response.py +22 -0
- telnyx/types/global_ip_latency_retrieve_params.py +37 -0
- telnyx/types/global_ip_latency_retrieve_response.py +143 -0
- telnyx/types/global_ip_list_params.py +23 -0
- telnyx/types/global_ip_list_response.py +32 -0
- telnyx/types/global_ip_protocol_list_response.py +22 -0
- telnyx/types/global_ip_retrieve_response.py +29 -0
- telnyx/types/global_ip_usage_retrieve_params.py +37 -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 +111 -0
- telnyx/types/inbound_ip.py +111 -0
- telnyx/types/inbound_ip_param.py +111 -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 +28 -0
- telnyx/types/integration_secret_list_response.py +24 -0
- telnyx/types/interface.py +19 -0
- telnyx/types/interface_status.py +7 -0
- telnyx/types/inventory_coverage_list_params.py +86 -0
- telnyx/types/inventory_coverage_list_response.py +41 -0
- telnyx/types/invoice_list_params.py +26 -0
- telnyx/types/invoice_list_response.py +38 -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 +106 -0
- telnyx/types/ip_connection_create_params.py +182 -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 +71 -0
- telnyx/types/ip_connection_list_response.py +15 -0
- telnyx/types/ip_connection_retrieve_response.py +12 -0
- telnyx/types/ip_connection_update_params.py +101 -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 +40 -0
- telnyx/types/ip_list_response.py +12 -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/list_buckets_response.py +20 -0
- telnyx/types/list_objects_response.py +24 -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 +86 -0
- telnyx/types/managed_account_list_response.py +59 -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 +21 -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 +198 -0
- telnyx/types/message_retrieve_response.py +215 -0
- telnyx/types/message_schedule_params.py +77 -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 +56 -0
- telnyx/types/message_send_number_pool_response.py +12 -0
- telnyx/types/message_send_params.py +77 -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/messages/__init__.py +6 -0
- telnyx/types/messages/rc_generate_deeplink_params.py +15 -0
- telnyx/types/messages/rc_generate_deeplink_response.py +14 -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 +16 -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 +7 -0
- telnyx/types/messaging/rcs/agent_list_params.py +23 -0
- telnyx/types/messaging/rcs/agent_list_response.py +15 -0
- telnyx/types/messaging/rcs/agent_update_params.py +19 -0
- telnyx/types/messaging/rcs_capabilities.py +25 -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 +13 -0
- telnyx/types/messaging_hosted_number_order_check_eligibility_response.py +42 -0
- telnyx/types/messaging_hosted_number_order_create_params.py +19 -0
- telnyx/types/messaging_hosted_number_order_create_response.py +12 -0
- telnyx/types/messaging_hosted_number_order_create_verification_codes_params.py +14 -0
- telnyx/types/messaging_hosted_number_order_create_verification_codes_response.py +39 -0
- telnyx/types/messaging_hosted_number_order_delete_response.py +12 -0
- telnyx/types/messaging_hosted_number_order_list_params.py +23 -0
- telnyx/types/messaging_hosted_number_order_list_response.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 +22 -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 +37 -0
- telnyx/types/messaging_profile.py +97 -0
- telnyx/types/messaging_profile_create_params.py +82 -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 +31 -0
- telnyx/types/messaging_profile_list_phone_numbers_params.py +23 -0
- telnyx/types/messaging_profile_list_phone_numbers_response.py +15 -0
- telnyx/types/messaging_profile_list_response.py +15 -0
- telnyx/types/messaging_profile_list_short_codes_params.py +23 -0
- telnyx/types/messaging_profile_list_short_codes_response.py +15 -0
- telnyx/types/messaging_profile_retrieve_response.py +12 -0
- telnyx/types/messaging_profile_update_params.py +87 -0
- telnyx/types/messaging_profile_update_response.py +12 -0
- telnyx/types/messaging_profiles/__init__.py +10 -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 +18 -0
- telnyx/types/messaging_profiles/autoresp_config_list_params.py +35 -0
- telnyx/types/messaging_profiles/autoresp_config_list_response.py +15 -0
- telnyx/types/messaging_profiles/autoresp_config_update_params.py +20 -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 +91 -0
- telnyx/types/messaging_tollfree/verification/request_list_params.py +31 -0
- telnyx/types/messaging_tollfree/verification/request_list_response.py +16 -0
- telnyx/types/messaging_tollfree/verification/request_update_params.py +91 -0
- telnyx/types/messaging_tollfree/verification/tf_phone_number.py +11 -0
- telnyx/types/messaging_tollfree/verification/tf_phone_number_param.py +13 -0
- telnyx/types/messaging_tollfree/verification/tf_verification_status.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 +67 -0
- telnyx/types/messaging_tollfree/verification/verification_request_status.py +72 -0
- telnyx/types/messaging_tollfree/verification/volume.py +9 -0
- telnyx/types/messaging_url_domain_list_params.py +23 -0
- telnyx/types/messaging_url_domain_list_response.py +24 -0
- telnyx/types/messsage_rcs_params.py +67 -0
- telnyx/types/messsage_rcs_response.py +59 -0
- telnyx/types/mobile_network_operator_list_params.py +62 -0
- telnyx/types/mobile_network_operator_list_response.py +57 -0
- telnyx/types/mobile_push_credential_create_params.py +36 -0
- telnyx/types/mobile_push_credential_list_params.py +37 -0
- telnyx/types/mobile_push_credential_list_response.py +15 -0
- telnyx/types/month_detail.py +18 -0
- telnyx/types/network_coverage_list_params.py +74 -0
- telnyx/types/network_coverage_list_response.py +42 -0
- telnyx/types/network_create_params.py +12 -0
- telnyx/types/network_create_response.py +20 -0
- telnyx/types/network_delete_response.py +20 -0
- telnyx/types/network_list_interfaces_params.py +37 -0
- telnyx/types/network_list_interfaces_response.py +40 -0
- telnyx/types/network_list_params.py +31 -0
- telnyx/types/network_list_response.py +23 -0
- telnyx/types/network_retrieve_response.py +20 -0
- telnyx/types/network_update_params.py +12 -0
- telnyx/types/network_update_response.py +20 -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 +30 -0
- telnyx/types/networks/default_gateway_delete_response.py +30 -0
- telnyx/types/networks/default_gateway_retrieve_response.py +30 -0
- telnyx/types/notification_channel.py +29 -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 +94 -0
- telnyx/types/notification_channel_list_response.py +15 -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 +94 -0
- telnyx/types/notification_event_condition_list_response.py +59 -0
- telnyx/types/notification_event_list_params.py +23 -0
- telnyx/types/notification_event_list_response.py +33 -0
- telnyx/types/notification_profile.py +22 -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 +23 -0
- telnyx/types/notification_profile_list_response.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 +94 -0
- telnyx/types/notification_setting_list_response.py +15 -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 +51 -0
- telnyx/types/number_block_order_list_response.py +15 -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 +55 -0
- telnyx/types/number_order_list_response.py +61 -0
- telnyx/types/number_order_phone_number.py +55 -0
- telnyx/types/number_order_phone_number_list_params.py +20 -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_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 +51 -0
- telnyx/types/number_pool_settings_param.py +51 -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 +54 -0
- telnyx/types/number_reservation_list_response.py +15 -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 +12 -0
- telnyx/types/numbers_feature_create_response.py +17 -0
- telnyx/types/operator_connect/__init__.py +5 -0
- telnyx/types/operator_connect/action_refresh_response.py +15 -0
- telnyx/types/ota_update_list_params.py +40 -0
- telnyx/types/ota_update_list_response.py +39 -0
- telnyx/types/ota_update_retrieve_response.py +71 -0
- telnyx/types/outbound_call_recording.py +28 -0
- telnyx/types/outbound_call_recording_param.py +28 -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 +196 -0
- telnyx/types/outbound_voice_profile.py +84 -0
- telnyx/types/outbound_voice_profile_create_params.py +71 -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 +70 -0
- telnyx/types/outbound_voice_profile_list_response.py +15 -0
- telnyx/types/outbound_voice_profile_retrieve_response.py +12 -0
- telnyx/types/outbound_voice_profile_update_params.py +71 -0
- telnyx/types/outbound_voice_profile_update_response.py +12 -0
- telnyx/types/pagination_meta.py +17 -0
- telnyx/types/partner_campaign_list_params.py +39 -0
- telnyx/types/partner_campaign_list_response.py +18 -0
- telnyx/types/partner_campaign_list_shared_by_me_params.py +20 -0
- telnyx/types/partner_campaign_list_shared_by_me_response.py +45 -0
- telnyx/types/partner_campaign_retrieve_sharing_status_response.py +10 -0
- telnyx/types/partner_campaign_update_params.py +17 -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_assignment_by_profile_assign_params.py +29 -0
- telnyx/types/phone_number_assignment_by_profile_assign_response.py +46 -0
- telnyx/types/phone_number_assignment_by_profile_retrieve_phone_number_status_params.py +15 -0
- telnyx/types/phone_number_assignment_by_profile_retrieve_phone_number_status_response.py +24 -0
- telnyx/types/phone_number_assignment_by_profile_retrieve_status_response.py +22 -0
- telnyx/types/phone_number_blocks/__init__.py +12 -0
- telnyx/types/phone_number_blocks/job.py +89 -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_list_params.py +43 -0
- telnyx/types/phone_number_blocks/job_list_response.py +15 -0
- telnyx/types/phone_number_blocks/job_retrieve_response.py +12 -0
- telnyx/types/phone_number_campaign.py +48 -0
- telnyx/types/phone_number_campaign_create_params.py +17 -0
- telnyx/types/phone_number_campaign_list_params.py +42 -0
- telnyx/types/phone_number_campaign_list_response.py +18 -0
- telnyx/types/phone_number_campaign_update_params.py +17 -0
- telnyx/types/phone_number_delete_response.py +113 -0
- telnyx/types/phone_number_detailed.py +139 -0
- telnyx/types/phone_number_list_params.py +130 -0
- telnyx/types/phone_number_list_response.py +15 -0
- telnyx/types/phone_number_retrieve_response.py +12 -0
- telnyx/types/phone_number_slim_list_params.py +148 -0
- telnyx/types/phone_number_slim_list_response.py +125 -0
- telnyx/types/phone_number_update_params.py +33 -0
- telnyx/types/phone_number_update_response.py +12 -0
- telnyx/types/phone_numbers/__init__.py +56 -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 +13 -0
- telnyx/types/phone_numbers/action_verify_ownership_response.py +30 -0
- telnyx/types/phone_numbers/call_forwarding.py +27 -0
- telnyx/types/phone_numbers/call_forwarding_param.py +26 -0
- telnyx/types/phone_numbers/call_recording.py +22 -0
- telnyx/types/phone_numbers/call_recording_param.py +21 -0
- telnyx/types/phone_numbers/cnam_listing.py +22 -0
- telnyx/types/phone_numbers/cnam_listing_param.py +22 -0
- telnyx/types/phone_numbers/csv_download.py +25 -0
- telnyx/types/phone_numbers/csv_download_create_params.py +96 -0
- telnyx/types/phone_numbers/csv_download_create_response.py +12 -0
- telnyx/types/phone_numbers/csv_download_list_params.py +23 -0
- telnyx/types/phone_numbers/csv_download_list_response.py +15 -0
- telnyx/types/phone_numbers/csv_download_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/job_delete_batch_params.py +12 -0
- telnyx/types/phone_numbers/job_delete_batch_response.py +12 -0
- telnyx/types/phone_numbers/job_list_params.py +37 -0
- telnyx/types/phone_numbers/job_list_response.py +15 -0
- telnyx/types/phone_numbers/job_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/job_update_batch_params.py +130 -0
- telnyx/types/phone_numbers/job_update_batch_response.py +12 -0
- telnyx/types/phone_numbers/job_update_emergency_settings_batch_params.py +22 -0
- telnyx/types/phone_numbers/job_update_emergency_settings_batch_response.py +12 -0
- telnyx/types/phone_numbers/media_features.py +28 -0
- telnyx/types/phone_numbers/media_features_param.py +28 -0
- telnyx/types/phone_numbers/messaging_list_params.py +23 -0
- telnyx/types/phone_numbers/messaging_list_response.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 +84 -0
- telnyx/types/phone_numbers/phone_numbers_job.py +111 -0
- telnyx/types/phone_numbers/update_voice_settings_param.py +52 -0
- telnyx/types/phone_numbers/voice_list_params.py +63 -0
- telnyx/types/phone_numbers/voice_list_response.py +15 -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 +20 -0
- telnyx/types/phone_numbers_regulatory_requirement_retrieve_response.py +62 -0
- telnyx/types/portability_check_run_params.py +13 -0
- telnyx/types/portability_check_run_response.py +31 -0
- telnyx/types/porting/__init__.py +26 -0
- telnyx/types/porting/event_list_params.py +61 -0
- telnyx/types/porting/event_list_response.py +200 -0
- telnyx/types/porting/event_retrieve_response.py +197 -0
- telnyx/types/porting/export_porting_orders_csv_report.py +43 -0
- telnyx/types/porting/export_porting_orders_csv_report_param.py +44 -0
- telnyx/types/porting/loa_configuration_create_params.py +57 -0
- telnyx/types/porting/loa_configuration_create_response.py +12 -0
- telnyx/types/porting/loa_configuration_list_params.py +23 -0
- telnyx/types/porting/loa_configuration_list_response.py +15 -0
- telnyx/types/porting/loa_configuration_preview_0_params.py +57 -0
- telnyx/types/porting/loa_configuration_retrieve_response.py +12 -0
- telnyx/types/porting/loa_configuration_update_params.py +57 -0
- telnyx/types/porting/loa_configuration_update_response.py +12 -0
- telnyx/types/porting/porting_loa_configuration.py +77 -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 +37 -0
- telnyx/types/porting/report_list_response.py +15 -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 +98 -0
- telnyx/types/porting_order_activation_settings.py +39 -0
- telnyx/types/porting_order_create_params.py +16 -0
- telnyx/types/porting_order_create_response.py +12 -0
- telnyx/types/porting_order_documents.py +15 -0
- telnyx/types/porting_order_documents_param.py +15 -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 +33 -0
- telnyx/types/porting_order_end_user_location.py +27 -0
- telnyx/types/porting_order_end_user_location_param.py +27 -0
- telnyx/types/porting_order_end_user_param.py +16 -0
- telnyx/types/porting_order_list_params.py +116 -0
- telnyx/types/porting_order_list_response.py +15 -0
- telnyx/types/porting_order_messaging.py +28 -0
- telnyx/types/porting_order_misc.py +32 -0
- telnyx/types/porting_order_misc_param.py +32 -0
- telnyx/types/porting_order_phone_number_configuration.py +23 -0
- telnyx/types/porting_order_phone_number_configuration_param.py +24 -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 +23 -0
- telnyx/types/porting_order_retrieve_requirements_response.py +52 -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 +74 -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 +18 -0
- telnyx/types/porting_orders/__init__.py +73 -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 +25 -0
- telnyx/types/porting_orders/action_requirement_initiate_response.py +45 -0
- telnyx/types/porting_orders/action_requirement_list_params.py +56 -0
- telnyx/types/porting_orders/action_requirement_list_response.py +48 -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 +23 -0
- telnyx/types/porting_orders/activation_job_list_response.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 +46 -0
- telnyx/types/porting_orders/additional_document_list_response.py +45 -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 +48 -0
- telnyx/types/porting_orders/associated_phone_number_list_response.py +15 -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 +23 -0
- telnyx/types/porting_orders/comment_list_response.py +34 -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_block_list_response.py +15 -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 +70 -0
- telnyx/types/porting_orders/phone_number_configuration_list_response.py +35 -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 +45 -0
- telnyx/types/porting_orders/phone_number_extension_list_response.py +15 -0
- telnyx/types/porting_orders/porting_associated_phone_number.py +49 -0
- telnyx/types/porting_orders/porting_phone_number_block.py +69 -0
- telnyx/types/porting_orders/porting_phone_number_extension.py +66 -0
- telnyx/types/porting_orders/verification_code_list_params.py +42 -0
- telnyx/types/porting_orders/verification_code_list_response.py +38 -0
- telnyx/types/porting_orders/verification_code_send_params.py +14 -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 +36 -0
- telnyx/types/porting_phone_number_list_response.py +76 -0
- telnyx/types/portout_details.py +98 -0
- telnyx/types/portout_list_params.py +86 -0
- telnyx/types/portout_list_rejection_codes_params.py +21 -0
- telnyx/types/portout_list_rejection_codes_response.py +19 -0
- telnyx/types/portout_list_response.py +15 -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 +21 -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 +52 -0
- telnyx/types/portouts/event_list_response.py +116 -0
- telnyx/types/portouts/event_retrieve_response.py +113 -0
- telnyx/types/portouts/export_portouts_csv_report.py +38 -0
- telnyx/types/portouts/export_portouts_csv_report_param.py +39 -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 +37 -0
- telnyx/types/portouts/report_list_response.py +15 -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_list_response.py +15 -0
- telnyx/types/private_wireless_gateway_retrieve_response.py +12 -0
- telnyx/types/private_wireless_gateway_status.py +30 -0
- telnyx/types/public_internet_gateway_create_params.py +18 -0
- telnyx/types/public_internet_gateway_create_response.py +37 -0
- telnyx/types/public_internet_gateway_delete_response.py +37 -0
- telnyx/types/public_internet_gateway_list_params.py +34 -0
- telnyx/types/public_internet_gateway_list_response.py +40 -0
- telnyx/types/public_internet_gateway_retrieve_response.py +37 -0
- telnyx/types/push_credential.py +39 -0
- telnyx/types/push_credential_response.py +12 -0
- telnyx/types/pwg_assigned_resources_summary.py +15 -0
- telnyx/types/queue_retrieve_response.py +40 -0
- telnyx/types/queues/__init__.py +7 -0
- telnyx/types/queues/call_list_params.py +32 -0
- telnyx/types/queues/call_list_response.py +55 -0
- telnyx/types/queues/call_retrieve_response.py +52 -0
- telnyx/types/rcs_agent.py +37 -0
- telnyx/types/rcs_agent_message.py +77 -0
- telnyx/types/rcs_agent_message_param.py +79 -0
- telnyx/types/rcs_agent_response.py +12 -0
- telnyx/types/rcs_card_content.py +35 -0
- telnyx/types/rcs_card_content_param.py +36 -0
- telnyx/types/rcs_content_info.py +18 -0
- telnyx/types/rcs_content_info_param.py +18 -0
- telnyx/types/rcs_suggestion.py +124 -0
- telnyx/types/rcs_suggestion_param.py +126 -0
- telnyx/types/record.py +21 -0
- telnyx/types/record_param.py +11 -0
- telnyx/types/recording_delete_response.py +12 -0
- telnyx/types/recording_list_params.py +76 -0
- telnyx/types/recording_list_response.py +15 -0
- telnyx/types/recording_response_data.py +72 -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 +13 -0
- telnyx/types/region_in.py +12 -0
- telnyx/types/region_list_response.py +31 -0
- telnyx/types/regulatory_requirement_retrieve_params.py +33 -0
- telnyx/types/regulatory_requirement_retrieve_response.py +58 -0
- telnyx/types/report_list_mdrs_params.py +36 -0
- telnyx/types/report_list_mdrs_response.py +74 -0
- telnyx/types/report_list_wdrs_params.py +60 -0
- telnyx/types/report_list_wdrs_response.py +99 -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 +21 -0
- telnyx/types/reports/mdr_usage_report_fetch_sync_response.py +12 -0
- telnyx/types/reports/mdr_usage_report_list_params.py +23 -0
- telnyx/types/reports/mdr_usage_report_list_response.py +24 -0
- telnyx/types/reports/mdr_usage_report_retrieve_response.py +12 -0
- telnyx/types/requirement_group.py +47 -0
- telnyx/types/requirement_group_create_params.py +27 -0
- telnyx/types/requirement_group_list_params.py +33 -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 +61 -0
- telnyx/types/requirement_list_response.py +53 -0
- telnyx/types/requirement_retrieve_response.py +50 -0
- telnyx/types/requirement_type_list_params.py +31 -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 +55 -0
- telnyx/types/room_composition_list_response.py +15 -0
- telnyx/types/room_composition_retrieve_response.py +12 -0
- telnyx/types/room_create_params.py +38 -0
- telnyx/types/room_create_response.py +12 -0
- telnyx/types/room_list_params.py +69 -0
- telnyx/types/room_list_response.py +15 -0
- telnyx/types/room_participant_list_params.py +96 -0
- telnyx/types/room_participant_list_response.py +15 -0
- telnyx/types/room_participant_retrieve_response.py +12 -0
- telnyx/types/room_recording_delete_bulk_params.py +83 -0
- telnyx/types/room_recording_delete_bulk_response.py +16 -0
- telnyx/types/room_recording_list_params.py +83 -0
- telnyx/types/room_recording_list_response.py +65 -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 +38 -0
- telnyx/types/room_update_response.py +12 -0
- telnyx/types/rooms/__init__.py +22 -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 +87 -0
- telnyx/types/rooms/session_list_0_response.py +15 -0
- telnyx/types/rooms/session_list_1_params.py +84 -0
- telnyx/types/rooms/session_list_1_response.py +15 -0
- telnyx/types/rooms/session_retrieve_params.py +12 -0
- telnyx/types/rooms/session_retrieve_participants_params.py +93 -0
- telnyx/types/rooms/session_retrieve_participants_response.py +15 -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 +19 -0
- telnyx/types/rooms/sessions/action_kick_response.py +15 -0
- telnyx/types/rooms/sessions/action_mute_params.py +19 -0
- telnyx/types/rooms/sessions/action_mute_response.py +15 -0
- telnyx/types/rooms/sessions/action_unmute_params.py +19 -0
- telnyx/types/rooms/sessions/action_unmute_response.py +15 -0
- telnyx/types/s3_configuration_data.py +21 -0
- telnyx/types/s3_configuration_data_param.py +21 -0
- telnyx/types/service_plan.py +7 -0
- telnyx/types/seti_retrieve_black_box_test_results_params.py +17 -0
- telnyx/types/seti_retrieve_black_box_test_results_response.py +30 -0
- telnyx/types/settings_param.py +24 -0
- telnyx/types/shared/__init__.py +19 -0
- telnyx/types/shared/connections_pagination_meta.py +17 -0
- telnyx/types/shared/doc_reqs_requirement_type.py +60 -0
- telnyx/types/shared/hosted_number.py +35 -0
- telnyx/types/shared/messaging_feature_set.py +16 -0
- telnyx/types/shared/messaging_hosted_number_order.py +42 -0
- telnyx/types/shared/metadata.py +24 -0
- telnyx/types/shared/number_health_metrics.py +21 -0
- telnyx/types/shared/phone_number_with_messaging_settings.py +67 -0
- telnyx/types/shared/porting_order_status.py +28 -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 +32 -0
- telnyx/types/shared/sim_card_status.py +40 -0
- telnyx/types/shared/simple_sim_card.py +85 -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 +39 -0
- telnyx/types/short_code_list_response.py +15 -0
- telnyx/types/short_code_retrieve_response.py +12 -0
- telnyx/types/short_code_update_params.py +12 -0
- telnyx/types/short_code_update_response.py +12 -0
- telnyx/types/sim_card.py +177 -0
- telnyx/types/sim_card_data_usage_notification.py +33 -0
- telnyx/types/sim_card_data_usage_notification_create_params.py +21 -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_list_response.py +15 -0
- telnyx/types/sim_card_data_usage_notification_retrieve_response.py +13 -0
- telnyx/types/sim_card_data_usage_notification_update_params.py +21 -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 +49 -0
- telnyx/types/sim_card_group_create_params.py +21 -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 +59 -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 +21 -0
- telnyx/types/sim_card_group_update_response.py +12 -0
- telnyx/types/sim_card_groups/__init__.py +24 -0
- telnyx/types/sim_card_groups/action_list_params.py +34 -0
- telnyx/types/sim_card_groups/action_list_response.py +15 -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 +44 -0
- telnyx/types/sim_card_list_params.py +65 -0
- telnyx/types/sim_card_list_response.py +15 -0
- telnyx/types/sim_card_list_wireless_connectivity_logs_params.py +17 -0
- telnyx/types/sim_card_list_wireless_connectivity_logs_response.py +106 -0
- telnyx/types/sim_card_order.py +89 -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 +95 -0
- telnyx/types/sim_card_order_list_response.py +15 -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 +36 -0
- telnyx/types/sim_card_update_response.py +12 -0
- telnyx/types/sim_cards/__init__.py +22 -0
- telnyx/types/sim_cards/action_bulk_set_public_ips_params.py +12 -0
- telnyx/types/sim_cards/action_bulk_set_public_ips_response.py +41 -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 +46 -0
- telnyx/types/sim_cards/action_list_response.py +15 -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 +12 -0
- telnyx/types/sim_cards/action_validate_registration_codes_response.py +24 -0
- telnyx/types/sim_cards/sim_card_action.py +53 -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 +24 -0
- telnyx/types/stock_exchange.py +33 -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 +27 -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_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 +33 -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 +20 -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 +53 -0
- telnyx/types/sub_number_orders_report_download_response.py +7 -0
- telnyx/types/sub_number_orders_report_retrieve_response.py +53 -0
- telnyx/types/task_status.py +7 -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 +47 -0
- telnyx/types/telephony_credential_list_response.py +15 -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/telnyx_brand.py +142 -0
- telnyx/types/telnyx_campaign_csp.py +214 -0
- telnyx/types/telnyx_downstream_campaign.py +154 -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 +30 -0
- telnyx/types/texml/accounts/call_calls_params.py +169 -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 +251 -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/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 +11 -0
- telnyx/types/texml_application.py +125 -0
- telnyx/types/texml_application_create_params.py +114 -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 +59 -0
- telnyx/types/texml_application_list_response.py +24 -0
- telnyx/types/texml_application_retrieve_response.py +12 -0
- telnyx/types/texml_application_update_params.py +114 -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/transport_protocol.py +7 -0
- telnyx/types/update_regulatory_requirement_param.py +19 -0
- telnyx/types/url_shortener_settings.py +30 -0
- telnyx/types/url_shortener_settings_param.py +30 -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 +37 -0
- telnyx/types/usage_report_list_params.py +70 -0
- telnyx/types/usage_report_list_response.py +27 -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 +86 -0
- telnyx/types/user_address_list_response.py +15 -0
- telnyx/types/user_address_retrieve_response.py +12 -0
- telnyx/types/user_tag_list_params.py +20 -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 +22 -0
- telnyx/types/verification_trigger_flashcall_params.py +18 -0
- telnyx/types/verification_trigger_sms_params.py +22 -0
- telnyx/types/verifications/__init__.py +6 -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 +24 -0
- telnyx/types/verified_number.py +17 -0
- telnyx/types/verified_number_create_params.py +14 -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 +22 -0
- telnyx/types/verified_number_list_response.py +24 -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 +130 -0
- telnyx/types/verify_profile_create_params.py +114 -0
- telnyx/types/verify_profile_data.py +12 -0
- telnyx/types/verify_profile_list_params.py +29 -0
- telnyx/types/verify_profile_list_response.py +24 -0
- telnyx/types/verify_profile_retrieve_templates_response.py +17 -0
- telnyx/types/verify_profile_update_params.py +114 -0
- telnyx/types/vertical.py +25 -0
- telnyx/types/video_region.py +53 -0
- telnyx/types/video_region_param.py +54 -0
- telnyx/types/virtual_cross_connect_create_params.py +95 -0
- telnyx/types/virtual_cross_connect_create_response.py +129 -0
- telnyx/types/virtual_cross_connect_delete_response.py +129 -0
- telnyx/types/virtual_cross_connect_list_params.py +34 -0
- telnyx/types/virtual_cross_connect_list_response.py +132 -0
- telnyx/types/virtual_cross_connect_retrieve_response.py +129 -0
- telnyx/types/virtual_cross_connect_update_params.py +41 -0
- telnyx/types/virtual_cross_connect_update_response.py +129 -0
- telnyx/types/virtual_cross_connects_coverage_list_params.py +80 -0
- telnyx/types/virtual_cross_connects_coverage_list_response.py +58 -0
- telnyx/types/webhook_api_version.py +7 -0
- telnyx/types/webhook_delivery_list_params.py +106 -0
- telnyx/types/webhook_delivery_list_response.py +120 -0
- telnyx/types/webhook_delivery_retrieve_response.py +108 -0
- telnyx/types/wireguard_interface_create_params.py +21 -0
- telnyx/types/wireguard_interface_create_response.py +43 -0
- telnyx/types/wireguard_interface_delete_response.py +43 -0
- telnyx/types/wireguard_interface_list_params.py +34 -0
- telnyx/types/wireguard_interface_list_response.py +46 -0
- telnyx/types/wireguard_interface_retrieve_response.py +43 -0
- telnyx/types/wireguard_peer_create_params.py +18 -0
- telnyx/types/wireguard_peer_create_response.py +33 -0
- telnyx/types/wireguard_peer_delete_response.py +33 -0
- telnyx/types/wireguard_peer_list_params.py +34 -0
- telnyx/types/wireguard_peer_list_response.py +36 -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 +33 -0
- telnyx/types/wireguard_peer_update_params.py +15 -0
- telnyx/types/wireguard_peer_update_response.py +33 -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 +19 -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_list_response.py +15 -0
- telnyx/types/wireless_blocklist_retrieve_response.py +12 -0
- telnyx/types/wireless_blocklist_update_params.py +19 -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-3.0.0a0.dist-info/METADATA +431 -0
- telnyx-3.0.0a0.dist-info/RECORD +1874 -0
- telnyx-3.0.0a0.dist-info/WHEEL +4 -0
- telnyx-3.0.0a0.dist-info/licenses/LICENSE +7 -0
|
@@ -0,0 +1,2029 @@
|
|
|
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 List
|
|
6
|
+
from typing_extensions import Literal
|
|
7
|
+
|
|
8
|
+
import httpx
|
|
9
|
+
|
|
10
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
11
|
+
from ..._utils import maybe_transform, async_maybe_transform
|
|
12
|
+
from ..._compat import cached_property
|
|
13
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
14
|
+
from ..._response import (
|
|
15
|
+
to_raw_response_wrapper,
|
|
16
|
+
to_streamed_response_wrapper,
|
|
17
|
+
async_to_raw_response_wrapper,
|
|
18
|
+
async_to_streamed_response_wrapper,
|
|
19
|
+
)
|
|
20
|
+
from ..._base_client import make_request_options
|
|
21
|
+
from ...types.conferences import (
|
|
22
|
+
action_hold_params,
|
|
23
|
+
action_join_params,
|
|
24
|
+
action_mute_params,
|
|
25
|
+
action_play_params,
|
|
26
|
+
action_stop_params,
|
|
27
|
+
action_leave_params,
|
|
28
|
+
action_speak_params,
|
|
29
|
+
action_unhold_params,
|
|
30
|
+
action_unmute_params,
|
|
31
|
+
action_update_params,
|
|
32
|
+
action_record_stop_params,
|
|
33
|
+
action_record_pause_params,
|
|
34
|
+
action_record_start_params,
|
|
35
|
+
action_record_resume_params,
|
|
36
|
+
)
|
|
37
|
+
from ...types.calls.loopcount_param import LoopcountParam
|
|
38
|
+
from ...types.conferences.action_hold_response import ActionHoldResponse
|
|
39
|
+
from ...types.conferences.action_join_response import ActionJoinResponse
|
|
40
|
+
from ...types.conferences.action_mute_response import ActionMuteResponse
|
|
41
|
+
from ...types.conferences.action_play_response import ActionPlayResponse
|
|
42
|
+
from ...types.conferences.action_stop_response import ActionStopResponse
|
|
43
|
+
from ...types.conferences.action_leave_response import ActionLeaveResponse
|
|
44
|
+
from ...types.conferences.action_speak_response import ActionSpeakResponse
|
|
45
|
+
from ...types.conferences.action_unhold_response import ActionUnholdResponse
|
|
46
|
+
from ...types.conferences.action_unmute_response import ActionUnmuteResponse
|
|
47
|
+
from ...types.conferences.action_update_response import ActionUpdateResponse
|
|
48
|
+
from ...types.conferences.action_record_stop_response import ActionRecordStopResponse
|
|
49
|
+
from ...types.conferences.action_record_pause_response import ActionRecordPauseResponse
|
|
50
|
+
from ...types.conferences.action_record_start_response import ActionRecordStartResponse
|
|
51
|
+
from ...types.conferences.action_record_resume_response import ActionRecordResumeResponse
|
|
52
|
+
|
|
53
|
+
__all__ = ["ActionsResource", "AsyncActionsResource"]
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class ActionsResource(SyncAPIResource):
|
|
57
|
+
@cached_property
|
|
58
|
+
def with_raw_response(self) -> ActionsResourceWithRawResponse:
|
|
59
|
+
"""
|
|
60
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
61
|
+
the raw response object instead of the parsed content.
|
|
62
|
+
|
|
63
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
|
|
64
|
+
"""
|
|
65
|
+
return ActionsResourceWithRawResponse(self)
|
|
66
|
+
|
|
67
|
+
@cached_property
|
|
68
|
+
def with_streaming_response(self) -> ActionsResourceWithStreamingResponse:
|
|
69
|
+
"""
|
|
70
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
71
|
+
|
|
72
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#with_streaming_response
|
|
73
|
+
"""
|
|
74
|
+
return ActionsResourceWithStreamingResponse(self)
|
|
75
|
+
|
|
76
|
+
def update(
|
|
77
|
+
self,
|
|
78
|
+
id: str,
|
|
79
|
+
*,
|
|
80
|
+
call_control_id: str,
|
|
81
|
+
supervisor_role: Literal["barge", "monitor", "none", "whisper"],
|
|
82
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
83
|
+
whisper_call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
84
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
85
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
86
|
+
extra_headers: Headers | None = None,
|
|
87
|
+
extra_query: Query | None = None,
|
|
88
|
+
extra_body: Body | None = None,
|
|
89
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
90
|
+
) -> ActionUpdateResponse:
|
|
91
|
+
"""
|
|
92
|
+
Update conference participant supervisor_role
|
|
93
|
+
|
|
94
|
+
Args:
|
|
95
|
+
call_control_id: Unique identifier and token for controlling the call
|
|
96
|
+
|
|
97
|
+
supervisor_role: Sets the participant as a supervisor for the conference. A conference can have
|
|
98
|
+
multiple supervisors. "barge" means the supervisor enters the conference as a
|
|
99
|
+
normal participant. This is the same as "none". "monitor" means the supervisor
|
|
100
|
+
is muted but can hear all participants. "whisper" means that only the specified
|
|
101
|
+
"whisper_call_control_ids" can hear the supervisor. Defaults to "none".
|
|
102
|
+
|
|
103
|
+
command_id: Use this field to avoid execution of duplicate commands. Telnyx will ignore
|
|
104
|
+
subsequent commands with the same `command_id` as one that has already been
|
|
105
|
+
executed.
|
|
106
|
+
|
|
107
|
+
whisper_call_control_ids: Array of unique call_control_ids the supervisor can whisper to. If none
|
|
108
|
+
provided, the supervisor will join the conference as a monitoring participant
|
|
109
|
+
only.
|
|
110
|
+
|
|
111
|
+
extra_headers: Send extra headers
|
|
112
|
+
|
|
113
|
+
extra_query: Add additional query parameters to the request
|
|
114
|
+
|
|
115
|
+
extra_body: Add additional JSON properties to the request
|
|
116
|
+
|
|
117
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
118
|
+
"""
|
|
119
|
+
if not id:
|
|
120
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
121
|
+
return self._post(
|
|
122
|
+
f"/conferences/{id}/actions/update",
|
|
123
|
+
body=maybe_transform(
|
|
124
|
+
{
|
|
125
|
+
"call_control_id": call_control_id,
|
|
126
|
+
"supervisor_role": supervisor_role,
|
|
127
|
+
"command_id": command_id,
|
|
128
|
+
"whisper_call_control_ids": whisper_call_control_ids,
|
|
129
|
+
},
|
|
130
|
+
action_update_params.ActionUpdateParams,
|
|
131
|
+
),
|
|
132
|
+
options=make_request_options(
|
|
133
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
134
|
+
),
|
|
135
|
+
cast_to=ActionUpdateResponse,
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
def hold(
|
|
139
|
+
self,
|
|
140
|
+
id: str,
|
|
141
|
+
*,
|
|
142
|
+
audio_url: str | NotGiven = NOT_GIVEN,
|
|
143
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
144
|
+
media_name: str | NotGiven = NOT_GIVEN,
|
|
145
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
146
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
147
|
+
extra_headers: Headers | None = None,
|
|
148
|
+
extra_query: Query | None = None,
|
|
149
|
+
extra_body: Body | None = None,
|
|
150
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
151
|
+
) -> ActionHoldResponse:
|
|
152
|
+
"""
|
|
153
|
+
Hold a list of participants in a conference call
|
|
154
|
+
|
|
155
|
+
Args:
|
|
156
|
+
audio_url: The URL of a file to be played to the participants when they are put on hold.
|
|
157
|
+
media_name and audio_url cannot be used together in one request.
|
|
158
|
+
|
|
159
|
+
call_control_ids: List of unique identifiers and tokens for controlling the call. When empty all
|
|
160
|
+
participants will be placed on hold.
|
|
161
|
+
|
|
162
|
+
media_name: The media_name of a file to be played to the participants when they are put on
|
|
163
|
+
hold. The media_name must point to a file previously uploaded to
|
|
164
|
+
api.telnyx.com/v2/media by the same user/organization. The file must either be a
|
|
165
|
+
WAV or MP3 file.
|
|
166
|
+
|
|
167
|
+
extra_headers: Send extra headers
|
|
168
|
+
|
|
169
|
+
extra_query: Add additional query parameters to the request
|
|
170
|
+
|
|
171
|
+
extra_body: Add additional JSON properties to the request
|
|
172
|
+
|
|
173
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
174
|
+
"""
|
|
175
|
+
if not id:
|
|
176
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
177
|
+
return self._post(
|
|
178
|
+
f"/conferences/{id}/actions/hold",
|
|
179
|
+
body=maybe_transform(
|
|
180
|
+
{
|
|
181
|
+
"audio_url": audio_url,
|
|
182
|
+
"call_control_ids": call_control_ids,
|
|
183
|
+
"media_name": media_name,
|
|
184
|
+
},
|
|
185
|
+
action_hold_params.ActionHoldParams,
|
|
186
|
+
),
|
|
187
|
+
options=make_request_options(
|
|
188
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
189
|
+
),
|
|
190
|
+
cast_to=ActionHoldResponse,
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
def join(
|
|
194
|
+
self,
|
|
195
|
+
id: str,
|
|
196
|
+
*,
|
|
197
|
+
call_control_id: str,
|
|
198
|
+
beep_enabled: Literal["always", "never", "on_enter", "on_exit"] | NotGiven = NOT_GIVEN,
|
|
199
|
+
client_state: str | NotGiven = NOT_GIVEN,
|
|
200
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
201
|
+
end_conference_on_exit: bool | NotGiven = NOT_GIVEN,
|
|
202
|
+
hold: bool | NotGiven = NOT_GIVEN,
|
|
203
|
+
hold_audio_url: str | NotGiven = NOT_GIVEN,
|
|
204
|
+
hold_media_name: str | NotGiven = NOT_GIVEN,
|
|
205
|
+
mute: bool | NotGiven = NOT_GIVEN,
|
|
206
|
+
soft_end_conference_on_exit: bool | NotGiven = NOT_GIVEN,
|
|
207
|
+
start_conference_on_enter: bool | NotGiven = NOT_GIVEN,
|
|
208
|
+
supervisor_role: Literal["barge", "monitor", "none", "whisper"] | NotGiven = NOT_GIVEN,
|
|
209
|
+
whisper_call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
210
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
211
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
212
|
+
extra_headers: Headers | None = None,
|
|
213
|
+
extra_query: Query | None = None,
|
|
214
|
+
extra_body: Body | None = None,
|
|
215
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
216
|
+
) -> ActionJoinResponse:
|
|
217
|
+
"""Join an existing call leg to a conference.
|
|
218
|
+
|
|
219
|
+
Issue the Join Conference command
|
|
220
|
+
with the conference ID in the path and the `call_control_id` of the leg you wish
|
|
221
|
+
to join to the conference as an attribute. The conference can have up to a
|
|
222
|
+
certain amount of active participants, as set by the `max_participants`
|
|
223
|
+
parameter in conference creation request.
|
|
224
|
+
|
|
225
|
+
**Expected Webhooks (see
|
|
226
|
+
[callback schema](https://developers.telnyx.com/api/call-control/join-conference#callbacks)
|
|
227
|
+
below):**
|
|
228
|
+
|
|
229
|
+
- `conference.participant.joined`
|
|
230
|
+
- `conference.participant.left`
|
|
231
|
+
|
|
232
|
+
Args:
|
|
233
|
+
call_control_id: Unique identifier and token for controlling the call
|
|
234
|
+
|
|
235
|
+
beep_enabled: Whether a beep sound should be played when the participant joins and/or leaves
|
|
236
|
+
the conference. Can be used to override the conference-level setting.
|
|
237
|
+
|
|
238
|
+
client_state: Use this field to add state to every subsequent webhook. It must be a valid
|
|
239
|
+
Base-64 encoded string. Please note that the client_state will be updated for
|
|
240
|
+
the participient call leg and the change will not affect conferencing webhooks
|
|
241
|
+
unless the participient is the owner of the conference.
|
|
242
|
+
|
|
243
|
+
command_id: Use this field to avoid execution of duplicate commands. Telnyx will ignore
|
|
244
|
+
subsequent commands with the same `command_id` as one that has already been
|
|
245
|
+
executed.
|
|
246
|
+
|
|
247
|
+
end_conference_on_exit: Whether the conference should end and all remaining participants be hung up
|
|
248
|
+
after the participant leaves the conference. Defaults to "false".
|
|
249
|
+
|
|
250
|
+
hold: Whether the participant should be put on hold immediately after joining the
|
|
251
|
+
conference. Defaults to "false".
|
|
252
|
+
|
|
253
|
+
hold_audio_url: The URL of a file to be played to the participant when they are put on hold
|
|
254
|
+
after joining the conference. hold_media_name and hold_audio_url cannot be used
|
|
255
|
+
together in one request. Takes effect only when "start_conference_on_create" is
|
|
256
|
+
set to "false". This property takes effect only if "hold" is set to "true".
|
|
257
|
+
|
|
258
|
+
hold_media_name: The media_name of a file to be played to the participant when they are put on
|
|
259
|
+
hold after joining the conference. The media_name must point to a file
|
|
260
|
+
previously uploaded to api.telnyx.com/v2/media by the same user/organization.
|
|
261
|
+
The file must either be a WAV or MP3 file. Takes effect only when
|
|
262
|
+
"start_conference_on_create" is set to "false". This property takes effect only
|
|
263
|
+
if "hold" is set to "true".
|
|
264
|
+
|
|
265
|
+
mute: Whether the participant should be muted immediately after joining the
|
|
266
|
+
conference. Defaults to "false".
|
|
267
|
+
|
|
268
|
+
soft_end_conference_on_exit: Whether the conference should end after the participant leaves the conference.
|
|
269
|
+
NOTE this doesn't hang up the other participants. Defaults to "false".
|
|
270
|
+
|
|
271
|
+
start_conference_on_enter: Whether the conference should be started after the participant joins the
|
|
272
|
+
conference. Defaults to "false".
|
|
273
|
+
|
|
274
|
+
supervisor_role: Sets the joining participant as a supervisor for the conference. A conference
|
|
275
|
+
can have multiple supervisors. "barge" means the supervisor enters the
|
|
276
|
+
conference as a normal participant. This is the same as "none". "monitor" means
|
|
277
|
+
the supervisor is muted but can hear all participants. "whisper" means that only
|
|
278
|
+
the specified "whisper_call_control_ids" can hear the supervisor. Defaults to
|
|
279
|
+
"none".
|
|
280
|
+
|
|
281
|
+
whisper_call_control_ids: Array of unique call_control_ids the joining supervisor can whisper to. If none
|
|
282
|
+
provided, the supervisor will join the conference as a monitoring participant
|
|
283
|
+
only.
|
|
284
|
+
|
|
285
|
+
extra_headers: Send extra headers
|
|
286
|
+
|
|
287
|
+
extra_query: Add additional query parameters to the request
|
|
288
|
+
|
|
289
|
+
extra_body: Add additional JSON properties to the request
|
|
290
|
+
|
|
291
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
292
|
+
"""
|
|
293
|
+
if not id:
|
|
294
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
295
|
+
return self._post(
|
|
296
|
+
f"/conferences/{id}/actions/join",
|
|
297
|
+
body=maybe_transform(
|
|
298
|
+
{
|
|
299
|
+
"call_control_id": call_control_id,
|
|
300
|
+
"beep_enabled": beep_enabled,
|
|
301
|
+
"client_state": client_state,
|
|
302
|
+
"command_id": command_id,
|
|
303
|
+
"end_conference_on_exit": end_conference_on_exit,
|
|
304
|
+
"hold": hold,
|
|
305
|
+
"hold_audio_url": hold_audio_url,
|
|
306
|
+
"hold_media_name": hold_media_name,
|
|
307
|
+
"mute": mute,
|
|
308
|
+
"soft_end_conference_on_exit": soft_end_conference_on_exit,
|
|
309
|
+
"start_conference_on_enter": start_conference_on_enter,
|
|
310
|
+
"supervisor_role": supervisor_role,
|
|
311
|
+
"whisper_call_control_ids": whisper_call_control_ids,
|
|
312
|
+
},
|
|
313
|
+
action_join_params.ActionJoinParams,
|
|
314
|
+
),
|
|
315
|
+
options=make_request_options(
|
|
316
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
317
|
+
),
|
|
318
|
+
cast_to=ActionJoinResponse,
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
def leave(
|
|
322
|
+
self,
|
|
323
|
+
id: str,
|
|
324
|
+
*,
|
|
325
|
+
call_control_id: str,
|
|
326
|
+
beep_enabled: Literal["always", "never", "on_enter", "on_exit"] | NotGiven = NOT_GIVEN,
|
|
327
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
328
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
329
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
330
|
+
extra_headers: Headers | None = None,
|
|
331
|
+
extra_query: Query | None = None,
|
|
332
|
+
extra_body: Body | None = None,
|
|
333
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
334
|
+
) -> ActionLeaveResponse:
|
|
335
|
+
"""
|
|
336
|
+
Removes a call leg from a conference and moves it back to parked state.
|
|
337
|
+
|
|
338
|
+
**Expected Webhooks (see
|
|
339
|
+
[callback schema](https://developers.telnyx.com/api/call-control/leave-conference#callbacks)
|
|
340
|
+
below):**
|
|
341
|
+
|
|
342
|
+
- `conference.participant.left`
|
|
343
|
+
|
|
344
|
+
Args:
|
|
345
|
+
call_control_id: Unique identifier and token for controlling the call
|
|
346
|
+
|
|
347
|
+
beep_enabled: Whether a beep sound should be played when the participant leaves the
|
|
348
|
+
conference. Can be used to override the conference-level setting.
|
|
349
|
+
|
|
350
|
+
command_id: Use this field to avoid execution of duplicate commands. Telnyx will ignore
|
|
351
|
+
subsequent commands with the same `command_id` as one that has already been
|
|
352
|
+
executed.
|
|
353
|
+
|
|
354
|
+
extra_headers: Send extra headers
|
|
355
|
+
|
|
356
|
+
extra_query: Add additional query parameters to the request
|
|
357
|
+
|
|
358
|
+
extra_body: Add additional JSON properties to the request
|
|
359
|
+
|
|
360
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
361
|
+
"""
|
|
362
|
+
if not id:
|
|
363
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
364
|
+
return self._post(
|
|
365
|
+
f"/conferences/{id}/actions/leave",
|
|
366
|
+
body=maybe_transform(
|
|
367
|
+
{
|
|
368
|
+
"call_control_id": call_control_id,
|
|
369
|
+
"beep_enabled": beep_enabled,
|
|
370
|
+
"command_id": command_id,
|
|
371
|
+
},
|
|
372
|
+
action_leave_params.ActionLeaveParams,
|
|
373
|
+
),
|
|
374
|
+
options=make_request_options(
|
|
375
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
376
|
+
),
|
|
377
|
+
cast_to=ActionLeaveResponse,
|
|
378
|
+
)
|
|
379
|
+
|
|
380
|
+
def mute(
|
|
381
|
+
self,
|
|
382
|
+
id: str,
|
|
383
|
+
*,
|
|
384
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
385
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
386
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
387
|
+
extra_headers: Headers | None = None,
|
|
388
|
+
extra_query: Query | None = None,
|
|
389
|
+
extra_body: Body | None = None,
|
|
390
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
391
|
+
) -> ActionMuteResponse:
|
|
392
|
+
"""
|
|
393
|
+
Mute a list of participants in a conference call
|
|
394
|
+
|
|
395
|
+
Args:
|
|
396
|
+
call_control_ids: Array of unique identifiers and tokens for controlling the call. When empty all
|
|
397
|
+
participants will be muted.
|
|
398
|
+
|
|
399
|
+
extra_headers: Send extra headers
|
|
400
|
+
|
|
401
|
+
extra_query: Add additional query parameters to the request
|
|
402
|
+
|
|
403
|
+
extra_body: Add additional JSON properties to the request
|
|
404
|
+
|
|
405
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
406
|
+
"""
|
|
407
|
+
if not id:
|
|
408
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
409
|
+
return self._post(
|
|
410
|
+
f"/conferences/{id}/actions/mute",
|
|
411
|
+
body=maybe_transform({"call_control_ids": call_control_ids}, action_mute_params.ActionMuteParams),
|
|
412
|
+
options=make_request_options(
|
|
413
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
414
|
+
),
|
|
415
|
+
cast_to=ActionMuteResponse,
|
|
416
|
+
)
|
|
417
|
+
|
|
418
|
+
def play(
|
|
419
|
+
self,
|
|
420
|
+
id: str,
|
|
421
|
+
*,
|
|
422
|
+
audio_url: str | NotGiven = NOT_GIVEN,
|
|
423
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
424
|
+
loop: LoopcountParam | NotGiven = NOT_GIVEN,
|
|
425
|
+
media_name: str | NotGiven = NOT_GIVEN,
|
|
426
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
427
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
428
|
+
extra_headers: Headers | None = None,
|
|
429
|
+
extra_query: Query | None = None,
|
|
430
|
+
extra_body: Body | None = None,
|
|
431
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
432
|
+
) -> ActionPlayResponse:
|
|
433
|
+
"""
|
|
434
|
+
Play audio to all or some participants on a conference call.
|
|
435
|
+
|
|
436
|
+
Args:
|
|
437
|
+
audio_url: The URL of a file to be played back in the conference. media_name and audio_url
|
|
438
|
+
cannot be used together in one request.
|
|
439
|
+
|
|
440
|
+
call_control_ids: List of call control ids identifying participants the audio file should be
|
|
441
|
+
played to. If not given, the audio file will be played to the entire conference.
|
|
442
|
+
|
|
443
|
+
loop: The number of times the audio file should be played. If supplied, the value must
|
|
444
|
+
be an integer between 1 and 100, or the special string `infinity` for an endless
|
|
445
|
+
loop.
|
|
446
|
+
|
|
447
|
+
media_name: The media_name of a file to be played back in the conference. The media_name
|
|
448
|
+
must point to a file previously uploaded to api.telnyx.com/v2/media by the same
|
|
449
|
+
user/organization. The file must either be a WAV or MP3 file.
|
|
450
|
+
|
|
451
|
+
extra_headers: Send extra headers
|
|
452
|
+
|
|
453
|
+
extra_query: Add additional query parameters to the request
|
|
454
|
+
|
|
455
|
+
extra_body: Add additional JSON properties to the request
|
|
456
|
+
|
|
457
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
458
|
+
"""
|
|
459
|
+
if not id:
|
|
460
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
461
|
+
return self._post(
|
|
462
|
+
f"/conferences/{id}/actions/play",
|
|
463
|
+
body=maybe_transform(
|
|
464
|
+
{
|
|
465
|
+
"audio_url": audio_url,
|
|
466
|
+
"call_control_ids": call_control_ids,
|
|
467
|
+
"loop": loop,
|
|
468
|
+
"media_name": media_name,
|
|
469
|
+
},
|
|
470
|
+
action_play_params.ActionPlayParams,
|
|
471
|
+
),
|
|
472
|
+
options=make_request_options(
|
|
473
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
474
|
+
),
|
|
475
|
+
cast_to=ActionPlayResponse,
|
|
476
|
+
)
|
|
477
|
+
|
|
478
|
+
def record_pause(
|
|
479
|
+
self,
|
|
480
|
+
id: str,
|
|
481
|
+
*,
|
|
482
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
483
|
+
recording_id: str | NotGiven = NOT_GIVEN,
|
|
484
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
485
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
486
|
+
extra_headers: Headers | None = None,
|
|
487
|
+
extra_query: Query | None = None,
|
|
488
|
+
extra_body: Body | None = None,
|
|
489
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
490
|
+
) -> ActionRecordPauseResponse:
|
|
491
|
+
"""
|
|
492
|
+
Pause conference recording.
|
|
493
|
+
|
|
494
|
+
Args:
|
|
495
|
+
command_id: Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
496
|
+
the same `command_id` for the same `call_control_id`.
|
|
497
|
+
|
|
498
|
+
recording_id: Use this field to pause specific recording.
|
|
499
|
+
|
|
500
|
+
extra_headers: Send extra headers
|
|
501
|
+
|
|
502
|
+
extra_query: Add additional query parameters to the request
|
|
503
|
+
|
|
504
|
+
extra_body: Add additional JSON properties to the request
|
|
505
|
+
|
|
506
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
507
|
+
"""
|
|
508
|
+
if not id:
|
|
509
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
510
|
+
return self._post(
|
|
511
|
+
f"/conferences/{id}/actions/record_pause",
|
|
512
|
+
body=maybe_transform(
|
|
513
|
+
{
|
|
514
|
+
"command_id": command_id,
|
|
515
|
+
"recording_id": recording_id,
|
|
516
|
+
},
|
|
517
|
+
action_record_pause_params.ActionRecordPauseParams,
|
|
518
|
+
),
|
|
519
|
+
options=make_request_options(
|
|
520
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
521
|
+
),
|
|
522
|
+
cast_to=ActionRecordPauseResponse,
|
|
523
|
+
)
|
|
524
|
+
|
|
525
|
+
def record_resume(
|
|
526
|
+
self,
|
|
527
|
+
id: str,
|
|
528
|
+
*,
|
|
529
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
530
|
+
recording_id: str | NotGiven = NOT_GIVEN,
|
|
531
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
532
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
533
|
+
extra_headers: Headers | None = None,
|
|
534
|
+
extra_query: Query | None = None,
|
|
535
|
+
extra_body: Body | None = None,
|
|
536
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
537
|
+
) -> ActionRecordResumeResponse:
|
|
538
|
+
"""
|
|
539
|
+
Resume conference recording.
|
|
540
|
+
|
|
541
|
+
Args:
|
|
542
|
+
command_id: Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
543
|
+
the same `command_id` for the same `call_control_id`.
|
|
544
|
+
|
|
545
|
+
recording_id: Use this field to resume specific recording.
|
|
546
|
+
|
|
547
|
+
extra_headers: Send extra headers
|
|
548
|
+
|
|
549
|
+
extra_query: Add additional query parameters to the request
|
|
550
|
+
|
|
551
|
+
extra_body: Add additional JSON properties to the request
|
|
552
|
+
|
|
553
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
554
|
+
"""
|
|
555
|
+
if not id:
|
|
556
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
557
|
+
return self._post(
|
|
558
|
+
f"/conferences/{id}/actions/record_resume",
|
|
559
|
+
body=maybe_transform(
|
|
560
|
+
{
|
|
561
|
+
"command_id": command_id,
|
|
562
|
+
"recording_id": recording_id,
|
|
563
|
+
},
|
|
564
|
+
action_record_resume_params.ActionRecordResumeParams,
|
|
565
|
+
),
|
|
566
|
+
options=make_request_options(
|
|
567
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
568
|
+
),
|
|
569
|
+
cast_to=ActionRecordResumeResponse,
|
|
570
|
+
)
|
|
571
|
+
|
|
572
|
+
def record_start(
|
|
573
|
+
self,
|
|
574
|
+
id: str,
|
|
575
|
+
*,
|
|
576
|
+
format: Literal["wav", "mp3"],
|
|
577
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
578
|
+
custom_file_name: str | NotGiven = NOT_GIVEN,
|
|
579
|
+
play_beep: bool | NotGiven = NOT_GIVEN,
|
|
580
|
+
trim: Literal["trim-silence"] | NotGiven = NOT_GIVEN,
|
|
581
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
582
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
583
|
+
extra_headers: Headers | None = None,
|
|
584
|
+
extra_query: Query | None = None,
|
|
585
|
+
extra_body: Body | None = None,
|
|
586
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
587
|
+
) -> ActionRecordStartResponse:
|
|
588
|
+
"""Start recording the conference.
|
|
589
|
+
|
|
590
|
+
Recording will stop on conference end, or via
|
|
591
|
+
the Stop Recording command.
|
|
592
|
+
|
|
593
|
+
**Expected Webhooks (see
|
|
594
|
+
[callback schema](https://developers.telnyx.com/api/call-control/start-conference-recording#callbacks)
|
|
595
|
+
below):**
|
|
596
|
+
|
|
597
|
+
- `conference.recording.saved`
|
|
598
|
+
|
|
599
|
+
Args:
|
|
600
|
+
format: The audio file format used when storing the conference recording. Can be either
|
|
601
|
+
`mp3` or `wav`.
|
|
602
|
+
|
|
603
|
+
command_id: Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
604
|
+
the same `command_id` for the same `conference_id`.
|
|
605
|
+
|
|
606
|
+
custom_file_name: The custom recording file name to be used instead of the default `call_leg_id`.
|
|
607
|
+
Telnyx will still add a Unix timestamp suffix.
|
|
608
|
+
|
|
609
|
+
play_beep: If enabled, a beep sound will be played at the start of a recording.
|
|
610
|
+
|
|
611
|
+
trim: When set to `trim-silence`, silence will be removed from the beginning and end
|
|
612
|
+
of the recording.
|
|
613
|
+
|
|
614
|
+
extra_headers: Send extra headers
|
|
615
|
+
|
|
616
|
+
extra_query: Add additional query parameters to the request
|
|
617
|
+
|
|
618
|
+
extra_body: Add additional JSON properties to the request
|
|
619
|
+
|
|
620
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
621
|
+
"""
|
|
622
|
+
if not id:
|
|
623
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
624
|
+
return self._post(
|
|
625
|
+
f"/conferences/{id}/actions/record_start",
|
|
626
|
+
body=maybe_transform(
|
|
627
|
+
{
|
|
628
|
+
"format": format,
|
|
629
|
+
"command_id": command_id,
|
|
630
|
+
"custom_file_name": custom_file_name,
|
|
631
|
+
"play_beep": play_beep,
|
|
632
|
+
"trim": trim,
|
|
633
|
+
},
|
|
634
|
+
action_record_start_params.ActionRecordStartParams,
|
|
635
|
+
),
|
|
636
|
+
options=make_request_options(
|
|
637
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
638
|
+
),
|
|
639
|
+
cast_to=ActionRecordStartResponse,
|
|
640
|
+
)
|
|
641
|
+
|
|
642
|
+
def record_stop(
|
|
643
|
+
self,
|
|
644
|
+
id: str,
|
|
645
|
+
*,
|
|
646
|
+
client_state: str | NotGiven = NOT_GIVEN,
|
|
647
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
648
|
+
recording_id: str | NotGiven = NOT_GIVEN,
|
|
649
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
650
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
651
|
+
extra_headers: Headers | None = None,
|
|
652
|
+
extra_query: Query | None = None,
|
|
653
|
+
extra_body: Body | None = None,
|
|
654
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
655
|
+
) -> ActionRecordStopResponse:
|
|
656
|
+
"""
|
|
657
|
+
Stop recording the conference.
|
|
658
|
+
|
|
659
|
+
**Expected Webhooks (see
|
|
660
|
+
[callback schema](https://developers.telnyx.com/api/call-control/stop-conference-recording#callbacks)
|
|
661
|
+
below):**
|
|
662
|
+
|
|
663
|
+
- `conference.recording.saved`
|
|
664
|
+
|
|
665
|
+
Args:
|
|
666
|
+
client_state: Use this field to add state to every subsequent webhook. It must be a valid
|
|
667
|
+
Base-64 encoded string.
|
|
668
|
+
|
|
669
|
+
command_id: Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
670
|
+
the same `command_id` for the same `call_control_id`.
|
|
671
|
+
|
|
672
|
+
recording_id: Uniquely identifies the resource.
|
|
673
|
+
|
|
674
|
+
extra_headers: Send extra headers
|
|
675
|
+
|
|
676
|
+
extra_query: Add additional query parameters to the request
|
|
677
|
+
|
|
678
|
+
extra_body: Add additional JSON properties to the request
|
|
679
|
+
|
|
680
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
681
|
+
"""
|
|
682
|
+
if not id:
|
|
683
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
684
|
+
return self._post(
|
|
685
|
+
f"/conferences/{id}/actions/record_stop",
|
|
686
|
+
body=maybe_transform(
|
|
687
|
+
{
|
|
688
|
+
"client_state": client_state,
|
|
689
|
+
"command_id": command_id,
|
|
690
|
+
"recording_id": recording_id,
|
|
691
|
+
},
|
|
692
|
+
action_record_stop_params.ActionRecordStopParams,
|
|
693
|
+
),
|
|
694
|
+
options=make_request_options(
|
|
695
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
696
|
+
),
|
|
697
|
+
cast_to=ActionRecordStopResponse,
|
|
698
|
+
)
|
|
699
|
+
|
|
700
|
+
def speak(
|
|
701
|
+
self,
|
|
702
|
+
id: str,
|
|
703
|
+
*,
|
|
704
|
+
payload: str,
|
|
705
|
+
voice: str,
|
|
706
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
707
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
708
|
+
language: Literal[
|
|
709
|
+
"arb",
|
|
710
|
+
"cmn-CN",
|
|
711
|
+
"cy-GB",
|
|
712
|
+
"da-DK",
|
|
713
|
+
"de-DE",
|
|
714
|
+
"en-AU",
|
|
715
|
+
"en-GB",
|
|
716
|
+
"en-GB-WLS",
|
|
717
|
+
"en-IN",
|
|
718
|
+
"en-US",
|
|
719
|
+
"es-ES",
|
|
720
|
+
"es-MX",
|
|
721
|
+
"es-US",
|
|
722
|
+
"fr-CA",
|
|
723
|
+
"fr-FR",
|
|
724
|
+
"hi-IN",
|
|
725
|
+
"is-IS",
|
|
726
|
+
"it-IT",
|
|
727
|
+
"ja-JP",
|
|
728
|
+
"ko-KR",
|
|
729
|
+
"nb-NO",
|
|
730
|
+
"nl-NL",
|
|
731
|
+
"pl-PL",
|
|
732
|
+
"pt-BR",
|
|
733
|
+
"pt-PT",
|
|
734
|
+
"ro-RO",
|
|
735
|
+
"ru-RU",
|
|
736
|
+
"sv-SE",
|
|
737
|
+
"tr-TR",
|
|
738
|
+
]
|
|
739
|
+
| NotGiven = NOT_GIVEN,
|
|
740
|
+
payload_type: Literal["text", "ssml"] | NotGiven = NOT_GIVEN,
|
|
741
|
+
voice_settings: action_speak_params.VoiceSettings | NotGiven = NOT_GIVEN,
|
|
742
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
743
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
744
|
+
extra_headers: Headers | None = None,
|
|
745
|
+
extra_query: Query | None = None,
|
|
746
|
+
extra_body: Body | None = None,
|
|
747
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
748
|
+
) -> ActionSpeakResponse:
|
|
749
|
+
"""
|
|
750
|
+
Convert text to speech and play it to all or some participants.
|
|
751
|
+
|
|
752
|
+
Args:
|
|
753
|
+
payload: The text or SSML to be converted into speech. There is a 3,000 character limit.
|
|
754
|
+
|
|
755
|
+
voice: Specifies the voice used in speech synthesis.
|
|
756
|
+
|
|
757
|
+
- Define voices using the format `<Provider>.<Model>.<VoiceId>`. Specifying only
|
|
758
|
+
the provider will give default values for voice_id and model_id.
|
|
759
|
+
|
|
760
|
+
**Supported Providers:**
|
|
761
|
+
|
|
762
|
+
- **AWS:** Use `AWS.Polly.<VoiceId>` (e.g., `AWS.Polly.Joanna`). For neural
|
|
763
|
+
voices, which provide more realistic, human-like speech, append `-Neural` to
|
|
764
|
+
the `VoiceId` (e.g., `AWS.Polly.Joanna-Neural`). Check the
|
|
765
|
+
[available voices](https://docs.aws.amazon.com/polly/latest/dg/available-voices.html)
|
|
766
|
+
for compatibility.
|
|
767
|
+
- **Azure:** Use `Azure.<VoiceId>. (e.g. Azure.en-CA-ClaraNeural,
|
|
768
|
+
Azure.en-CA-LiamNeural, Azure.en-US-BrianMultilingualNeural,
|
|
769
|
+
Azure.en-US-Ava:DragonHDLatestNeural. For a complete list of voices, go to
|
|
770
|
+
[Azure Voice Gallery](https://speech.microsoft.com/portal/voicegallery).)
|
|
771
|
+
- **ElevenLabs:** Use `ElevenLabs.<ModelId>.<VoiceId>` (e.g.,
|
|
772
|
+
`ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
773
|
+
is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
774
|
+
integration identifier secret in
|
|
775
|
+
`"voice_settings": {"api_key_ref": "<secret_identifier>"}`. See
|
|
776
|
+
[integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
777
|
+
for details. Check
|
|
778
|
+
[available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
779
|
+
- **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
780
|
+
|
|
781
|
+
For service_level basic, you may define the gender of the speaker (male or
|
|
782
|
+
female).
|
|
783
|
+
|
|
784
|
+
call_control_ids: Call Control IDs of participants who will hear the spoken text. When empty all
|
|
785
|
+
participants will hear the spoken text.
|
|
786
|
+
|
|
787
|
+
command_id: Use this field to avoid execution of duplicate commands. Telnyx will ignore
|
|
788
|
+
subsequent commands with the same `command_id` as one that has already been
|
|
789
|
+
executed.
|
|
790
|
+
|
|
791
|
+
language: The language you want spoken. This parameter is ignored when a `Polly.*` voice
|
|
792
|
+
is specified.
|
|
793
|
+
|
|
794
|
+
payload_type: The type of the provided payload. The payload can either be plain text, or
|
|
795
|
+
Speech Synthesis Markup Language (SSML).
|
|
796
|
+
|
|
797
|
+
voice_settings: The settings associated with the voice selected
|
|
798
|
+
|
|
799
|
+
extra_headers: Send extra headers
|
|
800
|
+
|
|
801
|
+
extra_query: Add additional query parameters to the request
|
|
802
|
+
|
|
803
|
+
extra_body: Add additional JSON properties to the request
|
|
804
|
+
|
|
805
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
806
|
+
"""
|
|
807
|
+
if not id:
|
|
808
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
809
|
+
return self._post(
|
|
810
|
+
f"/conferences/{id}/actions/speak",
|
|
811
|
+
body=maybe_transform(
|
|
812
|
+
{
|
|
813
|
+
"payload": payload,
|
|
814
|
+
"voice": voice,
|
|
815
|
+
"call_control_ids": call_control_ids,
|
|
816
|
+
"command_id": command_id,
|
|
817
|
+
"language": language,
|
|
818
|
+
"payload_type": payload_type,
|
|
819
|
+
"voice_settings": voice_settings,
|
|
820
|
+
},
|
|
821
|
+
action_speak_params.ActionSpeakParams,
|
|
822
|
+
),
|
|
823
|
+
options=make_request_options(
|
|
824
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
825
|
+
),
|
|
826
|
+
cast_to=ActionSpeakResponse,
|
|
827
|
+
)
|
|
828
|
+
|
|
829
|
+
def stop(
|
|
830
|
+
self,
|
|
831
|
+
id: str,
|
|
832
|
+
*,
|
|
833
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
834
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
835
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
836
|
+
extra_headers: Headers | None = None,
|
|
837
|
+
extra_query: Query | None = None,
|
|
838
|
+
extra_body: Body | None = None,
|
|
839
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
840
|
+
) -> ActionStopResponse:
|
|
841
|
+
"""
|
|
842
|
+
Stop audio being played to all or some participants on a conference call.
|
|
843
|
+
|
|
844
|
+
Args:
|
|
845
|
+
call_control_ids: List of call control ids identifying participants the audio file should stop be
|
|
846
|
+
played to. If not given, the audio will be stoped to the entire conference.
|
|
847
|
+
|
|
848
|
+
extra_headers: Send extra headers
|
|
849
|
+
|
|
850
|
+
extra_query: Add additional query parameters to the request
|
|
851
|
+
|
|
852
|
+
extra_body: Add additional JSON properties to the request
|
|
853
|
+
|
|
854
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
855
|
+
"""
|
|
856
|
+
if not id:
|
|
857
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
858
|
+
return self._post(
|
|
859
|
+
f"/conferences/{id}/actions/stop",
|
|
860
|
+
body=maybe_transform({"call_control_ids": call_control_ids}, action_stop_params.ActionStopParams),
|
|
861
|
+
options=make_request_options(
|
|
862
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
863
|
+
),
|
|
864
|
+
cast_to=ActionStopResponse,
|
|
865
|
+
)
|
|
866
|
+
|
|
867
|
+
def unhold(
|
|
868
|
+
self,
|
|
869
|
+
id: str,
|
|
870
|
+
*,
|
|
871
|
+
call_control_ids: List[str],
|
|
872
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
873
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
874
|
+
extra_headers: Headers | None = None,
|
|
875
|
+
extra_query: Query | None = None,
|
|
876
|
+
extra_body: Body | None = None,
|
|
877
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
878
|
+
) -> ActionUnholdResponse:
|
|
879
|
+
"""
|
|
880
|
+
Unhold a list of participants in a conference call
|
|
881
|
+
|
|
882
|
+
Args:
|
|
883
|
+
call_control_ids: List of unique identifiers and tokens for controlling the call. Enter each call
|
|
884
|
+
control ID to be unheld.
|
|
885
|
+
|
|
886
|
+
extra_headers: Send extra headers
|
|
887
|
+
|
|
888
|
+
extra_query: Add additional query parameters to the request
|
|
889
|
+
|
|
890
|
+
extra_body: Add additional JSON properties to the request
|
|
891
|
+
|
|
892
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
893
|
+
"""
|
|
894
|
+
if not id:
|
|
895
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
896
|
+
return self._post(
|
|
897
|
+
f"/conferences/{id}/actions/unhold",
|
|
898
|
+
body=maybe_transform({"call_control_ids": call_control_ids}, action_unhold_params.ActionUnholdParams),
|
|
899
|
+
options=make_request_options(
|
|
900
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
901
|
+
),
|
|
902
|
+
cast_to=ActionUnholdResponse,
|
|
903
|
+
)
|
|
904
|
+
|
|
905
|
+
def unmute(
|
|
906
|
+
self,
|
|
907
|
+
id: str,
|
|
908
|
+
*,
|
|
909
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
910
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
911
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
912
|
+
extra_headers: Headers | None = None,
|
|
913
|
+
extra_query: Query | None = None,
|
|
914
|
+
extra_body: Body | None = None,
|
|
915
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
916
|
+
) -> ActionUnmuteResponse:
|
|
917
|
+
"""
|
|
918
|
+
Unmute a list of participants in a conference call
|
|
919
|
+
|
|
920
|
+
Args:
|
|
921
|
+
call_control_ids: List of unique identifiers and tokens for controlling the call. Enter each call
|
|
922
|
+
control ID to be unmuted. When empty all participants will be unmuted.
|
|
923
|
+
|
|
924
|
+
extra_headers: Send extra headers
|
|
925
|
+
|
|
926
|
+
extra_query: Add additional query parameters to the request
|
|
927
|
+
|
|
928
|
+
extra_body: Add additional JSON properties to the request
|
|
929
|
+
|
|
930
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
931
|
+
"""
|
|
932
|
+
if not id:
|
|
933
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
934
|
+
return self._post(
|
|
935
|
+
f"/conferences/{id}/actions/unmute",
|
|
936
|
+
body=maybe_transform({"call_control_ids": call_control_ids}, action_unmute_params.ActionUnmuteParams),
|
|
937
|
+
options=make_request_options(
|
|
938
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
939
|
+
),
|
|
940
|
+
cast_to=ActionUnmuteResponse,
|
|
941
|
+
)
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
class AsyncActionsResource(AsyncAPIResource):
|
|
945
|
+
@cached_property
|
|
946
|
+
def with_raw_response(self) -> AsyncActionsResourceWithRawResponse:
|
|
947
|
+
"""
|
|
948
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
949
|
+
the raw response object instead of the parsed content.
|
|
950
|
+
|
|
951
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
|
|
952
|
+
"""
|
|
953
|
+
return AsyncActionsResourceWithRawResponse(self)
|
|
954
|
+
|
|
955
|
+
@cached_property
|
|
956
|
+
def with_streaming_response(self) -> AsyncActionsResourceWithStreamingResponse:
|
|
957
|
+
"""
|
|
958
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
959
|
+
|
|
960
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#with_streaming_response
|
|
961
|
+
"""
|
|
962
|
+
return AsyncActionsResourceWithStreamingResponse(self)
|
|
963
|
+
|
|
964
|
+
async def update(
|
|
965
|
+
self,
|
|
966
|
+
id: str,
|
|
967
|
+
*,
|
|
968
|
+
call_control_id: str,
|
|
969
|
+
supervisor_role: Literal["barge", "monitor", "none", "whisper"],
|
|
970
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
971
|
+
whisper_call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
972
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
973
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
974
|
+
extra_headers: Headers | None = None,
|
|
975
|
+
extra_query: Query | None = None,
|
|
976
|
+
extra_body: Body | None = None,
|
|
977
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
978
|
+
) -> ActionUpdateResponse:
|
|
979
|
+
"""
|
|
980
|
+
Update conference participant supervisor_role
|
|
981
|
+
|
|
982
|
+
Args:
|
|
983
|
+
call_control_id: Unique identifier and token for controlling the call
|
|
984
|
+
|
|
985
|
+
supervisor_role: Sets the participant as a supervisor for the conference. A conference can have
|
|
986
|
+
multiple supervisors. "barge" means the supervisor enters the conference as a
|
|
987
|
+
normal participant. This is the same as "none". "monitor" means the supervisor
|
|
988
|
+
is muted but can hear all participants. "whisper" means that only the specified
|
|
989
|
+
"whisper_call_control_ids" can hear the supervisor. Defaults to "none".
|
|
990
|
+
|
|
991
|
+
command_id: Use this field to avoid execution of duplicate commands. Telnyx will ignore
|
|
992
|
+
subsequent commands with the same `command_id` as one that has already been
|
|
993
|
+
executed.
|
|
994
|
+
|
|
995
|
+
whisper_call_control_ids: Array of unique call_control_ids the supervisor can whisper to. If none
|
|
996
|
+
provided, the supervisor will join the conference as a monitoring participant
|
|
997
|
+
only.
|
|
998
|
+
|
|
999
|
+
extra_headers: Send extra headers
|
|
1000
|
+
|
|
1001
|
+
extra_query: Add additional query parameters to the request
|
|
1002
|
+
|
|
1003
|
+
extra_body: Add additional JSON properties to the request
|
|
1004
|
+
|
|
1005
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1006
|
+
"""
|
|
1007
|
+
if not id:
|
|
1008
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1009
|
+
return await self._post(
|
|
1010
|
+
f"/conferences/{id}/actions/update",
|
|
1011
|
+
body=await async_maybe_transform(
|
|
1012
|
+
{
|
|
1013
|
+
"call_control_id": call_control_id,
|
|
1014
|
+
"supervisor_role": supervisor_role,
|
|
1015
|
+
"command_id": command_id,
|
|
1016
|
+
"whisper_call_control_ids": whisper_call_control_ids,
|
|
1017
|
+
},
|
|
1018
|
+
action_update_params.ActionUpdateParams,
|
|
1019
|
+
),
|
|
1020
|
+
options=make_request_options(
|
|
1021
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1022
|
+
),
|
|
1023
|
+
cast_to=ActionUpdateResponse,
|
|
1024
|
+
)
|
|
1025
|
+
|
|
1026
|
+
async def hold(
|
|
1027
|
+
self,
|
|
1028
|
+
id: str,
|
|
1029
|
+
*,
|
|
1030
|
+
audio_url: str | NotGiven = NOT_GIVEN,
|
|
1031
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
1032
|
+
media_name: str | NotGiven = NOT_GIVEN,
|
|
1033
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1034
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1035
|
+
extra_headers: Headers | None = None,
|
|
1036
|
+
extra_query: Query | None = None,
|
|
1037
|
+
extra_body: Body | None = None,
|
|
1038
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1039
|
+
) -> ActionHoldResponse:
|
|
1040
|
+
"""
|
|
1041
|
+
Hold a list of participants in a conference call
|
|
1042
|
+
|
|
1043
|
+
Args:
|
|
1044
|
+
audio_url: The URL of a file to be played to the participants when they are put on hold.
|
|
1045
|
+
media_name and audio_url cannot be used together in one request.
|
|
1046
|
+
|
|
1047
|
+
call_control_ids: List of unique identifiers and tokens for controlling the call. When empty all
|
|
1048
|
+
participants will be placed on hold.
|
|
1049
|
+
|
|
1050
|
+
media_name: The media_name of a file to be played to the participants when they are put on
|
|
1051
|
+
hold. The media_name must point to a file previously uploaded to
|
|
1052
|
+
api.telnyx.com/v2/media by the same user/organization. The file must either be a
|
|
1053
|
+
WAV or MP3 file.
|
|
1054
|
+
|
|
1055
|
+
extra_headers: Send extra headers
|
|
1056
|
+
|
|
1057
|
+
extra_query: Add additional query parameters to the request
|
|
1058
|
+
|
|
1059
|
+
extra_body: Add additional JSON properties to the request
|
|
1060
|
+
|
|
1061
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1062
|
+
"""
|
|
1063
|
+
if not id:
|
|
1064
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1065
|
+
return await self._post(
|
|
1066
|
+
f"/conferences/{id}/actions/hold",
|
|
1067
|
+
body=await async_maybe_transform(
|
|
1068
|
+
{
|
|
1069
|
+
"audio_url": audio_url,
|
|
1070
|
+
"call_control_ids": call_control_ids,
|
|
1071
|
+
"media_name": media_name,
|
|
1072
|
+
},
|
|
1073
|
+
action_hold_params.ActionHoldParams,
|
|
1074
|
+
),
|
|
1075
|
+
options=make_request_options(
|
|
1076
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1077
|
+
),
|
|
1078
|
+
cast_to=ActionHoldResponse,
|
|
1079
|
+
)
|
|
1080
|
+
|
|
1081
|
+
async def join(
|
|
1082
|
+
self,
|
|
1083
|
+
id: str,
|
|
1084
|
+
*,
|
|
1085
|
+
call_control_id: str,
|
|
1086
|
+
beep_enabled: Literal["always", "never", "on_enter", "on_exit"] | NotGiven = NOT_GIVEN,
|
|
1087
|
+
client_state: str | NotGiven = NOT_GIVEN,
|
|
1088
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
1089
|
+
end_conference_on_exit: bool | NotGiven = NOT_GIVEN,
|
|
1090
|
+
hold: bool | NotGiven = NOT_GIVEN,
|
|
1091
|
+
hold_audio_url: str | NotGiven = NOT_GIVEN,
|
|
1092
|
+
hold_media_name: str | NotGiven = NOT_GIVEN,
|
|
1093
|
+
mute: bool | NotGiven = NOT_GIVEN,
|
|
1094
|
+
soft_end_conference_on_exit: bool | NotGiven = NOT_GIVEN,
|
|
1095
|
+
start_conference_on_enter: bool | NotGiven = NOT_GIVEN,
|
|
1096
|
+
supervisor_role: Literal["barge", "monitor", "none", "whisper"] | NotGiven = NOT_GIVEN,
|
|
1097
|
+
whisper_call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
1098
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1099
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1100
|
+
extra_headers: Headers | None = None,
|
|
1101
|
+
extra_query: Query | None = None,
|
|
1102
|
+
extra_body: Body | None = None,
|
|
1103
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1104
|
+
) -> ActionJoinResponse:
|
|
1105
|
+
"""Join an existing call leg to a conference.
|
|
1106
|
+
|
|
1107
|
+
Issue the Join Conference command
|
|
1108
|
+
with the conference ID in the path and the `call_control_id` of the leg you wish
|
|
1109
|
+
to join to the conference as an attribute. The conference can have up to a
|
|
1110
|
+
certain amount of active participants, as set by the `max_participants`
|
|
1111
|
+
parameter in conference creation request.
|
|
1112
|
+
|
|
1113
|
+
**Expected Webhooks (see
|
|
1114
|
+
[callback schema](https://developers.telnyx.com/api/call-control/join-conference#callbacks)
|
|
1115
|
+
below):**
|
|
1116
|
+
|
|
1117
|
+
- `conference.participant.joined`
|
|
1118
|
+
- `conference.participant.left`
|
|
1119
|
+
|
|
1120
|
+
Args:
|
|
1121
|
+
call_control_id: Unique identifier and token for controlling the call
|
|
1122
|
+
|
|
1123
|
+
beep_enabled: Whether a beep sound should be played when the participant joins and/or leaves
|
|
1124
|
+
the conference. Can be used to override the conference-level setting.
|
|
1125
|
+
|
|
1126
|
+
client_state: Use this field to add state to every subsequent webhook. It must be a valid
|
|
1127
|
+
Base-64 encoded string. Please note that the client_state will be updated for
|
|
1128
|
+
the participient call leg and the change will not affect conferencing webhooks
|
|
1129
|
+
unless the participient is the owner of the conference.
|
|
1130
|
+
|
|
1131
|
+
command_id: Use this field to avoid execution of duplicate commands. Telnyx will ignore
|
|
1132
|
+
subsequent commands with the same `command_id` as one that has already been
|
|
1133
|
+
executed.
|
|
1134
|
+
|
|
1135
|
+
end_conference_on_exit: Whether the conference should end and all remaining participants be hung up
|
|
1136
|
+
after the participant leaves the conference. Defaults to "false".
|
|
1137
|
+
|
|
1138
|
+
hold: Whether the participant should be put on hold immediately after joining the
|
|
1139
|
+
conference. Defaults to "false".
|
|
1140
|
+
|
|
1141
|
+
hold_audio_url: The URL of a file to be played to the participant when they are put on hold
|
|
1142
|
+
after joining the conference. hold_media_name and hold_audio_url cannot be used
|
|
1143
|
+
together in one request. Takes effect only when "start_conference_on_create" is
|
|
1144
|
+
set to "false". This property takes effect only if "hold" is set to "true".
|
|
1145
|
+
|
|
1146
|
+
hold_media_name: The media_name of a file to be played to the participant when they are put on
|
|
1147
|
+
hold after joining the conference. The media_name must point to a file
|
|
1148
|
+
previously uploaded to api.telnyx.com/v2/media by the same user/organization.
|
|
1149
|
+
The file must either be a WAV or MP3 file. Takes effect only when
|
|
1150
|
+
"start_conference_on_create" is set to "false". This property takes effect only
|
|
1151
|
+
if "hold" is set to "true".
|
|
1152
|
+
|
|
1153
|
+
mute: Whether the participant should be muted immediately after joining the
|
|
1154
|
+
conference. Defaults to "false".
|
|
1155
|
+
|
|
1156
|
+
soft_end_conference_on_exit: Whether the conference should end after the participant leaves the conference.
|
|
1157
|
+
NOTE this doesn't hang up the other participants. Defaults to "false".
|
|
1158
|
+
|
|
1159
|
+
start_conference_on_enter: Whether the conference should be started after the participant joins the
|
|
1160
|
+
conference. Defaults to "false".
|
|
1161
|
+
|
|
1162
|
+
supervisor_role: Sets the joining participant as a supervisor for the conference. A conference
|
|
1163
|
+
can have multiple supervisors. "barge" means the supervisor enters the
|
|
1164
|
+
conference as a normal participant. This is the same as "none". "monitor" means
|
|
1165
|
+
the supervisor is muted but can hear all participants. "whisper" means that only
|
|
1166
|
+
the specified "whisper_call_control_ids" can hear the supervisor. Defaults to
|
|
1167
|
+
"none".
|
|
1168
|
+
|
|
1169
|
+
whisper_call_control_ids: Array of unique call_control_ids the joining supervisor can whisper to. If none
|
|
1170
|
+
provided, the supervisor will join the conference as a monitoring participant
|
|
1171
|
+
only.
|
|
1172
|
+
|
|
1173
|
+
extra_headers: Send extra headers
|
|
1174
|
+
|
|
1175
|
+
extra_query: Add additional query parameters to the request
|
|
1176
|
+
|
|
1177
|
+
extra_body: Add additional JSON properties to the request
|
|
1178
|
+
|
|
1179
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1180
|
+
"""
|
|
1181
|
+
if not id:
|
|
1182
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1183
|
+
return await self._post(
|
|
1184
|
+
f"/conferences/{id}/actions/join",
|
|
1185
|
+
body=await async_maybe_transform(
|
|
1186
|
+
{
|
|
1187
|
+
"call_control_id": call_control_id,
|
|
1188
|
+
"beep_enabled": beep_enabled,
|
|
1189
|
+
"client_state": client_state,
|
|
1190
|
+
"command_id": command_id,
|
|
1191
|
+
"end_conference_on_exit": end_conference_on_exit,
|
|
1192
|
+
"hold": hold,
|
|
1193
|
+
"hold_audio_url": hold_audio_url,
|
|
1194
|
+
"hold_media_name": hold_media_name,
|
|
1195
|
+
"mute": mute,
|
|
1196
|
+
"soft_end_conference_on_exit": soft_end_conference_on_exit,
|
|
1197
|
+
"start_conference_on_enter": start_conference_on_enter,
|
|
1198
|
+
"supervisor_role": supervisor_role,
|
|
1199
|
+
"whisper_call_control_ids": whisper_call_control_ids,
|
|
1200
|
+
},
|
|
1201
|
+
action_join_params.ActionJoinParams,
|
|
1202
|
+
),
|
|
1203
|
+
options=make_request_options(
|
|
1204
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1205
|
+
),
|
|
1206
|
+
cast_to=ActionJoinResponse,
|
|
1207
|
+
)
|
|
1208
|
+
|
|
1209
|
+
async def leave(
|
|
1210
|
+
self,
|
|
1211
|
+
id: str,
|
|
1212
|
+
*,
|
|
1213
|
+
call_control_id: str,
|
|
1214
|
+
beep_enabled: Literal["always", "never", "on_enter", "on_exit"] | NotGiven = NOT_GIVEN,
|
|
1215
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
1216
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1217
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1218
|
+
extra_headers: Headers | None = None,
|
|
1219
|
+
extra_query: Query | None = None,
|
|
1220
|
+
extra_body: Body | None = None,
|
|
1221
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1222
|
+
) -> ActionLeaveResponse:
|
|
1223
|
+
"""
|
|
1224
|
+
Removes a call leg from a conference and moves it back to parked state.
|
|
1225
|
+
|
|
1226
|
+
**Expected Webhooks (see
|
|
1227
|
+
[callback schema](https://developers.telnyx.com/api/call-control/leave-conference#callbacks)
|
|
1228
|
+
below):**
|
|
1229
|
+
|
|
1230
|
+
- `conference.participant.left`
|
|
1231
|
+
|
|
1232
|
+
Args:
|
|
1233
|
+
call_control_id: Unique identifier and token for controlling the call
|
|
1234
|
+
|
|
1235
|
+
beep_enabled: Whether a beep sound should be played when the participant leaves the
|
|
1236
|
+
conference. Can be used to override the conference-level setting.
|
|
1237
|
+
|
|
1238
|
+
command_id: Use this field to avoid execution of duplicate commands. Telnyx will ignore
|
|
1239
|
+
subsequent commands with the same `command_id` as one that has already been
|
|
1240
|
+
executed.
|
|
1241
|
+
|
|
1242
|
+
extra_headers: Send extra headers
|
|
1243
|
+
|
|
1244
|
+
extra_query: Add additional query parameters to the request
|
|
1245
|
+
|
|
1246
|
+
extra_body: Add additional JSON properties to the request
|
|
1247
|
+
|
|
1248
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1249
|
+
"""
|
|
1250
|
+
if not id:
|
|
1251
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1252
|
+
return await self._post(
|
|
1253
|
+
f"/conferences/{id}/actions/leave",
|
|
1254
|
+
body=await async_maybe_transform(
|
|
1255
|
+
{
|
|
1256
|
+
"call_control_id": call_control_id,
|
|
1257
|
+
"beep_enabled": beep_enabled,
|
|
1258
|
+
"command_id": command_id,
|
|
1259
|
+
},
|
|
1260
|
+
action_leave_params.ActionLeaveParams,
|
|
1261
|
+
),
|
|
1262
|
+
options=make_request_options(
|
|
1263
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1264
|
+
),
|
|
1265
|
+
cast_to=ActionLeaveResponse,
|
|
1266
|
+
)
|
|
1267
|
+
|
|
1268
|
+
async def mute(
|
|
1269
|
+
self,
|
|
1270
|
+
id: str,
|
|
1271
|
+
*,
|
|
1272
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
1273
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1274
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1275
|
+
extra_headers: Headers | None = None,
|
|
1276
|
+
extra_query: Query | None = None,
|
|
1277
|
+
extra_body: Body | None = None,
|
|
1278
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1279
|
+
) -> ActionMuteResponse:
|
|
1280
|
+
"""
|
|
1281
|
+
Mute a list of participants in a conference call
|
|
1282
|
+
|
|
1283
|
+
Args:
|
|
1284
|
+
call_control_ids: Array of unique identifiers and tokens for controlling the call. When empty all
|
|
1285
|
+
participants will be muted.
|
|
1286
|
+
|
|
1287
|
+
extra_headers: Send extra headers
|
|
1288
|
+
|
|
1289
|
+
extra_query: Add additional query parameters to the request
|
|
1290
|
+
|
|
1291
|
+
extra_body: Add additional JSON properties to the request
|
|
1292
|
+
|
|
1293
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1294
|
+
"""
|
|
1295
|
+
if not id:
|
|
1296
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1297
|
+
return await self._post(
|
|
1298
|
+
f"/conferences/{id}/actions/mute",
|
|
1299
|
+
body=await async_maybe_transform(
|
|
1300
|
+
{"call_control_ids": call_control_ids}, action_mute_params.ActionMuteParams
|
|
1301
|
+
),
|
|
1302
|
+
options=make_request_options(
|
|
1303
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1304
|
+
),
|
|
1305
|
+
cast_to=ActionMuteResponse,
|
|
1306
|
+
)
|
|
1307
|
+
|
|
1308
|
+
async def play(
|
|
1309
|
+
self,
|
|
1310
|
+
id: str,
|
|
1311
|
+
*,
|
|
1312
|
+
audio_url: str | NotGiven = NOT_GIVEN,
|
|
1313
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
1314
|
+
loop: LoopcountParam | NotGiven = NOT_GIVEN,
|
|
1315
|
+
media_name: str | NotGiven = NOT_GIVEN,
|
|
1316
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1317
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1318
|
+
extra_headers: Headers | None = None,
|
|
1319
|
+
extra_query: Query | None = None,
|
|
1320
|
+
extra_body: Body | None = None,
|
|
1321
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1322
|
+
) -> ActionPlayResponse:
|
|
1323
|
+
"""
|
|
1324
|
+
Play audio to all or some participants on a conference call.
|
|
1325
|
+
|
|
1326
|
+
Args:
|
|
1327
|
+
audio_url: The URL of a file to be played back in the conference. media_name and audio_url
|
|
1328
|
+
cannot be used together in one request.
|
|
1329
|
+
|
|
1330
|
+
call_control_ids: List of call control ids identifying participants the audio file should be
|
|
1331
|
+
played to. If not given, the audio file will be played to the entire conference.
|
|
1332
|
+
|
|
1333
|
+
loop: The number of times the audio file should be played. If supplied, the value must
|
|
1334
|
+
be an integer between 1 and 100, or the special string `infinity` for an endless
|
|
1335
|
+
loop.
|
|
1336
|
+
|
|
1337
|
+
media_name: The media_name of a file to be played back in the conference. The media_name
|
|
1338
|
+
must point to a file previously uploaded to api.telnyx.com/v2/media by the same
|
|
1339
|
+
user/organization. The file must either be a WAV or MP3 file.
|
|
1340
|
+
|
|
1341
|
+
extra_headers: Send extra headers
|
|
1342
|
+
|
|
1343
|
+
extra_query: Add additional query parameters to the request
|
|
1344
|
+
|
|
1345
|
+
extra_body: Add additional JSON properties to the request
|
|
1346
|
+
|
|
1347
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1348
|
+
"""
|
|
1349
|
+
if not id:
|
|
1350
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1351
|
+
return await self._post(
|
|
1352
|
+
f"/conferences/{id}/actions/play",
|
|
1353
|
+
body=await async_maybe_transform(
|
|
1354
|
+
{
|
|
1355
|
+
"audio_url": audio_url,
|
|
1356
|
+
"call_control_ids": call_control_ids,
|
|
1357
|
+
"loop": loop,
|
|
1358
|
+
"media_name": media_name,
|
|
1359
|
+
},
|
|
1360
|
+
action_play_params.ActionPlayParams,
|
|
1361
|
+
),
|
|
1362
|
+
options=make_request_options(
|
|
1363
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1364
|
+
),
|
|
1365
|
+
cast_to=ActionPlayResponse,
|
|
1366
|
+
)
|
|
1367
|
+
|
|
1368
|
+
async def record_pause(
|
|
1369
|
+
self,
|
|
1370
|
+
id: str,
|
|
1371
|
+
*,
|
|
1372
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
1373
|
+
recording_id: str | NotGiven = NOT_GIVEN,
|
|
1374
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1375
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1376
|
+
extra_headers: Headers | None = None,
|
|
1377
|
+
extra_query: Query | None = None,
|
|
1378
|
+
extra_body: Body | None = None,
|
|
1379
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1380
|
+
) -> ActionRecordPauseResponse:
|
|
1381
|
+
"""
|
|
1382
|
+
Pause conference recording.
|
|
1383
|
+
|
|
1384
|
+
Args:
|
|
1385
|
+
command_id: Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
1386
|
+
the same `command_id` for the same `call_control_id`.
|
|
1387
|
+
|
|
1388
|
+
recording_id: Use this field to pause specific recording.
|
|
1389
|
+
|
|
1390
|
+
extra_headers: Send extra headers
|
|
1391
|
+
|
|
1392
|
+
extra_query: Add additional query parameters to the request
|
|
1393
|
+
|
|
1394
|
+
extra_body: Add additional JSON properties to the request
|
|
1395
|
+
|
|
1396
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1397
|
+
"""
|
|
1398
|
+
if not id:
|
|
1399
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1400
|
+
return await self._post(
|
|
1401
|
+
f"/conferences/{id}/actions/record_pause",
|
|
1402
|
+
body=await async_maybe_transform(
|
|
1403
|
+
{
|
|
1404
|
+
"command_id": command_id,
|
|
1405
|
+
"recording_id": recording_id,
|
|
1406
|
+
},
|
|
1407
|
+
action_record_pause_params.ActionRecordPauseParams,
|
|
1408
|
+
),
|
|
1409
|
+
options=make_request_options(
|
|
1410
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1411
|
+
),
|
|
1412
|
+
cast_to=ActionRecordPauseResponse,
|
|
1413
|
+
)
|
|
1414
|
+
|
|
1415
|
+
async def record_resume(
|
|
1416
|
+
self,
|
|
1417
|
+
id: str,
|
|
1418
|
+
*,
|
|
1419
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
1420
|
+
recording_id: str | NotGiven = NOT_GIVEN,
|
|
1421
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1422
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1423
|
+
extra_headers: Headers | None = None,
|
|
1424
|
+
extra_query: Query | None = None,
|
|
1425
|
+
extra_body: Body | None = None,
|
|
1426
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1427
|
+
) -> ActionRecordResumeResponse:
|
|
1428
|
+
"""
|
|
1429
|
+
Resume conference recording.
|
|
1430
|
+
|
|
1431
|
+
Args:
|
|
1432
|
+
command_id: Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
1433
|
+
the same `command_id` for the same `call_control_id`.
|
|
1434
|
+
|
|
1435
|
+
recording_id: Use this field to resume specific recording.
|
|
1436
|
+
|
|
1437
|
+
extra_headers: Send extra headers
|
|
1438
|
+
|
|
1439
|
+
extra_query: Add additional query parameters to the request
|
|
1440
|
+
|
|
1441
|
+
extra_body: Add additional JSON properties to the request
|
|
1442
|
+
|
|
1443
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1444
|
+
"""
|
|
1445
|
+
if not id:
|
|
1446
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1447
|
+
return await self._post(
|
|
1448
|
+
f"/conferences/{id}/actions/record_resume",
|
|
1449
|
+
body=await async_maybe_transform(
|
|
1450
|
+
{
|
|
1451
|
+
"command_id": command_id,
|
|
1452
|
+
"recording_id": recording_id,
|
|
1453
|
+
},
|
|
1454
|
+
action_record_resume_params.ActionRecordResumeParams,
|
|
1455
|
+
),
|
|
1456
|
+
options=make_request_options(
|
|
1457
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1458
|
+
),
|
|
1459
|
+
cast_to=ActionRecordResumeResponse,
|
|
1460
|
+
)
|
|
1461
|
+
|
|
1462
|
+
async def record_start(
|
|
1463
|
+
self,
|
|
1464
|
+
id: str,
|
|
1465
|
+
*,
|
|
1466
|
+
format: Literal["wav", "mp3"],
|
|
1467
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
1468
|
+
custom_file_name: str | NotGiven = NOT_GIVEN,
|
|
1469
|
+
play_beep: bool | NotGiven = NOT_GIVEN,
|
|
1470
|
+
trim: Literal["trim-silence"] | NotGiven = NOT_GIVEN,
|
|
1471
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1472
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1473
|
+
extra_headers: Headers | None = None,
|
|
1474
|
+
extra_query: Query | None = None,
|
|
1475
|
+
extra_body: Body | None = None,
|
|
1476
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1477
|
+
) -> ActionRecordStartResponse:
|
|
1478
|
+
"""Start recording the conference.
|
|
1479
|
+
|
|
1480
|
+
Recording will stop on conference end, or via
|
|
1481
|
+
the Stop Recording command.
|
|
1482
|
+
|
|
1483
|
+
**Expected Webhooks (see
|
|
1484
|
+
[callback schema](https://developers.telnyx.com/api/call-control/start-conference-recording#callbacks)
|
|
1485
|
+
below):**
|
|
1486
|
+
|
|
1487
|
+
- `conference.recording.saved`
|
|
1488
|
+
|
|
1489
|
+
Args:
|
|
1490
|
+
format: The audio file format used when storing the conference recording. Can be either
|
|
1491
|
+
`mp3` or `wav`.
|
|
1492
|
+
|
|
1493
|
+
command_id: Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
1494
|
+
the same `command_id` for the same `conference_id`.
|
|
1495
|
+
|
|
1496
|
+
custom_file_name: The custom recording file name to be used instead of the default `call_leg_id`.
|
|
1497
|
+
Telnyx will still add a Unix timestamp suffix.
|
|
1498
|
+
|
|
1499
|
+
play_beep: If enabled, a beep sound will be played at the start of a recording.
|
|
1500
|
+
|
|
1501
|
+
trim: When set to `trim-silence`, silence will be removed from the beginning and end
|
|
1502
|
+
of the recording.
|
|
1503
|
+
|
|
1504
|
+
extra_headers: Send extra headers
|
|
1505
|
+
|
|
1506
|
+
extra_query: Add additional query parameters to the request
|
|
1507
|
+
|
|
1508
|
+
extra_body: Add additional JSON properties to the request
|
|
1509
|
+
|
|
1510
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1511
|
+
"""
|
|
1512
|
+
if not id:
|
|
1513
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1514
|
+
return await self._post(
|
|
1515
|
+
f"/conferences/{id}/actions/record_start",
|
|
1516
|
+
body=await async_maybe_transform(
|
|
1517
|
+
{
|
|
1518
|
+
"format": format,
|
|
1519
|
+
"command_id": command_id,
|
|
1520
|
+
"custom_file_name": custom_file_name,
|
|
1521
|
+
"play_beep": play_beep,
|
|
1522
|
+
"trim": trim,
|
|
1523
|
+
},
|
|
1524
|
+
action_record_start_params.ActionRecordStartParams,
|
|
1525
|
+
),
|
|
1526
|
+
options=make_request_options(
|
|
1527
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1528
|
+
),
|
|
1529
|
+
cast_to=ActionRecordStartResponse,
|
|
1530
|
+
)
|
|
1531
|
+
|
|
1532
|
+
async def record_stop(
|
|
1533
|
+
self,
|
|
1534
|
+
id: str,
|
|
1535
|
+
*,
|
|
1536
|
+
client_state: str | NotGiven = NOT_GIVEN,
|
|
1537
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
1538
|
+
recording_id: str | NotGiven = NOT_GIVEN,
|
|
1539
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1540
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1541
|
+
extra_headers: Headers | None = None,
|
|
1542
|
+
extra_query: Query | None = None,
|
|
1543
|
+
extra_body: Body | None = None,
|
|
1544
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1545
|
+
) -> ActionRecordStopResponse:
|
|
1546
|
+
"""
|
|
1547
|
+
Stop recording the conference.
|
|
1548
|
+
|
|
1549
|
+
**Expected Webhooks (see
|
|
1550
|
+
[callback schema](https://developers.telnyx.com/api/call-control/stop-conference-recording#callbacks)
|
|
1551
|
+
below):**
|
|
1552
|
+
|
|
1553
|
+
- `conference.recording.saved`
|
|
1554
|
+
|
|
1555
|
+
Args:
|
|
1556
|
+
client_state: Use this field to add state to every subsequent webhook. It must be a valid
|
|
1557
|
+
Base-64 encoded string.
|
|
1558
|
+
|
|
1559
|
+
command_id: Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
1560
|
+
the same `command_id` for the same `call_control_id`.
|
|
1561
|
+
|
|
1562
|
+
recording_id: Uniquely identifies the resource.
|
|
1563
|
+
|
|
1564
|
+
extra_headers: Send extra headers
|
|
1565
|
+
|
|
1566
|
+
extra_query: Add additional query parameters to the request
|
|
1567
|
+
|
|
1568
|
+
extra_body: Add additional JSON properties to the request
|
|
1569
|
+
|
|
1570
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1571
|
+
"""
|
|
1572
|
+
if not id:
|
|
1573
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1574
|
+
return await self._post(
|
|
1575
|
+
f"/conferences/{id}/actions/record_stop",
|
|
1576
|
+
body=await async_maybe_transform(
|
|
1577
|
+
{
|
|
1578
|
+
"client_state": client_state,
|
|
1579
|
+
"command_id": command_id,
|
|
1580
|
+
"recording_id": recording_id,
|
|
1581
|
+
},
|
|
1582
|
+
action_record_stop_params.ActionRecordStopParams,
|
|
1583
|
+
),
|
|
1584
|
+
options=make_request_options(
|
|
1585
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1586
|
+
),
|
|
1587
|
+
cast_to=ActionRecordStopResponse,
|
|
1588
|
+
)
|
|
1589
|
+
|
|
1590
|
+
async def speak(
|
|
1591
|
+
self,
|
|
1592
|
+
id: str,
|
|
1593
|
+
*,
|
|
1594
|
+
payload: str,
|
|
1595
|
+
voice: str,
|
|
1596
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
1597
|
+
command_id: str | NotGiven = NOT_GIVEN,
|
|
1598
|
+
language: Literal[
|
|
1599
|
+
"arb",
|
|
1600
|
+
"cmn-CN",
|
|
1601
|
+
"cy-GB",
|
|
1602
|
+
"da-DK",
|
|
1603
|
+
"de-DE",
|
|
1604
|
+
"en-AU",
|
|
1605
|
+
"en-GB",
|
|
1606
|
+
"en-GB-WLS",
|
|
1607
|
+
"en-IN",
|
|
1608
|
+
"en-US",
|
|
1609
|
+
"es-ES",
|
|
1610
|
+
"es-MX",
|
|
1611
|
+
"es-US",
|
|
1612
|
+
"fr-CA",
|
|
1613
|
+
"fr-FR",
|
|
1614
|
+
"hi-IN",
|
|
1615
|
+
"is-IS",
|
|
1616
|
+
"it-IT",
|
|
1617
|
+
"ja-JP",
|
|
1618
|
+
"ko-KR",
|
|
1619
|
+
"nb-NO",
|
|
1620
|
+
"nl-NL",
|
|
1621
|
+
"pl-PL",
|
|
1622
|
+
"pt-BR",
|
|
1623
|
+
"pt-PT",
|
|
1624
|
+
"ro-RO",
|
|
1625
|
+
"ru-RU",
|
|
1626
|
+
"sv-SE",
|
|
1627
|
+
"tr-TR",
|
|
1628
|
+
]
|
|
1629
|
+
| NotGiven = NOT_GIVEN,
|
|
1630
|
+
payload_type: Literal["text", "ssml"] | NotGiven = NOT_GIVEN,
|
|
1631
|
+
voice_settings: action_speak_params.VoiceSettings | NotGiven = NOT_GIVEN,
|
|
1632
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1633
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1634
|
+
extra_headers: Headers | None = None,
|
|
1635
|
+
extra_query: Query | None = None,
|
|
1636
|
+
extra_body: Body | None = None,
|
|
1637
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1638
|
+
) -> ActionSpeakResponse:
|
|
1639
|
+
"""
|
|
1640
|
+
Convert text to speech and play it to all or some participants.
|
|
1641
|
+
|
|
1642
|
+
Args:
|
|
1643
|
+
payload: The text or SSML to be converted into speech. There is a 3,000 character limit.
|
|
1644
|
+
|
|
1645
|
+
voice: Specifies the voice used in speech synthesis.
|
|
1646
|
+
|
|
1647
|
+
- Define voices using the format `<Provider>.<Model>.<VoiceId>`. Specifying only
|
|
1648
|
+
the provider will give default values for voice_id and model_id.
|
|
1649
|
+
|
|
1650
|
+
**Supported Providers:**
|
|
1651
|
+
|
|
1652
|
+
- **AWS:** Use `AWS.Polly.<VoiceId>` (e.g., `AWS.Polly.Joanna`). For neural
|
|
1653
|
+
voices, which provide more realistic, human-like speech, append `-Neural` to
|
|
1654
|
+
the `VoiceId` (e.g., `AWS.Polly.Joanna-Neural`). Check the
|
|
1655
|
+
[available voices](https://docs.aws.amazon.com/polly/latest/dg/available-voices.html)
|
|
1656
|
+
for compatibility.
|
|
1657
|
+
- **Azure:** Use `Azure.<VoiceId>. (e.g. Azure.en-CA-ClaraNeural,
|
|
1658
|
+
Azure.en-CA-LiamNeural, Azure.en-US-BrianMultilingualNeural,
|
|
1659
|
+
Azure.en-US-Ava:DragonHDLatestNeural. For a complete list of voices, go to
|
|
1660
|
+
[Azure Voice Gallery](https://speech.microsoft.com/portal/voicegallery).)
|
|
1661
|
+
- **ElevenLabs:** Use `ElevenLabs.<ModelId>.<VoiceId>` (e.g.,
|
|
1662
|
+
`ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
1663
|
+
is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
1664
|
+
integration identifier secret in
|
|
1665
|
+
`"voice_settings": {"api_key_ref": "<secret_identifier>"}`. See
|
|
1666
|
+
[integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
1667
|
+
for details. Check
|
|
1668
|
+
[available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
1669
|
+
- **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
1670
|
+
|
|
1671
|
+
For service_level basic, you may define the gender of the speaker (male or
|
|
1672
|
+
female).
|
|
1673
|
+
|
|
1674
|
+
call_control_ids: Call Control IDs of participants who will hear the spoken text. When empty all
|
|
1675
|
+
participants will hear the spoken text.
|
|
1676
|
+
|
|
1677
|
+
command_id: Use this field to avoid execution of duplicate commands. Telnyx will ignore
|
|
1678
|
+
subsequent commands with the same `command_id` as one that has already been
|
|
1679
|
+
executed.
|
|
1680
|
+
|
|
1681
|
+
language: The language you want spoken. This parameter is ignored when a `Polly.*` voice
|
|
1682
|
+
is specified.
|
|
1683
|
+
|
|
1684
|
+
payload_type: The type of the provided payload. The payload can either be plain text, or
|
|
1685
|
+
Speech Synthesis Markup Language (SSML).
|
|
1686
|
+
|
|
1687
|
+
voice_settings: The settings associated with the voice selected
|
|
1688
|
+
|
|
1689
|
+
extra_headers: Send extra headers
|
|
1690
|
+
|
|
1691
|
+
extra_query: Add additional query parameters to the request
|
|
1692
|
+
|
|
1693
|
+
extra_body: Add additional JSON properties to the request
|
|
1694
|
+
|
|
1695
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1696
|
+
"""
|
|
1697
|
+
if not id:
|
|
1698
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1699
|
+
return await self._post(
|
|
1700
|
+
f"/conferences/{id}/actions/speak",
|
|
1701
|
+
body=await async_maybe_transform(
|
|
1702
|
+
{
|
|
1703
|
+
"payload": payload,
|
|
1704
|
+
"voice": voice,
|
|
1705
|
+
"call_control_ids": call_control_ids,
|
|
1706
|
+
"command_id": command_id,
|
|
1707
|
+
"language": language,
|
|
1708
|
+
"payload_type": payload_type,
|
|
1709
|
+
"voice_settings": voice_settings,
|
|
1710
|
+
},
|
|
1711
|
+
action_speak_params.ActionSpeakParams,
|
|
1712
|
+
),
|
|
1713
|
+
options=make_request_options(
|
|
1714
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1715
|
+
),
|
|
1716
|
+
cast_to=ActionSpeakResponse,
|
|
1717
|
+
)
|
|
1718
|
+
|
|
1719
|
+
async def stop(
|
|
1720
|
+
self,
|
|
1721
|
+
id: str,
|
|
1722
|
+
*,
|
|
1723
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
1724
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1725
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1726
|
+
extra_headers: Headers | None = None,
|
|
1727
|
+
extra_query: Query | None = None,
|
|
1728
|
+
extra_body: Body | None = None,
|
|
1729
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1730
|
+
) -> ActionStopResponse:
|
|
1731
|
+
"""
|
|
1732
|
+
Stop audio being played to all or some participants on a conference call.
|
|
1733
|
+
|
|
1734
|
+
Args:
|
|
1735
|
+
call_control_ids: List of call control ids identifying participants the audio file should stop be
|
|
1736
|
+
played to. If not given, the audio will be stoped to the entire conference.
|
|
1737
|
+
|
|
1738
|
+
extra_headers: Send extra headers
|
|
1739
|
+
|
|
1740
|
+
extra_query: Add additional query parameters to the request
|
|
1741
|
+
|
|
1742
|
+
extra_body: Add additional JSON properties to the request
|
|
1743
|
+
|
|
1744
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1745
|
+
"""
|
|
1746
|
+
if not id:
|
|
1747
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1748
|
+
return await self._post(
|
|
1749
|
+
f"/conferences/{id}/actions/stop",
|
|
1750
|
+
body=await async_maybe_transform(
|
|
1751
|
+
{"call_control_ids": call_control_ids}, action_stop_params.ActionStopParams
|
|
1752
|
+
),
|
|
1753
|
+
options=make_request_options(
|
|
1754
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1755
|
+
),
|
|
1756
|
+
cast_to=ActionStopResponse,
|
|
1757
|
+
)
|
|
1758
|
+
|
|
1759
|
+
async def unhold(
|
|
1760
|
+
self,
|
|
1761
|
+
id: str,
|
|
1762
|
+
*,
|
|
1763
|
+
call_control_ids: List[str],
|
|
1764
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1765
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1766
|
+
extra_headers: Headers | None = None,
|
|
1767
|
+
extra_query: Query | None = None,
|
|
1768
|
+
extra_body: Body | None = None,
|
|
1769
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1770
|
+
) -> ActionUnholdResponse:
|
|
1771
|
+
"""
|
|
1772
|
+
Unhold a list of participants in a conference call
|
|
1773
|
+
|
|
1774
|
+
Args:
|
|
1775
|
+
call_control_ids: List of unique identifiers and tokens for controlling the call. Enter each call
|
|
1776
|
+
control ID to be unheld.
|
|
1777
|
+
|
|
1778
|
+
extra_headers: Send extra headers
|
|
1779
|
+
|
|
1780
|
+
extra_query: Add additional query parameters to the request
|
|
1781
|
+
|
|
1782
|
+
extra_body: Add additional JSON properties to the request
|
|
1783
|
+
|
|
1784
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1785
|
+
"""
|
|
1786
|
+
if not id:
|
|
1787
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1788
|
+
return await self._post(
|
|
1789
|
+
f"/conferences/{id}/actions/unhold",
|
|
1790
|
+
body=await async_maybe_transform(
|
|
1791
|
+
{"call_control_ids": call_control_ids}, action_unhold_params.ActionUnholdParams
|
|
1792
|
+
),
|
|
1793
|
+
options=make_request_options(
|
|
1794
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1795
|
+
),
|
|
1796
|
+
cast_to=ActionUnholdResponse,
|
|
1797
|
+
)
|
|
1798
|
+
|
|
1799
|
+
async def unmute(
|
|
1800
|
+
self,
|
|
1801
|
+
id: str,
|
|
1802
|
+
*,
|
|
1803
|
+
call_control_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
1804
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1805
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1806
|
+
extra_headers: Headers | None = None,
|
|
1807
|
+
extra_query: Query | None = None,
|
|
1808
|
+
extra_body: Body | None = None,
|
|
1809
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1810
|
+
) -> ActionUnmuteResponse:
|
|
1811
|
+
"""
|
|
1812
|
+
Unmute a list of participants in a conference call
|
|
1813
|
+
|
|
1814
|
+
Args:
|
|
1815
|
+
call_control_ids: List of unique identifiers and tokens for controlling the call. Enter each call
|
|
1816
|
+
control ID to be unmuted. When empty all participants will be unmuted.
|
|
1817
|
+
|
|
1818
|
+
extra_headers: Send extra headers
|
|
1819
|
+
|
|
1820
|
+
extra_query: Add additional query parameters to the request
|
|
1821
|
+
|
|
1822
|
+
extra_body: Add additional JSON properties to the request
|
|
1823
|
+
|
|
1824
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1825
|
+
"""
|
|
1826
|
+
if not id:
|
|
1827
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
1828
|
+
return await self._post(
|
|
1829
|
+
f"/conferences/{id}/actions/unmute",
|
|
1830
|
+
body=await async_maybe_transform(
|
|
1831
|
+
{"call_control_ids": call_control_ids}, action_unmute_params.ActionUnmuteParams
|
|
1832
|
+
),
|
|
1833
|
+
options=make_request_options(
|
|
1834
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1835
|
+
),
|
|
1836
|
+
cast_to=ActionUnmuteResponse,
|
|
1837
|
+
)
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
class ActionsResourceWithRawResponse:
|
|
1841
|
+
def __init__(self, actions: ActionsResource) -> None:
|
|
1842
|
+
self._actions = actions
|
|
1843
|
+
|
|
1844
|
+
self.update = to_raw_response_wrapper(
|
|
1845
|
+
actions.update,
|
|
1846
|
+
)
|
|
1847
|
+
self.hold = to_raw_response_wrapper(
|
|
1848
|
+
actions.hold,
|
|
1849
|
+
)
|
|
1850
|
+
self.join = to_raw_response_wrapper(
|
|
1851
|
+
actions.join,
|
|
1852
|
+
)
|
|
1853
|
+
self.leave = to_raw_response_wrapper(
|
|
1854
|
+
actions.leave,
|
|
1855
|
+
)
|
|
1856
|
+
self.mute = to_raw_response_wrapper(
|
|
1857
|
+
actions.mute,
|
|
1858
|
+
)
|
|
1859
|
+
self.play = to_raw_response_wrapper(
|
|
1860
|
+
actions.play,
|
|
1861
|
+
)
|
|
1862
|
+
self.record_pause = to_raw_response_wrapper(
|
|
1863
|
+
actions.record_pause,
|
|
1864
|
+
)
|
|
1865
|
+
self.record_resume = to_raw_response_wrapper(
|
|
1866
|
+
actions.record_resume,
|
|
1867
|
+
)
|
|
1868
|
+
self.record_start = to_raw_response_wrapper(
|
|
1869
|
+
actions.record_start,
|
|
1870
|
+
)
|
|
1871
|
+
self.record_stop = to_raw_response_wrapper(
|
|
1872
|
+
actions.record_stop,
|
|
1873
|
+
)
|
|
1874
|
+
self.speak = to_raw_response_wrapper(
|
|
1875
|
+
actions.speak,
|
|
1876
|
+
)
|
|
1877
|
+
self.stop = to_raw_response_wrapper(
|
|
1878
|
+
actions.stop,
|
|
1879
|
+
)
|
|
1880
|
+
self.unhold = to_raw_response_wrapper(
|
|
1881
|
+
actions.unhold,
|
|
1882
|
+
)
|
|
1883
|
+
self.unmute = to_raw_response_wrapper(
|
|
1884
|
+
actions.unmute,
|
|
1885
|
+
)
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
class AsyncActionsResourceWithRawResponse:
|
|
1889
|
+
def __init__(self, actions: AsyncActionsResource) -> None:
|
|
1890
|
+
self._actions = actions
|
|
1891
|
+
|
|
1892
|
+
self.update = async_to_raw_response_wrapper(
|
|
1893
|
+
actions.update,
|
|
1894
|
+
)
|
|
1895
|
+
self.hold = async_to_raw_response_wrapper(
|
|
1896
|
+
actions.hold,
|
|
1897
|
+
)
|
|
1898
|
+
self.join = async_to_raw_response_wrapper(
|
|
1899
|
+
actions.join,
|
|
1900
|
+
)
|
|
1901
|
+
self.leave = async_to_raw_response_wrapper(
|
|
1902
|
+
actions.leave,
|
|
1903
|
+
)
|
|
1904
|
+
self.mute = async_to_raw_response_wrapper(
|
|
1905
|
+
actions.mute,
|
|
1906
|
+
)
|
|
1907
|
+
self.play = async_to_raw_response_wrapper(
|
|
1908
|
+
actions.play,
|
|
1909
|
+
)
|
|
1910
|
+
self.record_pause = async_to_raw_response_wrapper(
|
|
1911
|
+
actions.record_pause,
|
|
1912
|
+
)
|
|
1913
|
+
self.record_resume = async_to_raw_response_wrapper(
|
|
1914
|
+
actions.record_resume,
|
|
1915
|
+
)
|
|
1916
|
+
self.record_start = async_to_raw_response_wrapper(
|
|
1917
|
+
actions.record_start,
|
|
1918
|
+
)
|
|
1919
|
+
self.record_stop = async_to_raw_response_wrapper(
|
|
1920
|
+
actions.record_stop,
|
|
1921
|
+
)
|
|
1922
|
+
self.speak = async_to_raw_response_wrapper(
|
|
1923
|
+
actions.speak,
|
|
1924
|
+
)
|
|
1925
|
+
self.stop = async_to_raw_response_wrapper(
|
|
1926
|
+
actions.stop,
|
|
1927
|
+
)
|
|
1928
|
+
self.unhold = async_to_raw_response_wrapper(
|
|
1929
|
+
actions.unhold,
|
|
1930
|
+
)
|
|
1931
|
+
self.unmute = async_to_raw_response_wrapper(
|
|
1932
|
+
actions.unmute,
|
|
1933
|
+
)
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
class ActionsResourceWithStreamingResponse:
|
|
1937
|
+
def __init__(self, actions: ActionsResource) -> None:
|
|
1938
|
+
self._actions = actions
|
|
1939
|
+
|
|
1940
|
+
self.update = to_streamed_response_wrapper(
|
|
1941
|
+
actions.update,
|
|
1942
|
+
)
|
|
1943
|
+
self.hold = to_streamed_response_wrapper(
|
|
1944
|
+
actions.hold,
|
|
1945
|
+
)
|
|
1946
|
+
self.join = to_streamed_response_wrapper(
|
|
1947
|
+
actions.join,
|
|
1948
|
+
)
|
|
1949
|
+
self.leave = to_streamed_response_wrapper(
|
|
1950
|
+
actions.leave,
|
|
1951
|
+
)
|
|
1952
|
+
self.mute = to_streamed_response_wrapper(
|
|
1953
|
+
actions.mute,
|
|
1954
|
+
)
|
|
1955
|
+
self.play = to_streamed_response_wrapper(
|
|
1956
|
+
actions.play,
|
|
1957
|
+
)
|
|
1958
|
+
self.record_pause = to_streamed_response_wrapper(
|
|
1959
|
+
actions.record_pause,
|
|
1960
|
+
)
|
|
1961
|
+
self.record_resume = to_streamed_response_wrapper(
|
|
1962
|
+
actions.record_resume,
|
|
1963
|
+
)
|
|
1964
|
+
self.record_start = to_streamed_response_wrapper(
|
|
1965
|
+
actions.record_start,
|
|
1966
|
+
)
|
|
1967
|
+
self.record_stop = to_streamed_response_wrapper(
|
|
1968
|
+
actions.record_stop,
|
|
1969
|
+
)
|
|
1970
|
+
self.speak = to_streamed_response_wrapper(
|
|
1971
|
+
actions.speak,
|
|
1972
|
+
)
|
|
1973
|
+
self.stop = to_streamed_response_wrapper(
|
|
1974
|
+
actions.stop,
|
|
1975
|
+
)
|
|
1976
|
+
self.unhold = to_streamed_response_wrapper(
|
|
1977
|
+
actions.unhold,
|
|
1978
|
+
)
|
|
1979
|
+
self.unmute = to_streamed_response_wrapper(
|
|
1980
|
+
actions.unmute,
|
|
1981
|
+
)
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
class AsyncActionsResourceWithStreamingResponse:
|
|
1985
|
+
def __init__(self, actions: AsyncActionsResource) -> None:
|
|
1986
|
+
self._actions = actions
|
|
1987
|
+
|
|
1988
|
+
self.update = async_to_streamed_response_wrapper(
|
|
1989
|
+
actions.update,
|
|
1990
|
+
)
|
|
1991
|
+
self.hold = async_to_streamed_response_wrapper(
|
|
1992
|
+
actions.hold,
|
|
1993
|
+
)
|
|
1994
|
+
self.join = async_to_streamed_response_wrapper(
|
|
1995
|
+
actions.join,
|
|
1996
|
+
)
|
|
1997
|
+
self.leave = async_to_streamed_response_wrapper(
|
|
1998
|
+
actions.leave,
|
|
1999
|
+
)
|
|
2000
|
+
self.mute = async_to_streamed_response_wrapper(
|
|
2001
|
+
actions.mute,
|
|
2002
|
+
)
|
|
2003
|
+
self.play = async_to_streamed_response_wrapper(
|
|
2004
|
+
actions.play,
|
|
2005
|
+
)
|
|
2006
|
+
self.record_pause = async_to_streamed_response_wrapper(
|
|
2007
|
+
actions.record_pause,
|
|
2008
|
+
)
|
|
2009
|
+
self.record_resume = async_to_streamed_response_wrapper(
|
|
2010
|
+
actions.record_resume,
|
|
2011
|
+
)
|
|
2012
|
+
self.record_start = async_to_streamed_response_wrapper(
|
|
2013
|
+
actions.record_start,
|
|
2014
|
+
)
|
|
2015
|
+
self.record_stop = async_to_streamed_response_wrapper(
|
|
2016
|
+
actions.record_stop,
|
|
2017
|
+
)
|
|
2018
|
+
self.speak = async_to_streamed_response_wrapper(
|
|
2019
|
+
actions.speak,
|
|
2020
|
+
)
|
|
2021
|
+
self.stop = async_to_streamed_response_wrapper(
|
|
2022
|
+
actions.stop,
|
|
2023
|
+
)
|
|
2024
|
+
self.unhold = async_to_streamed_response_wrapper(
|
|
2025
|
+
actions.unhold,
|
|
2026
|
+
)
|
|
2027
|
+
self.unmute = async_to_streamed_response_wrapper(
|
|
2028
|
+
actions.unmute,
|
|
2029
|
+
)
|