telnyx 3.3.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.

Files changed (156) hide show
  1. telnyx/_base_client.py +3 -3
  2. telnyx/_compat.py +48 -48
  3. telnyx/_models.py +40 -40
  4. telnyx/_types.py +35 -1
  5. telnyx/_utils/__init__.py +9 -2
  6. telnyx/_utils/_compat.py +45 -0
  7. telnyx/_utils/_datetime_parse.py +136 -0
  8. telnyx/_utils/_transform.py +11 -1
  9. telnyx/_utils/_typing.py +6 -1
  10. telnyx/_utils/_utils.py +0 -1
  11. telnyx/_version.py +1 -1
  12. telnyx/resources/actions/purchase.py +3 -4
  13. telnyx/resources/actions/register.py +5 -6
  14. telnyx/resources/ai/chat.py +4 -4
  15. telnyx/resources/ai/clusters.py +3 -5
  16. telnyx/resources/ai/conversations/messages.py +4 -4
  17. telnyx/resources/ai/embeddings/embeddings.py +3 -4
  18. telnyx/resources/call_control_applications.py +4 -4
  19. telnyx/resources/calls/calls.py +4 -4
  20. telnyx/resources/campaign_builder/campaign_builder.py +6 -6
  21. telnyx/resources/conferences/actions.py +19 -20
  22. telnyx/resources/credential_connections/credential_connections.py +6 -6
  23. telnyx/resources/customer_service_records.py +3 -5
  24. telnyx/resources/detail_records.py +3 -5
  25. telnyx/resources/external_connections/external_connections.py +6 -6
  26. telnyx/resources/external_connections/uploads.py +3 -3
  27. telnyx/resources/fax_applications.py +6 -6
  28. telnyx/resources/fqdn_connections.py +6 -6
  29. telnyx/resources/ip_connections.py +6 -6
  30. telnyx/resources/messages/messages.py +16 -16
  31. telnyx/resources/messaging/rcs/rcs.py +3 -5
  32. telnyx/resources/messaging_hosted_number_orders/messaging_hosted_number_orders.py +8 -8
  33. telnyx/resources/messaging_numbers_bulk_updates.py +3 -5
  34. telnyx/resources/messaging_profiles/autoresp_configs.py +5 -6
  35. telnyx/resources/messaging_profiles/messaging_profiles.py +6 -6
  36. telnyx/resources/numbers_features.py +3 -5
  37. telnyx/resources/outbound_voice_profiles.py +10 -10
  38. telnyx/resources/phone_numbers/actions.py +3 -5
  39. telnyx/resources/phone_numbers/jobs.py +10 -10
  40. telnyx/resources/phone_numbers/phone_numbers.py +3 -4
  41. telnyx/resources/portability_checks.py +3 -5
  42. telnyx/resources/porting_orders/porting_orders.py +4 -4
  43. telnyx/resources/porting_orders/verification_codes.py +4 -4
  44. telnyx/resources/recordings/actions.py +3 -5
  45. telnyx/resources/reports/mdr_usage_reports.py +4 -4
  46. telnyx/resources/reports/reports.py +3 -4
  47. telnyx/resources/rooms/sessions/actions.py +14 -14
  48. telnyx/resources/sim_cards/actions.py +5 -7
  49. telnyx/resources/sim_cards/sim_cards.py +5 -6
  50. telnyx/resources/texml_applications.py +5 -6
  51. telnyx/resources/usage_reports.py +7 -8
  52. telnyx/resources/wireless_blocklists.py +5 -6
  53. telnyx/types/__init__.py +4 -4
  54. telnyx/types/actions/purchase_create_params.py +3 -2
  55. telnyx/types/actions/register_create_params.py +4 -3
  56. telnyx/types/ai/chat_create_completion_params.py +3 -2
  57. telnyx/types/ai/cluster_compute_params.py +3 -2
  58. telnyx/types/ai/conversations/message_create_params.py +3 -2
  59. telnyx/types/ai/embedding_list_params.py +3 -2
  60. telnyx/types/ai/inference_embedding_bucket_ids_param.py +3 -2
  61. telnyx/types/ai/inference_embedding_webhook_tool_params_param.py +6 -4
  62. telnyx/types/bundle_pricing/billing_bundle_list_params.py +4 -3
  63. telnyx/types/bundle_pricing/user_bundle_list_params.py +4 -3
  64. telnyx/types/bundle_pricing/user_bundle_list_unused_params.py +4 -3
  65. telnyx/types/call_control_application_update_params.py +3 -2
  66. telnyx/types/call_dial_params.py +4 -3
  67. telnyx/types/calls/transcription_engine_a_config_param.py +4 -3
  68. telnyx/types/campaign_builder_create_params.py +4 -3
  69. telnyx/types/conferences/action_hold_params.py +3 -2
  70. telnyx/types/conferences/action_join_params.py +3 -2
  71. telnyx/types/conferences/action_mute_params.py +3 -2
  72. telnyx/types/conferences/action_play_params.py +2 -2
  73. telnyx/types/conferences/action_speak_params.py +3 -2
  74. telnyx/types/conferences/action_stop_params.py +3 -2
  75. telnyx/types/conferences/action_unhold_params.py +3 -2
  76. telnyx/types/conferences/action_unmute_params.py +3 -2
  77. telnyx/types/conferences/action_update_params.py +3 -2
  78. telnyx/types/credential_connection_create_params.py +3 -2
  79. telnyx/types/credential_connection_update_params.py +3 -2
  80. telnyx/types/credential_inbound_param.py +3 -2
  81. telnyx/types/customer_service_record_list_params.py +2 -1
  82. telnyx/types/customer_service_record_verify_phone_number_coverage_params.py +3 -2
  83. telnyx/types/detail_record_list_params.py +4 -2
  84. telnyx/types/document_list_params.py +2 -1
  85. telnyx/types/external_connection_create_params.py +4 -2
  86. telnyx/types/external_connection_update_params.py +4 -2
  87. telnyx/types/external_connections/civic_address_list_params.py +3 -2
  88. telnyx/types/external_connections/upload_create_params.py +3 -1
  89. telnyx/types/fax_application_create_params.py +3 -2
  90. telnyx/types/fax_application_update_params.py +3 -2
  91. telnyx/types/fqdn_connection_create_params.py +3 -2
  92. telnyx/types/fqdn_connection_update_params.py +3 -2
  93. telnyx/types/inbound_fqdn_param.py +4 -2
  94. telnyx/types/inbound_ip_param.py +3 -2
  95. telnyx/types/ip_connection_create_params.py +4 -3
  96. telnyx/types/ip_connection_update_params.py +3 -2
  97. telnyx/types/media_list_params.py +3 -2
  98. telnyx/types/message_schedule_params.py +3 -2
  99. telnyx/types/message_send_group_mms_params.py +3 -3
  100. telnyx/types/message_send_long_code_params.py +2 -2
  101. telnyx/types/message_send_number_pool_params.py +3 -2
  102. telnyx/types/message_send_params.py +3 -2
  103. telnyx/types/message_send_short_code_params.py +2 -2
  104. telnyx/types/messaging/rc_list_bulk_capabilities_params.py +3 -2
  105. telnyx/types/messaging_hosted_number_order_check_eligibility_params.py +3 -2
  106. telnyx/types/messaging_hosted_number_order_create_params.py +3 -2
  107. telnyx/types/messaging_hosted_number_order_create_verification_codes_params.py +3 -2
  108. telnyx/types/messaging_numbers_bulk_update_create_params.py +3 -2
  109. telnyx/types/messaging_profile_create_params.py +3 -2
  110. telnyx/types/messaging_profile_update_params.py +3 -2
  111. telnyx/types/messaging_profiles/autoresp_config_create_params.py +3 -2
  112. telnyx/types/messaging_profiles/autoresp_config_update_params.py +3 -2
  113. telnyx/types/messsage_rcs_params.py +2 -2
  114. telnyx/types/numbers_feature_create_params.py +3 -2
  115. telnyx/types/outbound_call_recording_param.py +3 -2
  116. telnyx/types/outbound_voice_profile_create_params.py +4 -3
  117. telnyx/types/outbound_voice_profile_update_params.py +4 -3
  118. telnyx/types/phone_number_list_params.py +3 -2
  119. telnyx/types/phone_number_slim_list_params.py +3 -2
  120. telnyx/types/phone_number_update_params.py +3 -2
  121. telnyx/types/phone_numbers/action_verify_ownership_params.py +3 -2
  122. telnyx/types/phone_numbers/job_delete_batch_params.py +3 -2
  123. telnyx/types/phone_numbers/job_update_batch_params.py +3 -3
  124. telnyx/types/phone_numbers/job_update_emergency_settings_batch_params.py +4 -2
  125. telnyx/types/portability_check_run_params.py +3 -2
  126. telnyx/types/porting/export_porting_orders_csv_report_param.py +2 -1
  127. telnyx/types/porting_order_create_params.py +3 -2
  128. telnyx/types/porting_order_phone_number_configuration_param.py +3 -2
  129. telnyx/types/porting_orders/action_requirement_list_params.py +3 -2
  130. telnyx/types/porting_orders/phone_number_block_list_params.py +5 -3
  131. telnyx/types/porting_orders/phone_number_configuration_list_params.py +3 -2
  132. telnyx/types/porting_orders/verification_code_send_params.py +3 -2
  133. telnyx/types/portout_list_params.py +2 -1
  134. telnyx/types/portouts/export_portouts_csv_report_param.py +3 -2
  135. telnyx/types/recordings/action_delete_params.py +3 -2
  136. telnyx/types/report_list_wdrs_params.py +3 -2
  137. telnyx/types/reports/mdr_usage_report_fetch_sync_params.py +3 -2
  138. telnyx/types/rooms/sessions/action_kick_params.py +5 -3
  139. telnyx/types/rooms/sessions/action_mute_params.py +5 -3
  140. telnyx/types/rooms/sessions/action_unmute_params.py +5 -3
  141. telnyx/types/sim_card_list_params.py +2 -1
  142. telnyx/types/sim_card_update_params.py +3 -3
  143. telnyx/types/sim_cards/action_bulk_set_public_ips_params.py +3 -2
  144. telnyx/types/sim_cards/action_validate_registration_codes_params.py +3 -2
  145. telnyx/types/texml_application_create_params.py +2 -2
  146. telnyx/types/texml_application_update_params.py +2 -2
  147. telnyx/types/usage_report_list_params.py +5 -4
  148. telnyx/types/verify_profile_create_params.py +6 -4
  149. telnyx/types/verify_profile_update_params.py +6 -4
  150. telnyx/types/video_region_param.py +4 -2
  151. telnyx/types/wireless_blocklist_create_params.py +3 -2
  152. telnyx/types/wireless_blocklist_update_params.py +3 -2
  153. {telnyx-3.3.0a0.dist-info → telnyx-3.4.0a0.dist-info}/METADATA +1 -1
  154. {telnyx-3.3.0a0.dist-info → telnyx-3.4.0a0.dist-info}/RECORD +156 -154
  155. {telnyx-3.3.0a0.dist-info → telnyx-3.4.0a0.dist-info}/WHEEL +0 -0
  156. {telnyx-3.3.0a0.dist-info → telnyx-3.4.0a0.dist-info}/licenses/LICENSE +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Optional
