telnyx 4.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- telnyx/__init__.py +94 -0
- telnyx/_base_client.py +2124 -0
- telnyx/_client.py +6465 -0
- telnyx/_compat.py +219 -0
- telnyx/_constants.py +14 -0
- telnyx/_exceptions.py +112 -0
- telnyx/_files.py +123 -0
- telnyx/_models.py +872 -0
- telnyx/_oauth2.py +118 -0
- telnyx/_qs.py +150 -0
- telnyx/_resource.py +43 -0
- telnyx/_response.py +830 -0
- telnyx/_streaming.py +333 -0
- telnyx/_types.py +270 -0
- telnyx/_utils/__init__.py +64 -0
- telnyx/_utils/_compat.py +45 -0
- telnyx/_utils/_datetime_parse.py +136 -0
- telnyx/_utils/_logs.py +25 -0
- telnyx/_utils/_proxy.py +65 -0
- telnyx/_utils/_reflection.py +42 -0
- telnyx/_utils/_resources_proxy.py +24 -0
- telnyx/_utils/_streams.py +12 -0
- telnyx/_utils/_sync.py +58 -0
- telnyx/_utils/_transform.py +457 -0
- telnyx/_utils/_typing.py +156 -0
- telnyx/_utils/_utils.py +421 -0
- telnyx/_version.py +4 -0
- telnyx/lib/.keep +4 -0
- telnyx/pagination.py +478 -0
- telnyx/py.typed +0 -0
- telnyx/resources/__init__.py +2095 -0
- telnyx/resources/access_ip_address.py +452 -0
- telnyx/resources/access_ip_ranges.py +370 -0
- telnyx/resources/actions/__init__.py +47 -0
- telnyx/resources/actions/actions.py +134 -0
- telnyx/resources/actions/purchase.py +231 -0
- telnyx/resources/actions/register.py +207 -0
- telnyx/resources/addresses/__init__.py +33 -0
- telnyx/resources/addresses/actions.py +314 -0
- telnyx/resources/addresses/addresses.py +659 -0
- telnyx/resources/advanced_orders.py +463 -0
- telnyx/resources/ai/__init__.py +145 -0
- telnyx/resources/ai/ai.py +564 -0
- telnyx/resources/ai/assistants/__init__.py +89 -0
- telnyx/resources/ai/assistants/assistants.py +1469 -0
- telnyx/resources/ai/assistants/canary_deploys.py +448 -0
- telnyx/resources/ai/assistants/scheduled_events.py +541 -0
- telnyx/resources/ai/assistants/tests/__init__.py +47 -0
- telnyx/resources/ai/assistants/tests/runs.py +380 -0
- telnyx/resources/ai/assistants/tests/test_suites/__init__.py +33 -0
- telnyx/resources/ai/assistants/tests/test_suites/runs.py +305 -0
- telnyx/resources/ai/assistants/tests/test_suites/test_suites.py +173 -0
- telnyx/resources/ai/assistants/tests/tests.py +761 -0
- telnyx/resources/ai/assistants/tools.py +199 -0
- telnyx/resources/ai/assistants/versions.py +678 -0
- telnyx/resources/ai/audio.py +248 -0
- telnyx/resources/ai/chat.py +404 -0
- telnyx/resources/ai/clusters.py +618 -0
- telnyx/resources/ai/conversations/__init__.py +61 -0
- telnyx/resources/ai/conversations/conversations.py +949 -0
- telnyx/resources/ai/conversations/insight_groups/__init__.py +33 -0
- telnyx/resources/ai/conversations/insight_groups/insight_groups.py +587 -0
- telnyx/resources/ai/conversations/insight_groups/insights.py +272 -0
- telnyx/resources/ai/conversations/insights.py +565 -0
- telnyx/resources/ai/conversations/messages.py +165 -0
- telnyx/resources/ai/embeddings/__init__.py +33 -0
- telnyx/resources/ai/embeddings/buckets.py +298 -0
- telnyx/resources/ai/embeddings/embeddings.py +709 -0
- telnyx/resources/ai/fine_tuning/__init__.py +33 -0
- telnyx/resources/ai/fine_tuning/fine_tuning.py +102 -0
- telnyx/resources/ai/fine_tuning/jobs.py +408 -0
- telnyx/resources/ai/integrations/__init__.py +33 -0
- telnyx/resources/ai/integrations/connections.py +294 -0
- telnyx/resources/ai/integrations/integrations.py +246 -0
- telnyx/resources/ai/mcp_servers.py +576 -0
- telnyx/resources/audit_events.py +212 -0
- telnyx/resources/authentication_providers.py +667 -0
- telnyx/resources/available_phone_number_blocks.py +181 -0
- telnyx/resources/available_phone_numbers.py +187 -0
- telnyx/resources/balance.py +135 -0
- telnyx/resources/billing_groups.py +512 -0
- telnyx/resources/bulk_sim_card_actions.py +291 -0
- telnyx/resources/bundle_pricing/__init__.py +47 -0
- telnyx/resources/bundle_pricing/billing_bundles.py +297 -0
- telnyx/resources/bundle_pricing/bundle_pricing.py +134 -0
- telnyx/resources/bundle_pricing/user_bundles.py +687 -0
- telnyx/resources/call_control_applications.py +873 -0
- telnyx/resources/call_events.py +214 -0
- telnyx/resources/calls/__init__.py +33 -0
- telnyx/resources/calls/actions.py +7093 -0
- telnyx/resources/calls/calls.py +888 -0
- telnyx/resources/channel_zones.py +293 -0
- telnyx/resources/charges_breakdown.py +211 -0
- telnyx/resources/charges_summary.py +202 -0
- telnyx/resources/comments.py +432 -0
- telnyx/resources/conferences/__init__.py +33 -0
- telnyx/resources/conferences/actions.py +2184 -0
- telnyx/resources/conferences/conferences.py +716 -0
- telnyx/resources/connections.py +432 -0
- telnyx/resources/country_coverage.py +214 -0
- telnyx/resources/credential_connections/__init__.py +33 -0
- telnyx/resources/credential_connections/actions.py +169 -0
- telnyx/resources/credential_connections/credential_connections.py +1068 -0
- telnyx/resources/custom_storage_credentials.py +441 -0
- telnyx/resources/customer_service_records.py +487 -0
- telnyx/resources/detail_records.py +212 -0
- telnyx/resources/dialogflow_connections.py +514 -0
- telnyx/resources/document_links.py +198 -0
- telnyx/resources/documents.py +811 -0
- telnyx/resources/dynamic_emergency_addresses.py +483 -0
- telnyx/resources/dynamic_emergency_endpoints.py +453 -0
- telnyx/resources/external_connections/__init__.py +89 -0
- telnyx/resources/external_connections/civic_addresses.py +268 -0
- telnyx/resources/external_connections/external_connections.py +929 -0
- telnyx/resources/external_connections/log_messages.py +356 -0
- telnyx/resources/external_connections/phone_numbers.py +388 -0
- telnyx/resources/external_connections/releases.py +293 -0
- telnyx/resources/external_connections/uploads.py +670 -0
- telnyx/resources/fax_applications.py +745 -0
- telnyx/resources/faxes/__init__.py +33 -0
- telnyx/resources/faxes/actions.py +244 -0
- telnyx/resources/faxes/faxes.py +659 -0
- telnyx/resources/fqdn_connections.py +994 -0
- telnyx/resources/fqdns.py +606 -0
- telnyx/resources/global_ip_allowed_ports.py +135 -0
- telnyx/resources/global_ip_assignment_health.py +183 -0
- telnyx/resources/global_ip_assignments.py +486 -0
- telnyx/resources/global_ip_assignments_usage.py +183 -0
- telnyx/resources/global_ip_health_check_types.py +135 -0
- telnyx/resources/global_ip_health_checks.py +453 -0
- telnyx/resources/global_ip_latency.py +181 -0
- telnyx/resources/global_ip_protocols.py +135 -0
- telnyx/resources/global_ip_usage.py +179 -0
- telnyx/resources/global_ips.py +453 -0
- telnyx/resources/inbound_channels.py +240 -0
- telnyx/resources/inexplicit_number_orders.py +408 -0
- telnyx/resources/integration_secrets.py +401 -0
- telnyx/resources/inventory_coverage.py +185 -0
- telnyx/resources/invoices.py +289 -0
- telnyx/resources/ip_connections.py +972 -0
- telnyx/resources/ips.py +576 -0
- telnyx/resources/ledger_billing_group_reports.py +264 -0
- telnyx/resources/legacy/__init__.py +33 -0
- telnyx/resources/legacy/legacy.py +102 -0
- telnyx/resources/legacy/reporting/__init__.py +47 -0
- telnyx/resources/legacy/reporting/batch_detail_records/__init__.py +61 -0
- telnyx/resources/legacy/reporting/batch_detail_records/batch_detail_records.py +166 -0
- telnyx/resources/legacy/reporting/batch_detail_records/messaging.py +482 -0
- telnyx/resources/legacy/reporting/batch_detail_records/speech_to_text.py +399 -0
- telnyx/resources/legacy/reporting/batch_detail_records/voice.py +539 -0
- telnyx/resources/legacy/reporting/reporting.py +134 -0
- telnyx/resources/legacy/reporting/usage_reports/__init__.py +61 -0
- telnyx/resources/legacy/reporting/usage_reports/messaging.py +474 -0
- telnyx/resources/legacy/reporting/usage_reports/number_lookup.py +415 -0
- telnyx/resources/legacy/reporting/usage_reports/usage_reports.py +288 -0
- telnyx/resources/legacy/reporting/usage_reports/voice.py +496 -0
- telnyx/resources/list.py +214 -0
- telnyx/resources/managed_accounts/__init__.py +33 -0
- telnyx/resources/managed_accounts/actions.py +266 -0
- telnyx/resources/managed_accounts/managed_accounts.py +774 -0
- telnyx/resources/media.py +678 -0
- telnyx/resources/messages/__init__.py +33 -0
- telnyx/resources/messages/messages.py +1545 -0
- telnyx/resources/messages/rcs.py +337 -0
- telnyx/resources/messaging/__init__.py +33 -0
- telnyx/resources/messaging/messaging.py +102 -0
- telnyx/resources/messaging/rcs/__init__.py +33 -0
- telnyx/resources/messaging/rcs/agents.py +379 -0
- telnyx/resources/messaging/rcs/rcs.py +387 -0
- telnyx/resources/messaging_10dlc/__init__.py +103 -0
- telnyx/resources/messaging_10dlc/brand/__init__.py +33 -0
- telnyx/resources/messaging_10dlc/brand/brand.py +1691 -0
- telnyx/resources/messaging_10dlc/brand/external_vetting.py +391 -0
- telnyx/resources/messaging_10dlc/campaign/__init__.py +47 -0
- telnyx/resources/messaging_10dlc/campaign/campaign.py +1069 -0
- telnyx/resources/messaging_10dlc/campaign/osr.py +163 -0
- telnyx/resources/messaging_10dlc/campaign/usecase.py +169 -0
- telnyx/resources/messaging_10dlc/campaign_builder/__init__.py +33 -0
- telnyx/resources/messaging_10dlc/campaign_builder/brand.py +171 -0
- telnyx/resources/messaging_10dlc/campaign_builder/campaign_builder.py +513 -0
- telnyx/resources/messaging_10dlc/messaging_10dlc.py +410 -0
- telnyx/resources/messaging_10dlc/partner_campaigns.py +638 -0
- telnyx/resources/messaging_10dlc/phone_number_assignment_by_profile.py +514 -0
- telnyx/resources/messaging_10dlc/phone_number_campaigns.py +582 -0
- telnyx/resources/messaging_hosted_number_orders/__init__.py +33 -0
- telnyx/resources/messaging_hosted_number_orders/actions.py +207 -0
- telnyx/resources/messaging_hosted_number_orders/messaging_hosted_number_orders.py +773 -0
- telnyx/resources/messaging_hosted_numbers.py +163 -0
- telnyx/resources/messaging_numbers_bulk_updates.py +276 -0
- telnyx/resources/messaging_optouts.py +218 -0
- telnyx/resources/messaging_profiles/__init__.py +33 -0
- telnyx/resources/messaging_profiles/autoresp_configs.py +598 -0
- telnyx/resources/messaging_profiles/messaging_profiles.py +1121 -0
- telnyx/resources/messaging_tollfree/__init__.py +33 -0
- telnyx/resources/messaging_tollfree/messaging_tollfree.py +102 -0
- telnyx/resources/messaging_tollfree/verification/__init__.py +33 -0
- telnyx/resources/messaging_tollfree/verification/requests.py +1154 -0
- telnyx/resources/messaging_tollfree/verification/verification.py +102 -0
- telnyx/resources/messaging_url_domains.py +186 -0
- telnyx/resources/mobile_network_operators.py +210 -0
- telnyx/resources/mobile_phone_numbers/__init__.py +33 -0
- telnyx/resources/mobile_phone_numbers/messaging.py +265 -0
- telnyx/resources/mobile_phone_numbers/mobile_phone_numbers.py +441 -0
- telnyx/resources/mobile_push_credentials.py +437 -0
- telnyx/resources/mobile_voice_connections.py +621 -0
- telnyx/resources/network_coverage.py +212 -0
- telnyx/resources/networks/__init__.py +33 -0
- telnyx/resources/networks/default_gateway.py +335 -0
- telnyx/resources/networks/networks.py +667 -0
- telnyx/resources/notification_channels.py +590 -0
- telnyx/resources/notification_event_conditions.py +204 -0
- telnyx/resources/notification_events.py +186 -0
- telnyx/resources/notification_profiles.py +524 -0
- telnyx/resources/notification_settings.py +473 -0
- telnyx/resources/number_block_orders.py +402 -0
- telnyx/resources/number_lookup.py +183 -0
- telnyx/resources/number_order_phone_numbers.py +461 -0
- telnyx/resources/number_orders.py +500 -0
- telnyx/resources/number_reservations/__init__.py +33 -0
- telnyx/resources/number_reservations/actions.py +167 -0
- telnyx/resources/number_reservations/number_reservations.py +411 -0
- telnyx/resources/numbers_features.py +167 -0
- telnyx/resources/oauth.py +855 -0
- telnyx/resources/oauth_clients.py +714 -0
- telnyx/resources/oauth_grants.py +352 -0
- telnyx/resources/operator_connect/__init__.py +33 -0
- telnyx/resources/operator_connect/actions.py +147 -0
- telnyx/resources/operator_connect/operator_connect.py +102 -0
- telnyx/resources/organizations/__init__.py +33 -0
- telnyx/resources/organizations/organizations.py +102 -0
- telnyx/resources/organizations/users/__init__.py +33 -0
- telnyx/resources/organizations/users/actions.py +163 -0
- telnyx/resources/organizations/users/users.py +444 -0
- telnyx/resources/ota_updates.py +277 -0
- telnyx/resources/outbound_voice_profiles.py +842 -0
- telnyx/resources/payment/__init__.py +33 -0
- telnyx/resources/payment/auto_recharge_prefs.py +260 -0
- telnyx/resources/payment/payment.py +102 -0
- telnyx/resources/phone_number_blocks/__init__.py +33 -0
- telnyx/resources/phone_number_blocks/jobs.py +378 -0
- telnyx/resources/phone_number_blocks/phone_number_blocks.py +102 -0
- telnyx/resources/phone_numbers/__init__.py +103 -0
- telnyx/resources/phone_numbers/actions.py +383 -0
- telnyx/resources/phone_numbers/csv_downloads.py +384 -0
- telnyx/resources/phone_numbers/jobs.py +699 -0
- telnyx/resources/phone_numbers/messaging.py +390 -0
- telnyx/resources/phone_numbers/phone_numbers.py +872 -0
- telnyx/resources/phone_numbers/voice.py +469 -0
- telnyx/resources/phone_numbers/voicemail.py +375 -0
- telnyx/resources/phone_numbers_regulatory_requirements.py +185 -0
- telnyx/resources/portability_checks.py +171 -0
- telnyx/resources/porting/__init__.py +61 -0
- telnyx/resources/porting/events.py +357 -0
- telnyx/resources/porting/loa_configurations.py +824 -0
- telnyx/resources/porting/porting.py +231 -0
- telnyx/resources/porting/reports.py +379 -0
- telnyx/resources/porting_orders/__init__.py +159 -0
- telnyx/resources/porting_orders/action_requirements.py +309 -0
- telnyx/resources/porting_orders/actions.py +438 -0
- telnyx/resources/porting_orders/activation_jobs.py +377 -0
- telnyx/resources/porting_orders/additional_documents.py +393 -0
- telnyx/resources/porting_orders/associated_phone_numbers.py +412 -0
- telnyx/resources/porting_orders/comments.py +275 -0
- telnyx/resources/porting_orders/phone_number_blocks.py +406 -0
- telnyx/resources/porting_orders/phone_number_configurations.py +297 -0
- telnyx/resources/porting_orders/phone_number_extensions.py +414 -0
- telnyx/resources/porting_orders/porting_orders.py +1459 -0
- telnyx/resources/porting_orders/verification_codes.py +400 -0
- telnyx/resources/porting_phone_numbers.py +198 -0
- telnyx/resources/portouts/__init__.py +75 -0
- telnyx/resources/portouts/comments.py +252 -0
- telnyx/resources/portouts/events.py +359 -0
- telnyx/resources/portouts/portouts.py +625 -0
- telnyx/resources/portouts/reports.py +379 -0
- telnyx/resources/portouts/supporting_documents.py +258 -0
- telnyx/resources/private_wireless_gateways.py +505 -0
- telnyx/resources/public_internet_gateways.py +461 -0
- telnyx/resources/queues/__init__.py +33 -0
- telnyx/resources/queues/calls.py +463 -0
- telnyx/resources/queues/queues.py +195 -0
- telnyx/resources/recording_transcriptions.py +301 -0
- telnyx/resources/recordings/__init__.py +33 -0
- telnyx/resources/recordings/actions.py +168 -0
- telnyx/resources/recordings/recordings.py +392 -0
- telnyx/resources/regions.py +135 -0
- telnyx/resources/regulatory_requirements.py +183 -0
- telnyx/resources/reports/__init__.py +47 -0
- telnyx/resources/reports/cdr_usage_reports.py +205 -0
- telnyx/resources/reports/mdr_usage_reports.py +570 -0
- telnyx/resources/reports/reports.py +505 -0
- telnyx/resources/requirement_groups.py +625 -0
- telnyx/resources/requirement_types.py +277 -0
- telnyx/resources/requirements.py +316 -0
- telnyx/resources/room_compositions.py +517 -0
- telnyx/resources/room_participants.py +289 -0
- telnyx/resources/room_recordings.py +482 -0
- telnyx/resources/rooms/__init__.py +47 -0
- telnyx/resources/rooms/actions.py +310 -0
- telnyx/resources/rooms/rooms.py +735 -0
- telnyx/resources/rooms/sessions/__init__.py +33 -0
- telnyx/resources/rooms/sessions/actions.py +489 -0
- telnyx/resources/rooms/sessions/sessions.py +605 -0
- telnyx/resources/seti.py +179 -0
- telnyx/resources/short_codes.py +384 -0
- telnyx/resources/sim_card_data_usage_notifications.py +576 -0
- telnyx/resources/sim_card_groups/__init__.py +33 -0
- telnyx/resources/sim_card_groups/actions.py +693 -0
- telnyx/resources/sim_card_groups/sim_card_groups.py +635 -0
- telnyx/resources/sim_card_order_preview.py +187 -0
- telnyx/resources/sim_card_orders.py +382 -0
- telnyx/resources/sim_cards/__init__.py +33 -0
- telnyx/resources/sim_cards/actions.py +933 -0
- telnyx/resources/sim_cards/sim_cards.py +978 -0
- telnyx/resources/siprec_connectors.py +481 -0
- telnyx/resources/speech_to_text.py +248 -0
- telnyx/resources/storage/__init__.py +61 -0
- telnyx/resources/storage/buckets/__init__.py +47 -0
- telnyx/resources/storage/buckets/buckets.py +255 -0
- telnyx/resources/storage/buckets/ssl_certificate.py +365 -0
- telnyx/resources/storage/buckets/usage.py +266 -0
- telnyx/resources/storage/migration_sources.py +412 -0
- telnyx/resources/storage/migrations/__init__.py +33 -0
- telnyx/resources/storage/migrations/actions.py +163 -0
- telnyx/resources/storage/migrations/migrations.py +371 -0
- telnyx/resources/storage/storage.py +231 -0
- telnyx/resources/sub_number_orders.py +561 -0
- telnyx/resources/sub_number_orders_report.py +388 -0
- telnyx/resources/telephony_credentials.py +666 -0
- telnyx/resources/texml/__init__.py +47 -0
- telnyx/resources/texml/accounts/__init__.py +89 -0
- telnyx/resources/texml/accounts/accounts.py +485 -0
- telnyx/resources/texml/accounts/calls/__init__.py +75 -0
- telnyx/resources/texml/accounts/calls/calls.py +1455 -0
- telnyx/resources/texml/accounts/calls/recordings.py +187 -0
- telnyx/resources/texml/accounts/calls/recordings_json.py +334 -0
- telnyx/resources/texml/accounts/calls/siprec.py +191 -0
- telnyx/resources/texml/accounts/calls/streams.py +189 -0
- telnyx/resources/texml/accounts/conferences/__init__.py +33 -0
- telnyx/resources/texml/accounts/conferences/conferences.py +659 -0
- telnyx/resources/texml/accounts/conferences/participants.py +1117 -0
- telnyx/resources/texml/accounts/queues.py +599 -0
- telnyx/resources/texml/accounts/recordings/__init__.py +33 -0
- telnyx/resources/texml/accounts/recordings/json.py +255 -0
- telnyx/resources/texml/accounts/recordings/recordings.py +102 -0
- telnyx/resources/texml/accounts/transcriptions/__init__.py +33 -0
- telnyx/resources/texml/accounts/transcriptions/json.py +265 -0
- telnyx/resources/texml/accounts/transcriptions/transcriptions.py +102 -0
- telnyx/resources/texml/calls.py +632 -0
- telnyx/resources/texml/texml.py +259 -0
- telnyx/resources/texml_applications.py +824 -0
- telnyx/resources/text_to_speech.py +327 -0
- telnyx/resources/usage_reports.py +389 -0
- telnyx/resources/user_addresses.py +540 -0
- telnyx/resources/user_tags.py +177 -0
- telnyx/resources/verifications/__init__.py +47 -0
- telnyx/resources/verifications/actions.py +195 -0
- telnyx/resources/verifications/by_phone_number/__init__.py +33 -0
- telnyx/resources/verifications/by_phone_number/actions.py +195 -0
- telnyx/resources/verifications/by_phone_number/by_phone_number.py +199 -0
- telnyx/resources/verifications/verifications.py +580 -0
- telnyx/resources/verified_numbers/__init__.py +33 -0
- telnyx/resources/verified_numbers/actions.py +179 -0
- telnyx/resources/verified_numbers/verified_numbers.py +500 -0
- telnyx/resources/verify_profiles.py +809 -0
- telnyx/resources/virtual_cross_connects.py +774 -0
- telnyx/resources/virtual_cross_connects_coverage.py +218 -0
- telnyx/resources/webhook_deliveries.py +283 -0
- telnyx/resources/webhooks.py +170 -0
- telnyx/resources/well_known.py +198 -0
- telnyx/resources/wireguard_interfaces.py +471 -0
- telnyx/resources/wireguard_peers.py +632 -0
- telnyx/resources/wireless/__init__.py +33 -0
- telnyx/resources/wireless/detail_records_reports.py +450 -0
- telnyx/resources/wireless/wireless.py +211 -0
- telnyx/resources/wireless_blocklist_values.py +181 -0
- telnyx/resources/wireless_blocklists.py +592 -0
- telnyx/types/__init__.py +1297 -0
- telnyx/types/access_ip_address_create_params.py +13 -0
- telnyx/types/access_ip_address_list_params.py +62 -0
- telnyx/types/access_ip_address_response.py +28 -0
- telnyx/types/access_ip_range.py +26 -0
- telnyx/types/access_ip_range_create_params.py +13 -0
- telnyx/types/access_ip_range_list_params.py +83 -0
- telnyx/types/actions/__init__.py +8 -0
- telnyx/types/actions/purchase_create_params.py +37 -0
- telnyx/types/actions/purchase_create_response.py +35 -0
- telnyx/types/actions/register_create_params.py +26 -0
- telnyx/types/actions/register_create_response.py +35 -0
- telnyx/types/address.py +102 -0
- telnyx/types/address_create_params.py +90 -0
- telnyx/types/address_create_response.py +12 -0
- telnyx/types/address_delete_response.py +12 -0
- telnyx/types/address_list_params.py +102 -0
- telnyx/types/address_retrieve_response.py +12 -0
- telnyx/types/addresses/__init__.py +8 -0
- telnyx/types/addresses/action_accept_suggestions_params.py +12 -0
- telnyx/types/addresses/action_accept_suggestions_response.py +22 -0
- telnyx/types/addresses/action_validate_params.py +36 -0
- telnyx/types/addresses/action_validate_response.py +71 -0
- telnyx/types/advanced_order_create_params.py +27 -0
- telnyx/types/advanced_order_create_response.py +35 -0
- telnyx/types/advanced_order_list_response.py +39 -0
- telnyx/types/advanced_order_retrieve_response.py +35 -0
- telnyx/types/advanced_order_update_requirement_group_params.py +27 -0
- telnyx/types/advanced_order_update_requirement_group_response.py +35 -0
- telnyx/types/ai/__init__.py +100 -0
- telnyx/types/ai/assistant_chat_params.py +18 -0
- telnyx/types/ai/assistant_chat_response.py +10 -0
- telnyx/types/ai/assistant_create_params.py +133 -0
- telnyx/types/ai/assistant_delete_response.py +18 -0
- telnyx/types/ai/assistant_get_texml_response.py +7 -0
- telnyx/types/ai/assistant_imports_params.py +27 -0
- telnyx/types/ai/assistant_param.py +112 -0
- telnyx/types/ai/assistant_retrieve_params.py +19 -0
- telnyx/types/ai/assistant_send_sms_params.py +22 -0
- telnyx/types/ai/assistant_send_sms_response.py +11 -0
- telnyx/types/ai/assistant_tool.py +139 -0
- telnyx/types/ai/assistant_tool_param.py +138 -0
- telnyx/types/ai/assistant_update_params.py +139 -0
- telnyx/types/ai/assistants/__init__.py +26 -0
- telnyx/types/ai/assistants/assistant_test.py +59 -0
- telnyx/types/ai/assistants/canary_deploy_create_params.py +15 -0
- telnyx/types/ai/assistants/canary_deploy_response.py +21 -0
- telnyx/types/ai/assistants/canary_deploy_update_params.py +15 -0
- telnyx/types/ai/assistants/conversation_channel_type.py +7 -0
- telnyx/types/ai/assistants/event_status.py +7 -0
- telnyx/types/ai/assistants/scheduled_event_create_params.py +35 -0
- telnyx/types/ai/assistants/scheduled_event_list_params.py +24 -0
- telnyx/types/ai/assistants/scheduled_event_list_response.py +15 -0
- telnyx/types/ai/assistants/scheduled_event_response.py +15 -0
- telnyx/types/ai/assistants/scheduled_phone_call_event_response.py +38 -0
- telnyx/types/ai/assistants/scheduled_sms_event_response.py +38 -0
- telnyx/types/ai/assistants/telnyx_conversation_channel.py +7 -0
- telnyx/types/ai/assistants/test_create_params.py +72 -0
- telnyx/types/ai/assistants/test_list_params.py +24 -0
- telnyx/types/ai/assistants/test_update_params.py +47 -0
- telnyx/types/ai/assistants/tests/__init__.py +9 -0
- telnyx/types/ai/assistants/tests/run_list_params.py +18 -0
- telnyx/types/ai/assistants/tests/run_trigger_params.py +16 -0
- telnyx/types/ai/assistants/tests/test_run_response.py +81 -0
- telnyx/types/ai/assistants/tests/test_status.py +7 -0
- telnyx/types/ai/assistants/tests/test_suite_list_response.py +18 -0
- telnyx/types/ai/assistants/tests/test_suites/__init__.py +9 -0
- telnyx/types/ai/assistants/tests/test_suites/meta.py +15 -0
- telnyx/types/ai/assistants/tests/test_suites/paginated_test_run_list.py +23 -0
- telnyx/types/ai/assistants/tests/test_suites/run_list_params.py +21 -0
- telnyx/types/ai/assistants/tests/test_suites/run_trigger_params.py +16 -0
- telnyx/types/ai/assistants/tests/test_suites/run_trigger_response.py +10 -0
- telnyx/types/ai/assistants/tool_test_params.py +18 -0
- telnyx/types/ai/assistants/tool_test_response.py +28 -0
- telnyx/types/ai/assistants/version_config.py +15 -0
- telnyx/types/ai/assistants/version_config_param.py +17 -0
- telnyx/types/ai/assistants/version_retrieve_params.py +13 -0
- telnyx/types/ai/assistants/version_update_params.py +135 -0
- telnyx/types/ai/assistants_list.py +12 -0
- telnyx/types/ai/audio_transcribe_params.py +46 -0
- telnyx/types/ai/audio_transcribe_response.py +38 -0
- telnyx/types/ai/background_task_status.py +7 -0
- telnyx/types/ai/chat_create_completion_params.py +184 -0
- telnyx/types/ai/chat_create_completion_response.py +8 -0
- telnyx/types/ai/cluster_compute_params.py +38 -0
- telnyx/types/ai/cluster_compute_response.py +13 -0
- telnyx/types/ai/cluster_fetch_graph_params.py +11 -0
- telnyx/types/ai/cluster_list_params.py +15 -0
- telnyx/types/ai/cluster_list_response.py +24 -0
- telnyx/types/ai/cluster_retrieve_params.py +18 -0
- telnyx/types/ai/cluster_retrieve_response.py +25 -0
- telnyx/types/ai/conversation.py +27 -0
- telnyx/types/ai/conversation_add_message_params.py +30 -0
- telnyx/types/ai/conversation_create_params.py +15 -0
- telnyx/types/ai/conversation_list_params.py +62 -0
- telnyx/types/ai/conversation_list_response.py +12 -0
- telnyx/types/ai/conversation_retrieve_conversations_insights_response.py +41 -0
- telnyx/types/ai/conversation_retrieve_response.py +12 -0
- telnyx/types/ai/conversation_update_params.py +13 -0
- telnyx/types/ai/conversation_update_response.py +12 -0
- telnyx/types/ai/conversations/__init__.py +17 -0
- telnyx/types/ai/conversations/insight_create_params.py +19 -0
- telnyx/types/ai/conversations/insight_group_insight_groups_params.py +15 -0
- telnyx/types/ai/conversations/insight_group_retrieve_insight_groups_params.py +15 -0
- telnyx/types/ai/conversations/insight_group_update_params.py +15 -0
- telnyx/types/ai/conversations/insight_groups/__init__.py +3 -0
- telnyx/types/ai/conversations/insight_list_params.py +15 -0
- telnyx/types/ai/conversations/insight_template.py +26 -0
- telnyx/types/ai/conversations/insight_template_detail.py +10 -0
- telnyx/types/ai/conversations/insight_template_group.py +23 -0
- telnyx/types/ai/conversations/insight_template_group_detail.py +10 -0
- telnyx/types/ai/conversations/insight_update_params.py +18 -0
- telnyx/types/ai/conversations/message_list_response.py +56 -0
- telnyx/types/ai/embedding_create_params.py +21 -0
- telnyx/types/ai/embedding_list_params.py +14 -0
- telnyx/types/ai/embedding_list_response.py +30 -0
- telnyx/types/ai/embedding_response.py +25 -0
- telnyx/types/ai/embedding_retrieve_response.py +25 -0
- telnyx/types/ai/embedding_similarity_search_params.py +15 -0
- telnyx/types/ai/embedding_similarity_search_response.py +49 -0
- telnyx/types/ai/embedding_url_params.py +15 -0
- telnyx/types/ai/embeddings/__init__.py +6 -0
- telnyx/types/ai/embeddings/bucket_list_response.py +15 -0
- telnyx/types/ai/embeddings/bucket_retrieve_response.py +26 -0
- telnyx/types/ai/enabled_features.py +7 -0
- telnyx/types/ai/fine_tuning/__init__.py +7 -0
- telnyx/types/ai/fine_tuning/fine_tuning_job.py +57 -0
- telnyx/types/ai/fine_tuning/job_create_params.py +33 -0
- telnyx/types/ai/fine_tuning/job_list_response.py +12 -0
- telnyx/types/ai/hangup_tool.py +14 -0
- telnyx/types/ai/hangup_tool_param.py +15 -0
- telnyx/types/ai/hangup_tool_params.py +12 -0
- telnyx/types/ai/hangup_tool_params_param.py +12 -0
- telnyx/types/ai/import_metadata.py +16 -0
- telnyx/types/ai/inference_embedding.py +140 -0
- telnyx/types/ai/inference_embedding_bucket_ids.py +19 -0
- telnyx/types/ai/inference_embedding_bucket_ids_param.py +21 -0
- telnyx/types/ai/inference_embedding_transfer_tool_params.py +49 -0
- telnyx/types/ai/inference_embedding_transfer_tool_params_param.py +56 -0
- telnyx/types/ai/inference_embedding_webhook_tool_params.py +116 -0
- telnyx/types/ai/inference_embedding_webhook_tool_params_param.py +118 -0
- telnyx/types/ai/insight_settings.py +16 -0
- telnyx/types/ai/insight_settings_param.py +16 -0
- telnyx/types/ai/integration_list_response.py +28 -0
- telnyx/types/ai/integration_retrieve_response.py +24 -0
- telnyx/types/ai/integrations/__init__.py +6 -0
- telnyx/types/ai/integrations/connection_list_response.py +19 -0
- telnyx/types/ai/integrations/connection_retrieve_response.py +19 -0
- telnyx/types/ai/mcp_server_create_params.py +22 -0
- telnyx/types/ai/mcp_server_create_response.py +24 -0
- telnyx/types/ai/mcp_server_list_params.py +19 -0
- telnyx/types/ai/mcp_server_list_response.py +24 -0
- telnyx/types/ai/mcp_server_retrieve_response.py +24 -0
- telnyx/types/ai/mcp_server_update_params.py +28 -0
- telnyx/types/ai/mcp_server_update_response.py +24 -0
- telnyx/types/ai/messaging_settings.py +21 -0
- telnyx/types/ai/messaging_settings_param.py +21 -0
- telnyx/types/ai/privacy_settings.py +19 -0
- telnyx/types/ai/privacy_settings_param.py +19 -0
- telnyx/types/ai/recursive_cluster.py +34 -0
- telnyx/types/ai/retrieval_tool.py +14 -0
- telnyx/types/ai/retrieval_tool_param.py +15 -0
- telnyx/types/ai/telephony_settings.py +56 -0
- telnyx/types/ai/telephony_settings_param.py +55 -0
- telnyx/types/ai/transcription_settings.py +45 -0
- telnyx/types/ai/transcription_settings_config.py +35 -0
- telnyx/types/ai/transcription_settings_config_param.py +35 -0
- telnyx/types/ai/transcription_settings_param.py +43 -0
- telnyx/types/ai/transfer_tool.py +14 -0
- telnyx/types/ai/transfer_tool_param.py +15 -0
- telnyx/types/ai/voice_settings.py +119 -0
- telnyx/types/ai/voice_settings_param.py +115 -0
- telnyx/types/ai/webhook_tool.py +14 -0
- telnyx/types/ai/webhook_tool_param.py +15 -0
- telnyx/types/ai_retrieve_models_response.py +23 -0
- telnyx/types/ai_summarize_params.py +18 -0
- telnyx/types/ai_summarize_response.py +13 -0
- telnyx/types/anchorsite_override.py +18 -0
- telnyx/types/audit_event_list_params.py +39 -0
- telnyx/types/audit_event_list_response.py +70 -0
- telnyx/types/authentication_provider.py +73 -0
- telnyx/types/authentication_provider_create_params.py +32 -0
- telnyx/types/authentication_provider_create_response.py +12 -0
- telnyx/types/authentication_provider_delete_response.py +12 -0
- telnyx/types/authentication_provider_list_params.py +43 -0
- telnyx/types/authentication_provider_retrieve_response.py +12 -0
- telnyx/types/authentication_provider_update_params.py +32 -0
- telnyx/types/authentication_provider_update_response.py +12 -0
- telnyx/types/available_phone_number_block_list_params.py +35 -0
- telnyx/types/available_phone_number_block_list_response.py +54 -0
- telnyx/types/available_phone_number_list_params.py +99 -0
- telnyx/types/available_phone_number_list_response.py +65 -0
- telnyx/types/available_service.py +7 -0
- telnyx/types/azure_configuration_data.py +22 -0
- telnyx/types/azure_configuration_data_param.py +21 -0
- telnyx/types/balance_retrieve_response.py +32 -0
- telnyx/types/billing_group.py +32 -0
- telnyx/types/billing_group_create_params.py +12 -0
- telnyx/types/billing_group_create_response.py +12 -0
- telnyx/types/billing_group_delete_response.py +12 -0
- telnyx/types/billing_group_list_params.py +15 -0
- telnyx/types/billing_group_retrieve_response.py +12 -0
- telnyx/types/billing_group_update_params.py +12 -0
- telnyx/types/billing_group_update_response.py +12 -0
- telnyx/types/bulk_sim_card_action_list_params.py +20 -0
- telnyx/types/bulk_sim_card_action_list_response.py +40 -0
- telnyx/types/bulk_sim_card_action_retrieve_response.py +44 -0
- telnyx/types/bundle_pricing/__init__.py +18 -0
- telnyx/types/bundle_pricing/billing_bundle_list_params.py +39 -0
- telnyx/types/bundle_pricing/billing_bundle_retrieve_response.py +68 -0
- telnyx/types/bundle_pricing/billing_bundle_summary.py +36 -0
- telnyx/types/bundle_pricing/pagination_response.py +19 -0
- telnyx/types/bundle_pricing/user_bundle.py +31 -0
- telnyx/types/bundle_pricing/user_bundle_create_params.py +29 -0
- telnyx/types/bundle_pricing/user_bundle_create_response.py +12 -0
- telnyx/types/bundle_pricing/user_bundle_deactivate_response.py +10 -0
- telnyx/types/bundle_pricing/user_bundle_list_params.py +39 -0
- telnyx/types/bundle_pricing/user_bundle_list_resources_response.py +12 -0
- telnyx/types/bundle_pricing/user_bundle_list_unused_params.py +34 -0
- telnyx/types/bundle_pricing/user_bundle_list_unused_response.py +19 -0
- telnyx/types/bundle_pricing/user_bundle_resource.py +25 -0
- telnyx/types/bundle_pricing/user_bundle_retrieve_response.py +10 -0
- telnyx/types/call_ai_gather_ended_webhook_event.py +78 -0
- telnyx/types/call_ai_gather_ended_webhook_event1.py +78 -0
- telnyx/types/call_ai_gather_message_history_updated_webhook_event.py +69 -0
- telnyx/types/call_ai_gather_message_history_updated_webhook_event1.py +69 -0
- telnyx/types/call_ai_gather_partial_results_webhook_event.py +75 -0
- telnyx/types/call_ai_gather_partial_results_webhook_event1.py +75 -0
- telnyx/types/call_answered_webhook_event.py +75 -0
- telnyx/types/call_answered_webhook_event1.py +75 -0
- telnyx/types/call_bridged_webhook_event.py +58 -0
- telnyx/types/call_bridged_webhook_event1.py +58 -0
- telnyx/types/call_control_application.py +99 -0
- telnyx/types/call_control_application_create_params.py +86 -0
- telnyx/types/call_control_application_create_response.py +12 -0
- telnyx/types/call_control_application_delete_response.py +12 -0
- telnyx/types/call_control_application_inbound.py +39 -0
- telnyx/types/call_control_application_inbound_param.py +38 -0
- telnyx/types/call_control_application_list_params.py +131 -0
- telnyx/types/call_control_application_outbound.py +18 -0
- telnyx/types/call_control_application_outbound_param.py +18 -0
- telnyx/types/call_control_application_retrieve_response.py +12 -0
- telnyx/types/call_control_application_update_params.py +90 -0
- telnyx/types/call_control_application_update_response.py +12 -0
- telnyx/types/call_conversation_ended_webhook_event.py +84 -0
- telnyx/types/call_conversation_ended_webhook_event1.py +84 -0
- telnyx/types/call_conversation_insights_generated_webhook_event.py +67 -0
- telnyx/types/call_conversation_insights_generated_webhook_event1.py +67 -0
- telnyx/types/call_dial_params.py +453 -0
- telnyx/types/call_dial_response.py +56 -0
- telnyx/types/call_dtmf_received_webhook_event.py +61 -0
- telnyx/types/call_dtmf_received_webhook_event1.py +61 -0
- telnyx/types/call_enqueued_webhook_event.py +59 -0
- telnyx/types/call_enqueued_webhook_event1.py +59 -0
- telnyx/types/call_event_list_params.py +113 -0
- telnyx/types/call_event_list_response.py +36 -0
- telnyx/types/call_fork_started_webhook_event.py +53 -0
- telnyx/types/call_fork_started_webhook_event1.py +53 -0
- telnyx/types/call_fork_stopped_webhook_event.py +53 -0
- telnyx/types/call_fork_stopped_webhook_event1.py +53 -0
- telnyx/types/call_gather_ended_webhook_event.py +64 -0
- telnyx/types/call_gather_ended_webhook_event1.py +64 -0
- telnyx/types/call_hangup_webhook_event.py +160 -0
- telnyx/types/call_hangup_webhook_event1.py +160 -0
- telnyx/types/call_initiated_webhook_event.py +96 -0
- telnyx/types/call_initiated_webhook_event1.py +96 -0
- telnyx/types/call_left_queue_webhook_event.py +62 -0
- telnyx/types/call_left_queue_webhook_event1.py +62 -0
- telnyx/types/call_machine_detection_ended_webhook_event.py +61 -0
- telnyx/types/call_machine_detection_ended_webhook_event1.py +61 -0
- telnyx/types/call_machine_greeting_ended_webhook_event.py +61 -0
- telnyx/types/call_machine_greeting_ended_webhook_event1.py +61 -0
- telnyx/types/call_machine_premium_detection_ended_webhook_event.py +63 -0
- telnyx/types/call_machine_premium_detection_ended_webhook_event1.py +63 -0
- telnyx/types/call_machine_premium_greeting_ended_webhook_event.py +61 -0
- telnyx/types/call_machine_premium_greeting_ended_webhook_event1.py +61 -0
- telnyx/types/call_playback_ended_webhook_event.py +70 -0
- telnyx/types/call_playback_ended_webhook_event1.py +70 -0
- telnyx/types/call_playback_started_webhook_event.py +62 -0
- telnyx/types/call_playback_started_webhook_event1.py +62 -0
- telnyx/types/call_recording_error_webhook_event.py +60 -0
- telnyx/types/call_recording_error_webhook_event1.py +60 -0
- telnyx/types/call_recording_saved_webhook_event.py +104 -0
- telnyx/types/call_recording_saved_webhook_event1.py +104 -0
- telnyx/types/call_recording_transcription_saved_webhook_event.py +71 -0
- telnyx/types/call_recording_transcription_saved_webhook_event1.py +71 -0
- telnyx/types/call_refer_completed_webhook_event.py +61 -0
- telnyx/types/call_refer_completed_webhook_event1.py +61 -0
- telnyx/types/call_refer_failed_webhook_event.py +61 -0
- telnyx/types/call_refer_failed_webhook_event1.py +61 -0
- telnyx/types/call_refer_started_webhook_event.py +61 -0
- telnyx/types/call_refer_started_webhook_event1.py +61 -0
- telnyx/types/call_retrieve_status_response.py +50 -0
- telnyx/types/call_siprec_failed_webhook_event.py +53 -0
- telnyx/types/call_siprec_failed_webhook_event1.py +53 -0
- telnyx/types/call_siprec_started_webhook_event.py +50 -0
- telnyx/types/call_siprec_started_webhook_event1.py +50 -0
- telnyx/types/call_siprec_stopped_webhook_event.py +53 -0
- telnyx/types/call_siprec_stopped_webhook_event1.py +53 -0
- telnyx/types/call_speak_ended_webhook_event.py +53 -0
- telnyx/types/call_speak_ended_webhook_event1.py +53 -0
- telnyx/types/call_speak_started_webhook_event.py +50 -0
- telnyx/types/call_speak_started_webhook_event1.py +50 -0
- telnyx/types/call_streaming_failed.py +68 -0
- telnyx/types/call_streaming_failed_webhook_event.py +12 -0
- telnyx/types/call_streaming_failed_webhook_event1.py +12 -0
- telnyx/types/call_streaming_started.py +49 -0
- telnyx/types/call_streaming_started_webhook_event.py +12 -0
- telnyx/types/call_streaming_started_webhook_event1.py +12 -0
- telnyx/types/call_streaming_stopped.py +49 -0
- telnyx/types/call_streaming_stopped_webhook_event.py +12 -0
- telnyx/types/call_streaming_stopped_webhook_event1.py +12 -0
- telnyx/types/calls/__init__.py +105 -0
- telnyx/types/calls/action_answer_params.py +148 -0
- telnyx/types/calls/action_answer_response.py +21 -0
- telnyx/types/calls/action_bridge_params.py +170 -0
- telnyx/types/calls/action_bridge_response.py +12 -0
- telnyx/types/calls/action_enqueue_params.py +44 -0
- telnyx/types/calls/action_enqueue_response.py +12 -0
- telnyx/types/calls/action_gather_params.py +55 -0
- telnyx/types/calls/action_gather_response.py +12 -0
- telnyx/types/calls/action_gather_using_ai_params.py +135 -0
- telnyx/types/calls/action_gather_using_ai_response.py +18 -0
- telnyx/types/calls/action_gather_using_audio_params.py +87 -0
- telnyx/types/calls/action_gather_using_audio_response.py +12 -0
- telnyx/types/calls/action_gather_using_speak_params.py +157 -0
- telnyx/types/calls/action_gather_using_speak_response.py +12 -0
- telnyx/types/calls/action_hangup_params.py +22 -0
- telnyx/types/calls/action_hangup_response.py +12 -0
- telnyx/types/calls/action_leave_queue_params.py +22 -0
- telnyx/types/calls/action_leave_queue_response.py +12 -0
- telnyx/types/calls/action_pause_recording_params.py +25 -0
- telnyx/types/calls/action_pause_recording_response.py +12 -0
- telnyx/types/calls/action_refer_params.py +44 -0
- telnyx/types/calls/action_refer_response.py +12 -0
- telnyx/types/calls/action_reject_params.py +25 -0
- telnyx/types/calls/action_reject_response.py +12 -0
- telnyx/types/calls/action_resume_recording_params.py +25 -0
- telnyx/types/calls/action_resume_recording_response.py +12 -0
- telnyx/types/calls/action_send_dtmf_params.py +35 -0
- telnyx/types/calls/action_send_dtmf_response.py +12 -0
- telnyx/types/calls/action_send_sip_info_params.py +31 -0
- telnyx/types/calls/action_send_sip_info_response.py +12 -0
- telnyx/types/calls/action_speak_params.py +125 -0
- telnyx/types/calls/action_speak_response.py +12 -0
- telnyx/types/calls/action_start_ai_assistant_params.py +99 -0
- telnyx/types/calls/action_start_ai_assistant_response.py +18 -0
- telnyx/types/calls/action_start_forking_params.py +41 -0
- telnyx/types/calls/action_start_forking_response.py +12 -0
- telnyx/types/calls/action_start_noise_suppression_params.py +44 -0
- telnyx/types/calls/action_start_noise_suppression_response.py +12 -0
- telnyx/types/calls/action_start_playback_params.py +83 -0
- telnyx/types/calls/action_start_playback_response.py +12 -0
- telnyx/types/calls/action_start_recording_params.py +245 -0
- telnyx/types/calls/action_start_recording_response.py +12 -0
- telnyx/types/calls/action_start_siprec_params.py +44 -0
- telnyx/types/calls/action_start_siprec_response.py +12 -0
- telnyx/types/calls/action_start_streaming_params.py +62 -0
- telnyx/types/calls/action_start_streaming_response.py +12 -0
- telnyx/types/calls/action_start_transcription_params.py +169 -0
- telnyx/types/calls/action_start_transcription_response.py +12 -0
- telnyx/types/calls/action_stop_ai_assistant_params.py +22 -0
- telnyx/types/calls/action_stop_ai_assistant_response.py +12 -0
- telnyx/types/calls/action_stop_forking_params.py +29 -0
- telnyx/types/calls/action_stop_forking_response.py +12 -0
- telnyx/types/calls/action_stop_gather_params.py +22 -0
- telnyx/types/calls/action_stop_gather_response.py +12 -0
- telnyx/types/calls/action_stop_noise_suppression_params.py +22 -0
- telnyx/types/calls/action_stop_noise_suppression_response.py +12 -0
- telnyx/types/calls/action_stop_playback_params.py +32 -0
- telnyx/types/calls/action_stop_playback_response.py +12 -0
- telnyx/types/calls/action_stop_recording_params.py +25 -0
- telnyx/types/calls/action_stop_recording_response.py +12 -0
- telnyx/types/calls/action_stop_siprec_params.py +22 -0
- telnyx/types/calls/action_stop_siprec_response.py +12 -0
- telnyx/types/calls/action_stop_streaming_params.py +29 -0
- telnyx/types/calls/action_stop_streaming_response.py +12 -0
- telnyx/types/calls/action_stop_transcription_params.py +22 -0
- telnyx/types/calls/action_stop_transcription_response.py +12 -0
- telnyx/types/calls/action_switch_supervisor_role_params.py +16 -0
- telnyx/types/calls/action_switch_supervisor_role_response.py +12 -0
- telnyx/types/calls/action_transfer_params.py +256 -0
- telnyx/types/calls/action_transfer_response.py +12 -0
- telnyx/types/calls/action_update_client_state_params.py +15 -0
- telnyx/types/calls/action_update_client_state_response.py +12 -0
- telnyx/types/calls/aws_voice_settings_param.py +16 -0
- telnyx/types/calls/call_control_command_result.py +11 -0
- telnyx/types/calls/eleven_labs_voice_settings_param.py +20 -0
- telnyx/types/calls/google_transcription_language.py +88 -0
- telnyx/types/calls/interruption_settings_param.py +14 -0
- telnyx/types/calls/loopcount_param.py +10 -0
- telnyx/types/calls/telnyx_transcription_language.py +108 -0
- telnyx/types/calls/telnyx_voice_settings_param.py +18 -0
- telnyx/types/calls/transcription_config_param.py +24 -0
- telnyx/types/calls/transcription_engine_a_config_param.py +65 -0
- telnyx/types/calls/transcription_engine_azure_config_param.py +103 -0
- telnyx/types/calls/transcription_engine_b_config_param.py +20 -0
- telnyx/types/calls/transcription_engine_google_config_param.py +65 -0
- telnyx/types/calls/transcription_engine_telnyx_config_param.py +20 -0
- telnyx/types/calls/transcription_start_request_param.py +169 -0
- telnyx/types/campaign_status_update_webhook_event.py +46 -0
- telnyx/types/campaign_status_update_webhook_event1.py +46 -0
- telnyx/types/channel_zone_list_params.py +15 -0
- telnyx/types/channel_zone_list_response.py +30 -0
- telnyx/types/channel_zone_update_params.py +12 -0
- telnyx/types/channel_zone_update_response.py +30 -0
- telnyx/types/charges_breakdown_retrieve_params.py +27 -0
- telnyx/types/charges_breakdown_retrieve_response.py +60 -0
- telnyx/types/charges_summary_retrieve_params.py +23 -0
- telnyx/types/charges_summary_retrieve_response.py +122 -0
- telnyx/types/cloudflare_sync_status.py +7 -0
- telnyx/types/comment_create_params.py +15 -0
- telnyx/types/comment_create_response.py +36 -0
- telnyx/types/comment_list_params.py +28 -0
- telnyx/types/comment_list_response.py +39 -0
- telnyx/types/comment_mark_as_read_response.py +36 -0
- telnyx/types/comment_retrieve_response.py +36 -0
- telnyx/types/conference.py +58 -0
- telnyx/types/conference_create_params.py +78 -0
- telnyx/types/conference_create_response.py +12 -0
- telnyx/types/conference_created_webhook_event.py +53 -0
- telnyx/types/conference_created_webhook_event1.py +53 -0
- telnyx/types/conference_ended_webhook_event.py +56 -0
- telnyx/types/conference_ended_webhook_event1.py +56 -0
- telnyx/types/conference_floor_changed_webhook_event.py +45 -0
- telnyx/types/conference_floor_changed_webhook_event1.py +45 -0
- telnyx/types/conference_list_params.py +116 -0
- telnyx/types/conference_list_participants_params.py +42 -0
- telnyx/types/conference_list_participants_response.py +64 -0
- telnyx/types/conference_participant_joined_webhook_event.py +53 -0
- telnyx/types/conference_participant_joined_webhook_event1.py +53 -0
- telnyx/types/conference_participant_left_webhook_event.py +53 -0
- telnyx/types/conference_participant_left_webhook_event1.py +53 -0
- telnyx/types/conference_participant_playback_ended_webhook_event.py +65 -0
- telnyx/types/conference_participant_playback_ended_webhook_event1.py +65 -0
- telnyx/types/conference_participant_playback_started_webhook_event.py +65 -0
- telnyx/types/conference_participant_playback_started_webhook_event1.py +65 -0
- telnyx/types/conference_participant_speak_ended_webhook_event.py +56 -0
- telnyx/types/conference_participant_speak_ended_webhook_event1.py +56 -0
- telnyx/types/conference_participant_speak_started_webhook_event.py +56 -0
- telnyx/types/conference_participant_speak_started_webhook_event1.py +56 -0
- telnyx/types/conference_playback_ended_webhook_event.py +49 -0
- telnyx/types/conference_playback_ended_webhook_event1.py +49 -0
- telnyx/types/conference_playback_started_webhook_event.py +49 -0
- telnyx/types/conference_playback_started_webhook_event1.py +49 -0
- telnyx/types/conference_recording_saved_webhook_event.py +113 -0
- telnyx/types/conference_recording_saved_webhook_event1.py +113 -0
- telnyx/types/conference_retrieve_params.py +12 -0
- telnyx/types/conference_retrieve_response.py +12 -0
- telnyx/types/conference_speak_ended_webhook_event.py +40 -0
- telnyx/types/conference_speak_ended_webhook_event1.py +40 -0
- telnyx/types/conference_speak_started_webhook_event.py +40 -0
- telnyx/types/conference_speak_started_webhook_event1.py +40 -0
- telnyx/types/conferences/__init__.py +33 -0
- telnyx/types/conferences/action_hold_params.py +37 -0
- telnyx/types/conferences/action_hold_response.py +12 -0
- telnyx/types/conferences/action_join_params.py +107 -0
- telnyx/types/conferences/action_join_response.py +12 -0
- telnyx/types/conferences/action_leave_params.py +32 -0
- telnyx/types/conferences/action_leave_response.py +12 -0
- telnyx/types/conferences/action_mute_params.py +23 -0
- telnyx/types/conferences/action_mute_response.py +12 -0
- telnyx/types/conferences/action_play_params.py +45 -0
- telnyx/types/conferences/action_play_response.py +12 -0
- telnyx/types/conferences/action_record_pause_params.py +25 -0
- telnyx/types/conferences/action_record_pause_response.py +12 -0
- telnyx/types/conferences/action_record_resume_params.py +25 -0
- telnyx/types/conferences/action_record_resume_response.py +12 -0
- telnyx/types/conferences/action_record_start_params.py +43 -0
- telnyx/types/conferences/action_record_start_response.py +12 -0
- telnyx/types/conferences/action_record_stop_params.py +31 -0
- telnyx/types/conferences/action_record_stop_response.py +12 -0
- telnyx/types/conferences/action_speak_params.py +117 -0
- telnyx/types/conferences/action_speak_response.py +12 -0
- telnyx/types/conferences/action_stop_params.py +23 -0
- telnyx/types/conferences/action_stop_response.py +12 -0
- telnyx/types/conferences/action_unhold_params.py +23 -0
- telnyx/types/conferences/action_unhold_response.py +12 -0
- telnyx/types/conferences/action_unmute_params.py +24 -0
- telnyx/types/conferences/action_unmute_response.py +12 -0
- telnyx/types/conferences/action_update_params.py +44 -0
- telnyx/types/conferences/action_update_response.py +12 -0
- telnyx/types/conferences/conference_command_result.py +9 -0
- telnyx/types/connection_list_active_calls_params.py +15 -0
- telnyx/types/connection_list_active_calls_response.py +30 -0
- telnyx/types/connection_list_params.py +70 -0
- telnyx/types/connection_list_response.py +53 -0
- telnyx/types/connection_retrieve_response.py +57 -0
- telnyx/types/connection_rtcp_settings.py +25 -0
- telnyx/types/connection_rtcp_settings_param.py +24 -0
- telnyx/types/consumed_data.py +15 -0
- telnyx/types/country_coverage_retrieve_country_response.py +78 -0
- telnyx/types/country_coverage_retrieve_response.py +78 -0
- telnyx/types/create_verification_response.py +10 -0
- telnyx/types/credential_connection.py +176 -0
- telnyx/types/credential_connection_create_params.py +175 -0
- telnyx/types/credential_connection_create_response.py +12 -0
- telnyx/types/credential_connection_delete_response.py +12 -0
- telnyx/types/credential_connection_list_params.py +70 -0
- telnyx/types/credential_connection_retrieve_response.py +12 -0
- telnyx/types/credential_connection_update_params.py +171 -0
- telnyx/types/credential_connection_update_response.py +12 -0
- telnyx/types/credential_connections/__init__.py +7 -0
- telnyx/types/credential_connections/action_check_registration_status_response.py +40 -0
- telnyx/types/credential_inbound.py +63 -0
- telnyx/types/credential_inbound_param.py +64 -0
- telnyx/types/credential_outbound.py +66 -0
- telnyx/types/credential_outbound_param.py +64 -0
- telnyx/types/custom_sip_header.py +13 -0
- telnyx/types/custom_sip_header_param.py +15 -0
- telnyx/types/custom_storage_configuration.py +22 -0
- telnyx/types/custom_storage_credential_create_params.py +21 -0
- telnyx/types/custom_storage_credential_create_response.py +21 -0
- telnyx/types/custom_storage_credential_retrieve_response.py +21 -0
- telnyx/types/custom_storage_credential_update_params.py +21 -0
- telnyx/types/custom_storage_credential_update_response.py +21 -0
- telnyx/types/customer_service_record.py +95 -0
- telnyx/types/customer_service_record_create_params.py +49 -0
- telnyx/types/customer_service_record_create_response.py +12 -0
- telnyx/types/customer_service_record_list_params.py +88 -0
- telnyx/types/customer_service_record_retrieve_response.py +12 -0
- telnyx/types/customer_service_record_verify_phone_number_coverage_params.py +14 -0
- telnyx/types/customer_service_record_verify_phone_number_coverage_response.py +50 -0
- telnyx/types/delivery_update_webhook_event.py +40 -0
- telnyx/types/delivery_update_webhook_event1.py +40 -0
- telnyx/types/detail_record_list_params.py +81 -0
- telnyx/types/detail_record_list_response.py +475 -0
- telnyx/types/dialogflow_config_param.py +15 -0
- telnyx/types/dialogflow_connection_create_params.py +28 -0
- telnyx/types/dialogflow_connection_create_response.py +30 -0
- telnyx/types/dialogflow_connection_retrieve_response.py +30 -0
- telnyx/types/dialogflow_connection_update_params.py +28 -0
- telnyx/types/dialogflow_connection_update_response.py +30 -0
- telnyx/types/doc_service_document.py +53 -0
- telnyx/types/document_delete_response.py +12 -0
- telnyx/types/document_generate_download_link_response.py +14 -0
- telnyx/types/document_link_list_params.py +34 -0
- telnyx/types/document_link_list_response.py +30 -0
- telnyx/types/document_list_params.py +71 -0
- telnyx/types/document_retrieve_response.py +12 -0
- telnyx/types/document_update_params.py +15 -0
- telnyx/types/document_update_response.py +12 -0
- telnyx/types/document_upload_json_params.py +39 -0
- telnyx/types/document_upload_json_response.py +12 -0
- telnyx/types/document_upload_params.py +39 -0
- telnyx/types/document_upload_response.py +12 -0
- telnyx/types/dtmf_type.py +7 -0
- telnyx/types/dynamic_emergency_address.py +52 -0
- telnyx/types/dynamic_emergency_address_create_params.py +31 -0
- telnyx/types/dynamic_emergency_address_create_response.py +12 -0
- telnyx/types/dynamic_emergency_address_delete_response.py +12 -0
- telnyx/types/dynamic_emergency_address_list_params.py +34 -0
- telnyx/types/dynamic_emergency_address_retrieve_response.py +12 -0
- telnyx/types/dynamic_emergency_endpoint.py +33 -0
- telnyx/types/dynamic_emergency_endpoint_create_params.py +16 -0
- telnyx/types/dynamic_emergency_endpoint_create_response.py +12 -0
- telnyx/types/dynamic_emergency_endpoint_delete_response.py +12 -0
- telnyx/types/dynamic_emergency_endpoint_list_params.py +34 -0
- telnyx/types/dynamic_emergency_endpoint_retrieve_response.py +12 -0
- telnyx/types/encrypted_media.py +8 -0
- telnyx/types/external_connection.py +75 -0
- telnyx/types/external_connection_create_params.py +62 -0
- telnyx/types/external_connection_create_response.py +12 -0
- telnyx/types/external_connection_delete_response.py +12 -0
- telnyx/types/external_connection_list_params.py +78 -0
- telnyx/types/external_connection_retrieve_response.py +12 -0
- telnyx/types/external_connection_update_location_params.py +14 -0
- telnyx/types/external_connection_update_location_response.py +19 -0
- telnyx/types/external_connection_update_params.py +56 -0
- telnyx/types/external_connection_update_response.py +12 -0
- telnyx/types/external_connections/__init__.py +28 -0
- telnyx/types/external_connections/civic_address_list_params.py +27 -0
- telnyx/types/external_connections/civic_address_list_response.py +60 -0
- telnyx/types/external_connections/civic_address_retrieve_response.py +60 -0
- telnyx/types/external_connections/external_connection_phone_number.py +35 -0
- telnyx/types/external_connections/log_message_dismiss_response.py +12 -0
- telnyx/types/external_connections/log_message_list_params.py +57 -0
- telnyx/types/external_connections/log_message_list_response.py +35 -0
- telnyx/types/external_connections/log_message_retrieve_response.py +39 -0
- telnyx/types/external_connections/phone_number_list_params.py +53 -0
- telnyx/types/external_connections/phone_number_retrieve_response.py +12 -0
- telnyx/types/external_connections/phone_number_update_params.py +14 -0
- telnyx/types/external_connections/phone_number_update_response.py +12 -0
- telnyx/types/external_connections/release_list_params.py +77 -0
- telnyx/types/external_connections/release_list_response.py +36 -0
- telnyx/types/external_connections/release_retrieve_response.py +40 -0
- telnyx/types/external_connections/tn_upload_entry.py +58 -0
- telnyx/types/external_connections/upload.py +33 -0
- telnyx/types/external_connections/upload_create_params.py +28 -0
- telnyx/types/external_connections/upload_create_response.py +15 -0
- telnyx/types/external_connections/upload_list_params.py +68 -0
- telnyx/types/external_connections/upload_pending_count_response.py +22 -0
- telnyx/types/external_connections/upload_refresh_status_response.py +12 -0
- telnyx/types/external_connections/upload_retrieve_response.py +12 -0
- telnyx/types/external_connections/upload_retry_response.py +12 -0
- telnyx/types/external_voice_integrations_pagination_meta.py +17 -0
- telnyx/types/fax.py +108 -0
- telnyx/types/fax_application.py +94 -0
- telnyx/types/fax_application_create_params.py +84 -0
- telnyx/types/fax_application_create_response.py +12 -0
- telnyx/types/fax_application_delete_response.py +12 -0
- telnyx/types/fax_application_list_params.py +64 -0
- telnyx/types/fax_application_retrieve_response.py +12 -0
- telnyx/types/fax_application_update_params.py +90 -0
- telnyx/types/fax_application_update_response.py +12 -0
- telnyx/types/fax_create_params.py +87 -0
- telnyx/types/fax_create_response.py +12 -0
- telnyx/types/fax_delivered_webhook_event.py +69 -0
- telnyx/types/fax_delivered_webhook_event1.py +69 -0
- telnyx/types/fax_failed_webhook_event.py +66 -0
- telnyx/types/fax_failed_webhook_event1.py +66 -0
- telnyx/types/fax_list_params.py +87 -0
- telnyx/types/fax_media_processed_webhook_event.py +63 -0
- telnyx/types/fax_media_processed_webhook_event1.py +63 -0
- telnyx/types/fax_queued_webhook_event.py +63 -0
- telnyx/types/fax_queued_webhook_event1.py +63 -0
- telnyx/types/fax_retrieve_response.py +12 -0
- telnyx/types/fax_sending_started_webhook_event.py +63 -0
- telnyx/types/fax_sending_started_webhook_event1.py +63 -0
- telnyx/types/faxes/__init__.py +6 -0
- telnyx/types/faxes/action_cancel_response.py +11 -0
- telnyx/types/faxes/action_refresh_response.py +11 -0
- telnyx/types/fqdn.py +38 -0
- telnyx/types/fqdn_connection.py +202 -0
- telnyx/types/fqdn_connection_create_params.py +163 -0
- telnyx/types/fqdn_connection_create_response.py +12 -0
- telnyx/types/fqdn_connection_delete_response.py +12 -0
- telnyx/types/fqdn_connection_list_params.py +70 -0
- telnyx/types/fqdn_connection_retrieve_response.py +12 -0
- telnyx/types/fqdn_connection_update_params.py +157 -0
- telnyx/types/fqdn_connection_update_response.py +12 -0
- telnyx/types/fqdn_create_params.py +27 -0
- telnyx/types/fqdn_create_response.py +12 -0
- telnyx/types/fqdn_delete_response.py +12 -0
- telnyx/types/fqdn_list_params.py +41 -0
- telnyx/types/fqdn_retrieve_response.py +12 -0
- telnyx/types/fqdn_update_params.py +27 -0
- telnyx/types/fqdn_update_response.py +12 -0
- telnyx/types/gcs_configuration_data.py +22 -0
- telnyx/types/gcs_configuration_data_param.py +21 -0
- telnyx/types/global_ip_allowed_port_list_response.py +31 -0
- telnyx/types/global_ip_assignment.py +21 -0
- telnyx/types/global_ip_assignment_create_response.py +12 -0
- telnyx/types/global_ip_assignment_delete_response.py +12 -0
- telnyx/types/global_ip_assignment_health_retrieve_params.py +71 -0
- telnyx/types/global_ip_assignment_health_retrieve_response.py +66 -0
- telnyx/types/global_ip_assignment_list_params.py +15 -0
- telnyx/types/global_ip_assignment_param.py +11 -0
- telnyx/types/global_ip_assignment_retrieve_response.py +12 -0
- telnyx/types/global_ip_assignment_update_params.py +20 -0
- telnyx/types/global_ip_assignment_update_response.py +12 -0
- telnyx/types/global_ip_assignments_usage_retrieve_params.py +71 -0
- telnyx/types/global_ip_assignments_usage_retrieve_response.py +75 -0
- telnyx/types/global_ip_create_params.py +19 -0
- telnyx/types/global_ip_create_response.py +26 -0
- telnyx/types/global_ip_delete_response.py +26 -0
- telnyx/types/global_ip_health_check_create_params.py +19 -0
- telnyx/types/global_ip_health_check_create_response.py +23 -0
- telnyx/types/global_ip_health_check_delete_response.py +23 -0
- telnyx/types/global_ip_health_check_list_params.py +15 -0
- telnyx/types/global_ip_health_check_list_response.py +18 -0
- telnyx/types/global_ip_health_check_retrieve_response.py +23 -0
- telnyx/types/global_ip_health_check_type_list_response.py +22 -0
- telnyx/types/global_ip_latency_retrieve_params.py +44 -0
- telnyx/types/global_ip_latency_retrieve_response.py +143 -0
- telnyx/types/global_ip_list_params.py +15 -0
- telnyx/types/global_ip_list_response.py +21 -0
- telnyx/types/global_ip_protocol_list_response.py +22 -0
- telnyx/types/global_ip_retrieve_response.py +26 -0
- telnyx/types/global_ip_usage_retrieve_params.py +44 -0
- telnyx/types/global_ip_usage_retrieve_response.py +47 -0
- telnyx/types/inbound_channel_list_response.py +19 -0
- telnyx/types/inbound_channel_update_params.py +12 -0
- telnyx/types/inbound_channel_update_response.py +19 -0
- telnyx/types/inbound_fqdn.py +111 -0
- telnyx/types/inbound_fqdn_param.py +113 -0
- telnyx/types/inbound_ip.py +111 -0
- telnyx/types/inbound_ip_param.py +112 -0
- telnyx/types/inbound_message_webhook_event.py +30 -0
- telnyx/types/inbound_message_webhook_event1.py +30 -0
- telnyx/types/inexplicit_number_order_create_params.py +97 -0
- telnyx/types/inexplicit_number_order_create_response.py +12 -0
- telnyx/types/inexplicit_number_order_list_params.py +15 -0
- telnyx/types/inexplicit_number_order_response.py +103 -0
- telnyx/types/inexplicit_number_order_retrieve_response.py +12 -0
- telnyx/types/integration_secret.py +20 -0
- telnyx/types/integration_secret_create_params.py +30 -0
- telnyx/types/integration_secret_create_response.py +10 -0
- telnyx/types/integration_secret_list_params.py +24 -0
- telnyx/types/interface_status.py +7 -0
- telnyx/types/inventory_coverage_list_params.py +91 -0
- telnyx/types/inventory_coverage_list_response.py +41 -0
- telnyx/types/invoice_list_params.py +18 -0
- telnyx/types/invoice_list_response.py +22 -0
- telnyx/types/invoice_retrieve_params.py +12 -0
- telnyx/types/invoice_retrieve_response.py +29 -0
- telnyx/types/ip.py +30 -0
- telnyx/types/ip_connection.py +160 -0
- telnyx/types/ip_connection_create_params.py +235 -0
- telnyx/types/ip_connection_create_response.py +12 -0
- telnyx/types/ip_connection_delete_response.py +12 -0
- telnyx/types/ip_connection_list_params.py +70 -0
- telnyx/types/ip_connection_retrieve_response.py +12 -0
- telnyx/types/ip_connection_update_params.py +154 -0
- telnyx/types/ip_connection_update_response.py +12 -0
- telnyx/types/ip_create_params.py +18 -0
- telnyx/types/ip_create_response.py +12 -0
- telnyx/types/ip_delete_response.py +12 -0
- telnyx/types/ip_list_params.py +37 -0
- telnyx/types/ip_retrieve_response.py +12 -0
- telnyx/types/ip_update_params.py +18 -0
- telnyx/types/ip_update_response.py +12 -0
- telnyx/types/ledger_billing_group_report.py +32 -0
- telnyx/types/ledger_billing_group_report_create_params.py +15 -0
- telnyx/types/ledger_billing_group_report_create_response.py +12 -0
- telnyx/types/ledger_billing_group_report_retrieve_response.py +12 -0
- telnyx/types/legacy/__init__.py +3 -0
- telnyx/types/legacy/reporting/__init__.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/__init__.py +24 -0
- telnyx/types/legacy/reporting/batch_detail_records/batch_csv_pagination_meta.py +17 -0
- telnyx/types/legacy/reporting/batch_detail_records/cdr_detailed_req_response.py +65 -0
- telnyx/types/legacy/reporting/batch_detail_records/mdr_detail_report_response.py +42 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_params.py +55 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_delete_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +15 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_retrieve_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_params.py +19 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_delete_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_list_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/stt_detail_report_response.py +27 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_params.py +57 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_response.py +13 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_delete_response.py +13 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +15 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_fields_response.py +25 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_response.py +13 -0
- telnyx/types/legacy/reporting/filter.py +36 -0
- telnyx/types/legacy/reporting/filter_param.py +35 -0
- telnyx/types/legacy/reporting/usage_report_retrieve_speech_to_text_params.py +17 -0
- telnyx/types/legacy/reporting/usage_report_retrieve_speech_to_text_response.py +11 -0
- telnyx/types/legacy/reporting/usage_reports/__init__.py +24 -0
- telnyx/types/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.py +45 -0
- telnyx/types/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.py +40 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_create_params.py +29 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_create_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_delete_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_list_params.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_retrieve_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_create_params.py +26 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_create_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_list_response.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_retrieve_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/standard_pagination_meta.py +17 -0
- telnyx/types/legacy/reporting/usage_reports/telco_data_aggregation.py +21 -0
- telnyx/types/legacy/reporting/usage_reports/telco_data_usage_record.py +19 -0
- telnyx/types/legacy/reporting/usage_reports/telco_data_usage_report_response.py +46 -0
- telnyx/types/legacy/reporting/usage_reports/voice_create_params.py +40 -0
- telnyx/types/legacy/reporting/usage_reports/voice_create_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/voice_delete_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/voice_list_params.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/voice_retrieve_response.py +13 -0
- telnyx/types/list_retrieve_all_response.py +30 -0
- telnyx/types/list_retrieve_by_zone_response.py +30 -0
- telnyx/types/managed_account.py +61 -0
- telnyx/types/managed_account_balance.py +25 -0
- telnyx/types/managed_account_create_params.py +48 -0
- telnyx/types/managed_account_create_response.py +12 -0
- telnyx/types/managed_account_get_allocatable_global_outbound_channels_response.py +39 -0
- telnyx/types/managed_account_list_params.py +83 -0
- telnyx/types/managed_account_list_response.py +52 -0
- telnyx/types/managed_account_retrieve_response.py +12 -0
- telnyx/types/managed_account_update_global_channel_limit_params.py +17 -0
- telnyx/types/managed_account_update_global_channel_limit_response.py +32 -0
- telnyx/types/managed_account_update_params.py +17 -0
- telnyx/types/managed_account_update_response.py +12 -0
- telnyx/types/managed_accounts/__init__.py +7 -0
- telnyx/types/managed_accounts/action_disable_response.py +12 -0
- telnyx/types/managed_accounts/action_enable_params.py +16 -0
- telnyx/types/managed_accounts/action_enable_response.py +12 -0
- telnyx/types/media_list_params.py +27 -0
- telnyx/types/media_list_response.py +15 -0
- telnyx/types/media_resource.py +24 -0
- telnyx/types/media_retrieve_response.py +12 -0
- telnyx/types/media_update_params.py +21 -0
- telnyx/types/media_update_response.py +12 -0
- telnyx/types/media_upload_params.py +24 -0
- telnyx/types/media_upload_response.py +12 -0
- telnyx/types/message_cancel_scheduled_response.py +230 -0
- telnyx/types/message_retrieve_response.py +19 -0
- telnyx/types/message_schedule_params.py +78 -0
- telnyx/types/message_schedule_response.py +12 -0
- telnyx/types/message_send_group_mms_params.py +43 -0
- telnyx/types/message_send_group_mms_response.py +12 -0
- telnyx/types/message_send_long_code_params.py +58 -0
- telnyx/types/message_send_long_code_response.py +12 -0
- telnyx/types/message_send_number_pool_params.py +57 -0
- telnyx/types/message_send_number_pool_response.py +12 -0
- telnyx/types/message_send_params.py +78 -0
- telnyx/types/message_send_response.py +12 -0
- telnyx/types/message_send_short_code_params.py +58 -0
- telnyx/types/message_send_short_code_response.py +12 -0
- telnyx/types/message_send_whatsapp_params.py +291 -0
- telnyx/types/message_send_whatsapp_response.py +345 -0
- telnyx/types/message_template.py +12 -0
- telnyx/types/messages/__init__.py +8 -0
- telnyx/types/messages/rc_generate_deeplink_params.py +15 -0
- telnyx/types/messages/rc_generate_deeplink_response.py +14 -0
- telnyx/types/messages/rc_send_params.py +67 -0
- telnyx/types/messages/rc_send_response.py +59 -0
- telnyx/types/messaging/__init__.py +9 -0
- telnyx/types/messaging/rc_invite_test_number_response.py +26 -0
- telnyx/types/messaging/rc_list_bulk_capabilities_params.py +17 -0
- telnyx/types/messaging/rc_list_bulk_capabilities_response.py +12 -0
- telnyx/types/messaging/rc_retrieve_capabilities_response.py +12 -0
- telnyx/types/messaging/rcs/__init__.py +6 -0
- telnyx/types/messaging/rcs/agent_list_params.py +15 -0
- telnyx/types/messaging/rcs/agent_update_params.py +19 -0
- telnyx/types/messaging/rcs_capabilities.py +25 -0
- telnyx/types/messaging_10dlc/__init__.py +75 -0
- telnyx/types/messaging_10dlc/alt_business_id_type.py +7 -0
- telnyx/types/messaging_10dlc/brand/__init__.py +9 -0
- telnyx/types/messaging_10dlc/brand/external_vetting_imports_params.py +23 -0
- telnyx/types/messaging_10dlc/brand/external_vetting_imports_response.py +43 -0
- telnyx/types/messaging_10dlc/brand/external_vetting_list_response.py +47 -0
- telnyx/types/messaging_10dlc/brand/external_vetting_order_params.py +17 -0
- telnyx/types/messaging_10dlc/brand/external_vetting_order_response.py +43 -0
- telnyx/types/messaging_10dlc/brand_create_params.py +92 -0
- telnyx/types/messaging_10dlc/brand_get_feedback_response.py +31 -0
- telnyx/types/messaging_10dlc/brand_identity_status.py +7 -0
- telnyx/types/messaging_10dlc/brand_list_params.py +51 -0
- telnyx/types/messaging_10dlc/brand_list_response.py +53 -0
- telnyx/types/messaging_10dlc/brand_retrieve_response.py +16 -0
- telnyx/types/messaging_10dlc/brand_retrieve_sms_otp_status_response.py +43 -0
- telnyx/types/messaging_10dlc/brand_trigger_sms_otp_params.py +20 -0
- telnyx/types/messaging_10dlc/brand_trigger_sms_otp_response.py +17 -0
- telnyx/types/messaging_10dlc/brand_update_params.py +97 -0
- telnyx/types/messaging_10dlc/brand_verify_sms_otp_params.py +14 -0
- telnyx/types/messaging_10dlc/campaign/__init__.py +7 -0
- telnyx/types/messaging_10dlc/campaign/osr_get_attributes_response.py +8 -0
- telnyx/types/messaging_10dlc/campaign/usecase_get_cost_params.py +11 -0
- telnyx/types/messaging_10dlc/campaign/usecase_get_cost_response.py +17 -0
- telnyx/types/messaging_10dlc/campaign_accept_sharing_response.py +8 -0
- telnyx/types/messaging_10dlc/campaign_builder/__init__.py +5 -0
- telnyx/types/messaging_10dlc/campaign_builder/brand_qualify_by_usecase_response.py +36 -0
- telnyx/types/messaging_10dlc/campaign_builder_submit_params.py +146 -0
- telnyx/types/messaging_10dlc/campaign_deactivate_response.py +15 -0
- telnyx/types/messaging_10dlc/campaign_get_mno_metadata_response.py +47 -0
- telnyx/types/messaging_10dlc/campaign_get_operation_status_response.py +8 -0
- telnyx/types/messaging_10dlc/campaign_get_sharing_status_response.py +16 -0
- telnyx/types/messaging_10dlc/campaign_list_params.py +39 -0
- telnyx/types/messaging_10dlc/campaign_list_response.py +217 -0
- telnyx/types/messaging_10dlc/campaign_sharing_status.py +21 -0
- telnyx/types/messaging_10dlc/campaign_submit_appeal_params.py +15 -0
- telnyx/types/messaging_10dlc/campaign_submit_appeal_response.py +13 -0
- telnyx/types/messaging_10dlc/campaign_update_params.py +47 -0
- telnyx/types/messaging_10dlc/entity_type.py +7 -0
- telnyx/types/messaging_10dlc/partner_campaign_list_params.py +39 -0
- telnyx/types/messaging_10dlc/partner_campaign_list_shared_by_me_params.py +20 -0
- telnyx/types/messaging_10dlc/partner_campaign_list_shared_by_me_response.py +41 -0
- telnyx/types/messaging_10dlc/partner_campaign_retrieve_sharing_status_response.py +10 -0
- telnyx/types/messaging_10dlc/partner_campaign_update_params.py +17 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_assign_params.py +29 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_assign_response.py +32 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_list_phone_number_status_params.py +15 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_list_phone_number_status_response.py +24 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_retrieve_phone_number_status_params.py +15 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_retrieve_phone_number_status_response.py +24 -0
- telnyx/types/messaging_10dlc/phone_number_assignment_by_profile_retrieve_status_response.py +22 -0
- telnyx/types/messaging_10dlc/phone_number_campaign.py +48 -0
- telnyx/types/messaging_10dlc/phone_number_campaign_create_params.py +17 -0
- telnyx/types/messaging_10dlc/phone_number_campaign_list_params.py +47 -0
- telnyx/types/messaging_10dlc/phone_number_campaign_update_params.py +17 -0
- telnyx/types/messaging_10dlc/stock_exchange.py +33 -0
- telnyx/types/messaging_10dlc/task_status.py +7 -0
- telnyx/types/messaging_10dlc/telnyx_brand.py +144 -0
- telnyx/types/messaging_10dlc/telnyx_campaign_csp.py +218 -0
- telnyx/types/messaging_10dlc/telnyx_downstream_campaign.py +158 -0
- telnyx/types/messaging_10dlc/vertical.py +25 -0
- telnyx/types/messaging_10dlc_get_enum_response.py +23 -0
- telnyx/types/messaging_error.py +27 -0
- telnyx/types/messaging_hosted_number_delete_response.py +12 -0
- telnyx/types/messaging_hosted_number_order_check_eligibility_params.py +14 -0
- telnyx/types/messaging_hosted_number_order_check_eligibility_response.py +42 -0
- telnyx/types/messaging_hosted_number_order_create_params.py +20 -0
- telnyx/types/messaging_hosted_number_order_create_response.py +12 -0
- telnyx/types/messaging_hosted_number_order_create_verification_codes_params.py +15 -0
- telnyx/types/messaging_hosted_number_order_create_verification_codes_response.py +28 -0
- telnyx/types/messaging_hosted_number_order_delete_response.py +12 -0
- telnyx/types/messaging_hosted_number_order_list_params.py +15 -0
- telnyx/types/messaging_hosted_number_order_retrieve_response.py +12 -0
- telnyx/types/messaging_hosted_number_order_validate_codes_params.py +18 -0
- telnyx/types/messaging_hosted_number_order_validate_codes_response.py +24 -0
- telnyx/types/messaging_hosted_number_orders/__init__.py +6 -0
- telnyx/types/messaging_hosted_number_orders/action_upload_file_params.py +20 -0
- telnyx/types/messaging_hosted_number_orders/action_upload_file_response.py +12 -0
- telnyx/types/messaging_numbers_bulk_update_create_params.py +23 -0
- telnyx/types/messaging_numbers_bulk_update_create_response.py +29 -0
- telnyx/types/messaging_numbers_bulk_update_retrieve_response.py +29 -0
- telnyx/types/messaging_optout_list_params.py +64 -0
- telnyx/types/messaging_optout_list_response.py +30 -0
- telnyx/types/messaging_profile.py +120 -0
- telnyx/types/messaging_profile_create_params.py +94 -0
- telnyx/types/messaging_profile_create_response.py +12 -0
- telnyx/types/messaging_profile_delete_response.py +12 -0
- telnyx/types/messaging_profile_list_params.py +25 -0
- telnyx/types/messaging_profile_list_phone_numbers_params.py +15 -0
- telnyx/types/messaging_profile_list_short_codes_params.py +15 -0
- telnyx/types/messaging_profile_retrieve_response.py +12 -0
- telnyx/types/messaging_profile_update_params.py +99 -0
- telnyx/types/messaging_profile_update_response.py +12 -0
- telnyx/types/messaging_profiles/__init__.py +11 -0
- telnyx/types/messaging_profiles/auto_resp_config.py +25 -0
- telnyx/types/messaging_profiles/auto_resp_config_response.py +10 -0
- telnyx/types/messaging_profiles/autoresp_config_create_params.py +19 -0
- telnyx/types/messaging_profiles/autoresp_config_delete_response.py +7 -0
- telnyx/types/messaging_profiles/autoresp_config_list_params.py +45 -0
- telnyx/types/messaging_profiles/autoresp_config_list_response.py +17 -0
- telnyx/types/messaging_profiles/autoresp_config_update_params.py +21 -0
- telnyx/types/messaging_tollfree/__init__.py +3 -0
- telnyx/types/messaging_tollfree/verification/__init__.py +17 -0
- telnyx/types/messaging_tollfree/verification/request_create_params.py +150 -0
- telnyx/types/messaging_tollfree/verification/request_list_params.py +31 -0
- telnyx/types/messaging_tollfree/verification/request_update_params.py +150 -0
- telnyx/types/messaging_tollfree/verification/tf_phone_number.py +13 -0
- telnyx/types/messaging_tollfree/verification/tf_phone_number_param.py +15 -0
- telnyx/types/messaging_tollfree/verification/tf_verification_status.py +9 -0
- telnyx/types/messaging_tollfree/verification/toll_free_verification_entity_type.py +9 -0
- telnyx/types/messaging_tollfree/verification/url.py +9 -0
- telnyx/types/messaging_tollfree/verification/url_param.py +11 -0
- telnyx/types/messaging_tollfree/verification/use_case_categories.py +51 -0
- telnyx/types/messaging_tollfree/verification/verification_request_egress.py +101 -0
- telnyx/types/messaging_tollfree/verification/verification_request_status.py +106 -0
- telnyx/types/messaging_tollfree/verification/volume.py +9 -0
- telnyx/types/messaging_url_domain_list_params.py +15 -0
- telnyx/types/messaging_url_domain_list_response.py +17 -0
- telnyx/types/mobile_network_operator_list_params.py +61 -0
- telnyx/types/mobile_network_operator_list_response.py +50 -0
- telnyx/types/mobile_phone_number.py +110 -0
- telnyx/types/mobile_phone_number_list_params.py +17 -0
- telnyx/types/mobile_phone_number_retrieve_response.py +12 -0
- telnyx/types/mobile_phone_number_update_params.py +72 -0
- telnyx/types/mobile_phone_number_update_response.py +12 -0
- telnyx/types/mobile_phone_numbers/__init__.py +7 -0
- telnyx/types/mobile_phone_numbers/messaging_list_params.py +15 -0
- telnyx/types/mobile_phone_numbers/messaging_list_response.py +53 -0
- telnyx/types/mobile_phone_numbers/messaging_retrieve_response.py +57 -0
- telnyx/types/mobile_push_credential_create_params.py +51 -0
- telnyx/types/mobile_push_credential_list_params.py +34 -0
- telnyx/types/mobile_voice_connection.py +56 -0
- telnyx/types/mobile_voice_connection_create_params.py +40 -0
- telnyx/types/mobile_voice_connection_create_response.py +12 -0
- telnyx/types/mobile_voice_connection_delete_response.py +12 -0
- telnyx/types/mobile_voice_connection_list_params.py +26 -0
- telnyx/types/mobile_voice_connection_retrieve_response.py +12 -0
- telnyx/types/mobile_voice_connection_update_params.py +40 -0
- telnyx/types/mobile_voice_connection_update_response.py +12 -0
- telnyx/types/month_detail.py +18 -0
- telnyx/types/network_coverage_list_params.py +75 -0
- telnyx/types/network_coverage_list_response.py +35 -0
- telnyx/types/network_create_params.py +12 -0
- telnyx/types/network_create_response.py +17 -0
- telnyx/types/network_delete_response.py +17 -0
- telnyx/types/network_interface.py +19 -0
- telnyx/types/network_interface_region.py +12 -0
- telnyx/types/network_list_interfaces_params.py +34 -0
- telnyx/types/network_list_interfaces_response.py +33 -0
- telnyx/types/network_list_params.py +25 -0
- telnyx/types/network_list_response.py +12 -0
- telnyx/types/network_retrieve_response.py +17 -0
- telnyx/types/network_update_params.py +12 -0
- telnyx/types/network_update_response.py +17 -0
- telnyx/types/networks/__init__.py +8 -0
- telnyx/types/networks/default_gateway_create_params.py +12 -0
- telnyx/types/networks/default_gateway_create_response.py +27 -0
- telnyx/types/networks/default_gateway_delete_response.py +27 -0
- telnyx/types/networks/default_gateway_retrieve_response.py +27 -0
- telnyx/types/notification_channel.py +31 -0
- telnyx/types/notification_channel_create_params.py +18 -0
- telnyx/types/notification_channel_create_response.py +13 -0
- telnyx/types/notification_channel_delete_response.py +13 -0
- telnyx/types/notification_channel_list_params.py +90 -0
- telnyx/types/notification_channel_retrieve_response.py +13 -0
- telnyx/types/notification_channel_update_params.py +18 -0
- telnyx/types/notification_channel_update_response.py +13 -0
- telnyx/types/notification_event_condition_list_params.py +90 -0
- telnyx/types/notification_event_condition_list_response.py +52 -0
- telnyx/types/notification_event_list_params.py +15 -0
- telnyx/types/notification_event_list_response.py +28 -0
- telnyx/types/notification_profile.py +24 -0
- telnyx/types/notification_profile_create_params.py +12 -0
- telnyx/types/notification_profile_create_response.py +13 -0
- telnyx/types/notification_profile_delete_response.py +13 -0
- telnyx/types/notification_profile_list_params.py +15 -0
- telnyx/types/notification_profile_retrieve_response.py +13 -0
- telnyx/types/notification_profile_update_params.py +12 -0
- telnyx/types/notification_profile_update_response.py +13 -0
- telnyx/types/notification_setting.py +55 -0
- telnyx/types/notification_setting_create_params.py +27 -0
- telnyx/types/notification_setting_create_response.py +12 -0
- telnyx/types/notification_setting_delete_response.py +12 -0
- telnyx/types/notification_setting_list_params.py +90 -0
- telnyx/types/notification_setting_retrieve_response.py +12 -0
- telnyx/types/number_block_order.py +48 -0
- telnyx/types/number_block_order_create_params.py +24 -0
- telnyx/types/number_block_order_create_response.py +12 -0
- telnyx/types/number_block_order_list_params.py +48 -0
- telnyx/types/number_block_order_retrieve_response.py +12 -0
- telnyx/types/number_lookup_retrieve_params.py +12 -0
- telnyx/types/number_lookup_retrieve_response.py +145 -0
- telnyx/types/number_order_create_params.py +35 -0
- telnyx/types/number_order_create_response.py +12 -0
- telnyx/types/number_order_list_params.py +54 -0
- telnyx/types/number_order_list_response.py +56 -0
- telnyx/types/number_order_phone_number.py +55 -0
- telnyx/types/number_order_phone_number_list_params.py +25 -0
- telnyx/types/number_order_phone_number_list_response.py +15 -0
- telnyx/types/number_order_phone_number_retrieve_response.py +12 -0
- telnyx/types/number_order_phone_number_update_requirement_group_params.py +12 -0
- telnyx/types/number_order_phone_number_update_requirement_group_response.py +54 -0
- telnyx/types/number_order_phone_number_update_requirements_params.py +14 -0
- telnyx/types/number_order_phone_number_update_requirements_response.py +12 -0
- telnyx/types/number_order_retrieve_response.py +12 -0
- telnyx/types/number_order_status_update_webhook_event.py +38 -0
- telnyx/types/number_order_status_update_webhook_event1.py +38 -0
- telnyx/types/number_order_update_params.py +17 -0
- telnyx/types/number_order_update_response.py +12 -0
- telnyx/types/number_order_with_phone_numbers.py +47 -0
- telnyx/types/number_pool_settings.py +59 -0
- telnyx/types/number_pool_settings_param.py +59 -0
- telnyx/types/number_reservation.py +30 -0
- telnyx/types/number_reservation_create_params.py +17 -0
- telnyx/types/number_reservation_create_response.py +12 -0
- telnyx/types/number_reservation_list_params.py +51 -0
- telnyx/types/number_reservation_retrieve_response.py +12 -0
- telnyx/types/number_reservations/__init__.py +5 -0
- telnyx/types/number_reservations/action_extend_response.py +12 -0
- telnyx/types/numbers_feature_create_params.py +13 -0
- telnyx/types/numbers_feature_create_response.py +17 -0
- telnyx/types/oauth_client.py +59 -0
- telnyx/types/oauth_client_create_params.py +39 -0
- telnyx/types/oauth_client_create_response.py +12 -0
- telnyx/types/oauth_client_list_params.py +38 -0
- telnyx/types/oauth_client_retrieve_response.py +12 -0
- telnyx/types/oauth_client_update_params.py +36 -0
- telnyx/types/oauth_client_update_response.py +12 -0
- telnyx/types/oauth_grant.py +29 -0
- telnyx/types/oauth_grant_delete_response.py +12 -0
- telnyx/types/oauth_grant_list_params.py +17 -0
- telnyx/types/oauth_grant_retrieve_response.py +12 -0
- telnyx/types/oauth_grants_params.py +15 -0
- telnyx/types/oauth_grants_response.py +10 -0
- telnyx/types/oauth_introspect_params.py +12 -0
- telnyx/types/oauth_introspect_response.py +30 -0
- telnyx/types/oauth_register_params.py +39 -0
- telnyx/types/oauth_register_response.py +45 -0
- telnyx/types/oauth_retrieve_authorize_params.py +30 -0
- telnyx/types/oauth_retrieve_jwks_response.py +25 -0
- telnyx/types/oauth_retrieve_response.py +47 -0
- telnyx/types/oauth_token_params.py +33 -0
- telnyx/types/oauth_token_response.py +25 -0
- telnyx/types/operator_connect/__init__.py +5 -0
- telnyx/types/operator_connect/action_refresh_response.py +15 -0
- telnyx/types/organizations/__init__.py +9 -0
- telnyx/types/organizations/user_get_groups_report_response.py +60 -0
- telnyx/types/organizations/user_list_params.py +30 -0
- telnyx/types/organizations/user_list_response.py +57 -0
- telnyx/types/organizations/user_retrieve_params.py +16 -0
- telnyx/types/organizations/user_retrieve_response.py +61 -0
- telnyx/types/organizations/users/__init__.py +5 -0
- telnyx/types/organizations/users/action_remove_response.py +61 -0
- telnyx/types/ota_update_list_params.py +37 -0
- telnyx/types/ota_update_list_response.py +37 -0
- telnyx/types/ota_update_retrieve_response.py +81 -0
- telnyx/types/outbound_call_recording.py +28 -0
- telnyx/types/outbound_call_recording_param.py +29 -0
- telnyx/types/outbound_fqdn.py +86 -0
- telnyx/types/outbound_fqdn_param.py +85 -0
- telnyx/types/outbound_ip.py +73 -0
- telnyx/types/outbound_ip_param.py +71 -0
- telnyx/types/outbound_message_payload.py +216 -0
- telnyx/types/outbound_voice_profile.py +114 -0
- telnyx/types/outbound_voice_profile_create_params.py +102 -0
- telnyx/types/outbound_voice_profile_create_response.py +12 -0
- telnyx/types/outbound_voice_profile_delete_response.py +12 -0
- telnyx/types/outbound_voice_profile_list_params.py +69 -0
- telnyx/types/outbound_voice_profile_retrieve_response.py +12 -0
- telnyx/types/outbound_voice_profile_update_params.py +102 -0
- telnyx/types/outbound_voice_profile_update_response.py +12 -0
- telnyx/types/pagination_meta.py +17 -0
- telnyx/types/pagination_meta_cloudflare_ip_list_sync.py +15 -0
- telnyx/types/pagination_meta_oauth.py +21 -0
- telnyx/types/payment/__init__.py +7 -0
- telnyx/types/payment/auto_recharge_pref_list_response.py +37 -0
- telnyx/types/payment/auto_recharge_pref_update_params.py +26 -0
- telnyx/types/payment/auto_recharge_pref_update_response.py +37 -0
- telnyx/types/phone_number.py +49 -0
- telnyx/types/phone_number_blocks/__init__.py +12 -0
- telnyx/types/phone_number_blocks/job.py +60 -0
- telnyx/types/phone_number_blocks/job_delete_phone_number_block_params.py +11 -0
- telnyx/types/phone_number_blocks/job_delete_phone_number_block_response.py +12 -0
- telnyx/types/phone_number_blocks/job_error.py +32 -0
- telnyx/types/phone_number_blocks/job_list_params.py +40 -0
- telnyx/types/phone_number_blocks/job_retrieve_response.py +12 -0
- telnyx/types/phone_number_delete_response.py +120 -0
- telnyx/types/phone_number_detailed.py +143 -0
- telnyx/types/phone_number_list_params.py +146 -0
- telnyx/types/phone_number_retrieve_response.py +12 -0
- telnyx/types/phone_number_slim_list_params.py +150 -0
- telnyx/types/phone_number_slim_list_response.py +118 -0
- telnyx/types/phone_number_update_params.py +34 -0
- telnyx/types/phone_number_update_response.py +12 -0
- telnyx/types/phone_numbers/__init__.py +52 -0
- telnyx/types/phone_numbers/action_change_bundle_status_params.py +18 -0
- telnyx/types/phone_numbers/action_change_bundle_status_response.py +12 -0
- telnyx/types/phone_numbers/action_enable_emergency_params.py +15 -0
- telnyx/types/phone_numbers/action_enable_emergency_response.py +12 -0
- telnyx/types/phone_numbers/action_verify_ownership_params.py +14 -0
- telnyx/types/phone_numbers/action_verify_ownership_response.py +30 -0
- telnyx/types/phone_numbers/call_forwarding.py +29 -0
- telnyx/types/phone_numbers/call_forwarding_param.py +28 -0
- telnyx/types/phone_numbers/call_recording.py +24 -0
- telnyx/types/phone_numbers/call_recording_param.py +23 -0
- telnyx/types/phone_numbers/cnam_listing.py +24 -0
- telnyx/types/phone_numbers/cnam_listing_param.py +24 -0
- telnyx/types/phone_numbers/csv_download.py +25 -0
- telnyx/types/phone_numbers/csv_download_create_params.py +103 -0
- telnyx/types/phone_numbers/csv_download_create_response.py +12 -0
- telnyx/types/phone_numbers/csv_download_list_params.py +15 -0
- telnyx/types/phone_numbers/csv_download_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/job_delete_batch_params.py +13 -0
- telnyx/types/phone_numbers/job_delete_batch_response.py +12 -0
- telnyx/types/phone_numbers/job_list_params.py +31 -0
- telnyx/types/phone_numbers/job_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/job_update_batch_params.py +144 -0
- telnyx/types/phone_numbers/job_update_batch_response.py +12 -0
- telnyx/types/phone_numbers/job_update_emergency_settings_batch_params.py +24 -0
- telnyx/types/phone_numbers/job_update_emergency_settings_batch_response.py +12 -0
- telnyx/types/phone_numbers/media_features.py +30 -0
- telnyx/types/phone_numbers/media_features_param.py +30 -0
- telnyx/types/phone_numbers/messaging_list_params.py +15 -0
- telnyx/types/phone_numbers/messaging_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/messaging_update_params.py +25 -0
- telnyx/types/phone_numbers/messaging_update_response.py +12 -0
- telnyx/types/phone_numbers/phone_number_with_voice_settings.py +86 -0
- telnyx/types/phone_numbers/phone_numbers_job.py +87 -0
- telnyx/types/phone_numbers/update_voice_settings_param.py +52 -0
- telnyx/types/phone_numbers/voice_list_params.py +60 -0
- telnyx/types/phone_numbers/voice_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/voice_update_params.py +52 -0
- telnyx/types/phone_numbers/voice_update_response.py +12 -0
- telnyx/types/phone_numbers/voicemail_create_params.py +15 -0
- telnyx/types/phone_numbers/voicemail_create_response.py +12 -0
- telnyx/types/phone_numbers/voicemail_pref_response.py +15 -0
- telnyx/types/phone_numbers/voicemail_retrieve_response.py +12 -0
- telnyx/types/phone_numbers/voicemail_update_params.py +15 -0
- telnyx/types/phone_numbers/voicemail_update_response.py +12 -0
- telnyx/types/phone_numbers_regulatory_requirement_retrieve_params.py +25 -0
- telnyx/types/phone_numbers_regulatory_requirement_retrieve_response.py +62 -0
- telnyx/types/portability_check_run_params.py +14 -0
- telnyx/types/portability_check_run_response.py +31 -0
- telnyx/types/porting/__init__.py +24 -0
- telnyx/types/porting/event_list_params.py +58 -0
- telnyx/types/porting/event_list_response.py +407 -0
- telnyx/types/porting/event_retrieve_response.py +412 -0
- telnyx/types/porting/export_porting_orders_csv_report.py +47 -0
- telnyx/types/porting/export_porting_orders_csv_report_param.py +49 -0
- telnyx/types/porting/loa_configuration_create_params.py +63 -0
- telnyx/types/porting/loa_configuration_create_response.py +12 -0
- telnyx/types/porting/loa_configuration_list_params.py +15 -0
- telnyx/types/porting/loa_configuration_preview_0_params.py +63 -0
- telnyx/types/porting/loa_configuration_retrieve_response.py +12 -0
- telnyx/types/porting/loa_configuration_update_params.py +63 -0
- telnyx/types/porting/loa_configuration_update_response.py +12 -0
- telnyx/types/porting/porting_loa_configuration.py +83 -0
- telnyx/types/porting/porting_report.py +39 -0
- telnyx/types/porting/report_create_params.py +17 -0
- telnyx/types/porting/report_create_response.py +12 -0
- telnyx/types/porting/report_list_params.py +34 -0
- telnyx/types/porting/report_retrieve_response.py +12 -0
- telnyx/types/porting_list_uk_carriers_response.py +38 -0
- telnyx/types/porting_order.py +101 -0
- telnyx/types/porting_order_activation_settings.py +39 -0
- telnyx/types/porting_order_create_params.py +21 -0
- telnyx/types/porting_order_create_response.py +12 -0
- telnyx/types/porting_order_documents.py +17 -0
- telnyx/types/porting_order_documents_param.py +18 -0
- telnyx/types/porting_order_end_user.py +15 -0
- telnyx/types/porting_order_end_user_admin.py +33 -0
- telnyx/types/porting_order_end_user_admin_param.py +34 -0
- telnyx/types/porting_order_end_user_location.py +27 -0
- telnyx/types/porting_order_end_user_location_param.py +28 -0
- telnyx/types/porting_order_end_user_param.py +16 -0
- telnyx/types/porting_order_list_params.py +138 -0
- telnyx/types/porting_order_messaging.py +30 -0
- telnyx/types/porting_order_misc.py +32 -0
- telnyx/types/porting_order_misc_param.py +33 -0
- telnyx/types/porting_order_phone_number_configuration.py +23 -0
- telnyx/types/porting_order_phone_number_configuration_param.py +26 -0
- telnyx/types/porting_order_requirement.py +22 -0
- telnyx/types/porting_order_retrieve_allowed_foc_windows_response.py +26 -0
- telnyx/types/porting_order_retrieve_exception_types_response.py +12 -0
- telnyx/types/porting_order_retrieve_loa_template_params.py +15 -0
- telnyx/types/porting_order_retrieve_params.py +12 -0
- telnyx/types/porting_order_retrieve_requirements_params.py +15 -0
- telnyx/types/porting_order_retrieve_requirements_response.py +47 -0
- telnyx/types/porting_order_retrieve_response.py +19 -0
- telnyx/types/porting_order_retrieve_sub_request_response.py +19 -0
- telnyx/types/porting_order_type.py +7 -0
- telnyx/types/porting_order_update_params.py +78 -0
- telnyx/types/porting_order_update_response.py +19 -0
- telnyx/types/porting_order_user_feedback.py +18 -0
- telnyx/types/porting_order_user_feedback_param.py +19 -0
- telnyx/types/porting_orders/__init__.py +67 -0
- telnyx/types/porting_orders/action_activate_response.py +12 -0
- telnyx/types/porting_orders/action_cancel_response.py +19 -0
- telnyx/types/porting_orders/action_confirm_response.py +19 -0
- telnyx/types/porting_orders/action_requirement_initiate_params.py +29 -0
- telnyx/types/porting_orders/action_requirement_initiate_response.py +45 -0
- telnyx/types/porting_orders/action_requirement_list_params.py +55 -0
- telnyx/types/porting_orders/action_requirement_list_response.py +41 -0
- telnyx/types/porting_orders/action_share_params.py +15 -0
- telnyx/types/porting_orders/action_share_response.py +39 -0
- telnyx/types/porting_orders/activation_job_list_params.py +15 -0
- telnyx/types/porting_orders/activation_job_retrieve_response.py +12 -0
- telnyx/types/porting_orders/activation_job_update_params.py +21 -0
- telnyx/types/porting_orders/activation_job_update_response.py +12 -0
- telnyx/types/porting_orders/additional_document_create_params.py +20 -0
- telnyx/types/porting_orders/additional_document_create_response.py +42 -0
- telnyx/types/porting_orders/additional_document_list_params.py +45 -0
- telnyx/types/porting_orders/additional_document_list_response.py +38 -0
- telnyx/types/porting_orders/associated_phone_number_create_params.py +22 -0
- telnyx/types/porting_orders/associated_phone_number_create_response.py +12 -0
- telnyx/types/porting_orders/associated_phone_number_delete_response.py +12 -0
- telnyx/types/porting_orders/associated_phone_number_list_params.py +47 -0
- telnyx/types/porting_orders/comment_create_params.py +11 -0
- telnyx/types/porting_orders/comment_create_response.py +31 -0
- telnyx/types/porting_orders/comment_list_params.py +15 -0
- telnyx/types/porting_orders/comment_list_response.py +27 -0
- telnyx/types/porting_orders/phone_number_block_create_params.py +46 -0
- telnyx/types/porting_orders/phone_number_block_create_response.py +12 -0
- telnyx/types/porting_orders/phone_number_block_delete_response.py +12 -0
- telnyx/types/porting_orders/phone_number_block_list_params.py +105 -0
- telnyx/types/porting_orders/phone_number_configuration_create_params.py +20 -0
- telnyx/types/porting_orders/phone_number_configuration_create_response.py +32 -0
- telnyx/types/porting_orders/phone_number_configuration_list_params.py +69 -0
- telnyx/types/porting_orders/phone_number_configuration_list_response.py +28 -0
- telnyx/types/porting_orders/phone_number_extension_create_params.py +53 -0
- telnyx/types/porting_orders/phone_number_extension_create_response.py +12 -0
- telnyx/types/porting_orders/phone_number_extension_delete_response.py +12 -0
- telnyx/types/porting_orders/phone_number_extension_list_params.py +44 -0
- telnyx/types/porting_orders/porting_associated_phone_number.py +51 -0
- telnyx/types/porting_orders/porting_phone_number_block.py +71 -0
- telnyx/types/porting_orders/porting_phone_number_extension.py +68 -0
- telnyx/types/porting_orders/verification_code_list_params.py +38 -0
- telnyx/types/porting_orders/verification_code_list_response.py +31 -0
- telnyx/types/porting_orders/verification_code_send_params.py +15 -0
- telnyx/types/porting_orders/verification_code_verify_params.py +18 -0
- telnyx/types/porting_orders/verification_code_verify_response.py +35 -0
- telnyx/types/porting_orders_activation_job.py +46 -0
- telnyx/types/porting_phone_number_list_params.py +33 -0
- telnyx/types/porting_phone_number_list_response.py +69 -0
- telnyx/types/portout_details.py +98 -0
- telnyx/types/portout_list_params.py +93 -0
- telnyx/types/portout_list_rejection_codes_params.py +26 -0
- telnyx/types/portout_list_rejection_codes_response.py +19 -0
- telnyx/types/portout_retrieve_response.py +12 -0
- telnyx/types/portout_update_status_params.py +20 -0
- telnyx/types/portout_update_status_response.py +12 -0
- telnyx/types/portouts/__init__.py +20 -0
- telnyx/types/portouts/comment_create_params.py +12 -0
- telnyx/types/portouts/comment_create_response.py +33 -0
- telnyx/types/portouts/comment_list_response.py +36 -0
- telnyx/types/portouts/event_list_params.py +49 -0
- telnyx/types/portouts/event_list_response.py +172 -0
- telnyx/types/portouts/event_retrieve_response.py +175 -0
- telnyx/types/portouts/export_portouts_csv_report.py +42 -0
- telnyx/types/portouts/export_portouts_csv_report_param.py +44 -0
- telnyx/types/portouts/portout_report.py +39 -0
- telnyx/types/portouts/report_create_params.py +17 -0
- telnyx/types/portouts/report_create_response.py +12 -0
- telnyx/types/portouts/report_list_params.py +34 -0
- telnyx/types/portouts/report_retrieve_response.py +12 -0
- telnyx/types/portouts/supporting_document_create_params.py +21 -0
- telnyx/types/portouts/supporting_document_create_response.py +34 -0
- telnyx/types/portouts/supporting_document_list_response.py +34 -0
- telnyx/types/private_wireless_gateway.py +42 -0
- telnyx/types/private_wireless_gateway_create_params.py +21 -0
- telnyx/types/private_wireless_gateway_create_response.py +12 -0
- telnyx/types/private_wireless_gateway_delete_response.py +12 -0
- telnyx/types/private_wireless_gateway_list_params.py +32 -0
- telnyx/types/private_wireless_gateway_retrieve_response.py +12 -0
- telnyx/types/private_wireless_gateway_status.py +32 -0
- telnyx/types/public_internet_gateway_create_params.py +18 -0
- telnyx/types/public_internet_gateway_create_response.py +21 -0
- telnyx/types/public_internet_gateway_delete_response.py +21 -0
- telnyx/types/public_internet_gateway_list_params.py +31 -0
- telnyx/types/public_internet_gateway_list_response.py +16 -0
- telnyx/types/public_internet_gateway_retrieve_response.py +21 -0
- telnyx/types/push_credential.py +39 -0
- telnyx/types/push_credential_response.py +14 -0
- telnyx/types/pwg_assigned_resources_summary.py +19 -0
- telnyx/types/queue_retrieve_response.py +40 -0
- telnyx/types/queues/__init__.py +8 -0
- telnyx/types/queues/call_list_params.py +15 -0
- telnyx/types/queues/call_list_response.py +51 -0
- telnyx/types/queues/call_retrieve_response.py +55 -0
- telnyx/types/queues/call_update_params.py +14 -0
- telnyx/types/rcs_agent.py +37 -0
- telnyx/types/rcs_agent_message.py +83 -0
- telnyx/types/rcs_agent_message_param.py +85 -0
- telnyx/types/rcs_agent_response.py +12 -0
- telnyx/types/rcs_card_content.py +37 -0
- telnyx/types/rcs_card_content_param.py +38 -0
- telnyx/types/rcs_content_info.py +18 -0
- telnyx/types/rcs_content_info_param.py +18 -0
- telnyx/types/rcs_suggestion.py +138 -0
- telnyx/types/rcs_suggestion_param.py +140 -0
- telnyx/types/record.py +21 -0
- telnyx/types/recording_delete_response.py +12 -0
- telnyx/types/recording_list_params.py +79 -0
- telnyx/types/recording_response_data.py +74 -0
- telnyx/types/recording_retrieve_response.py +12 -0
- telnyx/types/recording_transcription.py +36 -0
- telnyx/types/recording_transcription_delete_response.py +12 -0
- telnyx/types/recording_transcription_list_response.py +32 -0
- telnyx/types/recording_transcription_retrieve_response.py +12 -0
- telnyx/types/recordings/__init__.py +5 -0
- telnyx/types/recordings/action_delete_params.py +14 -0
- telnyx/types/region_list_response.py +31 -0
- telnyx/types/regulatory_requirement_retrieve_params.py +38 -0
- telnyx/types/regulatory_requirement_retrieve_response.py +58 -0
- telnyx/types/replaced_link_click_webhook_event.py +32 -0
- telnyx/types/replaced_link_click_webhook_event1.py +32 -0
- telnyx/types/report_list_mdrs_params.py +36 -0
- telnyx/types/report_list_mdrs_response.py +65 -0
- telnyx/types/report_list_wdrs_params.py +52 -0
- telnyx/types/report_list_wdrs_response.py +83 -0
- telnyx/types/reports/__init__.py +15 -0
- telnyx/types/reports/cdr_usage_report_fetch_sync_params.py +23 -0
- telnyx/types/reports/cdr_usage_report_fetch_sync_response.py +42 -0
- telnyx/types/reports/mdr_usage_report.py +66 -0
- telnyx/types/reports/mdr_usage_report_create_params.py +21 -0
- telnyx/types/reports/mdr_usage_report_create_response.py +12 -0
- telnyx/types/reports/mdr_usage_report_delete_response.py +12 -0
- telnyx/types/reports/mdr_usage_report_fetch_sync_params.py +22 -0
- telnyx/types/reports/mdr_usage_report_fetch_sync_response.py +12 -0
- telnyx/types/reports/mdr_usage_report_list_params.py +15 -0
- telnyx/types/reports/mdr_usage_report_retrieve_response.py +12 -0
- telnyx/types/reports/pagination_meta_reporting.py +17 -0
- telnyx/types/requirement_group.py +47 -0
- telnyx/types/requirement_group_create_params.py +27 -0
- telnyx/types/requirement_group_list_params.py +38 -0
- telnyx/types/requirement_group_list_response.py +10 -0
- telnyx/types/requirement_group_update_params.py +23 -0
- telnyx/types/requirement_list_params.py +58 -0
- telnyx/types/requirement_list_response.py +46 -0
- telnyx/types/requirement_retrieve_response.py +50 -0
- telnyx/types/requirement_type_list_params.py +36 -0
- telnyx/types/requirement_type_list_response.py +15 -0
- telnyx/types/requirement_type_retrieve_response.py +12 -0
- telnyx/types/reserved_phone_number.py +38 -0
- telnyx/types/reserved_phone_number_param.py +11 -0
- telnyx/types/room.py +51 -0
- telnyx/types/room_composition.py +77 -0
- telnyx/types/room_composition_create_params.py +43 -0
- telnyx/types/room_composition_create_response.py +12 -0
- telnyx/types/room_composition_list_params.py +50 -0
- telnyx/types/room_composition_retrieve_response.py +12 -0
- telnyx/types/room_create_params.py +37 -0
- telnyx/types/room_create_response.py +12 -0
- telnyx/types/room_list_params.py +64 -0
- telnyx/types/room_participant_list_params.py +84 -0
- telnyx/types/room_participant_retrieve_response.py +12 -0
- telnyx/types/room_recording_delete_bulk_params.py +78 -0
- telnyx/types/room_recording_delete_bulk_response.py +16 -0
- telnyx/types/room_recording_list_params.py +78 -0
- telnyx/types/room_recording_list_response.py +58 -0
- telnyx/types/room_recording_retrieve_response.py +62 -0
- telnyx/types/room_retrieve_params.py +12 -0
- telnyx/types/room_retrieve_response.py +12 -0
- telnyx/types/room_session.py +33 -0
- telnyx/types/room_update_params.py +37 -0
- telnyx/types/room_update_response.py +12 -0
- telnyx/types/rooms/__init__.py +17 -0
- telnyx/types/rooms/action_generate_join_client_token_params.py +21 -0
- telnyx/types/rooms/action_generate_join_client_token_response.py +24 -0
- telnyx/types/rooms/action_refresh_client_token_params.py +17 -0
- telnyx/types/rooms/action_refresh_client_token_response.py +19 -0
- telnyx/types/rooms/session_list_0_params.py +82 -0
- telnyx/types/rooms/session_list_1_params.py +79 -0
- telnyx/types/rooms/session_retrieve_params.py +12 -0
- telnyx/types/rooms/session_retrieve_participants_params.py +87 -0
- telnyx/types/rooms/session_retrieve_response.py +12 -0
- telnyx/types/rooms/sessions/__init__.py +11 -0
- telnyx/types/rooms/sessions/action_end_response.py +15 -0
- telnyx/types/rooms/sessions/action_kick_params.py +21 -0
- telnyx/types/rooms/sessions/action_kick_response.py +15 -0
- telnyx/types/rooms/sessions/action_mute_params.py +21 -0
- telnyx/types/rooms/sessions/action_mute_response.py +15 -0
- telnyx/types/rooms/sessions/action_unmute_params.py +21 -0
- telnyx/types/rooms/sessions/action_unmute_response.py +15 -0
- telnyx/types/s3_configuration_data.py +25 -0
- telnyx/types/s3_configuration_data_param.py +24 -0
- telnyx/types/service_plan.py +7 -0
- telnyx/types/seti_retrieve_black_box_test_results_params.py +19 -0
- telnyx/types/seti_retrieve_black_box_test_results_response.py +30 -0
- telnyx/types/settings_param.py +26 -0
- telnyx/types/shared/__init__.py +23 -0
- telnyx/types/shared/api_error.py +27 -0
- telnyx/types/shared/available_phone_numbers_metadata.py +13 -0
- telnyx/types/shared/connections_pagination_meta.py +17 -0
- telnyx/types/shared/doc_reqs_requirement_type.py +62 -0
- telnyx/types/shared/hosted_number.py +35 -0
- telnyx/types/shared/inbound_message_payload.py +213 -0
- telnyx/types/shared/messaging_feature_set.py +23 -0
- telnyx/types/shared/messaging_hosted_number_order.py +42 -0
- telnyx/types/shared/messaging_pagination_meta.py +15 -0
- telnyx/types/shared/metadata.py +24 -0
- telnyx/types/shared/number_health_metrics.py +23 -0
- telnyx/types/shared/phone_number_with_messaging_settings.py +67 -0
- telnyx/types/shared/porting_order_status.py +30 -0
- telnyx/types/shared/porting_orders_exception_type.py +40 -0
- telnyx/types/shared/room_participant.py +30 -0
- telnyx/types/shared/short_code.py +34 -0
- telnyx/types/shared/sim_card_status.py +40 -0
- telnyx/types/shared/simple_sim_card.py +104 -0
- telnyx/types/shared/sub_number_order_regulatory_requirement_with_value.py +23 -0
- telnyx/types/shared_params/__init__.py +3 -0
- telnyx/types/shared_params/sim_card_status.py +11 -0
- telnyx/types/short_code_list_params.py +36 -0
- telnyx/types/short_code_retrieve_response.py +12 -0
- telnyx/types/short_code_update_params.py +16 -0
- telnyx/types/short_code_update_response.py +12 -0
- telnyx/types/sim_card.py +203 -0
- telnyx/types/sim_card_data_usage_notification.py +37 -0
- telnyx/types/sim_card_data_usage_notification_create_params.py +23 -0
- telnyx/types/sim_card_data_usage_notification_create_response.py +13 -0
- telnyx/types/sim_card_data_usage_notification_delete_response.py +13 -0
- telnyx/types/sim_card_data_usage_notification_list_params.py +20 -0
- telnyx/types/sim_card_data_usage_notification_retrieve_response.py +13 -0
- telnyx/types/sim_card_data_usage_notification_update_params.py +23 -0
- telnyx/types/sim_card_data_usage_notification_update_response.py +13 -0
- telnyx/types/sim_card_delete_params.py +15 -0
- telnyx/types/sim_card_delete_response.py +12 -0
- telnyx/types/sim_card_get_activation_code_response.py +18 -0
- telnyx/types/sim_card_get_device_details_response.py +32 -0
- telnyx/types/sim_card_get_public_ip_response.py +35 -0
- telnyx/types/sim_card_group.py +51 -0
- telnyx/types/sim_card_group_create_params.py +23 -0
- telnyx/types/sim_card_group_create_response.py +12 -0
- telnyx/types/sim_card_group_delete_response.py +12 -0
- telnyx/types/sim_card_group_list_params.py +26 -0
- telnyx/types/sim_card_group_list_response.py +54 -0
- telnyx/types/sim_card_group_retrieve_params.py +12 -0
- telnyx/types/sim_card_group_retrieve_response.py +12 -0
- telnyx/types/sim_card_group_update_params.py +23 -0
- telnyx/types/sim_card_group_update_response.py +12 -0
- telnyx/types/sim_card_groups/__init__.py +23 -0
- telnyx/types/sim_card_groups/action_list_params.py +34 -0
- telnyx/types/sim_card_groups/action_remove_private_wireless_gateway_response.py +17 -0
- telnyx/types/sim_card_groups/action_remove_wireless_blocklist_response.py +17 -0
- telnyx/types/sim_card_groups/action_retrieve_response.py +17 -0
- telnyx/types/sim_card_groups/action_set_private_wireless_gateway_params.py +12 -0
- telnyx/types/sim_card_groups/action_set_private_wireless_gateway_response.py +17 -0
- telnyx/types/sim_card_groups/action_set_wireless_blocklist_params.py +12 -0
- telnyx/types/sim_card_groups/action_set_wireless_blocklist_response.py +17 -0
- telnyx/types/sim_card_groups/sim_card_group_action.py +51 -0
- telnyx/types/sim_card_list_params.py +61 -0
- telnyx/types/sim_card_list_wireless_connectivity_logs_params.py +17 -0
- telnyx/types/sim_card_list_wireless_connectivity_logs_response.py +103 -0
- telnyx/types/sim_card_order.py +95 -0
- telnyx/types/sim_card_order_create_params.py +15 -0
- telnyx/types/sim_card_order_create_response.py +12 -0
- telnyx/types/sim_card_order_list_params.py +82 -0
- telnyx/types/sim_card_order_preview_preview_params.py +18 -0
- telnyx/types/sim_card_order_preview_preview_response.py +49 -0
- telnyx/types/sim_card_order_retrieve_response.py +12 -0
- telnyx/types/sim_card_retrieve_params.py +19 -0
- telnyx/types/sim_card_retrieve_response.py +12 -0
- telnyx/types/sim_card_update_params.py +39 -0
- telnyx/types/sim_card_update_response.py +12 -0
- telnyx/types/sim_cards/__init__.py +21 -0
- telnyx/types/sim_cards/action_bulk_set_public_ips_params.py +13 -0
- telnyx/types/sim_cards/action_bulk_set_public_ips_response.py +46 -0
- telnyx/types/sim_cards/action_disable_response.py +16 -0
- telnyx/types/sim_cards/action_enable_response.py +16 -0
- telnyx/types/sim_cards/action_list_params.py +43 -0
- telnyx/types/sim_cards/action_remove_public_ip_response.py +16 -0
- telnyx/types/sim_cards/action_retrieve_response.py +16 -0
- telnyx/types/sim_cards/action_set_public_ip_params.py +15 -0
- telnyx/types/sim_cards/action_set_public_ip_response.py +16 -0
- telnyx/types/sim_cards/action_set_standby_response.py +16 -0
- telnyx/types/sim_cards/action_validate_registration_codes_params.py +13 -0
- telnyx/types/sim_cards/action_validate_registration_codes_response.py +24 -0
- telnyx/types/sim_cards/sim_card_action.py +58 -0
- telnyx/types/sip_header.py +15 -0
- telnyx/types/sip_header_param.py +15 -0
- telnyx/types/siprec_connector_create_params.py +23 -0
- telnyx/types/siprec_connector_create_response.py +33 -0
- telnyx/types/siprec_connector_retrieve_response.py +33 -0
- telnyx/types/siprec_connector_update_params.py +23 -0
- telnyx/types/siprec_connector_update_response.py +33 -0
- telnyx/types/sound_modifications_param.py +26 -0
- telnyx/types/speech_to_text_transcribe_params.py +38 -0
- telnyx/types/storage/__init__.py +17 -0
- telnyx/types/storage/bucket_create_presigned_url_params.py +16 -0
- telnyx/types/storage/bucket_create_presigned_url_response.py +23 -0
- telnyx/types/storage/buckets/__init__.py +13 -0
- telnyx/types/storage/buckets/pagination_meta_simple.py +17 -0
- telnyx/types/storage/buckets/ssl_certificate.py +48 -0
- telnyx/types/storage/buckets/ssl_certificate_create_params.py +17 -0
- telnyx/types/storage/buckets/ssl_certificate_create_response.py +12 -0
- telnyx/types/storage/buckets/ssl_certificate_delete_response.py +12 -0
- telnyx/types/storage/buckets/ssl_certificate_retrieve_response.py +12 -0
- telnyx/types/storage/buckets/usage_get_api_usage_params.py +32 -0
- telnyx/types/storage/buckets/usage_get_api_usage_response.py +66 -0
- telnyx/types/storage/buckets/usage_get_bucket_usage_response.py +29 -0
- telnyx/types/storage/migration_create_params.py +27 -0
- telnyx/types/storage/migration_create_response.py +12 -0
- telnyx/types/storage/migration_list_response.py +15 -0
- telnyx/types/storage/migration_params.py +53 -0
- telnyx/types/storage/migration_retrieve_response.py +12 -0
- telnyx/types/storage/migration_source_create_params.py +37 -0
- telnyx/types/storage/migration_source_create_response.py +12 -0
- telnyx/types/storage/migration_source_delete_response.py +12 -0
- telnyx/types/storage/migration_source_list_response.py +15 -0
- telnyx/types/storage/migration_source_params.py +41 -0
- telnyx/types/storage/migration_source_retrieve_response.py +12 -0
- telnyx/types/storage/migrations/__init__.py +5 -0
- telnyx/types/storage/migrations/action_stop_response.py +12 -0
- telnyx/types/storage_list_migration_source_coverage_response.py +23 -0
- telnyx/types/stream_bidirectional_codec.py +7 -0
- telnyx/types/stream_bidirectional_mode.py +7 -0
- telnyx/types/stream_bidirectional_sampling_rate.py +7 -0
- telnyx/types/stream_bidirectional_target_legs.py +7 -0
- telnyx/types/stream_codec.py +7 -0
- telnyx/types/sub_number_order.py +47 -0
- telnyx/types/sub_number_order_cancel_response.py +12 -0
- telnyx/types/sub_number_order_list_params.py +38 -0
- telnyx/types/sub_number_order_list_response.py +15 -0
- telnyx/types/sub_number_order_regulatory_requirement.py +17 -0
- telnyx/types/sub_number_order_retrieve_params.py +25 -0
- telnyx/types/sub_number_order_retrieve_response.py +12 -0
- telnyx/types/sub_number_order_update_params.py +14 -0
- telnyx/types/sub_number_order_update_requirement_group_params.py +12 -0
- telnyx/types/sub_number_order_update_requirement_group_response.py +88 -0
- telnyx/types/sub_number_order_update_response.py +12 -0
- telnyx/types/sub_number_orders_report_create_params.py +31 -0
- telnyx/types/sub_number_orders_report_create_response.py +55 -0
- telnyx/types/sub_number_orders_report_download_response.py +7 -0
- telnyx/types/sub_number_orders_report_retrieve_response.py +55 -0
- telnyx/types/telephony_credential.py +38 -0
- telnyx/types/telephony_credential_create_params.py +20 -0
- telnyx/types/telephony_credential_create_response.py +12 -0
- telnyx/types/telephony_credential_create_token_response.py +7 -0
- telnyx/types/telephony_credential_delete_response.py +12 -0
- telnyx/types/telephony_credential_list_params.py +44 -0
- telnyx/types/telephony_credential_retrieve_response.py +12 -0
- telnyx/types/telephony_credential_update_params.py +20 -0
- telnyx/types/telephony_credential_update_response.py +12 -0
- telnyx/types/texml/__init__.py +24 -0
- telnyx/types/texml/account_retrieve_recordings_json_params.py +30 -0
- telnyx/types/texml/account_retrieve_recordings_json_response.py +36 -0
- telnyx/types/texml/account_retrieve_transcriptions_json_params.py +17 -0
- telnyx/types/texml/account_retrieve_transcriptions_json_response.py +71 -0
- telnyx/types/texml/accounts/__init__.py +37 -0
- telnyx/types/texml/accounts/call_calls_params.py +204 -0
- telnyx/types/texml/accounts/call_calls_response.py +17 -0
- telnyx/types/texml/accounts/call_retrieve_calls_params.py +50 -0
- telnyx/types/texml/accounts/call_retrieve_calls_response.py +101 -0
- telnyx/types/texml/accounts/call_retrieve_response.py +72 -0
- telnyx/types/texml/accounts/call_siprec_json_params.py +61 -0
- telnyx/types/texml/accounts/call_siprec_json_response.py +40 -0
- telnyx/types/texml/accounts/call_streams_json_params.py +37 -0
- telnyx/types/texml/accounts/call_streams_json_response.py +29 -0
- telnyx/types/texml/accounts/call_update_params.py +46 -0
- telnyx/types/texml/accounts/call_update_response.py +72 -0
- telnyx/types/texml/accounts/calls/__init__.py +21 -0
- telnyx/types/texml/accounts/calls/recording_recording_sid_json_params.py +17 -0
- telnyx/types/texml/accounts/calls/recording_recording_sid_json_response.py +58 -0
- telnyx/types/texml/accounts/calls/recordings_json_recordings_json_params.py +43 -0
- telnyx/types/texml/accounts/calls/recordings_json_recordings_json_response.py +58 -0
- telnyx/types/texml/accounts/calls/recordings_json_retrieve_recordings_json_response.py +36 -0
- telnyx/types/texml/accounts/calls/siprec_siprec_sid_json_params.py +21 -0
- telnyx/types/texml/accounts/calls/siprec_siprec_sid_json_response.py +31 -0
- telnyx/types/texml/accounts/calls/stream_streaming_sid_json_params.py +18 -0
- telnyx/types/texml/accounts/calls/stream_streaming_sid_json_response.py +26 -0
- telnyx/types/texml/accounts/conference_retrieve_conferences_params.py +43 -0
- telnyx/types/texml/accounts/conference_retrieve_conferences_response.py +85 -0
- telnyx/types/texml/accounts/conference_retrieve_recordings_json_response.py +36 -0
- telnyx/types/texml/accounts/conference_retrieve_recordings_response.py +94 -0
- telnyx/types/texml/accounts/conference_retrieve_response.py +56 -0
- telnyx/types/texml/accounts/conference_update_params.py +29 -0
- telnyx/types/texml/accounts/conference_update_response.py +56 -0
- telnyx/types/texml/accounts/conferences/__init__.py +12 -0
- telnyx/types/texml/accounts/conferences/participant_participants_params.py +266 -0
- telnyx/types/texml/accounts/conferences/participant_participants_response.py +37 -0
- telnyx/types/texml/accounts/conferences/participant_retrieve_participants_response.py +81 -0
- telnyx/types/texml/accounts/conferences/participant_retrieve_response.py +52 -0
- telnyx/types/texml/accounts/conferences/participant_update_params.py +69 -0
- telnyx/types/texml/accounts/conferences/participant_update_response.py +52 -0
- telnyx/types/texml/accounts/queue_create_params.py +17 -0
- telnyx/types/texml/accounts/queue_create_response.py +36 -0
- telnyx/types/texml/accounts/queue_list_params.py +37 -0
- telnyx/types/texml/accounts/queue_list_response.py +36 -0
- telnyx/types/texml/accounts/queue_retrieve_response.py +36 -0
- telnyx/types/texml/accounts/queue_update_params.py +16 -0
- telnyx/types/texml/accounts/queue_update_response.py +36 -0
- telnyx/types/texml/accounts/recordings/__init__.py +3 -0
- telnyx/types/texml/accounts/transcriptions/__init__.py +7 -0
- telnyx/types/texml/accounts/transcriptions/json_retrieve_recording_transcription_sid_json_response.py +43 -0
- telnyx/types/texml/call_initiate_params.py +163 -0
- telnyx/types/texml/call_initiate_response.py +21 -0
- telnyx/types/texml/call_update_params.py +44 -0
- telnyx/types/texml/call_update_response.py +17 -0
- telnyx/types/texml/texml_get_call_recording_response_body.py +57 -0
- telnyx/types/texml/texml_recording_subresources_uris.py +13 -0
- telnyx/types/texml_application.py +128 -0
- telnyx/types/texml_application_create_params.py +117 -0
- telnyx/types/texml_application_create_response.py +12 -0
- telnyx/types/texml_application_delete_response.py +12 -0
- telnyx/types/texml_application_list_params.py +56 -0
- telnyx/types/texml_application_retrieve_response.py +12 -0
- telnyx/types/texml_application_update_params.py +117 -0
- telnyx/types/texml_application_update_response.py +12 -0
- telnyx/types/texml_secrets_params.py +18 -0
- telnyx/types/texml_secrets_response.py +18 -0
- telnyx/types/text_to_speech_generate_speech_params.py +26 -0
- telnyx/types/text_to_speech_list_voices_params.py +15 -0
- telnyx/types/text_to_speech_list_voices_response.py +29 -0
- telnyx/types/traffic_type.py +7 -0
- telnyx/types/transcription_webhook_event.py +72 -0
- telnyx/types/transcription_webhook_event1.py +72 -0
- telnyx/types/transport_protocol.py +7 -0
- telnyx/types/unsafe_unwrap_webhook_event.py +130 -0
- telnyx/types/unwrap_webhook_event.py +130 -0
- telnyx/types/update_regulatory_requirement_param.py +19 -0
- telnyx/types/url_shortener_settings.py +40 -0
- telnyx/types/url_shortener_settings_param.py +40 -0
- telnyx/types/usage_payment_method.py +7 -0
- telnyx/types/usage_report_get_options_params.py +18 -0
- telnyx/types/usage_report_get_options_response.py +49 -0
- telnyx/types/usage_report_list_params.py +64 -0
- telnyx/types/usage_report_list_response.py +8 -0
- telnyx/types/user_address.py +77 -0
- telnyx/types/user_address_create_params.py +80 -0
- telnyx/types/user_address_create_response.py +12 -0
- telnyx/types/user_address_list_params.py +93 -0
- telnyx/types/user_address_retrieve_response.py +12 -0
- telnyx/types/user_tag_list_params.py +25 -0
- telnyx/types/user_tag_list_response.py +31 -0
- telnyx/types/verification.py +42 -0
- telnyx/types/verification_retrieve_response.py +10 -0
- telnyx/types/verification_trigger_call_params.py +29 -0
- telnyx/types/verification_trigger_flashcall_params.py +18 -0
- telnyx/types/verification_trigger_sms_params.py +22 -0
- telnyx/types/verifications/__init__.py +7 -0
- telnyx/types/verifications/action_verify_params.py +18 -0
- telnyx/types/verifications/by_phone_number/__init__.py +6 -0
- telnyx/types/verifications/by_phone_number/action_verify_params.py +15 -0
- telnyx/types/verifications/by_phone_number/verify_verification_code_response.py +19 -0
- telnyx/types/verifications/by_phone_number_list_response.py +15 -0
- telnyx/types/verifications/verify_meta.py +15 -0
- telnyx/types/verified_number.py +17 -0
- telnyx/types/verified_number_create_params.py +23 -0
- telnyx/types/verified_number_create_response.py +13 -0
- telnyx/types/verified_number_data_wrapper.py +12 -0
- telnyx/types/verified_number_list_params.py +15 -0
- telnyx/types/verified_numbers/__init__.py +7 -0
- telnyx/types/verified_numbers/action_submit_verification_code_params.py +11 -0
- telnyx/types/verify_profile.py +145 -0
- telnyx/types/verify_profile_create_params.py +116 -0
- telnyx/types/verify_profile_create_template_params.py +12 -0
- telnyx/types/verify_profile_data.py +12 -0
- telnyx/types/verify_profile_list_params.py +25 -0
- telnyx/types/verify_profile_message_template_response.py +13 -0
- telnyx/types/verify_profile_retrieve_templates_response.py +14 -0
- telnyx/types/verify_profile_update_params.py +116 -0
- telnyx/types/verify_profile_update_template_params.py +12 -0
- telnyx/types/video_region.py +53 -0
- telnyx/types/video_region_param.py +55 -0
- telnyx/types/virtual_cross_connect_create_params.py +95 -0
- telnyx/types/virtual_cross_connect_create_response.py +126 -0
- telnyx/types/virtual_cross_connect_delete_response.py +126 -0
- telnyx/types/virtual_cross_connect_list_params.py +31 -0
- telnyx/types/virtual_cross_connect_list_response.py +122 -0
- telnyx/types/virtual_cross_connect_retrieve_response.py +126 -0
- telnyx/types/virtual_cross_connect_update_params.py +41 -0
- telnyx/types/virtual_cross_connect_update_response.py +126 -0
- telnyx/types/virtual_cross_connects_coverage_list_params.py +81 -0
- telnyx/types/virtual_cross_connects_coverage_list_response.py +51 -0
- telnyx/types/webhook_api_version.py +7 -0
- telnyx/types/webhook_delivery_list_params.py +102 -0
- telnyx/types/webhook_delivery_list_response.py +114 -0
- telnyx/types/webhook_delivery_retrieve_response.py +120 -0
- telnyx/types/well_known_retrieve_authorization_server_metadata_response.py +42 -0
- telnyx/types/well_known_retrieve_protected_resource_metadata_response.py +15 -0
- telnyx/types/whatsapp_media.py +21 -0
- telnyx/types/whatsapp_media_param.py +21 -0
- telnyx/types/wireguard_interface_create_params.py +21 -0
- telnyx/types/wireguard_interface_create_response.py +40 -0
- telnyx/types/wireguard_interface_delete_response.py +40 -0
- telnyx/types/wireguard_interface_list_params.py +31 -0
- telnyx/types/wireguard_interface_list_response.py +36 -0
- telnyx/types/wireguard_interface_retrieve_response.py +40 -0
- telnyx/types/wireguard_peer_create_params.py +18 -0
- telnyx/types/wireguard_peer_create_response.py +30 -0
- telnyx/types/wireguard_peer_delete_response.py +30 -0
- telnyx/types/wireguard_peer_list_params.py +31 -0
- telnyx/types/wireguard_peer_list_response.py +25 -0
- telnyx/types/wireguard_peer_patch.py +15 -0
- telnyx/types/wireguard_peer_retrieve_config_response.py +7 -0
- telnyx/types/wireguard_peer_retrieve_response.py +30 -0
- telnyx/types/wireguard_peer_update_params.py +15 -0
- telnyx/types/wireguard_peer_update_response.py +30 -0
- telnyx/types/wireless/__init__.py +17 -0
- telnyx/types/wireless/detail_records_report_create_params.py +15 -0
- telnyx/types/wireless/detail_records_report_create_response.py +12 -0
- telnyx/types/wireless/detail_records_report_delete_response.py +12 -0
- telnyx/types/wireless/detail_records_report_list_params.py +17 -0
- telnyx/types/wireless/detail_records_report_list_response.py +12 -0
- telnyx/types/wireless/detail_records_report_retrieve_response.py +12 -0
- telnyx/types/wireless/wdr_report.py +33 -0
- telnyx/types/wireless_blocklist.py +30 -0
- telnyx/types/wireless_blocklist_create_params.py +20 -0
- telnyx/types/wireless_blocklist_create_response.py +12 -0
- telnyx/types/wireless_blocklist_delete_response.py +12 -0
- telnyx/types/wireless_blocklist_list_params.py +26 -0
- telnyx/types/wireless_blocklist_retrieve_response.py +12 -0
- telnyx/types/wireless_blocklist_update_params.py +20 -0
- telnyx/types/wireless_blocklist_update_response.py +12 -0
- telnyx/types/wireless_blocklist_value_list_params.py +15 -0
- telnyx/types/wireless_blocklist_value_list_response.py +38 -0
- telnyx/types/wireless_retrieve_regions_params.py +15 -0
- telnyx/types/wireless_retrieve_regions_response.py +26 -0
- telnyx-4.5.0.dist-info/METADATA +561 -0
- telnyx-4.5.0.dist-info/RECORD +2118 -0
- telnyx-4.5.0.dist-info/WHEEL +4 -0
- telnyx-4.5.0.dist-info/licenses/LICENSE +7 -0
|
@@ -0,0 +1,1691 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
import httpx
|
|
8
|
+
|
|
9
|
+
from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
|
|
10
|
+
from ...._utils import maybe_transform, async_maybe_transform
|
|
11
|
+
from ...._compat import cached_property
|
|
12
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
13
|
+
from ...._response import (
|
|
14
|
+
to_raw_response_wrapper,
|
|
15
|
+
to_streamed_response_wrapper,
|
|
16
|
+
async_to_raw_response_wrapper,
|
|
17
|
+
async_to_streamed_response_wrapper,
|
|
18
|
+
)
|
|
19
|
+
from ....pagination import SyncPerPagePaginationV2, AsyncPerPagePaginationV2
|
|
20
|
+
from ...._base_client import AsyncPaginator, make_request_options
|
|
21
|
+
from .external_vetting import (
|
|
22
|
+
ExternalVettingResource,
|
|
23
|
+
AsyncExternalVettingResource,
|
|
24
|
+
ExternalVettingResourceWithRawResponse,
|
|
25
|
+
AsyncExternalVettingResourceWithRawResponse,
|
|
26
|
+
ExternalVettingResourceWithStreamingResponse,
|
|
27
|
+
AsyncExternalVettingResourceWithStreamingResponse,
|
|
28
|
+
)
|
|
29
|
+
from ....types.messaging_10dlc import (
|
|
30
|
+
Vertical,
|
|
31
|
+
EntityType,
|
|
32
|
+
StockExchange,
|
|
33
|
+
AltBusinessIDType,
|
|
34
|
+
BrandIdentityStatus,
|
|
35
|
+
brand_list_params,
|
|
36
|
+
brand_create_params,
|
|
37
|
+
brand_update_params,
|
|
38
|
+
brand_verify_sms_otp_params,
|
|
39
|
+
brand_trigger_sms_otp_params,
|
|
40
|
+
)
|
|
41
|
+
from ....types.messaging_10dlc.vertical import Vertical
|
|
42
|
+
from ....types.messaging_10dlc.entity_type import EntityType
|
|
43
|
+
from ....types.messaging_10dlc.telnyx_brand import TelnyxBrand
|
|
44
|
+
from ....types.messaging_10dlc.stock_exchange import StockExchange
|
|
45
|
+
from ....types.messaging_10dlc.brand_list_response import BrandListResponse
|
|
46
|
+
from ....types.messaging_10dlc.alt_business_id_type import AltBusinessIDType
|
|
47
|
+
from ....types.messaging_10dlc.brand_identity_status import BrandIdentityStatus
|
|
48
|
+
from ....types.messaging_10dlc.brand_retrieve_response import BrandRetrieveResponse
|
|
49
|
+
from ....types.messaging_10dlc.brand_get_feedback_response import BrandGetFeedbackResponse
|
|
50
|
+
from ....types.messaging_10dlc.brand_trigger_sms_otp_response import BrandTriggerSMSOtpResponse
|
|
51
|
+
from ....types.messaging_10dlc.brand_retrieve_sms_otp_status_response import BrandRetrieveSMSOtpStatusResponse
|
|
52
|
+
|
|
53
|
+
__all__ = ["BrandResource", "AsyncBrandResource"]
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class BrandResource(SyncAPIResource):
|
|
57
|
+
@cached_property
|
|
58
|
+
def external_vetting(self) -> ExternalVettingResource:
|
|
59
|
+
return ExternalVettingResource(self._client)
|
|
60
|
+
|
|
61
|
+
@cached_property
|
|
62
|
+
def with_raw_response(self) -> BrandResourceWithRawResponse:
|
|
63
|
+
"""
|
|
64
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
65
|
+
the raw response object instead of the parsed content.
|
|
66
|
+
|
|
67
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
|
|
68
|
+
"""
|
|
69
|
+
return BrandResourceWithRawResponse(self)
|
|
70
|
+
|
|
71
|
+
@cached_property
|
|
72
|
+
def with_streaming_response(self) -> BrandResourceWithStreamingResponse:
|
|
73
|
+
"""
|
|
74
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
75
|
+
|
|
76
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#with_streaming_response
|
|
77
|
+
"""
|
|
78
|
+
return BrandResourceWithStreamingResponse(self)
|
|
79
|
+
|
|
80
|
+
def create(
|
|
81
|
+
self,
|
|
82
|
+
*,
|
|
83
|
+
country: str,
|
|
84
|
+
display_name: str,
|
|
85
|
+
email: str,
|
|
86
|
+
entity_type: EntityType,
|
|
87
|
+
vertical: Vertical,
|
|
88
|
+
business_contact_email: str | Omit = omit,
|
|
89
|
+
city: str | Omit = omit,
|
|
90
|
+
company_name: str | Omit = omit,
|
|
91
|
+
ein: str | Omit = omit,
|
|
92
|
+
first_name: str | Omit = omit,
|
|
93
|
+
ip_address: str | Omit = omit,
|
|
94
|
+
is_reseller: bool | Omit = omit,
|
|
95
|
+
last_name: str | Omit = omit,
|
|
96
|
+
mobile_phone: str | Omit = omit,
|
|
97
|
+
mock: bool | Omit = omit,
|
|
98
|
+
phone: str | Omit = omit,
|
|
99
|
+
postal_code: str | Omit = omit,
|
|
100
|
+
state: str | Omit = omit,
|
|
101
|
+
stock_exchange: StockExchange | Omit = omit,
|
|
102
|
+
stock_symbol: str | Omit = omit,
|
|
103
|
+
street: str | Omit = omit,
|
|
104
|
+
webhook_failover_url: str | Omit = omit,
|
|
105
|
+
webhook_url: str | Omit = omit,
|
|
106
|
+
website: str | Omit = omit,
|
|
107
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
108
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
109
|
+
extra_headers: Headers | None = None,
|
|
110
|
+
extra_query: Query | None = None,
|
|
111
|
+
extra_body: Body | None = None,
|
|
112
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
113
|
+
) -> TelnyxBrand:
|
|
114
|
+
"""This endpoint is used to create a new brand.
|
|
115
|
+
|
|
116
|
+
A brand is an entity created by The
|
|
117
|
+
Campaign Registry (TCR) that represents an organization or a company. It is this
|
|
118
|
+
entity that TCR created campaigns will be associated with. Each brand creation
|
|
119
|
+
will entail an upfront, non-refundable $4 expense.
|
|
120
|
+
|
|
121
|
+
Args:
|
|
122
|
+
country: ISO2 2 characters country code. Example: US - United States
|
|
123
|
+
|
|
124
|
+
display_name: Display name, marketing name, or DBA name of the brand.
|
|
125
|
+
|
|
126
|
+
email: Valid email address of brand support contact.
|
|
127
|
+
|
|
128
|
+
entity_type: Entity type behind the brand. This is the form of business establishment.
|
|
129
|
+
|
|
130
|
+
vertical: Vertical or industry segment of the brand or campaign.
|
|
131
|
+
|
|
132
|
+
business_contact_email: Business contact email.
|
|
133
|
+
|
|
134
|
+
Required if `entityType` is `PUBLIC_PROFIT`. Otherwise, it is recommended to
|
|
135
|
+
either omit this field or set it to `null`.
|
|
136
|
+
|
|
137
|
+
city: City name
|
|
138
|
+
|
|
139
|
+
company_name: (Required for Non-profit/private/public) Legal company name.
|
|
140
|
+
|
|
141
|
+
ein: (Required for Non-profit) Government assigned corporate tax ID. EIN is 9-digits
|
|
142
|
+
in U.S.
|
|
143
|
+
|
|
144
|
+
first_name: First name of business contact.
|
|
145
|
+
|
|
146
|
+
ip_address: IP address of the browser requesting to create brand identity.
|
|
147
|
+
|
|
148
|
+
last_name: Last name of business contact.
|
|
149
|
+
|
|
150
|
+
mobile_phone: Valid mobile phone number in e.164 international format.
|
|
151
|
+
|
|
152
|
+
mock: Mock brand for testing purposes. Defaults to false.
|
|
153
|
+
|
|
154
|
+
phone: Valid phone number in e.164 international format.
|
|
155
|
+
|
|
156
|
+
postal_code: Postal codes. Use 5 digit zipcode for United States
|
|
157
|
+
|
|
158
|
+
state: State. Must be 2 letters code for United States.
|
|
159
|
+
|
|
160
|
+
stock_exchange: (Required for public company) stock exchange.
|
|
161
|
+
|
|
162
|
+
stock_symbol: (Required for public company) stock symbol.
|
|
163
|
+
|
|
164
|
+
street: Street number and name.
|
|
165
|
+
|
|
166
|
+
webhook_failover_url: Webhook failover URL for brand status updates.
|
|
167
|
+
|
|
168
|
+
webhook_url: Webhook URL for brand status updates.
|
|
169
|
+
|
|
170
|
+
website: Brand website URL.
|
|
171
|
+
|
|
172
|
+
extra_headers: Send extra headers
|
|
173
|
+
|
|
174
|
+
extra_query: Add additional query parameters to the request
|
|
175
|
+
|
|
176
|
+
extra_body: Add additional JSON properties to the request
|
|
177
|
+
|
|
178
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
179
|
+
"""
|
|
180
|
+
return self._post(
|
|
181
|
+
"/10dlc/brand",
|
|
182
|
+
body=maybe_transform(
|
|
183
|
+
{
|
|
184
|
+
"country": country,
|
|
185
|
+
"display_name": display_name,
|
|
186
|
+
"email": email,
|
|
187
|
+
"entity_type": entity_type,
|
|
188
|
+
"vertical": vertical,
|
|
189
|
+
"business_contact_email": business_contact_email,
|
|
190
|
+
"city": city,
|
|
191
|
+
"company_name": company_name,
|
|
192
|
+
"ein": ein,
|
|
193
|
+
"first_name": first_name,
|
|
194
|
+
"ip_address": ip_address,
|
|
195
|
+
"is_reseller": is_reseller,
|
|
196
|
+
"last_name": last_name,
|
|
197
|
+
"mobile_phone": mobile_phone,
|
|
198
|
+
"mock": mock,
|
|
199
|
+
"phone": phone,
|
|
200
|
+
"postal_code": postal_code,
|
|
201
|
+
"state": state,
|
|
202
|
+
"stock_exchange": stock_exchange,
|
|
203
|
+
"stock_symbol": stock_symbol,
|
|
204
|
+
"street": street,
|
|
205
|
+
"webhook_failover_url": webhook_failover_url,
|
|
206
|
+
"webhook_url": webhook_url,
|
|
207
|
+
"website": website,
|
|
208
|
+
},
|
|
209
|
+
brand_create_params.BrandCreateParams,
|
|
210
|
+
),
|
|
211
|
+
options=make_request_options(
|
|
212
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
213
|
+
),
|
|
214
|
+
cast_to=TelnyxBrand,
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
def retrieve(
|
|
218
|
+
self,
|
|
219
|
+
brand_id: str,
|
|
220
|
+
*,
|
|
221
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
222
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
223
|
+
extra_headers: Headers | None = None,
|
|
224
|
+
extra_query: Query | None = None,
|
|
225
|
+
extra_body: Body | None = None,
|
|
226
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
227
|
+
) -> BrandRetrieveResponse:
|
|
228
|
+
"""
|
|
229
|
+
Retrieve a brand by `brandId`.
|
|
230
|
+
|
|
231
|
+
Args:
|
|
232
|
+
extra_headers: Send extra headers
|
|
233
|
+
|
|
234
|
+
extra_query: Add additional query parameters to the request
|
|
235
|
+
|
|
236
|
+
extra_body: Add additional JSON properties to the request
|
|
237
|
+
|
|
238
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
239
|
+
"""
|
|
240
|
+
if not brand_id:
|
|
241
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
242
|
+
return self._get(
|
|
243
|
+
f"/10dlc/brand/{brand_id}",
|
|
244
|
+
options=make_request_options(
|
|
245
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
246
|
+
),
|
|
247
|
+
cast_to=BrandRetrieveResponse,
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
def update(
|
|
251
|
+
self,
|
|
252
|
+
brand_id: str,
|
|
253
|
+
*,
|
|
254
|
+
country: str,
|
|
255
|
+
display_name: str,
|
|
256
|
+
email: str,
|
|
257
|
+
entity_type: EntityType,
|
|
258
|
+
vertical: Vertical,
|
|
259
|
+
alt_business_id: str | Omit = omit,
|
|
260
|
+
alt_business_id_type: AltBusinessIDType | Omit = omit,
|
|
261
|
+
business_contact_email: str | Omit = omit,
|
|
262
|
+
city: str | Omit = omit,
|
|
263
|
+
company_name: str | Omit = omit,
|
|
264
|
+
ein: str | Omit = omit,
|
|
265
|
+
first_name: str | Omit = omit,
|
|
266
|
+
identity_status: BrandIdentityStatus | Omit = omit,
|
|
267
|
+
ip_address: str | Omit = omit,
|
|
268
|
+
is_reseller: bool | Omit = omit,
|
|
269
|
+
last_name: str | Omit = omit,
|
|
270
|
+
phone: str | Omit = omit,
|
|
271
|
+
postal_code: str | Omit = omit,
|
|
272
|
+
state: str | Omit = omit,
|
|
273
|
+
stock_exchange: StockExchange | Omit = omit,
|
|
274
|
+
stock_symbol: str | Omit = omit,
|
|
275
|
+
street: str | Omit = omit,
|
|
276
|
+
webhook_failover_url: str | Omit = omit,
|
|
277
|
+
webhook_url: str | Omit = omit,
|
|
278
|
+
website: str | Omit = omit,
|
|
279
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
280
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
281
|
+
extra_headers: Headers | None = None,
|
|
282
|
+
extra_query: Query | None = None,
|
|
283
|
+
extra_body: Body | None = None,
|
|
284
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
285
|
+
) -> TelnyxBrand:
|
|
286
|
+
"""
|
|
287
|
+
Update a brand's attributes by `brandId`.
|
|
288
|
+
|
|
289
|
+
Args:
|
|
290
|
+
country: ISO2 2 characters country code. Example: US - United States
|
|
291
|
+
|
|
292
|
+
display_name: Display or marketing name of the brand.
|
|
293
|
+
|
|
294
|
+
email: Valid email address of brand support contact.
|
|
295
|
+
|
|
296
|
+
entity_type: Entity type behind the brand. This is the form of business establishment.
|
|
297
|
+
|
|
298
|
+
vertical: Vertical or industry segment of the brand or campaign.
|
|
299
|
+
|
|
300
|
+
alt_business_id: Alternate business identifier such as DUNS, LEI, or GIIN
|
|
301
|
+
|
|
302
|
+
alt_business_id_type: An enumeration.
|
|
303
|
+
|
|
304
|
+
business_contact_email: Business contact email.
|
|
305
|
+
|
|
306
|
+
Required if `entityType` will be changed to `PUBLIC_PROFIT`. Otherwise, it is
|
|
307
|
+
recommended to either omit this field or set it to `null`.
|
|
308
|
+
|
|
309
|
+
city: City name
|
|
310
|
+
|
|
311
|
+
company_name: (Required for Non-profit/private/public) Legal company name.
|
|
312
|
+
|
|
313
|
+
ein: (Required for Non-profit) Government assigned corporate tax ID. EIN is 9-digits
|
|
314
|
+
in U.S.
|
|
315
|
+
|
|
316
|
+
first_name: First name of business contact.
|
|
317
|
+
|
|
318
|
+
identity_status: The verification status of an active brand
|
|
319
|
+
|
|
320
|
+
ip_address: IP address of the browser requesting to create brand identity.
|
|
321
|
+
|
|
322
|
+
last_name: Last name of business contact.
|
|
323
|
+
|
|
324
|
+
phone: Valid phone number in e.164 international format.
|
|
325
|
+
|
|
326
|
+
postal_code: Postal codes. Use 5 digit zipcode for United States
|
|
327
|
+
|
|
328
|
+
state: State. Must be 2 letters code for United States.
|
|
329
|
+
|
|
330
|
+
stock_exchange: (Required for public company) stock exchange.
|
|
331
|
+
|
|
332
|
+
stock_symbol: (Required for public company) stock symbol.
|
|
333
|
+
|
|
334
|
+
street: Street number and name.
|
|
335
|
+
|
|
336
|
+
webhook_failover_url: Webhook failover URL for brand status updates.
|
|
337
|
+
|
|
338
|
+
webhook_url: Webhook URL for brand status updates.
|
|
339
|
+
|
|
340
|
+
website: Brand website URL.
|
|
341
|
+
|
|
342
|
+
extra_headers: Send extra headers
|
|
343
|
+
|
|
344
|
+
extra_query: Add additional query parameters to the request
|
|
345
|
+
|
|
346
|
+
extra_body: Add additional JSON properties to the request
|
|
347
|
+
|
|
348
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
349
|
+
"""
|
|
350
|
+
if not brand_id:
|
|
351
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
352
|
+
return self._put(
|
|
353
|
+
f"/10dlc/brand/{brand_id}",
|
|
354
|
+
body=maybe_transform(
|
|
355
|
+
{
|
|
356
|
+
"country": country,
|
|
357
|
+
"display_name": display_name,
|
|
358
|
+
"email": email,
|
|
359
|
+
"entity_type": entity_type,
|
|
360
|
+
"vertical": vertical,
|
|
361
|
+
"alt_business_id": alt_business_id,
|
|
362
|
+
"alt_business_id_type": alt_business_id_type,
|
|
363
|
+
"business_contact_email": business_contact_email,
|
|
364
|
+
"city": city,
|
|
365
|
+
"company_name": company_name,
|
|
366
|
+
"ein": ein,
|
|
367
|
+
"first_name": first_name,
|
|
368
|
+
"identity_status": identity_status,
|
|
369
|
+
"ip_address": ip_address,
|
|
370
|
+
"is_reseller": is_reseller,
|
|
371
|
+
"last_name": last_name,
|
|
372
|
+
"phone": phone,
|
|
373
|
+
"postal_code": postal_code,
|
|
374
|
+
"state": state,
|
|
375
|
+
"stock_exchange": stock_exchange,
|
|
376
|
+
"stock_symbol": stock_symbol,
|
|
377
|
+
"street": street,
|
|
378
|
+
"webhook_failover_url": webhook_failover_url,
|
|
379
|
+
"webhook_url": webhook_url,
|
|
380
|
+
"website": website,
|
|
381
|
+
},
|
|
382
|
+
brand_update_params.BrandUpdateParams,
|
|
383
|
+
),
|
|
384
|
+
options=make_request_options(
|
|
385
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
386
|
+
),
|
|
387
|
+
cast_to=TelnyxBrand,
|
|
388
|
+
)
|
|
389
|
+
|
|
390
|
+
def list(
|
|
391
|
+
self,
|
|
392
|
+
*,
|
|
393
|
+
brand_id: str | Omit = omit,
|
|
394
|
+
country: str | Omit = omit,
|
|
395
|
+
display_name: str | Omit = omit,
|
|
396
|
+
entity_type: str | Omit = omit,
|
|
397
|
+
page: int | Omit = omit,
|
|
398
|
+
records_per_page: int | Omit = omit,
|
|
399
|
+
sort: Literal[
|
|
400
|
+
"assignedCampaignsCount",
|
|
401
|
+
"-assignedCampaignsCount",
|
|
402
|
+
"brandId",
|
|
403
|
+
"-brandId",
|
|
404
|
+
"createdAt",
|
|
405
|
+
"-createdAt",
|
|
406
|
+
"displayName",
|
|
407
|
+
"-displayName",
|
|
408
|
+
"identityStatus",
|
|
409
|
+
"-identityStatus",
|
|
410
|
+
"status",
|
|
411
|
+
"-status",
|
|
412
|
+
"tcrBrandId",
|
|
413
|
+
"-tcrBrandId",
|
|
414
|
+
]
|
|
415
|
+
| Omit = omit,
|
|
416
|
+
state: str | Omit = omit,
|
|
417
|
+
tcr_brand_id: str | Omit = omit,
|
|
418
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
419
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
420
|
+
extra_headers: Headers | None = None,
|
|
421
|
+
extra_query: Query | None = None,
|
|
422
|
+
extra_body: Body | None = None,
|
|
423
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
424
|
+
) -> SyncPerPagePaginationV2[BrandListResponse]:
|
|
425
|
+
"""
|
|
426
|
+
This endpoint is used to list all brands associated with your organization.
|
|
427
|
+
|
|
428
|
+
Args:
|
|
429
|
+
brand_id: Filter results by the Telnyx Brand id
|
|
430
|
+
|
|
431
|
+
records_per_page: number of records per page. maximum of 500
|
|
432
|
+
|
|
433
|
+
sort: Specifies the sort order for results. If not given, results are sorted by
|
|
434
|
+
createdAt in descending order.
|
|
435
|
+
|
|
436
|
+
tcr_brand_id: Filter results by the TCR Brand id
|
|
437
|
+
|
|
438
|
+
extra_headers: Send extra headers
|
|
439
|
+
|
|
440
|
+
extra_query: Add additional query parameters to the request
|
|
441
|
+
|
|
442
|
+
extra_body: Add additional JSON properties to the request
|
|
443
|
+
|
|
444
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
445
|
+
"""
|
|
446
|
+
return self._get_api_list(
|
|
447
|
+
"/10dlc/brand",
|
|
448
|
+
page=SyncPerPagePaginationV2[BrandListResponse],
|
|
449
|
+
options=make_request_options(
|
|
450
|
+
extra_headers=extra_headers,
|
|
451
|
+
extra_query=extra_query,
|
|
452
|
+
extra_body=extra_body,
|
|
453
|
+
timeout=timeout,
|
|
454
|
+
query=maybe_transform(
|
|
455
|
+
{
|
|
456
|
+
"brand_id": brand_id,
|
|
457
|
+
"country": country,
|
|
458
|
+
"display_name": display_name,
|
|
459
|
+
"entity_type": entity_type,
|
|
460
|
+
"page": page,
|
|
461
|
+
"records_per_page": records_per_page,
|
|
462
|
+
"sort": sort,
|
|
463
|
+
"state": state,
|
|
464
|
+
"tcr_brand_id": tcr_brand_id,
|
|
465
|
+
},
|
|
466
|
+
brand_list_params.BrandListParams,
|
|
467
|
+
),
|
|
468
|
+
),
|
|
469
|
+
model=BrandListResponse,
|
|
470
|
+
)
|
|
471
|
+
|
|
472
|
+
def delete(
|
|
473
|
+
self,
|
|
474
|
+
brand_id: str,
|
|
475
|
+
*,
|
|
476
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
477
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
478
|
+
extra_headers: Headers | None = None,
|
|
479
|
+
extra_query: Query | None = None,
|
|
480
|
+
extra_body: Body | None = None,
|
|
481
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
482
|
+
) -> None:
|
|
483
|
+
"""Delete Brand.
|
|
484
|
+
|
|
485
|
+
This endpoint is used to delete a brand. Note the brand cannot be
|
|
486
|
+
deleted if it contains one or more active campaigns, the campaigns need to be
|
|
487
|
+
inactive and at least 3 months old due to billing purposes.
|
|
488
|
+
|
|
489
|
+
Args:
|
|
490
|
+
extra_headers: Send extra headers
|
|
491
|
+
|
|
492
|
+
extra_query: Add additional query parameters to the request
|
|
493
|
+
|
|
494
|
+
extra_body: Add additional JSON properties to the request
|
|
495
|
+
|
|
496
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
497
|
+
"""
|
|
498
|
+
if not brand_id:
|
|
499
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
500
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
501
|
+
return self._delete(
|
|
502
|
+
f"/10dlc/brand/{brand_id}",
|
|
503
|
+
options=make_request_options(
|
|
504
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
505
|
+
),
|
|
506
|
+
cast_to=NoneType,
|
|
507
|
+
)
|
|
508
|
+
|
|
509
|
+
def get_feedback(
|
|
510
|
+
self,
|
|
511
|
+
brand_id: str,
|
|
512
|
+
*,
|
|
513
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
514
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
515
|
+
extra_headers: Headers | None = None,
|
|
516
|
+
extra_query: Query | None = None,
|
|
517
|
+
extra_body: Body | None = None,
|
|
518
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
519
|
+
) -> BrandGetFeedbackResponse:
|
|
520
|
+
"""Get feedback about a brand by ID.
|
|
521
|
+
|
|
522
|
+
This endpoint can be used after creating or
|
|
523
|
+
revetting a brand.
|
|
524
|
+
|
|
525
|
+
Possible values for `.category[].id`:
|
|
526
|
+
|
|
527
|
+
- `TAX_ID` - Data mismatch related to tax id and its associated properties.
|
|
528
|
+
- `STOCK_SYMBOL` - Non public entity registered as a public for profit entity or
|
|
529
|
+
the stock information mismatch.
|
|
530
|
+
- `GOVERNMENT_ENTITY` - Non government entity registered as a government entity.
|
|
531
|
+
Must be a U.S. government entity.
|
|
532
|
+
- `NONPROFIT` - Not a recognized non-profit entity. No IRS tax-exempt status
|
|
533
|
+
found.
|
|
534
|
+
- `OTHERS` - Details of the data misrepresentation if any.
|
|
535
|
+
|
|
536
|
+
Args:
|
|
537
|
+
extra_headers: Send extra headers
|
|
538
|
+
|
|
539
|
+
extra_query: Add additional query parameters to the request
|
|
540
|
+
|
|
541
|
+
extra_body: Add additional JSON properties to the request
|
|
542
|
+
|
|
543
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
544
|
+
"""
|
|
545
|
+
if not brand_id:
|
|
546
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
547
|
+
return self._get(
|
|
548
|
+
f"/10dlc/brand/feedback/{brand_id}",
|
|
549
|
+
options=make_request_options(
|
|
550
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
551
|
+
),
|
|
552
|
+
cast_to=BrandGetFeedbackResponse,
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
def resend_2fa_email(
|
|
556
|
+
self,
|
|
557
|
+
brand_id: str,
|
|
558
|
+
*,
|
|
559
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
560
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
561
|
+
extra_headers: Headers | None = None,
|
|
562
|
+
extra_query: Query | None = None,
|
|
563
|
+
extra_body: Body | None = None,
|
|
564
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
565
|
+
) -> None:
|
|
566
|
+
"""
|
|
567
|
+
Resend brand 2FA email
|
|
568
|
+
|
|
569
|
+
Args:
|
|
570
|
+
extra_headers: Send extra headers
|
|
571
|
+
|
|
572
|
+
extra_query: Add additional query parameters to the request
|
|
573
|
+
|
|
574
|
+
extra_body: Add additional JSON properties to the request
|
|
575
|
+
|
|
576
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
577
|
+
"""
|
|
578
|
+
if not brand_id:
|
|
579
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
580
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
581
|
+
return self._post(
|
|
582
|
+
f"/10dlc/brand/{brand_id}/2faEmail",
|
|
583
|
+
options=make_request_options(
|
|
584
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
585
|
+
),
|
|
586
|
+
cast_to=NoneType,
|
|
587
|
+
)
|
|
588
|
+
|
|
589
|
+
def retrieve_sms_otp_status(
|
|
590
|
+
self,
|
|
591
|
+
brand_id: str,
|
|
592
|
+
*,
|
|
593
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
594
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
595
|
+
extra_headers: Headers | None = None,
|
|
596
|
+
extra_query: Query | None = None,
|
|
597
|
+
extra_body: Body | None = None,
|
|
598
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
599
|
+
) -> BrandRetrieveSMSOtpStatusResponse:
|
|
600
|
+
"""
|
|
601
|
+
Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand
|
|
602
|
+
verification using the Brand ID.
|
|
603
|
+
|
|
604
|
+
This endpoint allows you to check the delivery and verification status of an OTP
|
|
605
|
+
sent during the Sole Proprietor brand verification process by looking it up with
|
|
606
|
+
the brand ID.
|
|
607
|
+
|
|
608
|
+
The response includes delivery status, verification dates, and detailed delivery
|
|
609
|
+
information.
|
|
610
|
+
|
|
611
|
+
**Note:** This is an alternative to the `/10dlc/brand/smsOtp/{referenceId}`
|
|
612
|
+
endpoint when you have the Brand ID but not the reference ID.
|
|
613
|
+
|
|
614
|
+
Args:
|
|
615
|
+
extra_headers: Send extra headers
|
|
616
|
+
|
|
617
|
+
extra_query: Add additional query parameters to the request
|
|
618
|
+
|
|
619
|
+
extra_body: Add additional JSON properties to the request
|
|
620
|
+
|
|
621
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
622
|
+
"""
|
|
623
|
+
if not brand_id:
|
|
624
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
625
|
+
return self._get(
|
|
626
|
+
f"/10dlc/brand/{brand_id}/smsOtp",
|
|
627
|
+
options=make_request_options(
|
|
628
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
629
|
+
),
|
|
630
|
+
cast_to=BrandRetrieveSMSOtpStatusResponse,
|
|
631
|
+
)
|
|
632
|
+
|
|
633
|
+
def revet(
|
|
634
|
+
self,
|
|
635
|
+
brand_id: str,
|
|
636
|
+
*,
|
|
637
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
638
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
639
|
+
extra_headers: Headers | None = None,
|
|
640
|
+
extra_query: Query | None = None,
|
|
641
|
+
extra_body: Body | None = None,
|
|
642
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
643
|
+
) -> TelnyxBrand:
|
|
644
|
+
"""This operation allows you to revet the brand.
|
|
645
|
+
|
|
646
|
+
However, revetting is allowed once
|
|
647
|
+
after the successful brand registration and thereafter limited to once every 3
|
|
648
|
+
months.
|
|
649
|
+
|
|
650
|
+
Args:
|
|
651
|
+
extra_headers: Send extra headers
|
|
652
|
+
|
|
653
|
+
extra_query: Add additional query parameters to the request
|
|
654
|
+
|
|
655
|
+
extra_body: Add additional JSON properties to the request
|
|
656
|
+
|
|
657
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
658
|
+
"""
|
|
659
|
+
if not brand_id:
|
|
660
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
661
|
+
return self._put(
|
|
662
|
+
f"/10dlc/brand/{brand_id}/revet",
|
|
663
|
+
options=make_request_options(
|
|
664
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
665
|
+
),
|
|
666
|
+
cast_to=TelnyxBrand,
|
|
667
|
+
)
|
|
668
|
+
|
|
669
|
+
def trigger_sms_otp(
|
|
670
|
+
self,
|
|
671
|
+
brand_id: str,
|
|
672
|
+
*,
|
|
673
|
+
pin_sms: str,
|
|
674
|
+
success_sms: str,
|
|
675
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
676
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
677
|
+
extra_headers: Headers | None = None,
|
|
678
|
+
extra_query: Query | None = None,
|
|
679
|
+
extra_body: Body | None = None,
|
|
680
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
681
|
+
) -> BrandTriggerSMSOtpResponse:
|
|
682
|
+
"""
|
|
683
|
+
Trigger or re-trigger an SMS OTP (One-Time Password) for Sole Proprietor brand
|
|
684
|
+
verification.
|
|
685
|
+
|
|
686
|
+
**Important Notes:**
|
|
687
|
+
|
|
688
|
+
- Only allowed for Sole Proprietor (`SOLE_PROPRIETOR`) brands
|
|
689
|
+
- Triggers generation of a one-time password sent to the `mobilePhone` number in
|
|
690
|
+
the brand's profile
|
|
691
|
+
- Campaigns cannot be created until OTP verification is complete
|
|
692
|
+
- US/CA numbers only for real OTPs; mock brands can use non-US/CA numbers for
|
|
693
|
+
testing
|
|
694
|
+
- Returns a `referenceId` that can be used to check OTP status via the GET
|
|
695
|
+
`/10dlc/brand/smsOtp/{referenceId}` endpoint
|
|
696
|
+
|
|
697
|
+
**Use Cases:**
|
|
698
|
+
|
|
699
|
+
- Initial OTP trigger after Sole Proprietor brand creation
|
|
700
|
+
- Re-triggering OTP if the user didn't receive or needs a new code
|
|
701
|
+
|
|
702
|
+
Args:
|
|
703
|
+
pin_sms: SMS message template to send the OTP. Must include `@OTP_PIN@` placeholder which
|
|
704
|
+
will be replaced with the actual PIN
|
|
705
|
+
|
|
706
|
+
success_sms: SMS message to send upon successful OTP verification
|
|
707
|
+
|
|
708
|
+
extra_headers: Send extra headers
|
|
709
|
+
|
|
710
|
+
extra_query: Add additional query parameters to the request
|
|
711
|
+
|
|
712
|
+
extra_body: Add additional JSON properties to the request
|
|
713
|
+
|
|
714
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
715
|
+
"""
|
|
716
|
+
if not brand_id:
|
|
717
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
718
|
+
return self._post(
|
|
719
|
+
f"/10dlc/brand/{brand_id}/smsOtp",
|
|
720
|
+
body=maybe_transform(
|
|
721
|
+
{
|
|
722
|
+
"pin_sms": pin_sms,
|
|
723
|
+
"success_sms": success_sms,
|
|
724
|
+
},
|
|
725
|
+
brand_trigger_sms_otp_params.BrandTriggerSMSOtpParams,
|
|
726
|
+
),
|
|
727
|
+
options=make_request_options(
|
|
728
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
729
|
+
),
|
|
730
|
+
cast_to=BrandTriggerSMSOtpResponse,
|
|
731
|
+
)
|
|
732
|
+
|
|
733
|
+
def verify_sms_otp(
|
|
734
|
+
self,
|
|
735
|
+
brand_id: str,
|
|
736
|
+
*,
|
|
737
|
+
otp_pin: str,
|
|
738
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
739
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
740
|
+
extra_headers: Headers | None = None,
|
|
741
|
+
extra_query: Query | None = None,
|
|
742
|
+
extra_body: Body | None = None,
|
|
743
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
744
|
+
) -> None:
|
|
745
|
+
"""
|
|
746
|
+
Verify the SMS OTP (One-Time Password) for Sole Proprietor brand verification.
|
|
747
|
+
|
|
748
|
+
**Verification Flow:**
|
|
749
|
+
|
|
750
|
+
1. User receives OTP via SMS after triggering
|
|
751
|
+
2. User submits the OTP pin through this endpoint
|
|
752
|
+
3. Upon successful verification:
|
|
753
|
+
- A `BRAND_OTP_VERIFIED` webhook event is sent to the CSP
|
|
754
|
+
- The brand's `identityStatus` changes to `VERIFIED`
|
|
755
|
+
- Campaigns can now be created for this brand
|
|
756
|
+
|
|
757
|
+
**Error Handling:**
|
|
758
|
+
|
|
759
|
+
Provides proper error responses for:
|
|
760
|
+
|
|
761
|
+
- Invalid OTP pins
|
|
762
|
+
- Expired OTPs
|
|
763
|
+
- OTP verification failures
|
|
764
|
+
|
|
765
|
+
Args:
|
|
766
|
+
otp_pin: The OTP PIN received via SMS
|
|
767
|
+
|
|
768
|
+
extra_headers: Send extra headers
|
|
769
|
+
|
|
770
|
+
extra_query: Add additional query parameters to the request
|
|
771
|
+
|
|
772
|
+
extra_body: Add additional JSON properties to the request
|
|
773
|
+
|
|
774
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
775
|
+
"""
|
|
776
|
+
if not brand_id:
|
|
777
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
778
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
779
|
+
return self._put(
|
|
780
|
+
f"/10dlc/brand/{brand_id}/smsOtp",
|
|
781
|
+
body=maybe_transform({"otp_pin": otp_pin}, brand_verify_sms_otp_params.BrandVerifySMSOtpParams),
|
|
782
|
+
options=make_request_options(
|
|
783
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
784
|
+
),
|
|
785
|
+
cast_to=NoneType,
|
|
786
|
+
)
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
class AsyncBrandResource(AsyncAPIResource):
|
|
790
|
+
@cached_property
|
|
791
|
+
def external_vetting(self) -> AsyncExternalVettingResource:
|
|
792
|
+
return AsyncExternalVettingResource(self._client)
|
|
793
|
+
|
|
794
|
+
@cached_property
|
|
795
|
+
def with_raw_response(self) -> AsyncBrandResourceWithRawResponse:
|
|
796
|
+
"""
|
|
797
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
798
|
+
the raw response object instead of the parsed content.
|
|
799
|
+
|
|
800
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
|
|
801
|
+
"""
|
|
802
|
+
return AsyncBrandResourceWithRawResponse(self)
|
|
803
|
+
|
|
804
|
+
@cached_property
|
|
805
|
+
def with_streaming_response(self) -> AsyncBrandResourceWithStreamingResponse:
|
|
806
|
+
"""
|
|
807
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
808
|
+
|
|
809
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#with_streaming_response
|
|
810
|
+
"""
|
|
811
|
+
return AsyncBrandResourceWithStreamingResponse(self)
|
|
812
|
+
|
|
813
|
+
async def create(
|
|
814
|
+
self,
|
|
815
|
+
*,
|
|
816
|
+
country: str,
|
|
817
|
+
display_name: str,
|
|
818
|
+
email: str,
|
|
819
|
+
entity_type: EntityType,
|
|
820
|
+
vertical: Vertical,
|
|
821
|
+
business_contact_email: str | Omit = omit,
|
|
822
|
+
city: str | Omit = omit,
|
|
823
|
+
company_name: str | Omit = omit,
|
|
824
|
+
ein: str | Omit = omit,
|
|
825
|
+
first_name: str | Omit = omit,
|
|
826
|
+
ip_address: str | Omit = omit,
|
|
827
|
+
is_reseller: bool | Omit = omit,
|
|
828
|
+
last_name: str | Omit = omit,
|
|
829
|
+
mobile_phone: str | Omit = omit,
|
|
830
|
+
mock: bool | Omit = omit,
|
|
831
|
+
phone: str | Omit = omit,
|
|
832
|
+
postal_code: str | Omit = omit,
|
|
833
|
+
state: str | Omit = omit,
|
|
834
|
+
stock_exchange: StockExchange | Omit = omit,
|
|
835
|
+
stock_symbol: str | Omit = omit,
|
|
836
|
+
street: str | Omit = omit,
|
|
837
|
+
webhook_failover_url: str | Omit = omit,
|
|
838
|
+
webhook_url: str | Omit = omit,
|
|
839
|
+
website: str | Omit = omit,
|
|
840
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
841
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
842
|
+
extra_headers: Headers | None = None,
|
|
843
|
+
extra_query: Query | None = None,
|
|
844
|
+
extra_body: Body | None = None,
|
|
845
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
846
|
+
) -> TelnyxBrand:
|
|
847
|
+
"""This endpoint is used to create a new brand.
|
|
848
|
+
|
|
849
|
+
A brand is an entity created by The
|
|
850
|
+
Campaign Registry (TCR) that represents an organization or a company. It is this
|
|
851
|
+
entity that TCR created campaigns will be associated with. Each brand creation
|
|
852
|
+
will entail an upfront, non-refundable $4 expense.
|
|
853
|
+
|
|
854
|
+
Args:
|
|
855
|
+
country: ISO2 2 characters country code. Example: US - United States
|
|
856
|
+
|
|
857
|
+
display_name: Display name, marketing name, or DBA name of the brand.
|
|
858
|
+
|
|
859
|
+
email: Valid email address of brand support contact.
|
|
860
|
+
|
|
861
|
+
entity_type: Entity type behind the brand. This is the form of business establishment.
|
|
862
|
+
|
|
863
|
+
vertical: Vertical or industry segment of the brand or campaign.
|
|
864
|
+
|
|
865
|
+
business_contact_email: Business contact email.
|
|
866
|
+
|
|
867
|
+
Required if `entityType` is `PUBLIC_PROFIT`. Otherwise, it is recommended to
|
|
868
|
+
either omit this field or set it to `null`.
|
|
869
|
+
|
|
870
|
+
city: City name
|
|
871
|
+
|
|
872
|
+
company_name: (Required for Non-profit/private/public) Legal company name.
|
|
873
|
+
|
|
874
|
+
ein: (Required for Non-profit) Government assigned corporate tax ID. EIN is 9-digits
|
|
875
|
+
in U.S.
|
|
876
|
+
|
|
877
|
+
first_name: First name of business contact.
|
|
878
|
+
|
|
879
|
+
ip_address: IP address of the browser requesting to create brand identity.
|
|
880
|
+
|
|
881
|
+
last_name: Last name of business contact.
|
|
882
|
+
|
|
883
|
+
mobile_phone: Valid mobile phone number in e.164 international format.
|
|
884
|
+
|
|
885
|
+
mock: Mock brand for testing purposes. Defaults to false.
|
|
886
|
+
|
|
887
|
+
phone: Valid phone number in e.164 international format.
|
|
888
|
+
|
|
889
|
+
postal_code: Postal codes. Use 5 digit zipcode for United States
|
|
890
|
+
|
|
891
|
+
state: State. Must be 2 letters code for United States.
|
|
892
|
+
|
|
893
|
+
stock_exchange: (Required for public company) stock exchange.
|
|
894
|
+
|
|
895
|
+
stock_symbol: (Required for public company) stock symbol.
|
|
896
|
+
|
|
897
|
+
street: Street number and name.
|
|
898
|
+
|
|
899
|
+
webhook_failover_url: Webhook failover URL for brand status updates.
|
|
900
|
+
|
|
901
|
+
webhook_url: Webhook URL for brand status updates.
|
|
902
|
+
|
|
903
|
+
website: Brand website URL.
|
|
904
|
+
|
|
905
|
+
extra_headers: Send extra headers
|
|
906
|
+
|
|
907
|
+
extra_query: Add additional query parameters to the request
|
|
908
|
+
|
|
909
|
+
extra_body: Add additional JSON properties to the request
|
|
910
|
+
|
|
911
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
912
|
+
"""
|
|
913
|
+
return await self._post(
|
|
914
|
+
"/10dlc/brand",
|
|
915
|
+
body=await async_maybe_transform(
|
|
916
|
+
{
|
|
917
|
+
"country": country,
|
|
918
|
+
"display_name": display_name,
|
|
919
|
+
"email": email,
|
|
920
|
+
"entity_type": entity_type,
|
|
921
|
+
"vertical": vertical,
|
|
922
|
+
"business_contact_email": business_contact_email,
|
|
923
|
+
"city": city,
|
|
924
|
+
"company_name": company_name,
|
|
925
|
+
"ein": ein,
|
|
926
|
+
"first_name": first_name,
|
|
927
|
+
"ip_address": ip_address,
|
|
928
|
+
"is_reseller": is_reseller,
|
|
929
|
+
"last_name": last_name,
|
|
930
|
+
"mobile_phone": mobile_phone,
|
|
931
|
+
"mock": mock,
|
|
932
|
+
"phone": phone,
|
|
933
|
+
"postal_code": postal_code,
|
|
934
|
+
"state": state,
|
|
935
|
+
"stock_exchange": stock_exchange,
|
|
936
|
+
"stock_symbol": stock_symbol,
|
|
937
|
+
"street": street,
|
|
938
|
+
"webhook_failover_url": webhook_failover_url,
|
|
939
|
+
"webhook_url": webhook_url,
|
|
940
|
+
"website": website,
|
|
941
|
+
},
|
|
942
|
+
brand_create_params.BrandCreateParams,
|
|
943
|
+
),
|
|
944
|
+
options=make_request_options(
|
|
945
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
946
|
+
),
|
|
947
|
+
cast_to=TelnyxBrand,
|
|
948
|
+
)
|
|
949
|
+
|
|
950
|
+
async def retrieve(
|
|
951
|
+
self,
|
|
952
|
+
brand_id: str,
|
|
953
|
+
*,
|
|
954
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
955
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
956
|
+
extra_headers: Headers | None = None,
|
|
957
|
+
extra_query: Query | None = None,
|
|
958
|
+
extra_body: Body | None = None,
|
|
959
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
960
|
+
) -> BrandRetrieveResponse:
|
|
961
|
+
"""
|
|
962
|
+
Retrieve a brand by `brandId`.
|
|
963
|
+
|
|
964
|
+
Args:
|
|
965
|
+
extra_headers: Send extra headers
|
|
966
|
+
|
|
967
|
+
extra_query: Add additional query parameters to the request
|
|
968
|
+
|
|
969
|
+
extra_body: Add additional JSON properties to the request
|
|
970
|
+
|
|
971
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
972
|
+
"""
|
|
973
|
+
if not brand_id:
|
|
974
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
975
|
+
return await self._get(
|
|
976
|
+
f"/10dlc/brand/{brand_id}",
|
|
977
|
+
options=make_request_options(
|
|
978
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
979
|
+
),
|
|
980
|
+
cast_to=BrandRetrieveResponse,
|
|
981
|
+
)
|
|
982
|
+
|
|
983
|
+
async def update(
|
|
984
|
+
self,
|
|
985
|
+
brand_id: str,
|
|
986
|
+
*,
|
|
987
|
+
country: str,
|
|
988
|
+
display_name: str,
|
|
989
|
+
email: str,
|
|
990
|
+
entity_type: EntityType,
|
|
991
|
+
vertical: Vertical,
|
|
992
|
+
alt_business_id: str | Omit = omit,
|
|
993
|
+
alt_business_id_type: AltBusinessIDType | Omit = omit,
|
|
994
|
+
business_contact_email: str | Omit = omit,
|
|
995
|
+
city: str | Omit = omit,
|
|
996
|
+
company_name: str | Omit = omit,
|
|
997
|
+
ein: str | Omit = omit,
|
|
998
|
+
first_name: str | Omit = omit,
|
|
999
|
+
identity_status: BrandIdentityStatus | Omit = omit,
|
|
1000
|
+
ip_address: str | Omit = omit,
|
|
1001
|
+
is_reseller: bool | Omit = omit,
|
|
1002
|
+
last_name: str | Omit = omit,
|
|
1003
|
+
phone: str | Omit = omit,
|
|
1004
|
+
postal_code: str | Omit = omit,
|
|
1005
|
+
state: str | Omit = omit,
|
|
1006
|
+
stock_exchange: StockExchange | Omit = omit,
|
|
1007
|
+
stock_symbol: str | Omit = omit,
|
|
1008
|
+
street: str | Omit = omit,
|
|
1009
|
+
webhook_failover_url: str | Omit = omit,
|
|
1010
|
+
webhook_url: str | Omit = omit,
|
|
1011
|
+
website: str | Omit = omit,
|
|
1012
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1013
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1014
|
+
extra_headers: Headers | None = None,
|
|
1015
|
+
extra_query: Query | None = None,
|
|
1016
|
+
extra_body: Body | None = None,
|
|
1017
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1018
|
+
) -> TelnyxBrand:
|
|
1019
|
+
"""
|
|
1020
|
+
Update a brand's attributes by `brandId`.
|
|
1021
|
+
|
|
1022
|
+
Args:
|
|
1023
|
+
country: ISO2 2 characters country code. Example: US - United States
|
|
1024
|
+
|
|
1025
|
+
display_name: Display or marketing name of the brand.
|
|
1026
|
+
|
|
1027
|
+
email: Valid email address of brand support contact.
|
|
1028
|
+
|
|
1029
|
+
entity_type: Entity type behind the brand. This is the form of business establishment.
|
|
1030
|
+
|
|
1031
|
+
vertical: Vertical or industry segment of the brand or campaign.
|
|
1032
|
+
|
|
1033
|
+
alt_business_id: Alternate business identifier such as DUNS, LEI, or GIIN
|
|
1034
|
+
|
|
1035
|
+
alt_business_id_type: An enumeration.
|
|
1036
|
+
|
|
1037
|
+
business_contact_email: Business contact email.
|
|
1038
|
+
|
|
1039
|
+
Required if `entityType` will be changed to `PUBLIC_PROFIT`. Otherwise, it is
|
|
1040
|
+
recommended to either omit this field or set it to `null`.
|
|
1041
|
+
|
|
1042
|
+
city: City name
|
|
1043
|
+
|
|
1044
|
+
company_name: (Required for Non-profit/private/public) Legal company name.
|
|
1045
|
+
|
|
1046
|
+
ein: (Required for Non-profit) Government assigned corporate tax ID. EIN is 9-digits
|
|
1047
|
+
in U.S.
|
|
1048
|
+
|
|
1049
|
+
first_name: First name of business contact.
|
|
1050
|
+
|
|
1051
|
+
identity_status: The verification status of an active brand
|
|
1052
|
+
|
|
1053
|
+
ip_address: IP address of the browser requesting to create brand identity.
|
|
1054
|
+
|
|
1055
|
+
last_name: Last name of business contact.
|
|
1056
|
+
|
|
1057
|
+
phone: Valid phone number in e.164 international format.
|
|
1058
|
+
|
|
1059
|
+
postal_code: Postal codes. Use 5 digit zipcode for United States
|
|
1060
|
+
|
|
1061
|
+
state: State. Must be 2 letters code for United States.
|
|
1062
|
+
|
|
1063
|
+
stock_exchange: (Required for public company) stock exchange.
|
|
1064
|
+
|
|
1065
|
+
stock_symbol: (Required for public company) stock symbol.
|
|
1066
|
+
|
|
1067
|
+
street: Street number and name.
|
|
1068
|
+
|
|
1069
|
+
webhook_failover_url: Webhook failover URL for brand status updates.
|
|
1070
|
+
|
|
1071
|
+
webhook_url: Webhook URL for brand status updates.
|
|
1072
|
+
|
|
1073
|
+
website: Brand website URL.
|
|
1074
|
+
|
|
1075
|
+
extra_headers: Send extra headers
|
|
1076
|
+
|
|
1077
|
+
extra_query: Add additional query parameters to the request
|
|
1078
|
+
|
|
1079
|
+
extra_body: Add additional JSON properties to the request
|
|
1080
|
+
|
|
1081
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1082
|
+
"""
|
|
1083
|
+
if not brand_id:
|
|
1084
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
1085
|
+
return await self._put(
|
|
1086
|
+
f"/10dlc/brand/{brand_id}",
|
|
1087
|
+
body=await async_maybe_transform(
|
|
1088
|
+
{
|
|
1089
|
+
"country": country,
|
|
1090
|
+
"display_name": display_name,
|
|
1091
|
+
"email": email,
|
|
1092
|
+
"entity_type": entity_type,
|
|
1093
|
+
"vertical": vertical,
|
|
1094
|
+
"alt_business_id": alt_business_id,
|
|
1095
|
+
"alt_business_id_type": alt_business_id_type,
|
|
1096
|
+
"business_contact_email": business_contact_email,
|
|
1097
|
+
"city": city,
|
|
1098
|
+
"company_name": company_name,
|
|
1099
|
+
"ein": ein,
|
|
1100
|
+
"first_name": first_name,
|
|
1101
|
+
"identity_status": identity_status,
|
|
1102
|
+
"ip_address": ip_address,
|
|
1103
|
+
"is_reseller": is_reseller,
|
|
1104
|
+
"last_name": last_name,
|
|
1105
|
+
"phone": phone,
|
|
1106
|
+
"postal_code": postal_code,
|
|
1107
|
+
"state": state,
|
|
1108
|
+
"stock_exchange": stock_exchange,
|
|
1109
|
+
"stock_symbol": stock_symbol,
|
|
1110
|
+
"street": street,
|
|
1111
|
+
"webhook_failover_url": webhook_failover_url,
|
|
1112
|
+
"webhook_url": webhook_url,
|
|
1113
|
+
"website": website,
|
|
1114
|
+
},
|
|
1115
|
+
brand_update_params.BrandUpdateParams,
|
|
1116
|
+
),
|
|
1117
|
+
options=make_request_options(
|
|
1118
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1119
|
+
),
|
|
1120
|
+
cast_to=TelnyxBrand,
|
|
1121
|
+
)
|
|
1122
|
+
|
|
1123
|
+
def list(
|
|
1124
|
+
self,
|
|
1125
|
+
*,
|
|
1126
|
+
brand_id: str | Omit = omit,
|
|
1127
|
+
country: str | Omit = omit,
|
|
1128
|
+
display_name: str | Omit = omit,
|
|
1129
|
+
entity_type: str | Omit = omit,
|
|
1130
|
+
page: int | Omit = omit,
|
|
1131
|
+
records_per_page: int | Omit = omit,
|
|
1132
|
+
sort: Literal[
|
|
1133
|
+
"assignedCampaignsCount",
|
|
1134
|
+
"-assignedCampaignsCount",
|
|
1135
|
+
"brandId",
|
|
1136
|
+
"-brandId",
|
|
1137
|
+
"createdAt",
|
|
1138
|
+
"-createdAt",
|
|
1139
|
+
"displayName",
|
|
1140
|
+
"-displayName",
|
|
1141
|
+
"identityStatus",
|
|
1142
|
+
"-identityStatus",
|
|
1143
|
+
"status",
|
|
1144
|
+
"-status",
|
|
1145
|
+
"tcrBrandId",
|
|
1146
|
+
"-tcrBrandId",
|
|
1147
|
+
]
|
|
1148
|
+
| Omit = omit,
|
|
1149
|
+
state: str | Omit = omit,
|
|
1150
|
+
tcr_brand_id: str | Omit = omit,
|
|
1151
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1152
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1153
|
+
extra_headers: Headers | None = None,
|
|
1154
|
+
extra_query: Query | None = None,
|
|
1155
|
+
extra_body: Body | None = None,
|
|
1156
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1157
|
+
) -> AsyncPaginator[BrandListResponse, AsyncPerPagePaginationV2[BrandListResponse]]:
|
|
1158
|
+
"""
|
|
1159
|
+
This endpoint is used to list all brands associated with your organization.
|
|
1160
|
+
|
|
1161
|
+
Args:
|
|
1162
|
+
brand_id: Filter results by the Telnyx Brand id
|
|
1163
|
+
|
|
1164
|
+
records_per_page: number of records per page. maximum of 500
|
|
1165
|
+
|
|
1166
|
+
sort: Specifies the sort order for results. If not given, results are sorted by
|
|
1167
|
+
createdAt in descending order.
|
|
1168
|
+
|
|
1169
|
+
tcr_brand_id: Filter results by the TCR Brand id
|
|
1170
|
+
|
|
1171
|
+
extra_headers: Send extra headers
|
|
1172
|
+
|
|
1173
|
+
extra_query: Add additional query parameters to the request
|
|
1174
|
+
|
|
1175
|
+
extra_body: Add additional JSON properties to the request
|
|
1176
|
+
|
|
1177
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1178
|
+
"""
|
|
1179
|
+
return self._get_api_list(
|
|
1180
|
+
"/10dlc/brand",
|
|
1181
|
+
page=AsyncPerPagePaginationV2[BrandListResponse],
|
|
1182
|
+
options=make_request_options(
|
|
1183
|
+
extra_headers=extra_headers,
|
|
1184
|
+
extra_query=extra_query,
|
|
1185
|
+
extra_body=extra_body,
|
|
1186
|
+
timeout=timeout,
|
|
1187
|
+
query=maybe_transform(
|
|
1188
|
+
{
|
|
1189
|
+
"brand_id": brand_id,
|
|
1190
|
+
"country": country,
|
|
1191
|
+
"display_name": display_name,
|
|
1192
|
+
"entity_type": entity_type,
|
|
1193
|
+
"page": page,
|
|
1194
|
+
"records_per_page": records_per_page,
|
|
1195
|
+
"sort": sort,
|
|
1196
|
+
"state": state,
|
|
1197
|
+
"tcr_brand_id": tcr_brand_id,
|
|
1198
|
+
},
|
|
1199
|
+
brand_list_params.BrandListParams,
|
|
1200
|
+
),
|
|
1201
|
+
),
|
|
1202
|
+
model=BrandListResponse,
|
|
1203
|
+
)
|
|
1204
|
+
|
|
1205
|
+
async def delete(
|
|
1206
|
+
self,
|
|
1207
|
+
brand_id: str,
|
|
1208
|
+
*,
|
|
1209
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1210
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1211
|
+
extra_headers: Headers | None = None,
|
|
1212
|
+
extra_query: Query | None = None,
|
|
1213
|
+
extra_body: Body | None = None,
|
|
1214
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1215
|
+
) -> None:
|
|
1216
|
+
"""Delete Brand.
|
|
1217
|
+
|
|
1218
|
+
This endpoint is used to delete a brand. Note the brand cannot be
|
|
1219
|
+
deleted if it contains one or more active campaigns, the campaigns need to be
|
|
1220
|
+
inactive and at least 3 months old due to billing purposes.
|
|
1221
|
+
|
|
1222
|
+
Args:
|
|
1223
|
+
extra_headers: Send extra headers
|
|
1224
|
+
|
|
1225
|
+
extra_query: Add additional query parameters to the request
|
|
1226
|
+
|
|
1227
|
+
extra_body: Add additional JSON properties to the request
|
|
1228
|
+
|
|
1229
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1230
|
+
"""
|
|
1231
|
+
if not brand_id:
|
|
1232
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
1233
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
1234
|
+
return await self._delete(
|
|
1235
|
+
f"/10dlc/brand/{brand_id}",
|
|
1236
|
+
options=make_request_options(
|
|
1237
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1238
|
+
),
|
|
1239
|
+
cast_to=NoneType,
|
|
1240
|
+
)
|
|
1241
|
+
|
|
1242
|
+
async def get_feedback(
|
|
1243
|
+
self,
|
|
1244
|
+
brand_id: str,
|
|
1245
|
+
*,
|
|
1246
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1247
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1248
|
+
extra_headers: Headers | None = None,
|
|
1249
|
+
extra_query: Query | None = None,
|
|
1250
|
+
extra_body: Body | None = None,
|
|
1251
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1252
|
+
) -> BrandGetFeedbackResponse:
|
|
1253
|
+
"""Get feedback about a brand by ID.
|
|
1254
|
+
|
|
1255
|
+
This endpoint can be used after creating or
|
|
1256
|
+
revetting a brand.
|
|
1257
|
+
|
|
1258
|
+
Possible values for `.category[].id`:
|
|
1259
|
+
|
|
1260
|
+
- `TAX_ID` - Data mismatch related to tax id and its associated properties.
|
|
1261
|
+
- `STOCK_SYMBOL` - Non public entity registered as a public for profit entity or
|
|
1262
|
+
the stock information mismatch.
|
|
1263
|
+
- `GOVERNMENT_ENTITY` - Non government entity registered as a government entity.
|
|
1264
|
+
Must be a U.S. government entity.
|
|
1265
|
+
- `NONPROFIT` - Not a recognized non-profit entity. No IRS tax-exempt status
|
|
1266
|
+
found.
|
|
1267
|
+
- `OTHERS` - Details of the data misrepresentation if any.
|
|
1268
|
+
|
|
1269
|
+
Args:
|
|
1270
|
+
extra_headers: Send extra headers
|
|
1271
|
+
|
|
1272
|
+
extra_query: Add additional query parameters to the request
|
|
1273
|
+
|
|
1274
|
+
extra_body: Add additional JSON properties to the request
|
|
1275
|
+
|
|
1276
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1277
|
+
"""
|
|
1278
|
+
if not brand_id:
|
|
1279
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
1280
|
+
return await self._get(
|
|
1281
|
+
f"/10dlc/brand/feedback/{brand_id}",
|
|
1282
|
+
options=make_request_options(
|
|
1283
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1284
|
+
),
|
|
1285
|
+
cast_to=BrandGetFeedbackResponse,
|
|
1286
|
+
)
|
|
1287
|
+
|
|
1288
|
+
async def resend_2fa_email(
|
|
1289
|
+
self,
|
|
1290
|
+
brand_id: str,
|
|
1291
|
+
*,
|
|
1292
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1293
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1294
|
+
extra_headers: Headers | None = None,
|
|
1295
|
+
extra_query: Query | None = None,
|
|
1296
|
+
extra_body: Body | None = None,
|
|
1297
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1298
|
+
) -> None:
|
|
1299
|
+
"""
|
|
1300
|
+
Resend brand 2FA email
|
|
1301
|
+
|
|
1302
|
+
Args:
|
|
1303
|
+
extra_headers: Send extra headers
|
|
1304
|
+
|
|
1305
|
+
extra_query: Add additional query parameters to the request
|
|
1306
|
+
|
|
1307
|
+
extra_body: Add additional JSON properties to the request
|
|
1308
|
+
|
|
1309
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1310
|
+
"""
|
|
1311
|
+
if not brand_id:
|
|
1312
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
1313
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
1314
|
+
return await self._post(
|
|
1315
|
+
f"/10dlc/brand/{brand_id}/2faEmail",
|
|
1316
|
+
options=make_request_options(
|
|
1317
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1318
|
+
),
|
|
1319
|
+
cast_to=NoneType,
|
|
1320
|
+
)
|
|
1321
|
+
|
|
1322
|
+
async def retrieve_sms_otp_status(
|
|
1323
|
+
self,
|
|
1324
|
+
brand_id: str,
|
|
1325
|
+
*,
|
|
1326
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1327
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1328
|
+
extra_headers: Headers | None = None,
|
|
1329
|
+
extra_query: Query | None = None,
|
|
1330
|
+
extra_body: Body | None = None,
|
|
1331
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1332
|
+
) -> BrandRetrieveSMSOtpStatusResponse:
|
|
1333
|
+
"""
|
|
1334
|
+
Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand
|
|
1335
|
+
verification using the Brand ID.
|
|
1336
|
+
|
|
1337
|
+
This endpoint allows you to check the delivery and verification status of an OTP
|
|
1338
|
+
sent during the Sole Proprietor brand verification process by looking it up with
|
|
1339
|
+
the brand ID.
|
|
1340
|
+
|
|
1341
|
+
The response includes delivery status, verification dates, and detailed delivery
|
|
1342
|
+
information.
|
|
1343
|
+
|
|
1344
|
+
**Note:** This is an alternative to the `/10dlc/brand/smsOtp/{referenceId}`
|
|
1345
|
+
endpoint when you have the Brand ID but not the reference ID.
|
|
1346
|
+
|
|
1347
|
+
Args:
|
|
1348
|
+
extra_headers: Send extra headers
|
|
1349
|
+
|
|
1350
|
+
extra_query: Add additional query parameters to the request
|
|
1351
|
+
|
|
1352
|
+
extra_body: Add additional JSON properties to the request
|
|
1353
|
+
|
|
1354
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1355
|
+
"""
|
|
1356
|
+
if not brand_id:
|
|
1357
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
1358
|
+
return await self._get(
|
|
1359
|
+
f"/10dlc/brand/{brand_id}/smsOtp",
|
|
1360
|
+
options=make_request_options(
|
|
1361
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1362
|
+
),
|
|
1363
|
+
cast_to=BrandRetrieveSMSOtpStatusResponse,
|
|
1364
|
+
)
|
|
1365
|
+
|
|
1366
|
+
async def revet(
|
|
1367
|
+
self,
|
|
1368
|
+
brand_id: str,
|
|
1369
|
+
*,
|
|
1370
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1371
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1372
|
+
extra_headers: Headers | None = None,
|
|
1373
|
+
extra_query: Query | None = None,
|
|
1374
|
+
extra_body: Body | None = None,
|
|
1375
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1376
|
+
) -> TelnyxBrand:
|
|
1377
|
+
"""This operation allows you to revet the brand.
|
|
1378
|
+
|
|
1379
|
+
However, revetting is allowed once
|
|
1380
|
+
after the successful brand registration and thereafter limited to once every 3
|
|
1381
|
+
months.
|
|
1382
|
+
|
|
1383
|
+
Args:
|
|
1384
|
+
extra_headers: Send extra headers
|
|
1385
|
+
|
|
1386
|
+
extra_query: Add additional query parameters to the request
|
|
1387
|
+
|
|
1388
|
+
extra_body: Add additional JSON properties to the request
|
|
1389
|
+
|
|
1390
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1391
|
+
"""
|
|
1392
|
+
if not brand_id:
|
|
1393
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
1394
|
+
return await self._put(
|
|
1395
|
+
f"/10dlc/brand/{brand_id}/revet",
|
|
1396
|
+
options=make_request_options(
|
|
1397
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1398
|
+
),
|
|
1399
|
+
cast_to=TelnyxBrand,
|
|
1400
|
+
)
|
|
1401
|
+
|
|
1402
|
+
async def trigger_sms_otp(
|
|
1403
|
+
self,
|
|
1404
|
+
brand_id: str,
|
|
1405
|
+
*,
|
|
1406
|
+
pin_sms: str,
|
|
1407
|
+
success_sms: str,
|
|
1408
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1409
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1410
|
+
extra_headers: Headers | None = None,
|
|
1411
|
+
extra_query: Query | None = None,
|
|
1412
|
+
extra_body: Body | None = None,
|
|
1413
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1414
|
+
) -> BrandTriggerSMSOtpResponse:
|
|
1415
|
+
"""
|
|
1416
|
+
Trigger or re-trigger an SMS OTP (One-Time Password) for Sole Proprietor brand
|
|
1417
|
+
verification.
|
|
1418
|
+
|
|
1419
|
+
**Important Notes:**
|
|
1420
|
+
|
|
1421
|
+
- Only allowed for Sole Proprietor (`SOLE_PROPRIETOR`) brands
|
|
1422
|
+
- Triggers generation of a one-time password sent to the `mobilePhone` number in
|
|
1423
|
+
the brand's profile
|
|
1424
|
+
- Campaigns cannot be created until OTP verification is complete
|
|
1425
|
+
- US/CA numbers only for real OTPs; mock brands can use non-US/CA numbers for
|
|
1426
|
+
testing
|
|
1427
|
+
- Returns a `referenceId` that can be used to check OTP status via the GET
|
|
1428
|
+
`/10dlc/brand/smsOtp/{referenceId}` endpoint
|
|
1429
|
+
|
|
1430
|
+
**Use Cases:**
|
|
1431
|
+
|
|
1432
|
+
- Initial OTP trigger after Sole Proprietor brand creation
|
|
1433
|
+
- Re-triggering OTP if the user didn't receive or needs a new code
|
|
1434
|
+
|
|
1435
|
+
Args:
|
|
1436
|
+
pin_sms: SMS message template to send the OTP. Must include `@OTP_PIN@` placeholder which
|
|
1437
|
+
will be replaced with the actual PIN
|
|
1438
|
+
|
|
1439
|
+
success_sms: SMS message to send upon successful OTP verification
|
|
1440
|
+
|
|
1441
|
+
extra_headers: Send extra headers
|
|
1442
|
+
|
|
1443
|
+
extra_query: Add additional query parameters to the request
|
|
1444
|
+
|
|
1445
|
+
extra_body: Add additional JSON properties to the request
|
|
1446
|
+
|
|
1447
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1448
|
+
"""
|
|
1449
|
+
if not brand_id:
|
|
1450
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
1451
|
+
return await self._post(
|
|
1452
|
+
f"/10dlc/brand/{brand_id}/smsOtp",
|
|
1453
|
+
body=await async_maybe_transform(
|
|
1454
|
+
{
|
|
1455
|
+
"pin_sms": pin_sms,
|
|
1456
|
+
"success_sms": success_sms,
|
|
1457
|
+
},
|
|
1458
|
+
brand_trigger_sms_otp_params.BrandTriggerSMSOtpParams,
|
|
1459
|
+
),
|
|
1460
|
+
options=make_request_options(
|
|
1461
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1462
|
+
),
|
|
1463
|
+
cast_to=BrandTriggerSMSOtpResponse,
|
|
1464
|
+
)
|
|
1465
|
+
|
|
1466
|
+
async def verify_sms_otp(
|
|
1467
|
+
self,
|
|
1468
|
+
brand_id: str,
|
|
1469
|
+
*,
|
|
1470
|
+
otp_pin: str,
|
|
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
|
+
) -> None:
|
|
1478
|
+
"""
|
|
1479
|
+
Verify the SMS OTP (One-Time Password) for Sole Proprietor brand verification.
|
|
1480
|
+
|
|
1481
|
+
**Verification Flow:**
|
|
1482
|
+
|
|
1483
|
+
1. User receives OTP via SMS after triggering
|
|
1484
|
+
2. User submits the OTP pin through this endpoint
|
|
1485
|
+
3. Upon successful verification:
|
|
1486
|
+
- A `BRAND_OTP_VERIFIED` webhook event is sent to the CSP
|
|
1487
|
+
- The brand's `identityStatus` changes to `VERIFIED`
|
|
1488
|
+
- Campaigns can now be created for this brand
|
|
1489
|
+
|
|
1490
|
+
**Error Handling:**
|
|
1491
|
+
|
|
1492
|
+
Provides proper error responses for:
|
|
1493
|
+
|
|
1494
|
+
- Invalid OTP pins
|
|
1495
|
+
- Expired OTPs
|
|
1496
|
+
- OTP verification failures
|
|
1497
|
+
|
|
1498
|
+
Args:
|
|
1499
|
+
otp_pin: The OTP PIN received via SMS
|
|
1500
|
+
|
|
1501
|
+
extra_headers: Send extra headers
|
|
1502
|
+
|
|
1503
|
+
extra_query: Add additional query parameters to the request
|
|
1504
|
+
|
|
1505
|
+
extra_body: Add additional JSON properties to the request
|
|
1506
|
+
|
|
1507
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1508
|
+
"""
|
|
1509
|
+
if not brand_id:
|
|
1510
|
+
raise ValueError(f"Expected a non-empty value for `brand_id` but received {brand_id!r}")
|
|
1511
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
1512
|
+
return await self._put(
|
|
1513
|
+
f"/10dlc/brand/{brand_id}/smsOtp",
|
|
1514
|
+
body=await async_maybe_transform({"otp_pin": otp_pin}, brand_verify_sms_otp_params.BrandVerifySMSOtpParams),
|
|
1515
|
+
options=make_request_options(
|
|
1516
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1517
|
+
),
|
|
1518
|
+
cast_to=NoneType,
|
|
1519
|
+
)
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
class BrandResourceWithRawResponse:
|
|
1523
|
+
def __init__(self, brand: BrandResource) -> None:
|
|
1524
|
+
self._brand = brand
|
|
1525
|
+
|
|
1526
|
+
self.create = to_raw_response_wrapper(
|
|
1527
|
+
brand.create,
|
|
1528
|
+
)
|
|
1529
|
+
self.retrieve = to_raw_response_wrapper(
|
|
1530
|
+
brand.retrieve,
|
|
1531
|
+
)
|
|
1532
|
+
self.update = to_raw_response_wrapper(
|
|
1533
|
+
brand.update,
|
|
1534
|
+
)
|
|
1535
|
+
self.list = to_raw_response_wrapper(
|
|
1536
|
+
brand.list,
|
|
1537
|
+
)
|
|
1538
|
+
self.delete = to_raw_response_wrapper(
|
|
1539
|
+
brand.delete,
|
|
1540
|
+
)
|
|
1541
|
+
self.get_feedback = to_raw_response_wrapper(
|
|
1542
|
+
brand.get_feedback,
|
|
1543
|
+
)
|
|
1544
|
+
self.resend_2fa_email = to_raw_response_wrapper(
|
|
1545
|
+
brand.resend_2fa_email,
|
|
1546
|
+
)
|
|
1547
|
+
self.retrieve_sms_otp_status = to_raw_response_wrapper(
|
|
1548
|
+
brand.retrieve_sms_otp_status,
|
|
1549
|
+
)
|
|
1550
|
+
self.revet = to_raw_response_wrapper(
|
|
1551
|
+
brand.revet,
|
|
1552
|
+
)
|
|
1553
|
+
self.trigger_sms_otp = to_raw_response_wrapper(
|
|
1554
|
+
brand.trigger_sms_otp,
|
|
1555
|
+
)
|
|
1556
|
+
self.verify_sms_otp = to_raw_response_wrapper(
|
|
1557
|
+
brand.verify_sms_otp,
|
|
1558
|
+
)
|
|
1559
|
+
|
|
1560
|
+
@cached_property
|
|
1561
|
+
def external_vetting(self) -> ExternalVettingResourceWithRawResponse:
|
|
1562
|
+
return ExternalVettingResourceWithRawResponse(self._brand.external_vetting)
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
class AsyncBrandResourceWithRawResponse:
|
|
1566
|
+
def __init__(self, brand: AsyncBrandResource) -> None:
|
|
1567
|
+
self._brand = brand
|
|
1568
|
+
|
|
1569
|
+
self.create = async_to_raw_response_wrapper(
|
|
1570
|
+
brand.create,
|
|
1571
|
+
)
|
|
1572
|
+
self.retrieve = async_to_raw_response_wrapper(
|
|
1573
|
+
brand.retrieve,
|
|
1574
|
+
)
|
|
1575
|
+
self.update = async_to_raw_response_wrapper(
|
|
1576
|
+
brand.update,
|
|
1577
|
+
)
|
|
1578
|
+
self.list = async_to_raw_response_wrapper(
|
|
1579
|
+
brand.list,
|
|
1580
|
+
)
|
|
1581
|
+
self.delete = async_to_raw_response_wrapper(
|
|
1582
|
+
brand.delete,
|
|
1583
|
+
)
|
|
1584
|
+
self.get_feedback = async_to_raw_response_wrapper(
|
|
1585
|
+
brand.get_feedback,
|
|
1586
|
+
)
|
|
1587
|
+
self.resend_2fa_email = async_to_raw_response_wrapper(
|
|
1588
|
+
brand.resend_2fa_email,
|
|
1589
|
+
)
|
|
1590
|
+
self.retrieve_sms_otp_status = async_to_raw_response_wrapper(
|
|
1591
|
+
brand.retrieve_sms_otp_status,
|
|
1592
|
+
)
|
|
1593
|
+
self.revet = async_to_raw_response_wrapper(
|
|
1594
|
+
brand.revet,
|
|
1595
|
+
)
|
|
1596
|
+
self.trigger_sms_otp = async_to_raw_response_wrapper(
|
|
1597
|
+
brand.trigger_sms_otp,
|
|
1598
|
+
)
|
|
1599
|
+
self.verify_sms_otp = async_to_raw_response_wrapper(
|
|
1600
|
+
brand.verify_sms_otp,
|
|
1601
|
+
)
|
|
1602
|
+
|
|
1603
|
+
@cached_property
|
|
1604
|
+
def external_vetting(self) -> AsyncExternalVettingResourceWithRawResponse:
|
|
1605
|
+
return AsyncExternalVettingResourceWithRawResponse(self._brand.external_vetting)
|
|
1606
|
+
|
|
1607
|
+
|
|
1608
|
+
class BrandResourceWithStreamingResponse:
|
|
1609
|
+
def __init__(self, brand: BrandResource) -> None:
|
|
1610
|
+
self._brand = brand
|
|
1611
|
+
|
|
1612
|
+
self.create = to_streamed_response_wrapper(
|
|
1613
|
+
brand.create,
|
|
1614
|
+
)
|
|
1615
|
+
self.retrieve = to_streamed_response_wrapper(
|
|
1616
|
+
brand.retrieve,
|
|
1617
|
+
)
|
|
1618
|
+
self.update = to_streamed_response_wrapper(
|
|
1619
|
+
brand.update,
|
|
1620
|
+
)
|
|
1621
|
+
self.list = to_streamed_response_wrapper(
|
|
1622
|
+
brand.list,
|
|
1623
|
+
)
|
|
1624
|
+
self.delete = to_streamed_response_wrapper(
|
|
1625
|
+
brand.delete,
|
|
1626
|
+
)
|
|
1627
|
+
self.get_feedback = to_streamed_response_wrapper(
|
|
1628
|
+
brand.get_feedback,
|
|
1629
|
+
)
|
|
1630
|
+
self.resend_2fa_email = to_streamed_response_wrapper(
|
|
1631
|
+
brand.resend_2fa_email,
|
|
1632
|
+
)
|
|
1633
|
+
self.retrieve_sms_otp_status = to_streamed_response_wrapper(
|
|
1634
|
+
brand.retrieve_sms_otp_status,
|
|
1635
|
+
)
|
|
1636
|
+
self.revet = to_streamed_response_wrapper(
|
|
1637
|
+
brand.revet,
|
|
1638
|
+
)
|
|
1639
|
+
self.trigger_sms_otp = to_streamed_response_wrapper(
|
|
1640
|
+
brand.trigger_sms_otp,
|
|
1641
|
+
)
|
|
1642
|
+
self.verify_sms_otp = to_streamed_response_wrapper(
|
|
1643
|
+
brand.verify_sms_otp,
|
|
1644
|
+
)
|
|
1645
|
+
|
|
1646
|
+
@cached_property
|
|
1647
|
+
def external_vetting(self) -> ExternalVettingResourceWithStreamingResponse:
|
|
1648
|
+
return ExternalVettingResourceWithStreamingResponse(self._brand.external_vetting)
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
class AsyncBrandResourceWithStreamingResponse:
|
|
1652
|
+
def __init__(self, brand: AsyncBrandResource) -> None:
|
|
1653
|
+
self._brand = brand
|
|
1654
|
+
|
|
1655
|
+
self.create = async_to_streamed_response_wrapper(
|
|
1656
|
+
brand.create,
|
|
1657
|
+
)
|
|
1658
|
+
self.retrieve = async_to_streamed_response_wrapper(
|
|
1659
|
+
brand.retrieve,
|
|
1660
|
+
)
|
|
1661
|
+
self.update = async_to_streamed_response_wrapper(
|
|
1662
|
+
brand.update,
|
|
1663
|
+
)
|
|
1664
|
+
self.list = async_to_streamed_response_wrapper(
|
|
1665
|
+
brand.list,
|
|
1666
|
+
)
|
|
1667
|
+
self.delete = async_to_streamed_response_wrapper(
|
|
1668
|
+
brand.delete,
|
|
1669
|
+
)
|
|
1670
|
+
self.get_feedback = async_to_streamed_response_wrapper(
|
|
1671
|
+
brand.get_feedback,
|
|
1672
|
+
)
|
|
1673
|
+
self.resend_2fa_email = async_to_streamed_response_wrapper(
|
|
1674
|
+
brand.resend_2fa_email,
|
|
1675
|
+
)
|
|
1676
|
+
self.retrieve_sms_otp_status = async_to_streamed_response_wrapper(
|
|
1677
|
+
brand.retrieve_sms_otp_status,
|
|
1678
|
+
)
|
|
1679
|
+
self.revet = async_to_streamed_response_wrapper(
|
|
1680
|
+
brand.revet,
|
|
1681
|
+
)
|
|
1682
|
+
self.trigger_sms_otp = async_to_streamed_response_wrapper(
|
|
1683
|
+
brand.trigger_sms_otp,
|
|
1684
|
+
)
|
|
1685
|
+
self.verify_sms_otp = async_to_streamed_response_wrapper(
|
|
1686
|
+
brand.verify_sms_otp,
|
|
1687
|
+
)
|
|
1688
|
+
|
|
1689
|
+
@cached_property
|
|
1690
|
+
def external_vetting(self) -> AsyncExternalVettingResourceWithStreamingResponse:
|
|
1691
|
+
return AsyncExternalVettingResourceWithStreamingResponse(self._brand.external_vetting)
|