telnyx 3.2.0a0__py3-none-any.whl → 3.4.0a0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of telnyx might be problematic. Click here for more details.
- telnyx/_base_client.py +3 -3
- telnyx/_client.py +5 -0
- telnyx/_compat.py +48 -48
- telnyx/_models.py +40 -40
- telnyx/_types.py +35 -1
- telnyx/_utils/__init__.py +9 -2
- telnyx/_utils/_compat.py +45 -0
- telnyx/_utils/_datetime_parse.py +136 -0
- telnyx/_utils/_transform.py +11 -1
- telnyx/_utils/_typing.py +6 -1
- telnyx/_utils/_utils.py +0 -1
- telnyx/_version.py +1 -1
- telnyx/resources/__init__.py +3 -0
- telnyx/resources/actions/purchase.py +3 -4
- telnyx/resources/actions/register.py +5 -6
- telnyx/resources/ai/chat.py +4 -4
- telnyx/resources/ai/clusters.py +3 -5
- telnyx/resources/ai/conversations/messages.py +4 -4
- telnyx/resources/ai/embeddings/embeddings.py +3 -4
- telnyx/resources/call_control_applications.py +4 -4
- telnyx/resources/calls/calls.py +4 -4
- telnyx/resources/campaign_builder/campaign_builder.py +6 -6
- telnyx/resources/conferences/actions.py +19 -20
- telnyx/resources/credential_connections/credential_connections.py +6 -6
- telnyx/resources/customer_service_records.py +3 -5
- telnyx/resources/detail_records.py +3 -5
- telnyx/resources/external_connections/external_connections.py +6 -6
- telnyx/resources/external_connections/uploads.py +3 -3
- telnyx/resources/fax_applications.py +6 -6
- telnyx/resources/fqdn_connections.py +6 -6
- telnyx/resources/ip_connections.py +6 -6
- telnyx/resources/messages/messages.py +16 -16
- telnyx/resources/messaging/rcs/rcs.py +3 -5
- telnyx/resources/messaging_hosted_number_orders/messaging_hosted_number_orders.py +8 -8
- telnyx/resources/messaging_numbers_bulk_updates.py +3 -5
- telnyx/resources/messaging_profiles/autoresp_configs.py +5 -6
- telnyx/resources/messaging_profiles/messaging_profiles.py +6 -6
- telnyx/resources/numbers_features.py +3 -5
- telnyx/resources/outbound_voice_profiles.py +10 -10
- telnyx/resources/phone_numbers/actions.py +3 -5
- telnyx/resources/phone_numbers/jobs.py +10 -10
- telnyx/resources/phone_numbers/phone_numbers.py +3 -4
- telnyx/resources/portability_checks.py +3 -5
- telnyx/resources/porting_orders/porting_orders.py +4 -4
- telnyx/resources/porting_orders/verification_codes.py +4 -4
- telnyx/resources/recordings/actions.py +3 -5
- telnyx/resources/reports/mdr_usage_reports.py +4 -4
- telnyx/resources/reports/reports.py +3 -4
- telnyx/resources/rooms/sessions/actions.py +14 -14
- telnyx/resources/sim_cards/actions.py +5 -7
- telnyx/resources/sim_cards/sim_cards.py +5 -6
- telnyx/resources/texml_applications.py +5 -6
- telnyx/resources/usage_reports.py +7 -8
- telnyx/resources/webhooks.py +34 -0
- telnyx/resources/wireless_blocklists.py +5 -6
- telnyx/types/__init__.py +115 -4
- telnyx/types/actions/purchase_create_params.py +3 -2
- telnyx/types/actions/register_create_params.py +4 -3
- telnyx/types/ai/chat_create_completion_params.py +3 -2
- telnyx/types/ai/cluster_compute_params.py +3 -2
- telnyx/types/ai/conversations/message_create_params.py +3 -2
- telnyx/types/ai/embedding_list_params.py +3 -2
- telnyx/types/ai/inference_embedding_bucket_ids_param.py +3 -2
- telnyx/types/ai/inference_embedding_webhook_tool_params_param.py +6 -4
- telnyx/types/bundle_pricing/billing_bundle_list_params.py +4 -3
- telnyx/types/bundle_pricing/user_bundle_list_params.py +4 -3
- telnyx/types/bundle_pricing/user_bundle_list_unused_params.py +4 -3
- telnyx/types/call_ai_gather_ended_webhook_event.py +78 -0
- telnyx/types/call_ai_gather_message_history_updated_webhook_event.py +69 -0
- telnyx/types/call_ai_gather_partial_results_webhook_event.py +75 -0
- telnyx/types/call_answered_webhook_event.py +75 -0
- telnyx/types/call_bridged_webhook_event.py +58 -0
- telnyx/types/call_control_application_update_params.py +3 -2
- telnyx/types/call_conversation_ended_webhook_event.py +84 -0
- telnyx/types/call_conversation_insights_generated_webhook_event.py +67 -0
- telnyx/types/call_dial_params.py +4 -3
- telnyx/types/call_dtmf_received_webhook_event.py +61 -0
- telnyx/types/call_enqueued_webhook_event.py +59 -0
- telnyx/types/call_fork_started_webhook_event.py +53 -0
- telnyx/types/call_fork_stopped_webhook_event.py +53 -0
- telnyx/types/call_gather_ended_webhook_event.py +64 -0
- telnyx/types/call_hangup_webhook_event.py +150 -0
- telnyx/types/call_initiated_webhook_event.py +96 -0
- telnyx/types/call_left_queue_webhook_event.py +62 -0
- telnyx/types/call_machine_detection_ended_webhook_event.py +61 -0
- telnyx/types/call_machine_greeting_ended_webhook_event.py +61 -0
- telnyx/types/call_machine_premium_detection_ended_webhook_event.py +63 -0
- telnyx/types/call_machine_premium_greeting_ended_webhook_event.py +61 -0
- telnyx/types/call_playback_ended_webhook_event.py +70 -0
- telnyx/types/call_playback_started_webhook_event.py +62 -0
- telnyx/types/call_recording_error_webhook_event.py +60 -0
- telnyx/types/call_recording_saved_webhook_event.py +94 -0
- telnyx/types/call_recording_transcription_saved_webhook_event.py +71 -0
- telnyx/types/call_refer_completed_webhook_event.py +61 -0
- telnyx/types/call_refer_failed_webhook_event.py +61 -0
- telnyx/types/call_refer_started_webhook_event.py +61 -0
- telnyx/types/call_siprec_failed_webhook_event.py +53 -0
- telnyx/types/call_siprec_started_webhook_event.py +50 -0
- telnyx/types/call_siprec_stopped_webhook_event.py +53 -0
- telnyx/types/call_speak_ended_webhook_event.py +53 -0
- telnyx/types/call_speak_started_webhook_event.py +50 -0
- telnyx/types/call_streaming_failed_webhook_event.py +70 -0
- telnyx/types/call_streaming_started_webhook_event.py +53 -0
- telnyx/types/call_streaming_stopped_webhook_event.py +53 -0
- telnyx/types/calls/transcription_engine_a_config_param.py +4 -3
- telnyx/types/campaign_builder_create_params.py +4 -3
- telnyx/types/campaign_status_update_webhook_event.py +26 -0
- telnyx/types/conference_created_webhook_event.py +53 -0
- telnyx/types/conference_ended_webhook_event.py +56 -0
- telnyx/types/conference_floor_changed_webhook_event.py +45 -0
- telnyx/types/conference_participant_joined_webhook_event.py +53 -0
- telnyx/types/conference_participant_left_webhook_event.py +53 -0
- telnyx/types/conference_participant_playback_ended_webhook_event.py +65 -0
- telnyx/types/conference_participant_playback_started_webhook_event.py +65 -0
- telnyx/types/conference_participant_speak_ended_webhook_event.py +56 -0
- telnyx/types/conference_participant_speak_started_webhook_event.py +56 -0
- telnyx/types/conference_playback_ended_webhook_event.py +49 -0
- telnyx/types/conference_playback_started_webhook_event.py +49 -0
- telnyx/types/conference_recording_saved_webhook_event.py +103 -0
- telnyx/types/conference_speak_ended_webhook_event.py +40 -0
- telnyx/types/conference_speak_started_webhook_event.py +40 -0
- telnyx/types/conferences/action_hold_params.py +3 -2
- telnyx/types/conferences/action_join_params.py +3 -2
- telnyx/types/conferences/action_mute_params.py +3 -2
- telnyx/types/conferences/action_play_params.py +2 -2
- telnyx/types/conferences/action_speak_params.py +3 -2
- telnyx/types/conferences/action_stop_params.py +3 -2
- telnyx/types/conferences/action_unhold_params.py +3 -2
- telnyx/types/conferences/action_unmute_params.py +3 -2
- telnyx/types/conferences/action_update_params.py +3 -2
- telnyx/types/credential_connection_create_params.py +3 -2
- telnyx/types/credential_connection_update_params.py +3 -2
- telnyx/types/credential_inbound_param.py +3 -2
- telnyx/types/custom_sip_header.py +13 -0
- telnyx/types/customer_service_record_list_params.py +2 -1
- telnyx/types/customer_service_record_status_changed_webhook_event.py +55 -0
- telnyx/types/customer_service_record_verify_phone_number_coverage_params.py +3 -2
- telnyx/types/delivery_update_webhook_event.py +40 -0
- telnyx/types/detail_record_list_params.py +4 -2
- telnyx/types/document_list_params.py +2 -1
- telnyx/types/external_connection_create_params.py +4 -2
- telnyx/types/external_connection_update_params.py +4 -2
- telnyx/types/external_connections/civic_address_list_params.py +3 -2
- telnyx/types/external_connections/upload_create_params.py +3 -1
- telnyx/types/fax_application_create_params.py +3 -2
- telnyx/types/fax_application_update_params.py +3 -2
- telnyx/types/fax_delivered_webhook_event.py +69 -0
- telnyx/types/fax_failed_webhook_event.py +66 -0
- telnyx/types/fax_media_processed_webhook_event.py +63 -0
- telnyx/types/fax_queued_webhook_event.py +63 -0
- telnyx/types/fax_sending_started_webhook_event.py +63 -0
- telnyx/types/fqdn_connection_create_params.py +3 -2
- telnyx/types/fqdn_connection_update_params.py +3 -2
- telnyx/types/inbound_fqdn_param.py +4 -2
- telnyx/types/inbound_ip_param.py +3 -2
- telnyx/types/inbound_message_webhook_event.py +227 -0
- telnyx/types/ip_connection_create_params.py +4 -3
- telnyx/types/ip_connection_update_params.py +3 -2
- telnyx/types/media_list_params.py +3 -2
- telnyx/types/message_schedule_params.py +3 -2
- telnyx/types/message_send_group_mms_params.py +3 -3
- telnyx/types/message_send_long_code_params.py +2 -2
- telnyx/types/message_send_number_pool_params.py +3 -2
- telnyx/types/message_send_params.py +3 -2
- telnyx/types/message_send_short_code_params.py +2 -2
- telnyx/types/messaging/rc_list_bulk_capabilities_params.py +3 -2
- telnyx/types/messaging_hosted_number_order_check_eligibility_params.py +3 -2
- telnyx/types/messaging_hosted_number_order_create_params.py +3 -2
- telnyx/types/messaging_hosted_number_order_create_verification_codes_params.py +3 -2
- telnyx/types/messaging_numbers_bulk_update_create_params.py +3 -2
- telnyx/types/messaging_profile_create_params.py +3 -2
- telnyx/types/messaging_profile_update_params.py +3 -2
- telnyx/types/messaging_profiles/autoresp_config_create_params.py +3 -2
- telnyx/types/messaging_profiles/autoresp_config_update_params.py +3 -2
- telnyx/types/messsage_rcs_params.py +2 -2
- telnyx/types/number_order_status_update_webhook_event.py +12 -0
- telnyx/types/numbers_feature_create_params.py +3 -2
- telnyx/types/outbound_call_recording_param.py +3 -2
- telnyx/types/outbound_voice_profile_create_params.py +4 -3
- telnyx/types/outbound_voice_profile_update_params.py +4 -3
- telnyx/types/phone_number_list_params.py +3 -2
- telnyx/types/phone_number_slim_list_params.py +3 -2
- telnyx/types/phone_number_update_params.py +3 -2
- telnyx/types/phone_numbers/action_verify_ownership_params.py +3 -2
- telnyx/types/phone_numbers/job_delete_batch_params.py +3 -2
- telnyx/types/phone_numbers/job_update_batch_params.py +3 -3
- telnyx/types/phone_numbers/job_update_emergency_settings_batch_params.py +4 -2
- telnyx/types/portability_check_run_params.py +3 -2
- telnyx/types/porting/export_porting_orders_csv_report_param.py +2 -1
- telnyx/types/porting_order_create_params.py +3 -2
- telnyx/types/porting_order_phone_number_configuration_param.py +3 -2
- telnyx/types/porting_orders/action_requirement_list_params.py +3 -2
- telnyx/types/porting_orders/phone_number_block_list_params.py +5 -3
- telnyx/types/porting_orders/phone_number_configuration_list_params.py +3 -2
- telnyx/types/porting_orders/verification_code_send_params.py +3 -2
- telnyx/types/portout_list_params.py +2 -1
- telnyx/types/portouts/export_portouts_csv_report_param.py +3 -2
- telnyx/types/recordings/action_delete_params.py +3 -2
- telnyx/types/replaced_link_click_webhook_event.py +32 -0
- telnyx/types/report_list_wdrs_params.py +3 -2
- telnyx/types/reports/mdr_usage_report_fetch_sync_params.py +3 -2
- telnyx/types/rooms/sessions/action_kick_params.py +5 -3
- telnyx/types/rooms/sessions/action_mute_params.py +5 -3
- telnyx/types/rooms/sessions/action_unmute_params.py +5 -3
- telnyx/types/sim_card_list_params.py +2 -1
- telnyx/types/sim_card_update_params.py +3 -3
- telnyx/types/sim_cards/action_bulk_set_public_ips_params.py +3 -2
- telnyx/types/sim_cards/action_validate_registration_codes_params.py +3 -2
- telnyx/types/sip_header.py +15 -0
- telnyx/types/streaming_failed_webhook_event.py +70 -0
- telnyx/types/streaming_started_webhook_event.py +53 -0
- telnyx/types/streaming_stopped_webhook_event.py +53 -0
- telnyx/types/texml_application_create_params.py +2 -2
- telnyx/types/texml_application_update_params.py +2 -2
- telnyx/types/transcription_webhook_event.py +72 -0
- telnyx/types/unwrap_webhook_event.py +138 -0
- telnyx/types/usage_report_list_params.py +5 -4
- telnyx/types/verify_profile_create_params.py +6 -4
- telnyx/types/verify_profile_update_params.py +6 -4
- telnyx/types/video_region_param.py +4 -2
- telnyx/types/wireless_blocklist_create_params.py +3 -2
- telnyx/types/wireless_blocklist_update_params.py +3 -2
- {telnyx-3.2.0a0.dist-info → telnyx-3.4.0a0.dist-info}/METADATA +1 -1
- {telnyx-3.2.0a0.dist-info → telnyx-3.4.0a0.dist-info}/RECORD +226 -156
- {telnyx-3.2.0a0.dist-info → telnyx-3.4.0a0.dist-info}/WHEEL +0 -0
- {telnyx-3.2.0a0.dist-info → telnyx-3.4.0a0.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal
|
|
7
6
|
|
|
8
7
|
import httpx
|
|
9
8
|
|
|
10
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
9
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
11
10
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
12
11
|
from ..._compat import cached_property
|
|
13
12
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -80,7 +79,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
80
79
|
call_control_id: str,
|
|
81
80
|
supervisor_role: Literal["barge", "monitor", "none", "whisper"],
|
|
82
81
|
command_id: str | NotGiven = NOT_GIVEN,
|
|
83
|
-
whisper_call_control_ids:
|
|
82
|
+
whisper_call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
84
83
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
85
84
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
86
85
|
extra_headers: Headers | None = None,
|
|
@@ -140,7 +139,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
140
139
|
id: str,
|
|
141
140
|
*,
|
|
142
141
|
audio_url: str | NotGiven = NOT_GIVEN,
|
|
143
|
-
call_control_ids:
|
|
142
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
144
143
|
media_name: str | NotGiven = NOT_GIVEN,
|
|
145
144
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
146
145
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -206,7 +205,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
206
205
|
soft_end_conference_on_exit: bool | NotGiven = NOT_GIVEN,
|
|
207
206
|
start_conference_on_enter: bool | NotGiven = NOT_GIVEN,
|
|
208
207
|
supervisor_role: Literal["barge", "monitor", "none", "whisper"] | NotGiven = NOT_GIVEN,
|
|
209
|
-
whisper_call_control_ids:
|
|
208
|
+
whisper_call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
210
209
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
211
210
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
212
211
|
extra_headers: Headers | None = None,
|
|
@@ -381,7 +380,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
381
380
|
self,
|
|
382
381
|
id: str,
|
|
383
382
|
*,
|
|
384
|
-
call_control_ids:
|
|
383
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
385
384
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
386
385
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
387
386
|
extra_headers: Headers | None = None,
|
|
@@ -420,7 +419,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
420
419
|
id: str,
|
|
421
420
|
*,
|
|
422
421
|
audio_url: str | NotGiven = NOT_GIVEN,
|
|
423
|
-
call_control_ids:
|
|
422
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
424
423
|
loop: LoopcountParam | NotGiven = NOT_GIVEN,
|
|
425
424
|
media_name: str | NotGiven = NOT_GIVEN,
|
|
426
425
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -703,7 +702,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
703
702
|
*,
|
|
704
703
|
payload: str,
|
|
705
704
|
voice: str,
|
|
706
|
-
call_control_ids:
|
|
705
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
707
706
|
command_id: str | NotGiven = NOT_GIVEN,
|
|
708
707
|
language: Literal[
|
|
709
708
|
"arb",
|
|
@@ -830,7 +829,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
830
829
|
self,
|
|
831
830
|
id: str,
|
|
832
831
|
*,
|
|
833
|
-
call_control_ids:
|
|
832
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
834
833
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
835
834
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
836
835
|
extra_headers: Headers | None = None,
|
|
@@ -868,7 +867,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
868
867
|
self,
|
|
869
868
|
id: str,
|
|
870
869
|
*,
|
|
871
|
-
call_control_ids:
|
|
870
|
+
call_control_ids: SequenceNotStr[str],
|
|
872
871
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
873
872
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
874
873
|
extra_headers: Headers | None = None,
|
|
@@ -906,7 +905,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
906
905
|
self,
|
|
907
906
|
id: str,
|
|
908
907
|
*,
|
|
909
|
-
call_control_ids:
|
|
908
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
910
909
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
911
910
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
912
911
|
extra_headers: Headers | None = None,
|
|
@@ -968,7 +967,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
968
967
|
call_control_id: str,
|
|
969
968
|
supervisor_role: Literal["barge", "monitor", "none", "whisper"],
|
|
970
969
|
command_id: str | NotGiven = NOT_GIVEN,
|
|
971
|
-
whisper_call_control_ids:
|
|
970
|
+
whisper_call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
972
971
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
973
972
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
974
973
|
extra_headers: Headers | None = None,
|
|
@@ -1028,7 +1027,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1028
1027
|
id: str,
|
|
1029
1028
|
*,
|
|
1030
1029
|
audio_url: str | NotGiven = NOT_GIVEN,
|
|
1031
|
-
call_control_ids:
|
|
1030
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1032
1031
|
media_name: str | NotGiven = NOT_GIVEN,
|
|
1033
1032
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1034
1033
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1094,7 +1093,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1094
1093
|
soft_end_conference_on_exit: bool | NotGiven = NOT_GIVEN,
|
|
1095
1094
|
start_conference_on_enter: bool | NotGiven = NOT_GIVEN,
|
|
1096
1095
|
supervisor_role: Literal["barge", "monitor", "none", "whisper"] | NotGiven = NOT_GIVEN,
|
|
1097
|
-
whisper_call_control_ids:
|
|
1096
|
+
whisper_call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1098
1097
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1099
1098
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1100
1099
|
extra_headers: Headers | None = None,
|
|
@@ -1269,7 +1268,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1269
1268
|
self,
|
|
1270
1269
|
id: str,
|
|
1271
1270
|
*,
|
|
1272
|
-
call_control_ids:
|
|
1271
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1273
1272
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1274
1273
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1275
1274
|
extra_headers: Headers | None = None,
|
|
@@ -1310,7 +1309,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1310
1309
|
id: str,
|
|
1311
1310
|
*,
|
|
1312
1311
|
audio_url: str | NotGiven = NOT_GIVEN,
|
|
1313
|
-
call_control_ids:
|
|
1312
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1314
1313
|
loop: LoopcountParam | NotGiven = NOT_GIVEN,
|
|
1315
1314
|
media_name: str | NotGiven = NOT_GIVEN,
|
|
1316
1315
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -1593,7 +1592,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1593
1592
|
*,
|
|
1594
1593
|
payload: str,
|
|
1595
1594
|
voice: str,
|
|
1596
|
-
call_control_ids:
|
|
1595
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1597
1596
|
command_id: str | NotGiven = NOT_GIVEN,
|
|
1598
1597
|
language: Literal[
|
|
1599
1598
|
"arb",
|
|
@@ -1720,7 +1719,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1720
1719
|
self,
|
|
1721
1720
|
id: str,
|
|
1722
1721
|
*,
|
|
1723
|
-
call_control_ids:
|
|
1722
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1724
1723
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1725
1724
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1726
1725
|
extra_headers: Headers | None = None,
|
|
@@ -1760,7 +1759,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1760
1759
|
self,
|
|
1761
1760
|
id: str,
|
|
1762
1761
|
*,
|
|
1763
|
-
call_control_ids:
|
|
1762
|
+
call_control_ids: SequenceNotStr[str],
|
|
1764
1763
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1765
1764
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1766
1765
|
extra_headers: Headers | None = None,
|
|
@@ -1800,7 +1799,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1800
1799
|
self,
|
|
1801
1800
|
id: str,
|
|
1802
1801
|
*,
|
|
1803
|
-
call_control_ids:
|
|
1802
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1804
1803
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1805
1804
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1806
1805
|
extra_headers: Headers | None = None,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -23,7 +23,7 @@ from .actions import (
|
|
|
23
23
|
ActionsResourceWithStreamingResponse,
|
|
24
24
|
AsyncActionsResourceWithStreamingResponse,
|
|
25
25
|
)
|
|
26
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
26
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
27
27
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
28
28
|
from ..._compat import cached_property
|
|
29
29
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -92,7 +92,7 @@ class CredentialConnectionsResource(SyncAPIResource):
|
|
|
92
92
|
outbound: CredentialOutboundParam | NotGiven = NOT_GIVEN,
|
|
93
93
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
94
94
|
sip_uri_calling_preference: Literal["disabled", "unrestricted", "internal"] | NotGiven = NOT_GIVEN,
|
|
95
|
-
tags:
|
|
95
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
96
96
|
webhook_api_version: Literal["1", "2", "texml"] | NotGiven = NOT_GIVEN,
|
|
97
97
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
98
98
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
@@ -257,7 +257,7 @@ class CredentialConnectionsResource(SyncAPIResource):
|
|
|
257
257
|
password: str | NotGiven = NOT_GIVEN,
|
|
258
258
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
259
259
|
sip_uri_calling_preference: Literal["disabled", "unrestricted", "internal"] | NotGiven = NOT_GIVEN,
|
|
260
|
-
tags:
|
|
260
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
261
261
|
user_name: str | NotGiven = NOT_GIVEN,
|
|
262
262
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
263
263
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -515,7 +515,7 @@ class AsyncCredentialConnectionsResource(AsyncAPIResource):
|
|
|
515
515
|
outbound: CredentialOutboundParam | NotGiven = NOT_GIVEN,
|
|
516
516
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
517
517
|
sip_uri_calling_preference: Literal["disabled", "unrestricted", "internal"] | NotGiven = NOT_GIVEN,
|
|
518
|
-
tags:
|
|
518
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
519
519
|
webhook_api_version: Literal["1", "2", "texml"] | NotGiven = NOT_GIVEN,
|
|
520
520
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
521
521
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
@@ -680,7 +680,7 @@ class AsyncCredentialConnectionsResource(AsyncAPIResource):
|
|
|
680
680
|
password: str | NotGiven = NOT_GIVEN,
|
|
681
681
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
682
682
|
sip_uri_calling_preference: Literal["disabled", "unrestricted", "internal"] | NotGiven = NOT_GIVEN,
|
|
683
|
-
tags:
|
|
683
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
684
684
|
user_name: str | NotGiven = NOT_GIVEN,
|
|
685
685
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
686
686
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
|
-
|
|
7
5
|
import httpx
|
|
8
6
|
|
|
9
7
|
from ..types import (
|
|
@@ -11,7 +9,7 @@ from ..types import (
|
|
|
11
9
|
customer_service_record_create_params,
|
|
12
10
|
customer_service_record_verify_phone_number_coverage_params,
|
|
13
11
|
)
|
|
14
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
12
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
15
13
|
from .._utils import maybe_transform, async_maybe_transform
|
|
16
14
|
from .._compat import cached_property
|
|
17
15
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -189,7 +187,7 @@ class CustomerServiceRecordsResource(SyncAPIResource):
|
|
|
189
187
|
def verify_phone_number_coverage(
|
|
190
188
|
self,
|
|
191
189
|
*,
|
|
192
|
-
phone_numbers:
|
|
190
|
+
phone_numbers: SequenceNotStr[str],
|
|
193
191
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
194
192
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
195
193
|
extra_headers: Headers | None = None,
|
|
@@ -381,7 +379,7 @@ class AsyncCustomerServiceRecordsResource(AsyncAPIResource):
|
|
|
381
379
|
async def verify_phone_number_coverage(
|
|
382
380
|
self,
|
|
383
381
|
*,
|
|
384
|
-
phone_numbers:
|
|
382
|
+
phone_numbers: SequenceNotStr[str],
|
|
385
383
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
386
384
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
387
385
|
extra_headers: Headers | None = None,
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
|
-
|
|
7
5
|
import httpx
|
|
8
6
|
|
|
9
7
|
from ..types import detail_record_list_params
|
|
10
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
8
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
11
9
|
from .._utils import maybe_transform, async_maybe_transform
|
|
12
10
|
from .._compat import cached_property
|
|
13
11
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -48,7 +46,7 @@ class DetailRecordsResource(SyncAPIResource):
|
|
|
48
46
|
*,
|
|
49
47
|
filter: detail_record_list_params.Filter | NotGiven = NOT_GIVEN,
|
|
50
48
|
page: detail_record_list_params.Page | NotGiven = NOT_GIVEN,
|
|
51
|
-
sort:
|
|
49
|
+
sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
52
50
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
53
51
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
54
52
|
extra_headers: Headers | None = None,
|
|
@@ -122,7 +120,7 @@ class AsyncDetailRecordsResource(AsyncAPIResource):
|
|
|
122
120
|
*,
|
|
123
121
|
filter: detail_record_list_params.Filter | NotGiven = NOT_GIVEN,
|
|
124
122
|
page: detail_record_list_params.Page | NotGiven = NOT_GIVEN,
|
|
125
|
-
sort:
|
|
123
|
+
sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
126
124
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
127
125
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
128
126
|
extra_headers: Headers | None = None,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -21,7 +21,7 @@ from .uploads import (
|
|
|
21
21
|
UploadsResourceWithStreamingResponse,
|
|
22
22
|
AsyncUploadsResourceWithStreamingResponse,
|
|
23
23
|
)
|
|
24
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
24
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
25
25
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
26
26
|
from .releases import (
|
|
27
27
|
ReleasesResource,
|
|
@@ -121,7 +121,7 @@ class ExternalConnectionsResource(SyncAPIResource):
|
|
|
121
121
|
outbound: external_connection_create_params.Outbound,
|
|
122
122
|
active: bool | NotGiven = NOT_GIVEN,
|
|
123
123
|
inbound: external_connection_create_params.Inbound | NotGiven = NOT_GIVEN,
|
|
124
|
-
tags:
|
|
124
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
125
125
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
126
126
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
127
127
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -223,7 +223,7 @@ class ExternalConnectionsResource(SyncAPIResource):
|
|
|
223
223
|
outbound: external_connection_update_params.Outbound,
|
|
224
224
|
active: bool | NotGiven = NOT_GIVEN,
|
|
225
225
|
inbound: external_connection_update_params.Inbound | NotGiven = NOT_GIVEN,
|
|
226
|
-
tags:
|
|
226
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
227
227
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
228
228
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
229
229
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -460,7 +460,7 @@ class AsyncExternalConnectionsResource(AsyncAPIResource):
|
|
|
460
460
|
outbound: external_connection_create_params.Outbound,
|
|
461
461
|
active: bool | NotGiven = NOT_GIVEN,
|
|
462
462
|
inbound: external_connection_create_params.Inbound | NotGiven = NOT_GIVEN,
|
|
463
|
-
tags:
|
|
463
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
464
464
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
465
465
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
466
466
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -562,7 +562,7 @@ class AsyncExternalConnectionsResource(AsyncAPIResource):
|
|
|
562
562
|
outbound: external_connection_update_params.Outbound,
|
|
563
563
|
active: bool | NotGiven = NOT_GIVEN,
|
|
564
564
|
inbound: external_connection_update_params.Inbound | NotGiven = NOT_GIVEN,
|
|
565
|
-
tags:
|
|
565
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
566
566
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
567
567
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
568
568
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -7,7 +7,7 @@ from typing_extensions import Literal
|
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
9
9
|
|
|
10
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
10
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
11
11
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
12
12
|
from ..._compat import cached_property
|
|
13
13
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -53,7 +53,7 @@ class UploadsResource(SyncAPIResource):
|
|
|
53
53
|
self,
|
|
54
54
|
id: str,
|
|
55
55
|
*,
|
|
56
|
-
number_ids:
|
|
56
|
+
number_ids: SequenceNotStr[str],
|
|
57
57
|
additional_usages: List[Literal["calling_user_assignment", "first_party_app_assignment"]]
|
|
58
58
|
| NotGiven = NOT_GIVEN,
|
|
59
59
|
civic_address_id: str | NotGiven = NOT_GIVEN,
|
|
@@ -326,7 +326,7 @@ class AsyncUploadsResource(AsyncAPIResource):
|
|
|
326
326
|
self,
|
|
327
327
|
id: str,
|
|
328
328
|
*,
|
|
329
|
-
number_ids:
|
|
329
|
+
number_ids: SequenceNotStr[str],
|
|
330
330
|
additional_usages: List[Literal["calling_user_assignment", "first_party_app_assignment"]]
|
|
331
331
|
| NotGiven = NOT_GIVEN,
|
|
332
332
|
civic_address_id: str | NotGiven = NOT_GIVEN,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -13,7 +13,7 @@ from ..types import (
|
|
|
13
13
|
fax_application_create_params,
|
|
14
14
|
fax_application_update_params,
|
|
15
15
|
)
|
|
16
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
16
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
17
17
|
from .._utils import maybe_transform, async_maybe_transform
|
|
18
18
|
from .._compat import cached_property
|
|
19
19
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -63,7 +63,7 @@ class FaxApplicationsResource(SyncAPIResource):
|
|
|
63
63
|
anchorsite_override: AnchorsiteOverride | NotGiven = NOT_GIVEN,
|
|
64
64
|
inbound: fax_application_create_params.Inbound | NotGiven = NOT_GIVEN,
|
|
65
65
|
outbound: fax_application_create_params.Outbound | NotGiven = NOT_GIVEN,
|
|
66
|
-
tags:
|
|
66
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
67
67
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
68
68
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
69
69
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -173,7 +173,7 @@ class FaxApplicationsResource(SyncAPIResource):
|
|
|
173
173
|
fax_email_recipient: Optional[str] | NotGiven = NOT_GIVEN,
|
|
174
174
|
inbound: fax_application_update_params.Inbound | NotGiven = NOT_GIVEN,
|
|
175
175
|
outbound: fax_application_update_params.Outbound | NotGiven = NOT_GIVEN,
|
|
176
|
-
tags:
|
|
176
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
177
177
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
178
178
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
179
179
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -376,7 +376,7 @@ class AsyncFaxApplicationsResource(AsyncAPIResource):
|
|
|
376
376
|
anchorsite_override: AnchorsiteOverride | NotGiven = NOT_GIVEN,
|
|
377
377
|
inbound: fax_application_create_params.Inbound | NotGiven = NOT_GIVEN,
|
|
378
378
|
outbound: fax_application_create_params.Outbound | NotGiven = NOT_GIVEN,
|
|
379
|
-
tags:
|
|
379
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
380
380
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
381
381
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
382
382
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -486,7 +486,7 @@ class AsyncFaxApplicationsResource(AsyncAPIResource):
|
|
|
486
486
|
fax_email_recipient: Optional[str] | NotGiven = NOT_GIVEN,
|
|
487
487
|
inbound: fax_application_update_params.Inbound | NotGiven = NOT_GIVEN,
|
|
488
488
|
outbound: fax_application_update_params.Outbound | NotGiven = NOT_GIVEN,
|
|
489
|
-
tags:
|
|
489
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
490
490
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
491
491
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
492
492
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -17,7 +17,7 @@ from ..types import (
|
|
|
17
17
|
fqdn_connection_create_params,
|
|
18
18
|
fqdn_connection_update_params,
|
|
19
19
|
)
|
|
20
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
20
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
21
21
|
from .._utils import maybe_transform, async_maybe_transform
|
|
22
22
|
from .._compat import cached_property
|
|
23
23
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -82,7 +82,7 @@ class FqdnConnectionsResource(SyncAPIResource):
|
|
|
82
82
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
83
83
|
outbound: OutboundFqdnParam | NotGiven = NOT_GIVEN,
|
|
84
84
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
85
|
-
tags:
|
|
85
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
86
86
|
transport_protocol: TransportProtocol | NotGiven = NOT_GIVEN,
|
|
87
87
|
webhook_api_version: WebhookAPIVersion | NotGiven = NOT_GIVEN,
|
|
88
88
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -237,7 +237,7 @@ class FqdnConnectionsResource(SyncAPIResource):
|
|
|
237
237
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
238
238
|
outbound: OutboundFqdnParam | NotGiven = NOT_GIVEN,
|
|
239
239
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
240
|
-
tags:
|
|
240
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
241
241
|
transport_protocol: TransportProtocol | NotGiven = NOT_GIVEN,
|
|
242
242
|
webhook_api_version: WebhookAPIVersion | NotGiven = NOT_GIVEN,
|
|
243
243
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -478,7 +478,7 @@ class AsyncFqdnConnectionsResource(AsyncAPIResource):
|
|
|
478
478
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
479
479
|
outbound: OutboundFqdnParam | NotGiven = NOT_GIVEN,
|
|
480
480
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
481
|
-
tags:
|
|
481
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
482
482
|
transport_protocol: TransportProtocol | NotGiven = NOT_GIVEN,
|
|
483
483
|
webhook_api_version: WebhookAPIVersion | NotGiven = NOT_GIVEN,
|
|
484
484
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -633,7 +633,7 @@ class AsyncFqdnConnectionsResource(AsyncAPIResource):
|
|
|
633
633
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
634
634
|
outbound: OutboundFqdnParam | NotGiven = NOT_GIVEN,
|
|
635
635
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
636
|
-
tags:
|
|
636
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
637
637
|
transport_protocol: TransportProtocol | NotGiven = NOT_GIVEN,
|
|
638
638
|
webhook_api_version: WebhookAPIVersion | NotGiven = NOT_GIVEN,
|
|
639
639
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -15,7 +15,7 @@ from ..types import (
|
|
|
15
15
|
ip_connection_create_params,
|
|
16
16
|
ip_connection_update_params,
|
|
17
17
|
)
|
|
18
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
18
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
19
19
|
from .._utils import maybe_transform, async_maybe_transform
|
|
20
20
|
from .._compat import cached_property
|
|
21
21
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -77,7 +77,7 @@ class IPConnectionsResource(SyncAPIResource):
|
|
|
77
77
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
78
78
|
outbound: OutboundIPParam | NotGiven = NOT_GIVEN,
|
|
79
79
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
80
|
-
tags:
|
|
80
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
81
81
|
transport_protocol: Literal["UDP", "TCP", "TLS"] | NotGiven = NOT_GIVEN,
|
|
82
82
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
83
83
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -226,7 +226,7 @@ class IPConnectionsResource(SyncAPIResource):
|
|
|
226
226
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
227
227
|
outbound: OutboundIPParam | NotGiven = NOT_GIVEN,
|
|
228
228
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
229
|
-
tags:
|
|
229
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
230
230
|
transport_protocol: Literal["UDP", "TCP", "TLS"] | NotGiven = NOT_GIVEN,
|
|
231
231
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
232
232
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -464,7 +464,7 @@ class AsyncIPConnectionsResource(AsyncAPIResource):
|
|
|
464
464
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
465
465
|
outbound: OutboundIPParam | NotGiven = NOT_GIVEN,
|
|
466
466
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
467
|
-
tags:
|
|
467
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
468
468
|
transport_protocol: Literal["UDP", "TCP", "TLS"] | NotGiven = NOT_GIVEN,
|
|
469
469
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
470
470
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -613,7 +613,7 @@ class AsyncIPConnectionsResource(AsyncAPIResource):
|
|
|
613
613
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
614
614
|
outbound: OutboundIPParam | NotGiven = NOT_GIVEN,
|
|
615
615
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
616
|
-
tags:
|
|
616
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
617
617
|
transport_protocol: Literal["UDP", "TCP", "TLS"] | NotGiven = NOT_GIVEN,
|
|
618
618
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
619
619
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Union
|
|
6
6
|
from datetime import datetime
|
|
7
7
|
from typing_extensions import Literal
|
|
8
8
|
|
|
@@ -24,7 +24,7 @@ from ...types import (
|
|
|
24
24
|
message_send_short_code_params,
|
|
25
25
|
message_send_number_pool_params,
|
|
26
26
|
)
|
|
27
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
27
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
28
28
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
29
29
|
from ..._compat import cached_property
|
|
30
30
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -148,7 +148,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
148
148
|
to: str,
|
|
149
149
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
150
150
|
from_: str | NotGiven = NOT_GIVEN,
|
|
151
|
-
media_urls:
|
|
151
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
152
152
|
messaging_profile_id: str | NotGiven = NOT_GIVEN,
|
|
153
153
|
send_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
154
154
|
subject: str | NotGiven = NOT_GIVEN,
|
|
@@ -251,7 +251,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
251
251
|
to: str,
|
|
252
252
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
253
253
|
from_: str | NotGiven = NOT_GIVEN,
|
|
254
|
-
media_urls:
|
|
254
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
255
255
|
messaging_profile_id: str | NotGiven = NOT_GIVEN,
|
|
256
256
|
send_at: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
|
|
257
257
|
subject: str | NotGiven = NOT_GIVEN,
|
|
@@ -352,8 +352,8 @@ class MessagesResource(SyncAPIResource):
|
|
|
352
352
|
self,
|
|
353
353
|
*,
|
|
354
354
|
from_: str,
|
|
355
|
-
to:
|
|
356
|
-
media_urls:
|
|
355
|
+
to: SequenceNotStr[str],
|
|
356
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
357
357
|
subject: str | NotGiven = NOT_GIVEN,
|
|
358
358
|
text: str | NotGiven = NOT_GIVEN,
|
|
359
359
|
use_profile_webhooks: bool | NotGiven = NOT_GIVEN,
|
|
@@ -424,7 +424,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
424
424
|
from_: str,
|
|
425
425
|
to: str,
|
|
426
426
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
427
|
-
media_urls:
|
|
427
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
428
428
|
subject: str | NotGiven = NOT_GIVEN,
|
|
429
429
|
text: str | NotGiven = NOT_GIVEN,
|
|
430
430
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -507,7 +507,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
507
507
|
messaging_profile_id: str,
|
|
508
508
|
to: str,
|
|
509
509
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
510
|
-
media_urls:
|
|
510
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
511
511
|
subject: str | NotGiven = NOT_GIVEN,
|
|
512
512
|
text: str | NotGiven = NOT_GIVEN,
|
|
513
513
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -590,7 +590,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
590
590
|
from_: str,
|
|
591
591
|
to: str,
|
|
592
592
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
593
|
-
media_urls:
|
|
593
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
594
594
|
subject: str | NotGiven = NOT_GIVEN,
|
|
595
595
|
text: str | NotGiven = NOT_GIVEN,
|
|
596
596
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -769,7 +769,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
769
769
|
to: str,
|
|
770
770
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
771
771
|
from_: str | NotGiven = NOT_GIVEN,
|
|
772
|
-
media_urls:
|
|
772
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
773
773
|
messaging_profile_id: str | NotGiven = NOT_GIVEN,
|
|
774
774
|
send_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
775
775
|
subject: str | NotGiven = NOT_GIVEN,
|
|
@@ -872,7 +872,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
872
872
|
to: str,
|
|
873
873
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
874
874
|
from_: str | NotGiven = NOT_GIVEN,
|
|
875
|
-
media_urls:
|
|
875
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
876
876
|
messaging_profile_id: str | NotGiven = NOT_GIVEN,
|
|
877
877
|
send_at: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
|
|
878
878
|
subject: str | NotGiven = NOT_GIVEN,
|
|
@@ -973,8 +973,8 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
973
973
|
self,
|
|
974
974
|
*,
|
|
975
975
|
from_: str,
|
|
976
|
-
to:
|
|
977
|
-
media_urls:
|
|
976
|
+
to: SequenceNotStr[str],
|
|
977
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
978
978
|
subject: str | NotGiven = NOT_GIVEN,
|
|
979
979
|
text: str | NotGiven = NOT_GIVEN,
|
|
980
980
|
use_profile_webhooks: bool | NotGiven = NOT_GIVEN,
|
|
@@ -1045,7 +1045,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
1045
1045
|
from_: str,
|
|
1046
1046
|
to: str,
|
|
1047
1047
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
1048
|
-
media_urls:
|
|
1048
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1049
1049
|
subject: str | NotGiven = NOT_GIVEN,
|
|
1050
1050
|
text: str | NotGiven = NOT_GIVEN,
|
|
1051
1051
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -1128,7 +1128,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
1128
1128
|
messaging_profile_id: str,
|
|
1129
1129
|
to: str,
|
|
1130
1130
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
1131
|
-
media_urls:
|
|
1131
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1132
1132
|
subject: str | NotGiven = NOT_GIVEN,
|
|
1133
1133
|
text: str | NotGiven = NOT_GIVEN,
|
|
1134
1134
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -1211,7 +1211,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
1211
1211
|
from_: str,
|
|
1212
1212
|
to: str,
|
|
1213
1213
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
1214
|
-
media_urls:
|
|
1214
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1215
1215
|
subject: str | NotGiven = NOT_GIVEN,
|
|
1216
1216
|
text: str | NotGiven = NOT_GIVEN,
|
|
1217
1217
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|