5
+ from typing import Optional
6
6
  from typing_extensions import Literal
7
7
 
8
8
  import httpx
@@ -14,7 +14,7 @@ from ...types import (
14
14
  messaging_profile_list_short_codes_params,
15
15
  messaging_profile_list_phone_numbers_params,
16
16
  )
17
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
17
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
18
18
  from ..._utils import maybe_transform, async_maybe_transform
19
19
  from ..._compat import cached_property
20
20
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -74,7 +74,7 @@ class MessagingProfilesResource(SyncAPIResource):
74
74
  self,
75
75
  *,
76
76
  name: str,
77
- whitelisted_destinations: List[str],
77
+ whitelisted_destinations: SequenceNotStr[str],
78
78
  alpha_sender: Optional[str] | NotGiven = NOT_GIVEN,
79
79
  daily_spend_limit: str | NotGiven = NOT_GIVEN,
80
80
  daily_spend_limit_enabled: bool | NotGiven = NOT_GIVEN,
@@ -223,7 +223,7 @@ class MessagingProfilesResource(SyncAPIResource):
223
223
  webhook_api_version: Literal["1", "2", "2010-04-01"] | NotGiven = NOT_GIVEN,
224
224
  webhook_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
225
225
  webhook_url: Optional[str] | NotGiven = NOT_GIVEN,
