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,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
@@ -22,7 +21,7 @@ from .actions import (
22
21
  ActionsResourceWithStreamingResponse,
23
22
  AsyncActionsResourceWithStreamingResponse,
24
23
  )
25
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
24
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
26
25
  from ..._utils import maybe_transform, async_maybe_transform
27
26
  from ..._compat import cached_property
28
27
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -125,11 +124,11 @@ class SimCardsResource(SyncAPIResource):
125
124
  self,
126
125
  id: str,
127
126
  *,
128
- authorized_imeis: List[str] | NotGiven = NOT_GIVEN,
127
+ authorized_imeis: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
129
128
  data_limit: sim_card_update_params.DataLimit | NotGiven = NOT_GIVEN,
130
129
  sim_card_group_id: str | NotGiven = NOT_GIVEN,
131
130
  status: SimCardStatus | NotGiven = NOT_GIVEN,
132
- tags: List[str] | NotGiven = NOT_GIVEN,
131
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
133
132
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
134
133
  # The extra values given here take precedence over values defined on the client or passed to this method.
135
134
  extra_headers: Headers | None = None,
@@ -518,11 +517,11 @@ class AsyncSimCardsResource(AsyncAPIResource):
518
517
  self,
519
518
  id: str,
520
519
  *,
521
- authorized_imeis: List[str] | NotGiven = NOT_GIVEN,
520
+ authorized_imeis: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
522
521
  data_limit: sim_card_update_params.DataLimit | NotGiven = NOT_GIVEN,
523
522
  sim_card_group_id: str | NotGiven = NOT_GIVEN,
524
523
  status: SimCardStatus | NotGiven = NOT_GIVEN,
525
- tags: List[str] | NotGiven = NOT_GIVEN,
524
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
526
525
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
527
526
  # The extra values given here take precedence over values defined on the client or passed to this method.
528
527
  extra_headers: Headers | None = None,
@@ -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
@@ -14,7 +13,7 @@ from ..types import (
14
13
  texml_application_create_params,
15
14
  texml_application_update_params,
16
15
  )
17
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
16
+ from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
18
17
  from .._utils import maybe_transform, async_maybe_transform
19
18
  from .._compat import cached_property
20
19
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -70,7 +69,7 @@ class TexmlApplicationsResource(SyncAPIResource):
70
69
  outbound: texml_application_create_params.Outbound | NotGiven = NOT_GIVEN,
71
70
  status_callback: str | NotGiven = NOT_GIVEN,
72
71
  status_callback_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
73
- tags: List[str] | NotGiven = NOT_GIVEN,
72
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
74
73
  voice_fallback_url: str | NotGiven = NOT_GIVEN,
75
74
  voice_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
76
75
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -198,7 +197,7 @@ class TexmlApplicationsResource(SyncAPIResource):
198
197
  outbound: texml_application_update_params.Outbound | NotGiven = NOT_GIVEN,
199
198
  status_callback: str | NotGiven = NOT_GIVEN,
200
199
  status_callback_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
201
- tags: List[str] | NotGiven = NOT_GIVEN,
200
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
202
201
  voice_fallback_url: str | NotGiven = NOT_GIVEN,
203
202
  voice_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
204
203
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -414,7 +413,7 @@ class AsyncTexmlApplicationsResource(AsyncAPIResource):
414
413
  outbound: texml_application_create_params.Outbound | NotGiven = NOT_GIVEN,
415
414
  status_callback: str | NotGiven = NOT_GIVEN,
416
415
  status_callback_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
417
- tags: List[str] | NotGiven = NOT_GIVEN,
416
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
418
417
  voice_fallback_url: str | NotGiven = NOT_GIVEN,
419
418
  voice_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
420
419
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -542,7 +541,7 @@ class AsyncTexmlApplicationsResource(AsyncAPIResource):
542
541
  outbound: texml_application_update_params.Outbound | NotGiven = NOT_GIVEN,
543
542
  status_callback: str | NotGiven = NOT_GIVEN,
544
543
  status_callback_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
545
- tags: List[str] | NotGiven = NOT_GIVEN,
544
+ tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
546
545
  voice_fallback_url: str | NotGiven = NOT_GIVEN,
547
546
  voice_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
548
547
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -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 usage_report_list_params, usage_report_get_options_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, strip_not_given, async_maybe_transform
13
12
  from .._compat import cached_property
