telnyx 3.0.0__py3-none-any.whl → 3.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of telnyx might be problematic. Click here for more details.
- telnyx/_client.py +35 -786
- telnyx/_version.py +1 -1
- telnyx/resources/__init__.py +24 -24
- telnyx/resources/brand/brand.py +8 -4
- telnyx/resources/calls/calls.py +12 -0
- telnyx/resources/oauth.py +317 -315
- telnyx/resources/oauth_grants.py +15 -15
- telnyx/resources/verified_numbers/verified_numbers.py +25 -4
- telnyx/types/__init__.py +12 -19
- telnyx/types/addresses/action_validate_response.py +8 -3
- telnyx/types/ai/inference_embedding_transfer_tool_params.py +6 -0
- telnyx/types/ai/inference_embedding_transfer_tool_params_param.py +6 -0
- telnyx/types/ai/voice_settings.py +49 -2
- telnyx/types/ai/voice_settings_param.py +49 -2
- telnyx/types/brand_create_params.py +2 -1
- telnyx/types/brand_update_params.py +2 -1
- telnyx/types/call_dial_params.py +8 -0
- telnyx/types/country_coverage_retrieve_country_response.py +7 -0
- telnyx/types/country_coverage_retrieve_response.py +7 -0
- telnyx/types/{api_error.py → error.py} +2 -2
- telnyx/types/{oauth_retrieve_authorize_params.py → oauth_authorize_params.py} +2 -2
- telnyx/types/{oauth_grants_params.py → oauth_create_grant_params.py} +2 -2
- telnyx/types/{oauth_grants_response.py → oauth_create_grant_response.py} +2 -2
- telnyx/types/{oauth_token_params.py → oauth_exchange_token_params.py} +2 -2
- telnyx/types/{oauth_token_response.py → oauth_exchange_token_response.py} +2 -2
- telnyx/types/{oauth_grant_delete_response.py → oauth_grant_revoke_response.py} +2 -2
- telnyx/types/{oauth_introspect_params.py → oauth_introspect_token_params.py} +2 -2
- telnyx/types/{oauth_introspect_response.py → oauth_introspect_token_response.py} +2 -2
- telnyx/types/{oauth_register_params.py → oauth_register_client_params.py} +2 -2
- telnyx/types/{oauth_register_response.py → oauth_register_client_response.py} +2 -2
- telnyx/types/{oauth_retrieve_response.py → oauth_retrieve_consent_response.py} +2 -2
- telnyx/types/verified_number_create_params.py +10 -0
- telnyx/types/verify_profile.py +18 -3
- {telnyx-3.0.0.dist-info → telnyx-3.1.0.dist-info}/METADATA +1 -1
- {telnyx-3.0.0.dist-info → telnyx-3.1.0.dist-info}/RECORD +37 -44
- telnyx/types/client_create_bucket_params.py +0 -13
- telnyx/types/client_delete_objects_params.py +0 -20
- telnyx/types/client_get_object_params.py +0 -15
- telnyx/types/client_list_objects_params.py +0 -13
- telnyx/types/client_put_object_params.py +0 -20
- telnyx/types/list_buckets_response.py +0 -20
- telnyx/types/list_objects_response.py +0 -24
- {telnyx-3.0.0.dist-info → telnyx-3.1.0.dist-info}/WHEEL +0 -0
- {telnyx-3.0.0.dist-info → telnyx-3.1.0.dist-info}/licenses/LICENSE +0 -0
telnyx/_version.py
CHANGED
telnyx/resources/__init__.py
CHANGED
|
@@ -1211,30 +1211,6 @@ from .phone_numbers_regulatory_requirements import (
|
|
|
1211
1211
|
)
|
|
1212
1212
|
|
|
1213
1213
|
__all__ = [
|
|
1214
|
-
"LegacyResource",
|
|
1215
|
-
"AsyncLegacyResource",
|
|
1216
|
-
"LegacyResourceWithRawResponse",
|
|
1217
|
-
"AsyncLegacyResourceWithRawResponse",
|
|
1218
|
-
"LegacyResourceWithStreamingResponse",
|
|
1219
|
-
"AsyncLegacyResourceWithStreamingResponse",
|
|
1220
|
-
"OAuthResource",
|
|
1221
|
-
"AsyncOAuthResource",
|
|
1222
|
-
"OAuthResourceWithRawResponse",
|
|
1223
|
-
"AsyncOAuthResourceWithRawResponse",
|
|
1224
|
-
"OAuthResourceWithStreamingResponse",
|
|
1225
|
-
"AsyncOAuthResourceWithStreamingResponse",
|
|
1226
|
-
"OAuthClientsResource",
|
|
1227
|
-
"AsyncOAuthClientsResource",
|
|
1228
|
-
"OAuthClientsResourceWithRawResponse",
|
|
1229
|
-
"AsyncOAuthClientsResourceWithRawResponse",
|
|
1230
|
-
"OAuthClientsResourceWithStreamingResponse",
|
|
1231
|
-
"AsyncOAuthClientsResourceWithStreamingResponse",
|
|
1232
|
-
"OAuthGrantsResource",
|
|
1233
|
-
"AsyncOAuthGrantsResource",
|
|
1234
|
-
"OAuthGrantsResourceWithRawResponse",
|
|
1235
|
-
"AsyncOAuthGrantsResourceWithRawResponse",
|
|
1236
|
-
"OAuthGrantsResourceWithStreamingResponse",
|
|
1237
|
-
"AsyncOAuthGrantsResourceWithStreamingResponse",
|
|
1238
1214
|
"WebhooksResource",
|
|
1239
1215
|
"AsyncWebhooksResource",
|
|
1240
1216
|
"AccessIPAddressResource",
|
|
@@ -2119,4 +2095,28 @@ __all__ = [
|
|
|
2119
2095
|
"AsyncWellKnownResourceWithRawResponse",
|
|
2120
2096
|
"WellKnownResourceWithStreamingResponse",
|
|
2121
2097
|
"AsyncWellKnownResourceWithStreamingResponse",
|
|
2098
|
+
"LegacyResource",
|
|
2099
|
+
"AsyncLegacyResource",
|
|
2100
|
+
"LegacyResourceWithRawResponse",
|
|
2101
|
+
"AsyncLegacyResourceWithRawResponse",
|
|
2102
|
+
"LegacyResourceWithStreamingResponse",
|
|
2103
|
+
"AsyncLegacyResourceWithStreamingResponse",
|
|
2104
|
+
"OAuthResource",
|
|
2105
|
+
"AsyncOAuthResource",
|
|
2106
|
+
"OAuthResourceWithRawResponse",
|
|
2107
|
+
"AsyncOAuthResourceWithRawResponse",
|
|
2108
|
+
"OAuthResourceWithStreamingResponse",
|
|
2109
|
+
"AsyncOAuthResourceWithStreamingResponse",
|
|
2110
|
+
"OAuthClientsResource",
|
|
2111
|
+
"AsyncOAuthClientsResource",
|
|
2112
|
+
"OAuthClientsResourceWithRawResponse",
|
|
2113
|
+
"AsyncOAuthClientsResourceWithRawResponse",
|
|
2114
|
+
"OAuthClientsResourceWithStreamingResponse",
|
|
2115
|
+
"AsyncOAuthClientsResourceWithStreamingResponse",
|
|
2116
|
+
"OAuthGrantsResource",
|
|
2117
|
+
"AsyncOAuthGrantsResource",
|
|
2118
|
+
"OAuthGrantsResourceWithRawResponse",
|
|
2119
|
+
"AsyncOAuthGrantsResourceWithRawResponse",
|
|
2120
|
+
"OAuthGrantsResourceWithStreamingResponse",
|
|
2121
|
+
"AsyncOAuthGrantsResourceWithStreamingResponse",
|
|
2122
2122
|
]
|
telnyx/resources/brand/brand.py
CHANGED
|
@@ -126,7 +126,8 @@ class BrandResource(SyncAPIResource):
|
|
|
126
126
|
|
|
127
127
|
business_contact_email: Business contact email.
|
|
128
128
|
|
|
129
|
-
Required if `entityType` is `PUBLIC_PROFIT`.
|
|
129
|
+
Required if `entityType` is `PUBLIC_PROFIT`. Otherwise, it is recommended to
|
|
130
|
+
either omit this field or set it to `null`.
|
|
130
131
|
|
|
131
132
|
city: City name
|
|
132
133
|
|
|
@@ -297,7 +298,8 @@ class BrandResource(SyncAPIResource):
|
|
|
297
298
|
|
|
298
299
|
business_contact_email: Business contact email.
|
|
299
300
|
|
|
300
|
-
Required if `entityType` will be changed to `PUBLIC_PROFIT`.
|
|
301
|
+
Required if `entityType` will be changed to `PUBLIC_PROFIT`. Otherwise, it is
|
|
302
|
+
recommended to either omit this field or set it to `null`.
|
|
301
303
|
|
|
302
304
|
city: City name
|
|
303
305
|
|
|
@@ -692,7 +694,8 @@ class AsyncBrandResource(AsyncAPIResource):
|
|
|
692
694
|
|
|
693
695
|
business_contact_email: Business contact email.
|
|
694
696
|
|
|
695
|
-
Required if `entityType` is `PUBLIC_PROFIT`.
|
|
697
|
+
Required if `entityType` is `PUBLIC_PROFIT`. Otherwise, it is recommended to
|
|
698
|
+
either omit this field or set it to `null`.
|
|
696
699
|
|
|
697
700
|
city: City name
|
|
698
701
|
|
|
@@ -863,7 +866,8 @@ class AsyncBrandResource(AsyncAPIResource):
|
|
|
863
866
|
|
|
864
867
|
business_contact_email: Business contact email.
|
|
865
868
|
|
|
866
|
-
Required if `entityType` will be changed to `PUBLIC_PROFIT`.
|
|
869
|
+
Required if `entityType` will be changed to `PUBLIC_PROFIT`. Otherwise, it is
|
|
870
|
+
recommended to either omit this field or set it to `null`.
|
|
867
871
|
|
|
868
872
|
city: City name
|
|
869
873
|
|
telnyx/resources/calls/calls.py
CHANGED
|
@@ -97,6 +97,7 @@ class CallsResource(SyncAPIResource):
|
|
|
97
97
|
link_to: str | Omit = omit,
|
|
98
98
|
media_encryption: Literal["disabled", "SRTP", "DTLS"] | Omit = omit,
|
|
99
99
|
media_name: str | Omit = omit,
|
|
100
|
+
park_after_unbridge: str | Omit = omit,
|
|
100
101
|
preferred_codecs: str | Omit = omit,
|
|
101
102
|
record: Literal["record-from-answer"] | Omit = omit,
|
|
102
103
|
record_channels: Literal["single", "dual"] | Omit = omit,
|
|
@@ -230,6 +231,10 @@ class CallsResource(SyncAPIResource):
|
|
|
230
231
|
api.telnyx.com/v2/media by the same user/organization. The file must either be a
|
|
231
232
|
WAV or MP3 file.
|
|
232
233
|
|
|
234
|
+
park_after_unbridge: If supplied with the value `self`, the current leg will be parked after
|
|
235
|
+
unbridge. If not set, the default behavior is to hang up the leg. When
|
|
236
|
+
park_after_unbridge is set, link_to becomes required.
|
|
237
|
+
|
|
233
238
|
preferred_codecs: The list of comma-separated codecs in a preferred order for the forked media to
|
|
234
239
|
be received.
|
|
235
240
|
|
|
@@ -351,6 +356,7 @@ class CallsResource(SyncAPIResource):
|
|
|
351
356
|
"link_to": link_to,
|
|
352
357
|
"media_encryption": media_encryption,
|
|
353
358
|
"media_name": media_name,
|
|
359
|
+
"park_after_unbridge": park_after_unbridge,
|
|
354
360
|
"preferred_codecs": preferred_codecs,
|
|
355
361
|
"record": record,
|
|
356
362
|
"record_channels": record_channels,
|
|
@@ -474,6 +480,7 @@ class AsyncCallsResource(AsyncAPIResource):
|
|
|
474
480
|
link_to: str | Omit = omit,
|
|
475
481
|
media_encryption: Literal["disabled", "SRTP", "DTLS"] | Omit = omit,
|
|
476
482
|
media_name: str | Omit = omit,
|
|
483
|
+
park_after_unbridge: str | Omit = omit,
|
|
477
484
|
preferred_codecs: str | Omit = omit,
|
|
478
485
|
record: Literal["record-from-answer"] | Omit = omit,
|
|
479
486
|
record_channels: Literal["single", "dual"] | Omit = omit,
|
|
@@ -607,6 +614,10 @@ class AsyncCallsResource(AsyncAPIResource):
|
|
|
607
614
|
api.telnyx.com/v2/media by the same user/organization. The file must either be a
|
|
608
615
|
WAV or MP3 file.
|
|
609
616
|
|
|
617
|
+
park_after_unbridge: If supplied with the value `self`, the current leg will be parked after
|
|
618
|
+
unbridge. If not set, the default behavior is to hang up the leg. When
|
|
619
|
+
park_after_unbridge is set, link_to becomes required.
|
|
620
|
+
|
|
610
621
|
preferred_codecs: The list of comma-separated codecs in a preferred order for the forked media to
|
|
611
622
|
be received.
|
|
612
623
|
|
|
@@ -728,6 +739,7 @@ class AsyncCallsResource(AsyncAPIResource):
|
|
|
728
739
|
"link_to": link_to,
|
|
729
740
|
"media_encryption": media_encryption,
|
|
730
741
|
"media_name": media_name,
|
|
742
|
+
"park_after_unbridge": park_after_unbridge,
|
|
731
743
|
"preferred_codecs": preferred_codecs,
|
|
732
744
|
"record": record,
|
|
733
745
|
"record_channels": record_channels,
|