226
- whitelisted_destinations: List[str] | NotGiven = NOT_GIVEN,
226
+ whitelisted_destinations: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
227
227
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
228
228
  # The extra values given here take precedence over values defined on the client or passed to this method.
229
229
  extra_headers: Headers | None = None,
@@ -513,7 +513,7 @@ class AsyncMessagingProfilesResource(AsyncAPIResource):
513
513
  self,
514
514
  *,
515
515
  name: str,
516
- whitelisted_destinations: List[str],
516
+ whitelisted_destinations: SequenceNotStr[str],
517
517
  alpha_sender: Optional[str] | NotGiven = NOT_GIVEN,
518
518
  daily_spend_limit: str | NotGiven = NOT_GIVEN,
519
519
  daily_spend_limit_enabled: bool | NotGiven = NOT_GIVEN,
@@ -662,7 +662,7 @@ class AsyncMessagingProfilesResource(AsyncAPIResource):
662
662
  webhook_api_version: Literal["1", "2", "2010-04-01"] | NotGiven = NOT_GIVEN,
663
663
  webhook_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
664
664
  webhook_url: Optional[str] | NotGiven = NOT_GIVEN,
665
- whitelisted_destinations: List[str] | NotGiven = NOT_GIVEN,
665
+ whitelisted_destinations: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
666
666
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
667
667
  # The extra values given here take precedence over values defined on the client or passed to this method.