14
13
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -48,8 +47,8 @@ class UsageReportsResource(SyncAPIResource):
48
47
  def list(
49
48
  self,
50
49
  *,
51
- dimensions: List[str],
52
- metrics: List[str],
50
+ dimensions: SequenceNotStr[str],
51
+ metrics: SequenceNotStr[str],
53
52
  product: str,
54
53
  date_range: str | NotGiven = NOT_GIVEN,
55
54
  end_date: str | NotGiven = NOT_GIVEN,
@@ -57,7 +56,7 @@ class UsageReportsResource(SyncAPIResource):
57
56
  format: Literal["csv", "json"] | NotGiven = NOT_GIVEN,
58
57
  managed_accounts: bool | NotGiven = NOT_GIVEN,
59
58
  page: usage_report_list_params.Page | NotGiven = NOT_GIVEN,
60
- sort: List[str] | NotGiven = NOT_GIVEN,
59
+ sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
61
60
  start_date: str | NotGiven = NOT_GIVEN,
62
61
  authorization_bearer: str | NotGiven = NOT_GIVEN,
63
62
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -206,8 +205,8 @@ class AsyncUsageReportsResource(AsyncAPIResource):
206
205
  async def list(
207
206
  self,
208
207
  *,
209
- dimensions: List[str],
210
- metrics: List[str],
208
+ dimensions: SequenceNotStr[str],
209
+ metrics: SequenceNotStr[str],
211
210
  product: str,
212
211
  date_range: str | NotGiven = NOT_GIVEN,
213
212
  end_date: str | NotGiven = NOT_GIVEN,
@@ -215,7 +214,7 @@ class AsyncUsageReportsResource(AsyncAPIResource):
215
214
  format: Literal["csv", "json"] | NotGiven = NOT_GIVEN,
216
215
  managed_accounts: bool | NotGiven = NOT_GIVEN,
217
216
  page: usage_report_list_params.Page | NotGiven = NOT_GIVEN,
218
- sort: List[str] | NotGiven = NOT_GIVEN,
217
+ sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
219
218
  start_date: str | NotGiven = NOT_GIVEN,
220
219
  authorization_bearer: str | NotGiven = NOT_GIVEN,
221
220
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -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 wireless_blocklist_list_params, wireless_blocklist_create_params, wireless_blocklist_update_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
@@ -53,7 +52,7 @@ class WirelessBlocklistsResource(SyncAPIResource):
53
52
  *,
54
53
  name: str,
55
54
  type: Literal["country", "mcc", "plmn"],
56
- values: List[str],
55
+ values: SequenceNotStr[str],
57
56
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
58
57
  # The extra values given here take precedence over values defined on the client or passed to this method.
59
58
  extra_headers: Headers | None = None,
@@ -133,7 +132,7 @@ class WirelessBlocklistsResource(SyncAPIResource):
133
132
  *,
134
133
  name: str | NotGiven = NOT_GIVEN,
135
134
  type: Literal["country", "mcc", "plmn"] | NotGiven = NOT_GIVEN,
136
- values: List[str] | NotGiven = NOT_GIVEN,
135
+ values: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
137
136
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
138
137
  # The extra values given here take precedence over values defined on the client or passed to this method.
139
138
  extra_headers: Headers | None = None,
@@ -292,7 +291,7 @@ class AsyncWirelessBlocklistsResource(AsyncAPIResource):
292
291
  *,
293
292
  name: str,
294
293
  type: Literal["country", "mcc", "plmn"],
295
- values: List[str],
294
+ values: SequenceNotStr[str],
296
295
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
297
296
  # The extra values given here take precedence over values defined on the client or passed to this method.
298
297
  extra_headers: Headers | None = None,
@@ -372,7 +371,7 @@ class AsyncWirelessBlocklistsResource(AsyncAPIResource):
372
371
  *,
373
372
  name: str | NotGiven = NOT_GIVEN,
374
373
  type: Literal["country", "mcc", "plmn"] | NotGiven = NOT_GIVEN,
375
- values: List[str] | NotGiven = NOT_GIVEN,
374
+ values: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
376
375
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
377
376
  # The extra values given here take precedence over values defined on the client or passed to this method.
378
377
  extra_headers: Headers | None = None,
telnyx/types/__init__.py CHANGED
@@ -1330,9 +1330,9 @@ from .phone_number_assignment_by_profile_retrieve_phone_number_status_response i
1330
1330
  # This ensures that, when building the deferred (due to cyclical references) model schema,
1331
1331
  # Pydantic can resolve the necessary references.
1332
1332
  # See: https://github.com/pydantic/pydantic/issues/11250 for more context.
1333
- if _compat.PYDANTIC_V2:
1334
- ai.recursive_cluster.RecursiveCluster.model_rebuild(_parent_namespace_depth=0)
1335
- ai.cluster_retrieve_response.ClusterRetrieveResponse.model_rebuild(_parent_namespace_depth=0)
1336
- else:
1333
+ if _compat.PYDANTIC_V1:
1337
1334
  ai.recursive_cluster.RecursiveCluster.update_forward_refs() # type: ignore
1338
1335
  ai.cluster_retrieve_response.ClusterRetrieveResponse.update_forward_refs() # type: ignore
1336
+ else:
1337
+ ai.recursive_cluster.RecursiveCluster.model_rebuild(_parent_namespace_depth=0)
1338
+ ai.cluster_retrieve_response.ClusterRetrieveResponse.model_rebuild(_parent_namespace_depth=0)
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import Literal, Required, TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["PurchaseCreateParams"]
9
10
 
10
11
 
@@ -25,7 +26,7 @@ class PurchaseCreateParams(TypedDict, total=False):
25
26
  status: Literal["enabled", "disabled", "standby"]
26
27
  """Status on which the SIM cards will be set after being successfully registered."""
27
28
 
28
- tags: List[str]
29
+ tags: SequenceNotStr[str]
29
30
  """Searchable tags associated with the SIM cards"""
30
31
 
31
32
  whitelabel_name: str
@@ -2,14 +2,15 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import Literal, Required, TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["RegisterCreateParams"]
9
10
 
10
11
 
11
12
  class RegisterCreateParams(TypedDict, total=False):
12
- registration_codes: Required[List[str]]
13
+ registration_codes: Required[SequenceNotStr[str]]
13
14
 
14
15
  sim_card_group_id: str
15
16
  """The group SIMCardGroup identification.
@@ -21,5 +22,5 @@ class RegisterCreateParams(TypedDict, total=False):
21
22
  status: Literal["enabled", "disabled", "standby"]
22
23
  """Status on which the SIM card will be set after being successful registered."""
23
24
 
24
- tags: List[str]
25
+ tags: SequenceNotStr[str]
25
26
  """Searchable tags associated with the SIM card"""
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Union, Iterable
5
+ from typing import Dict, Union, Iterable
6
6
  from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
+ from ..._types import SequenceNotStr
8
9
  from .inference_embedding_bucket_ids_param import InferenceEmbeddingBucketIDsParam
9
10
 
10
11
  __all__ = [
@@ -48,7 +49,7 @@ class ChatCreateCompletionParams(TypedDict, total=False):
48
49
  frequency_penalty: float
49
50
  """Higher values will penalize the model from repeating the same output tokens."""
50
51
 
51
- guided_choice: List[str]
52
+ guided_choice: SequenceNotStr[str]
52
53
  """If specified, the output will be exactly one of the choices."""
53
54
 
54
55
  guided_json: Dict[str, object]
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import Required, TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["ClusterComputeParams"]
9
10
 
10
11
 
@@ -16,7 +17,7 @@ class ClusterComputeParams(TypedDict, total=False):
16
17
  [embedded](https://developers.telnyx.com/api/inference/inference-embedding/post-embedding).
17
18
  """
18
19
 
19
- files: List[str]
20
+ files: SequenceNotStr[str]
20
21
  """Array of files to filter which are included."""
21
22
 
22
23
  min_cluster_size: int
@@ -2,10 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Union, Iterable
5
+ from typing import Dict, Union, Iterable
6
6
  from datetime import datetime
7
7
  from typing_extensions import Required, Annotated, TypedDict
8
8
 
9
+ from ...._types import SequenceNotStr
9
10
  from ...._utils import PropertyInfo
10
11
 
11
12
  __all__ = ["MessageCreateParams"]
@@ -16,7 +17,7 @@ class MessageCreateParams(TypedDict, total=False):
16
17
 
17
18
  content: str
18
19
 
19
- metadata: Dict[str, Union[str, int, bool, List[Union[str, int, bool]]]]
20
+ metadata: Dict[str, Union[str, int, bool, SequenceNotStr[Union[str, int, bool]]]]
20
21
 
21
22
  name: str
22
23
 
@@ -2,12 +2,13 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["EmbeddingListParams"]
9
10
 
10
11
 
11
12
  class EmbeddingListParams(TypedDict, total=False):
12
- status: List[str]
13
+ status: SequenceNotStr[str]
13
14
  """List of task statuses i.e. `status=queued&status=processing`"""
@@ -2,14 +2,15 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import Required, TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["InferenceEmbeddingBucketIDsParam"]
9
10
 
10
11
 
11
12
  class InferenceEmbeddingBucketIDsParam(TypedDict, total=False):
12
- bucket_ids: Required[List[str]]
13
+ bucket_ids: Required[SequenceNotStr[str]]
13
14
  """
14
15
  List of
15
16
  [embedded storage buckets](https://developers.telnyx.com/api/inference/inference-embedding/post-embedding)
@@ -2,9 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Iterable
5
+ from typing import Dict, Iterable
6
6
  from typing_extensions import Literal, Required, TypedDict
7
7
 
8
+ from ..._types import SequenceNotStr
9
+
8
10
  __all__ = ["InferenceEmbeddingWebhookToolParamsParam", "BodyParameters", "Header", "PathParameters", "QueryParameters"]
9
11
 
10
12
 
@@ -12,7 +14,7 @@ class BodyParameters(TypedDict, total=False):
12
14
  properties: Dict[str, object]
13
15
  """The properties of the body parameters."""
14
16
 
15
- required: List[str]
17
+ required: SequenceNotStr[str]
16
18
  """The required properties of the body parameters."""
17
19
 
18
20
  type: Literal["object"]
@@ -34,7 +36,7 @@ class PathParameters(TypedDict, total=False):
34
36
  properties: Dict[str, object]
35
37
  """The properties of the path parameters."""
36
38
 
37
- required: List[str]
39
+ required: SequenceNotStr[str]
38
40
  """The required properties of the path parameters."""
39
41
 
40
42
  type: Literal["object"]
@@ -44,7 +46,7 @@ class QueryParameters(TypedDict, total=False):
44
46
  properties: Dict[str, object]
45
47
  """The properties of the query parameters."""
46
48
 
47
- required: List[str]
49
+ required: SequenceNotStr[str]
48
50
  """The required properties of the query parameters."""
49
51
 
50
52
  type: Literal["object"]
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["BillingBundleListParams", "Filter", "Page"]
9
10
 
10
11
 
@@ -27,10 +28,10 @@ class BillingBundleListParams(TypedDict, total=False):
27
28
 
28
29
 
29
30
  class Filter(TypedDict, total=False):
30
- country_iso: List[str]
31
+ country_iso: SequenceNotStr[str]
31
32
  """Filter by country code."""
32
33
 
33
- resource: List[str]
34
+ resource: SequenceNotStr[str]
34
35
  """Filter by resource."""
35
36
 
36
37
 
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["UserBundleListParams", "Filter", "Page"]
9
10
 
10
11
 
@@ -27,10 +28,10 @@ class UserBundleListParams(TypedDict, total=False):
27
28
 
28
29
 
29
30
  class Filter(TypedDict, total=False):
30
- country_iso: List[str]
31
+ country_iso: SequenceNotStr[str]
31
32
  """Filter by country code."""
32
33
 
33
- resource: List[str]
34
+ resource: SequenceNotStr[str]
34
35
  """Filter by resource."""
35
36
 
36
37
 
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["UserBundleListUnusedParams", "Filter"]
9
10
 
10
11
 
@@ -21,8 +22,8 @@ class UserBundleListUnusedParams(TypedDict, total=False):
21
22
 
22
23
 
23
24
  class Filter(TypedDict, total=False):
24
- country_iso: List[str]
25
+ country_iso: SequenceNotStr[str]
25
26
  """Filter by country code."""
26
27
 
27
- resource: List[str]
28
+ resource: SequenceNotStr[str]
28
29
  """Filter by resource."""
@@ -2,9 +2,10 @@
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, Required, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
8
9
  from .call_control_application_inbound_param import CallControlApplicationInboundParam
9
10
  from .call_control_application_outbound_param import CallControlApplicationOutboundParam
10
11
 
@@ -57,7 +58,7 @@ class CallControlApplicationUpdateParams(TypedDict, total=False):
57
58
  protect PII data entered through IVR interactions.
58
59
  """
59
60
 
60
- tags: List[str]
61
+ tags: SequenceNotStr[str]
61
62
  """Tags assigned to the Call Control Application."""
62
63
 
63
64
  webhook_api_version: Literal["1", "2"]
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Union, Iterable
5
+ from typing import Union, Iterable
6
6
  from typing_extensions import Literal, Required, Annotated, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
8
9
  from .._utils import PropertyInfo
9
10
  from .stream_codec import StreamCodec
10
11
  from .sip_header_param import SipHeaderParam
@@ -32,7 +33,7 @@ class CallDialParams(TypedDict, total=False):
32
33
  number). The number should be in +E164 format.
33
34
  """
34
35
 
35
- to: Required[Union[str, List[str]]]
36
+ to: Required[Union[str, SequenceNotStr[str]]]
36
37
  """The DID or SIP URI to dial out to.
37
38
 
38
39
  Multiple DID or SIP URIs can be provided using an array of strings
@@ -427,7 +428,7 @@ class ConferenceConfig(TypedDict, total=False):
427
428
  Defaults to "none".
428
429
  """
429
430
 
430
- whisper_call_control_ids: List[str]
431
+ whisper_call_control_ids: SequenceNotStr[str]
431
432
  """Array of unique call_control_ids the joining supervisor can whisper to.
432
433
 
433
434
  If none provided, the supervisor will join the conference as a monitoring
@@ -2,9 +2,10 @@
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, TypedDict
7
7
 
8
+ from ..._types import SequenceNotStr
8
9
  from .google_transcription_language import GoogleTranscriptionLanguage
9
10
 
10
11
  __all__ = ["TranscriptionEngineAConfigParam", "SpeechContext"]
@@ -14,14 +15,14 @@ class SpeechContext(TypedDict, total=False):
14
15
  boost: float
15
16
  """Boost factor for the speech context."""
16
17
 
17
- phrases: List[str]
18
+ phrases: SequenceNotStr[str]
18
19
 
19
20
 
20
21
  class TranscriptionEngineAConfigParam(TypedDict, total=False):
21
22
  enable_speaker_diarization: bool
22
23
  """Enables speaker diarization."""
23
24
 
24
- hints: List[str]
25
+ hints: SequenceNotStr[str]
25
26
  """Hints to improve transcription accuracy."""
26
27
 
27
28
  interim_results: bool
@@ -2,9 +2,10 @@
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 Required, Annotated, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
8
9
  from .._utils import PropertyInfo
9
10
 
10
11
  __all__ = ["CampaignBuilderCreateParams"]
@@ -122,14 +123,14 @@ class CampaignBuilderCreateParams(TypedDict, total=False):
122
123
  subscriber_optout: Annotated[bool, PropertyInfo(alias="subscriberOptout")]
123
124
  """Does campaign support subscriber opt-out keyword(s)?"""
124
125
 
125
- sub_usecases: Annotated[List[str], PropertyInfo(alias="subUsecases")]
126
+ sub_usecases: Annotated[SequenceNotStr[str], PropertyInfo(alias="subUsecases")]
126
127
  """Campaign sub-usecases.
127
128
 
128
129
  Must be of defined valid sub-usecase types. Use `/registry/enum/usecase`
129
130
  operation to retrieve list of valid sub-usecases
130
131
  """
131
132
 
132
- tag: List[str]
133
+ tag: SequenceNotStr[str]
133
134
  """Tags to be set on the Campaign."""
134
135
 
135
136
  terms_and_conditions: Annotated[bool, PropertyInfo(alias="termsAndConditions")]
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["ActionHoldParams"]
9
10
 
10
11
 
@@ -15,7 +16,7 @@ class ActionHoldParams(TypedDict, total=False):
15
16
  media_name and audio_url cannot be used together in one request.
16
17
  """
17
18
 
18
- call_control_ids: List[str]
19
+ call_control_ids: SequenceNotStr[str]
19
20
  """List of unique identifiers and tokens for controlling the call.
20
21
 
21
22
  When empty all participants will be placed on hold.
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import Literal, Required, TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["ActionJoinParams"]
9
10
 
10
11
 
@@ -92,7 +93,7 @@ class ActionJoinParams(TypedDict, total=False):
92
93
  Defaults to "none".
93
94
  """
94
95
 
95
- whisper_call_control_ids: List[str]
96
+ whisper_call_control_ids: SequenceNotStr[str]
96
97
  """Array of unique call_control_ids the joining supervisor can whisper to.
97
98
 
98
99
  If none provided, the supervisor will join the conference as a monitoring
@@ -2,14 +2,15 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import TypedDict
7
6
 
7
+ from ..._types import SequenceNotStr
8
+
8
9
  __all__ = ["ActionMuteParams"]
9
10
 
10
11
 
11
12
  class ActionMuteParams(TypedDict, total=False):
12
- call_control_ids: List[str]
13
+ call_control_ids: SequenceNotStr[str]
13
14
  """Array of unique identifiers and tokens for controlling the call.
14
15
 
15
16
  When empty all participants will be muted.