668
668
  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 numbers_feature_create_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
@@ -46,7 +44,7 @@ class NumbersFeaturesResource(SyncAPIResource):
46
44
  def create(
47
45
  self,
48
46
  *,
49
- phone_numbers: List[str],
47
+ phone_numbers: SequenceNotStr[str],
50
48
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51
49
  # The extra values given here take precedence over values defined on the client or passed to this method.
52
50
  extra_headers: Headers | None = None,
@@ -101,7 +99,7 @@ class AsyncNumbersFeaturesResource(AsyncAPIResource):
101
99
  async def create(
102
100
  self,
103
101
  *,
104
- phone_numbers: List[str],
102
+ phone_numbers: SequenceNotStr[str],
105
103
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
106
104
  # The extra values given here take precedence over values defined on the client or passed to this method.
107
105
  extra_headers: Headers | None = None,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Optional
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
  outbound_voice_profile_create_params,
16
16
  outbound_voice_profile_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
@@ -71,10 +71,10 @@ class OutboundVoiceProfilesResource(SyncAPIResource):
71
71
  enabled: bool | NotGiven = NOT_GIVEN,
72
72
  max_destination_rate: float | NotGiven = NOT_GIVEN,
73
73
  service_plan: ServicePlan | NotGiven = NOT_GIVEN,
74
- tags: List[str] | NotGiven = NOT_GIVEN,
74
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
75
75
  traffic_type: TrafficType | NotGiven = NOT_GIVEN,
76
76
  usage_payment_method: UsagePaymentMethod | NotGiven = NOT_GIVEN,
77
- whitelisted_destinations: List[str] | NotGiven = NOT_GIVEN,
77
+ whitelisted_destinations: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
78
78
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
79
79
  # The extra values given here take precedence over values defined on the client or passed to this method.
80
80
  extra_headers: Headers | None = None,
@@ -194,10 +194,10 @@ class OutboundVoiceProfilesResource(SyncAPIResource):
194
194
  enabled: bool | NotGiven = NOT_GIVEN,
195
195
  max_destination_rate: float | NotGiven = NOT_GIVEN,
196
196
  service_plan: ServicePlan | NotGiven = NOT_GIVEN,
197
- tags: List[str] | NotGiven = NOT_GIVEN,
197
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
198
198
  traffic_type: TrafficType | NotGiven = NOT_GIVEN,
199
199
  usage_payment_method: UsagePaymentMethod | NotGiven = NOT_GIVEN,
200
- whitelisted_destinations: List[str] | NotGiven = NOT_GIVEN,
200
+ whitelisted_destinations: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
201
201
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
202
202
  # The extra values given here take precedence over values defined on the client or passed to this method.
203
203
  extra_headers: Headers | None = None,
@@ -420,10 +420,10 @@ class AsyncOutboundVoiceProfilesResource(AsyncAPIResource):
420
420
  enabled: bool | NotGiven = NOT_GIVEN,
421
421
  max_destination_rate: float | NotGiven = NOT_GIVEN,
422
422
  service_plan: ServicePlan | NotGiven = NOT_GIVEN,
423
- tags: List[str] | NotGiven = NOT_GIVEN,
423
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
424
424
  traffic_type: TrafficType | NotGiven = NOT_GIVEN,
425
425
  usage_payment_method: UsagePaymentMethod | NotGiven = NOT_GIVEN,
426
- whitelisted_destinations: List[str] | NotGiven = NOT_GIVEN,
426
+ whitelisted_destinations: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
427
427
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
428
428
  # The extra values given here take precedence over values defined on the client or passed to this method.
429
429
  extra_headers: Headers | None = None,
@@ -543,10 +543,10 @@ class AsyncOutboundVoiceProfilesResource(AsyncAPIResource):
543
543
  enabled: bool | NotGiven = NOT_GIVEN,
544
544
  max_destination_rate: float | NotGiven = NOT_GIVEN,
545
545
  service_plan: ServicePlan | NotGiven = NOT_GIVEN,
546
- tags: List[str] | NotGiven = NOT_GIVEN,
546
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
547
547
  traffic_type: TrafficType | NotGiven = NOT_GIVEN,
548
548
  usage_payment_method: UsagePaymentMethod | NotGiven = NOT_GIVEN,
549
- whitelisted_destinations: List[str] | NotGiven = NOT_GIVEN,
549
+ whitelisted_destinations: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
550
550
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
551
551
  # The extra values given here take precedence over values defined on the client or passed to this method.
552
552
  extra_headers: Headers | None = None,
@@ -2,11 +2,9 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
-
7
5
  import httpx
8
6
 
9
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
10
8
  from ..._utils import maybe_transform, async_maybe_transform
11
9
  from ..._compat import cached_property
12
10
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -142,7 +140,7 @@ class ActionsResource(SyncAPIResource):
142
140
  def verify_ownership(
143
141
  self,
144
142
  *,
145
- phone_numbers: List[str],
143
+ phone_numbers: SequenceNotStr[str],
146
144
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
147
145
  # The extra values given here take precedence over values defined on the client or passed to this method.
148
146
  extra_headers: Headers | None = None,
@@ -290,7 +288,7 @@ class AsyncActionsResource(AsyncAPIResource):
290
288
  async def verify_ownership(
291
289
  self,
292
290
  *,
293
- phone_numbers: List[str],
291
+ phone_numbers: SequenceNotStr[str],
294
292
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
295
293
  # The extra values given here take precedence over values defined on the client or passed to this method.
296
294
  extra_headers: Headers | None = None,
@@ -2,12 +2,12 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Optional
5
+ from typing import Optional
6
6
  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
@@ -142,7 +142,7 @@ class JobsResource(SyncAPIResource):
142
142
  def delete_batch(
143
143
  self,
144
144
  *,
145
- phone_numbers: List[str],
145
+ phone_numbers: SequenceNotStr[str],
146
146
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
147
147
  # The extra values given here take precedence over values defined on the client or passed to this method.
148
148
  extra_headers: Headers | None = None,
@@ -176,14 +176,14 @@ class JobsResource(SyncAPIResource):
176
176
  def update_batch(
177
177
  self,
178
178
  *,
179
- phone_numbers: List[str],
179
+ phone_numbers: SequenceNotStr[str],
180
180
  filter: job_update_batch_params.Filter | NotGiven = NOT_GIVEN,
181
181
  billing_group_id: str | NotGiven = NOT_GIVEN,
182
182
  connection_id: str | NotGiven = NOT_GIVEN,
183
183
  customer_reference: str | NotGiven = NOT_GIVEN,
184
184
  external_pin: str | NotGiven = NOT_GIVEN,
185
185
  hd_voice_enabled: bool | NotGiven = NOT_GIVEN,
186
- tags: List[str] | NotGiven = NOT_GIVEN,
186
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
187
187
  voice: UpdateVoiceSettingsParam | NotGiven = NOT_GIVEN,
188
188
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
189
189
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -272,7 +272,7 @@ class JobsResource(SyncAPIResource):
272
272
  self,
273
273
  *,
274
274
  emergency_enabled: bool,
275
- phone_numbers: List[str],
275
+ phone_numbers: SequenceNotStr[str],
276
276
  emergency_address_id: Optional[str] | NotGiven = NOT_GIVEN,
277
277
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
278
278
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -425,7 +425,7 @@ class AsyncJobsResource(AsyncAPIResource):
425
425
  async def delete_batch(
426
426
  self,
427
427
  *,
428
- phone_numbers: List[str],
428
+ phone_numbers: SequenceNotStr[str],
429
429
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
430
430
  # The extra values given here take precedence over values defined on the client or passed to this method.
431
431
  extra_headers: Headers | None = None,
@@ -461,14 +461,14 @@ class AsyncJobsResource(AsyncAPIResource):
461
461
  async def update_batch(
462
462
  self,
463
463
  *,
464
- phone_numbers: List[str],
464
+ phone_numbers: SequenceNotStr[str],
465
465
  filter: job_update_batch_params.Filter | NotGiven = NOT_GIVEN,
466
466
  billing_group_id: str | NotGiven = NOT_GIVEN,
467
467
  connection_id: str | NotGiven = NOT_GIVEN,
468
468
  customer_reference: str | NotGiven = NOT_GIVEN,
469
469
  external_pin: str | NotGiven = NOT_GIVEN,
470
470
  hd_voice_enabled: bool | NotGiven = NOT_GIVEN,
471
- tags: List[str] | NotGiven = NOT_GIVEN,
471
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
472
472
  voice: UpdateVoiceSettingsParam | NotGiven = NOT_GIVEN,
473
473
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
474
474
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -557,7 +557,7 @@ class AsyncJobsResource(AsyncAPIResource):
557
557
  self,
558
558
  *,
559
559
  emergency_enabled: bool,
560
- phone_numbers: List[str],
560
+ phone_numbers: SequenceNotStr[str],
561
561
  emergency_address_id: Optional[str] | NotGiven = NOT_GIVEN,
562
562
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
563
563
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2,7 +2,6 @@
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
@@ -32,7 +31,7 @@ from .actions import (
32
31
  ActionsResourceWithStreamingResponse,
33
32
  AsyncActionsResourceWithStreamingResponse,
34
33
  )
35
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
34
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
36
35
  from ..._utils import maybe_transform, async_maybe_transform
37
36
  from ..._compat import cached_property
38
37
  from .messaging import (
@@ -162,7 +161,7 @@ class PhoneNumbersResource(SyncAPIResource):
162
161
  customer_reference: str | NotGiven = NOT_GIVEN,
163
162
  external_pin: str | NotGiven = NOT_GIVEN,
164
163
  hd_voice_enabled: bool | NotGiven = NOT_GIVEN,
165
- tags: List[str] | NotGiven = NOT_GIVEN,
164
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
166
165
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
167
166
  # The extra values given here take precedence over values defined on the client or passed to this method.
168
167
  extra_headers: Headers | None = None,
@@ -461,7 +460,7 @@ class AsyncPhoneNumbersResource(AsyncAPIResource):
461
460
  customer_reference: str | NotGiven = NOT_GIVEN,
462
461
  external_pin: str | NotGiven = NOT_GIVEN,
463
462
  hd_voice_enabled: bool | NotGiven = NOT_GIVEN,
464
- tags: List[str] | NotGiven = NOT_GIVEN,
463
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
465
464
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
466
465
  # The extra values given here take precedence over values defined on the client or passed to this method.
467
466
  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 portability_check_run_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
@@ -46,7 +44,7 @@ class PortabilityChecksResource(SyncAPIResource):
46
44
  def run(
47
45
  self,
48
46
  *,
49
- phone_numbers: List[str] | NotGiven = NOT_GIVEN,
47
+ phone_numbers: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
50
48
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51
49
  # The extra values given here take precedence over values defined on the client or passed to this method.
52
50
  extra_headers: Headers | None = None,
@@ -103,7 +101,7 @@ class AsyncPortabilityChecksResource(AsyncAPIResource):
103
101
  async def run(
104
102
  self,
105
103
  *,
106
- phone_numbers: List[str] | NotGiven = NOT_GIVEN,
104
+ phone_numbers: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
107
105
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
108
106
  # The extra values given here take precedence over values defined on the client or passed to this method.
109
107
  extra_headers: Headers | None = None,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Iterable
5
+ from typing import Iterable
6
6
 
7
7
  import httpx
8
8
 
@@ -22,7 +22,7 @@ from .actions import (
22
22
  ActionsResourceWithStreamingResponse,
23
23
  AsyncActionsResourceWithStreamingResponse,
24
24
  )
25
- from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
25
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, SequenceNotStr
26
26
  from ..._utils import maybe_transform, async_maybe_transform
27
27
  from .comments import (
28
28
  CommentsResource,
@@ -193,7 +193,7 @@ class PortingOrdersResource(SyncAPIResource):
193
193
  def create(
194
194
  self,
195
195
  *,
196
- phone_numbers: List[str],
196
+ phone_numbers: SequenceNotStr[str],
197
197
  customer_reference: str | NotGiven = NOT_GIVEN,
198
198
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
199
199
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -692,7 +692,7 @@ class AsyncPortingOrdersResource(AsyncAPIResource):
692
692
  async def create(
693
693
  self,
694
694
  *,
695
- phone_numbers: List[str],
695
+ phone_numbers: SequenceNotStr[str],
696
696
  customer_reference: str | NotGiven = NOT_GIVEN,
697
697
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
698
698
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2,12 +2,12 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Iterable
5
+ from typing import Iterable
6
6
  from typing_extensions import Literal
7
7
 
8
8
  import httpx
9
9
 
10
- from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
10
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, 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
@@ -107,7 +107,7 @@ class VerificationCodesResource(SyncAPIResource):
107
107
  self,
108
108
  id: str,
109
109
  *,
110
- phone_numbers: List[str] | NotGiven = NOT_GIVEN,
110
+ phone_numbers: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
111
111
  verification_method: Literal["sms", "call"] | NotGiven = NOT_GIVEN,
112
112
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
113
113
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -262,7 +262,7 @@ class AsyncVerificationCodesResource(AsyncAPIResource):
262
262
  self,
263
263
  id: str,
264
264
  *,
265
- phone_numbers: List[str] | NotGiven = NOT_GIVEN,
265
+ phone_numbers: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
266
266
  verification_method: Literal["sms", "call"] | NotGiven = NOT_GIVEN,
267
267
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
268
268
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2,11 +2,9 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
-
7
5
  import httpx
8
6
 
9
- from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
7
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, SequenceNotStr
10
8
  from ..._utils import maybe_transform, async_maybe_transform
11
9
  from ..._compat import cached_property
12
10
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -45,7 +43,7 @@ class ActionsResource(SyncAPIResource):
45
43
  def delete(
46
44
  self,
47
45
  *,
48
- ids: List[str],
46
+ ids: SequenceNotStr[str],
49
47
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
50
48
  # The extra values given here take precedence over values defined on the client or passed to this method.
51
49
  extra_headers: Headers | None = None,
@@ -101,7 +99,7 @@ class AsyncActionsResource(AsyncAPIResource):
101
99
  async def delete(
102
100
  self,
103
101
  *,
104
- ids: List[str],
102
+ ids: SequenceNotStr[str],
105
103
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
106
104
  # The extra values given here take precedence over values defined on the client or passed to this method.
107
105
  extra_headers: Headers | None = None,
@@ -2,13 +2,13 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Union
5
+ from typing import Union
6
6
  from datetime import datetime
7
7
  from typing_extensions import Literal
8
8
 
9
9
  import httpx
10
10
 
11
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
11
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
12
12
  from ..._utils import maybe_transform, async_maybe_transform
13
13
  from ..._compat import cached_property
14
14
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -209,7 +209,7 @@ class MdrUsageReportsResource(SyncAPIResource):
209
209
  *,
210
210
  aggregation_type: Literal["NO_AGGREGATION", "PROFILE", "TAGS"],
211
211
  end_date: Union[str, datetime] | NotGiven = NOT_GIVEN,
212
- profiles: List[str] | NotGiven = NOT_GIVEN,
212
+ profiles: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
213
213
  start_date: Union[str, datetime] | NotGiven = NOT_GIVEN,
214
214
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
215
215
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -432,7 +432,7 @@ class AsyncMdrUsageReportsResource(AsyncAPIResource):
432
432
  *,
433
433
  aggregation_type: Literal["NO_AGGREGATION", "PROFILE", "TAGS"],
434
434
  end_date: Union[str, datetime] | NotGiven = NOT_GIVEN,
435
- profiles: List[str] | NotGiven = NOT_GIVEN,
435
+ profiles: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
436
436
  start_date: Union[str, datetime] | NotGiven = NOT_GIVEN,
437
437
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
438
438
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2,13 +2,12 @@
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
9
  from ...types import report_list_mdrs_params, report_list_wdrs_params
11
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
12
11
  from ..._utils import maybe_transform, async_maybe_transform
13
12
  from ..._compat import cached_property
14
13
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -157,7 +156,7 @@ class ReportsResource(SyncAPIResource):
157
156
  sim_card_id: str | NotGiven = NOT_GIVEN,
158
157
  sim_group_id: str | NotGiven = NOT_GIVEN,
159
158
  sim_group_name: str | NotGiven = NOT_GIVEN,
160
- sort: List[str] | NotGiven = NOT_GIVEN,
159
+ sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
161
160
  start_date: str | NotGiven = NOT_GIVEN,
162
161
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
163
162
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -349,7 +348,7 @@ class AsyncReportsResource(AsyncAPIResource):
349
348
  sim_card_id: str | NotGiven = NOT_GIVEN,
350
349
  sim_group_id: str | NotGiven = NOT_GIVEN,
351
350
  sim_group_name: str | NotGiven = NOT_GIVEN,
352
- sort: List[str] | NotGiven = NOT_GIVEN,
351
+ sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
353
352
  start_date: str | NotGiven = NOT_GIVEN,
354
353
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
355
354
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2,12 +2,12 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Union
5
+ from typing import Union
6
6
  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
@@ -84,8 +84,8 @@ class ActionsResource(SyncAPIResource):
84
84
  self,
85
85
  room_session_id: str,
86
86
  *,
87
- exclude: List[str] | NotGiven = NOT_GIVEN,
88
- participants: Union[Literal["all"], List[str]] | NotGiven = NOT_GIVEN,
87
+ exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
88
+ participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
89
89
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
90
90
  # The extra values given here take precedence over values defined on the client or passed to this method.
91
91
  extra_headers: Headers | None = None,
@@ -131,8 +131,8 @@ class ActionsResource(SyncAPIResource):
131
131
  self,
132
132
  room_session_id: str,
133
133
  *,
134
- exclude: List[str] | NotGiven = NOT_GIVEN,
135
- participants: Union[Literal["all"], List[str]] | NotGiven = NOT_GIVEN,
134
+ exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
135
+ participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
136
136
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
137
137
  # The extra values given here take precedence over values defined on the client or passed to this method.
138
138
  extra_headers: Headers | None = None,
@@ -178,8 +178,8 @@ class ActionsResource(SyncAPIResource):
178
178
  self,
179
179
  room_session_id: str,
180
180
  *,
181
- exclude: List[str] | NotGiven = NOT_GIVEN,
182
- participants: Union[Literal["all"], List[str]] | NotGiven = NOT_GIVEN,
181
+ exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
182
+ participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
183
183
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
184
184
  # The extra values given here take precedence over values defined on the client or passed to this method.
185
185
  extra_headers: Headers | None = None,
@@ -279,8 +279,8 @@ class AsyncActionsResource(AsyncAPIResource):
279
279
  self,
280
280
  room_session_id: str,
281
281
  *,
282
- exclude: List[str] | NotGiven = NOT_GIVEN,
283
- participants: Union[Literal["all"], List[str]] | NotGiven = NOT_GIVEN,
282
+ exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
283
+ participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
284
284
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
285
285
  # The extra values given here take precedence over values defined on the client or passed to this method.
286
286
  extra_headers: Headers | None = None,
@@ -326,8 +326,8 @@ class AsyncActionsResource(AsyncAPIResource):
326
326
  self,
327
327
  room_session_id: str,
328
328
  *,
329
- exclude: List[str] | NotGiven = NOT_GIVEN,
330
- participants: Union[Literal["all"], List[str]] | NotGiven = NOT_GIVEN,
329
+ exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
330
+ participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
331
331
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
332
332
  # The extra values given here take precedence over values defined on the client or passed to this method.
333
333
  extra_headers: Headers | None = None,
@@ -373,8 +373,8 @@ class AsyncActionsResource(AsyncAPIResource):
373
373
  self,
374
374
  room_session_id: str,
375
375
  *,
376
- exclude: List[str] | NotGiven = NOT_GIVEN,
377
- participants: Union[Literal["all"], List[str]] | NotGiven = NOT_GIVEN,
376
+ exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
377
+ participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
378
378
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
379
379
  # The extra values given here take precedence over values defined on the client or passed to this method.
380
380
  extra_headers: Headers | None = None,
@@ -2,11 +2,9 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
-
7
5
  import httpx
8
6
 
9
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
10
8
  from ..._utils import maybe_transform, async_maybe_transform
11
9
  from ..._compat import cached_property
12
10
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -144,7 +142,7 @@ class ActionsResource(SyncAPIResource):
144
142
  def bulk_set_public_ips(
145
143
  self,
146
144
  *,
147
- sim_card_ids: List[str],
145
+ sim_card_ids: SequenceNotStr[str],
148
146
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
149
147
  # The extra values given here take precedence over values defined on the client or passed to this method.
150
148
  extra_headers: Headers | None = None,
@@ -386,7 +384,7 @@ class ActionsResource(SyncAPIResource):
386
384
  def validate_registration_codes(
387
385
  self,
388
386
  *,
389
- registration_codes: List[str] | NotGiven = NOT_GIVEN,
387
+ registration_codes: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
390
388
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
391
389
  # The extra values given here take precedence over values defined on the client or passed to this method.
392
390
  extra_headers: Headers | None = None,
@@ -527,7 +525,7 @@ class AsyncActionsResource(AsyncAPIResource):
527
525
  async def bulk_set_public_ips(
528
526
  self,
529
527
  *,
530
- sim_card_ids: List[str],
528
+ sim_card_ids: SequenceNotStr[str],
531
529
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
532
530
  # The extra values given here take precedence over values defined on the client or passed to this method.
533
531
  extra_headers: Headers | None = None,
@@ -769,7 +767,7 @@ class AsyncActionsResource(AsyncAPIResource):
769
767
  async def validate_registration_codes(
770
768
  self,
771
769
  *,
772
- registration_codes: List[str] | NotGiven = NOT_GIVEN,
770
+ registration_codes: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
773
771
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
774
772
  # The extra values given here take precedence over values defined on the client or passed to this method.
775
773
  extra_headers: Headers | None = None,