telnyx 3.1.0__py3-none-any.whl → 3.2.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 +32 -32
- telnyx/_version.py +1 -1
- telnyx/resources/__init__.py +24 -24
- telnyx/resources/advanced_orders.py +63 -63
- telnyx/resources/legacy/reporting/batch_detail_records/messaging.py +3 -2
- telnyx/resources/legacy/reporting/batch_detail_records/voice.py +3 -2
- telnyx/resources/oauth.py +315 -317
- telnyx/resources/oauth_grants.py +15 -15
- telnyx/types/__init__.py +20 -13
- telnyx/types/addresses/action_validate_response.py +2 -2
- telnyx/types/{advanced_order_update_params.py → advanced_order_update_requirement_group_params.py} +2 -2
- telnyx/types/legacy/reporting/__init__.py +2 -0
- telnyx/types/legacy/reporting/batch_detail_records/__init__.py +3 -0
- telnyx/types/legacy/reporting/batch_detail_records/cdr_detailed_req_response.py +63 -0
- telnyx/types/legacy/reporting/batch_detail_records/mdr_detail_report_response.py +42 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_params.py +4 -26
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_response.py +4 -60
- telnyx/types/legacy/reporting/batch_detail_records/messaging_delete_response.py +4 -60
- telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +3 -59
- telnyx/types/legacy/reporting/batch_detail_records/messaging_retrieve_response.py +4 -60
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_response.py +3 -22
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_delete_response.py +3 -22
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_list_response.py +3 -22
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.py +3 -22
- telnyx/types/legacy/reporting/batch_detail_records/stt_detail_report_response.py +27 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_params.py +4 -26
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_response.py +4 -82
- telnyx/types/legacy/reporting/batch_detail_records/voice_delete_response.py +4 -82
- telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +3 -81
- telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_response.py +4 -82
- telnyx/types/legacy/reporting/filter.py +31 -0
- telnyx/types/legacy/reporting/filter_param.py +30 -0
- telnyx/types/legacy/reporting/usage_reports/__init__.py +2 -0
- telnyx/types/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.py +43 -0
- telnyx/types/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.py +38 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_create_response.py +4 -34
- telnyx/types/legacy/reporting/usage_reports/messaging_delete_response.py +4 -34
- telnyx/types/legacy/reporting/usage_reports/messaging_list_response.py +3 -33
- telnyx/types/legacy/reporting/usage_reports/messaging_retrieve_response.py +4 -34
- telnyx/types/legacy/reporting/usage_reports/voice_create_response.py +4 -39
- telnyx/types/legacy/reporting/usage_reports/voice_delete_response.py +4 -39
- telnyx/types/legacy/reporting/usage_reports/voice_list_response.py +3 -38
- telnyx/types/legacy/reporting/usage_reports/voice_retrieve_response.py +4 -39
- telnyx/types/oauth_client.py +59 -0
- telnyx/types/oauth_client_create_response.py +4 -55
- telnyx/types/oauth_client_list_response.py +3 -54
- telnyx/types/oauth_client_retrieve_response.py +4 -55
- telnyx/types/oauth_client_update_response.py +4 -55
- telnyx/types/{oauth_grant_revoke_response.py → oauth_grant.py} +2 -6
- telnyx/types/oauth_grant_delete_response.py +12 -0
- telnyx/types/oauth_grant_list_response.py +3 -24
- telnyx/types/oauth_grant_retrieve_response.py +4 -25
- telnyx/types/{oauth_create_grant_params.py → oauth_grants_params.py} +2 -2
- telnyx/types/{oauth_create_grant_response.py → oauth_grants_response.py} +2 -2
- telnyx/types/{oauth_introspect_token_params.py → oauth_introspect_params.py} +2 -2
- telnyx/types/{oauth_introspect_token_response.py → oauth_introspect_response.py} +2 -2
- telnyx/types/{oauth_register_client_params.py → oauth_register_params.py} +2 -2
- telnyx/types/{oauth_register_client_response.py → oauth_register_response.py} +2 -2
- telnyx/types/{oauth_authorize_params.py → oauth_retrieve_authorize_params.py} +2 -2
- telnyx/types/{oauth_retrieve_consent_response.py → oauth_retrieve_response.py} +2 -2
- telnyx/types/{oauth_exchange_token_params.py → oauth_token_params.py} +2 -2
- telnyx/types/{oauth_exchange_token_response.py → oauth_token_response.py} +2 -2
- telnyx/types/shared/__init__.py +1 -0
- telnyx/types/{error.py → shared/api_error.py} +3 -3
- telnyx/types/verify_profile_create_template_response.py +3 -8
- telnyx/types/verify_profile_message_template_response.py +13 -0
- telnyx/types/verify_profile_retrieve_templates_response.py +4 -9
- telnyx/types/verify_profile_update_template_response.py +3 -8
- {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/METADATA +1 -1
- {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/RECORD +72 -62
- {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/WHEEL +0 -0
- {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/licenses/LICENSE +0 -0
telnyx/_client.py
CHANGED
|
@@ -187,6 +187,10 @@ __all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Telnyx", "
|
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
class Telnyx(SyncAPIClient):
|
|
190
|
+
legacy: legacy.LegacyResource
|
|
191
|
+
oauth: oauth.OAuthResource
|
|
192
|
+
oauth_clients: oauth_clients.OAuthClientsResource
|
|
193
|
+
oauth_grants: oauth_grants.OAuthGrantsResource
|
|
190
194
|
webhooks: webhooks.WebhooksResource
|
|
191
195
|
access_ip_address: access_ip_address.AccessIPAddressResource
|
|
192
196
|
access_ip_ranges: access_ip_ranges.AccessIPRangesResource
|
|
@@ -337,10 +341,6 @@ class Telnyx(SyncAPIClient):
|
|
|
337
341
|
wireless_blocklists: wireless_blocklists.WirelessBlocklistsResource
|
|
338
342
|
partner_campaigns: partner_campaigns.PartnerCampaignsResource
|
|
339
343
|
well_known: well_known.WellKnownResource
|
|
340
|
-
legacy: legacy.LegacyResource
|
|
341
|
-
oauth: oauth.OAuthResource
|
|
342
|
-
oauth_clients: oauth_clients.OAuthClientsResource
|
|
343
|
-
oauth_grants: oauth_grants.OAuthGrantsResource
|
|
344
344
|
with_raw_response: TelnyxWithRawResponse
|
|
345
345
|
with_streaming_response: TelnyxWithStreamedResponse
|
|
346
346
|
|
|
@@ -399,6 +399,10 @@ class Telnyx(SyncAPIClient):
|
|
|
399
399
|
_strict_response_validation=_strict_response_validation,
|
|
400
400
|
)
|
|
401
401
|
|
|
402
|
+
self.legacy = legacy.LegacyResource(self)
|
|
403
|
+
self.oauth = oauth.OAuthResource(self)
|
|
404
|
+
self.oauth_clients = oauth_clients.OAuthClientsResource(self)
|
|
405
|
+
self.oauth_grants = oauth_grants.OAuthGrantsResource(self)
|
|
402
406
|
self.webhooks = webhooks.WebhooksResource(self)
|
|
403
407
|
self.access_ip_address = access_ip_address.AccessIPAddressResource(self)
|
|
404
408
|
self.access_ip_ranges = access_ip_ranges.AccessIPRangesResource(self)
|
|
@@ -555,10 +559,6 @@ class Telnyx(SyncAPIClient):
|
|
|
555
559
|
self.wireless_blocklists = wireless_blocklists.WirelessBlocklistsResource(self)
|
|
556
560
|
self.partner_campaigns = partner_campaigns.PartnerCampaignsResource(self)
|
|
557
561
|
self.well_known = well_known.WellKnownResource(self)
|
|
558
|
-
self.legacy = legacy.LegacyResource(self)
|
|
559
|
-
self.oauth = oauth.OAuthResource(self)
|
|
560
|
-
self.oauth_clients = oauth_clients.OAuthClientsResource(self)
|
|
561
|
-
self.oauth_grants = oauth_grants.OAuthGrantsResource(self)
|
|
562
562
|
self.with_raw_response = TelnyxWithRawResponse(self)
|
|
563
563
|
self.with_streaming_response = TelnyxWithStreamedResponse(self)
|
|
564
564
|
|
|
@@ -670,6 +670,10 @@ class Telnyx(SyncAPIClient):
|
|
|
670
670
|
|
|
671
671
|
|
|
672
672
|
class AsyncTelnyx(AsyncAPIClient):
|
|
673
|
+
legacy: legacy.AsyncLegacyResource
|
|
674
|
+
oauth: oauth.AsyncOAuthResource
|
|
675
|
+
oauth_clients: oauth_clients.AsyncOAuthClientsResource
|
|
676
|
+
oauth_grants: oauth_grants.AsyncOAuthGrantsResource
|
|
673
677
|
webhooks: webhooks.AsyncWebhooksResource
|
|
674
678
|
access_ip_address: access_ip_address.AsyncAccessIPAddressResource
|
|
675
679
|
access_ip_ranges: access_ip_ranges.AsyncAccessIPRangesResource
|
|
@@ -820,10 +824,6 @@ class AsyncTelnyx(AsyncAPIClient):
|
|
|
820
824
|
wireless_blocklists: wireless_blocklists.AsyncWirelessBlocklistsResource
|
|
821
825
|
partner_campaigns: partner_campaigns.AsyncPartnerCampaignsResource
|
|
822
826
|
well_known: well_known.AsyncWellKnownResource
|
|
823
|
-
legacy: legacy.AsyncLegacyResource
|
|
824
|
-
oauth: oauth.AsyncOAuthResource
|
|
825
|
-
oauth_clients: oauth_clients.AsyncOAuthClientsResource
|
|
826
|
-
oauth_grants: oauth_grants.AsyncOAuthGrantsResource
|
|
827
827
|
with_raw_response: AsyncTelnyxWithRawResponse
|
|
828
828
|
with_streaming_response: AsyncTelnyxWithStreamedResponse
|
|
829
829
|
|
|
@@ -882,6 +882,10 @@ class AsyncTelnyx(AsyncAPIClient):
|
|
|
882
882
|
_strict_response_validation=_strict_response_validation,
|
|
883
883
|
)
|
|
884
884
|
|
|
885
|
+
self.legacy = legacy.AsyncLegacyResource(self)
|
|
886
|
+
self.oauth = oauth.AsyncOAuthResource(self)
|
|
887
|
+
self.oauth_clients = oauth_clients.AsyncOAuthClientsResource(self)
|
|
888
|
+
self.oauth_grants = oauth_grants.AsyncOAuthGrantsResource(self)
|
|
885
889
|
self.webhooks = webhooks.AsyncWebhooksResource(self)
|
|
886
890
|
self.access_ip_address = access_ip_address.AsyncAccessIPAddressResource(self)
|
|
887
891
|
self.access_ip_ranges = access_ip_ranges.AsyncAccessIPRangesResource(self)
|
|
@@ -1044,10 +1048,6 @@ class AsyncTelnyx(AsyncAPIClient):
|
|
|
1044
1048
|
self.wireless_blocklists = wireless_blocklists.AsyncWirelessBlocklistsResource(self)
|
|
1045
1049
|
self.partner_campaigns = partner_campaigns.AsyncPartnerCampaignsResource(self)
|
|
1046
1050
|
self.well_known = well_known.AsyncWellKnownResource(self)
|
|
1047
|
-
self.legacy = legacy.AsyncLegacyResource(self)
|
|
1048
|
-
self.oauth = oauth.AsyncOAuthResource(self)
|
|
1049
|
-
self.oauth_clients = oauth_clients.AsyncOAuthClientsResource(self)
|
|
1050
|
-
self.oauth_grants = oauth_grants.AsyncOAuthGrantsResource(self)
|
|
1051
1051
|
self.with_raw_response = AsyncTelnyxWithRawResponse(self)
|
|
1052
1052
|
self.with_streaming_response = AsyncTelnyxWithStreamedResponse(self)
|
|
1053
1053
|
|
|
@@ -1160,6 +1160,10 @@ class AsyncTelnyx(AsyncAPIClient):
|
|
|
1160
1160
|
|
|
1161
1161
|
class TelnyxWithRawResponse:
|
|
1162
1162
|
def __init__(self, client: Telnyx) -> None:
|
|
1163
|
+
self.legacy = legacy.LegacyResourceWithRawResponse(client.legacy)
|
|
1164
|
+
self.oauth = oauth.OAuthResourceWithRawResponse(client.oauth)
|
|
1165
|
+
self.oauth_clients = oauth_clients.OAuthClientsResourceWithRawResponse(client.oauth_clients)
|
|
1166
|
+
self.oauth_grants = oauth_grants.OAuthGrantsResourceWithRawResponse(client.oauth_grants)
|
|
1163
1167
|
self.access_ip_address = access_ip_address.AccessIPAddressResourceWithRawResponse(client.access_ip_address)
|
|
1164
1168
|
self.access_ip_ranges = access_ip_ranges.AccessIPRangesResourceWithRawResponse(client.access_ip_ranges)
|
|
1165
1169
|
self.actions = actions.ActionsResourceWithRawResponse(client.actions)
|
|
@@ -1435,14 +1439,14 @@ class TelnyxWithRawResponse:
|
|
|
1435
1439
|
)
|
|
1436
1440
|
self.partner_campaigns = partner_campaigns.PartnerCampaignsResourceWithRawResponse(client.partner_campaigns)
|
|
1437
1441
|
self.well_known = well_known.WellKnownResourceWithRawResponse(client.well_known)
|
|
1438
|
-
self.legacy = legacy.LegacyResourceWithRawResponse(client.legacy)
|
|
1439
|
-
self.oauth = oauth.OAuthResourceWithRawResponse(client.oauth)
|
|
1440
|
-
self.oauth_clients = oauth_clients.OAuthClientsResourceWithRawResponse(client.oauth_clients)
|
|
1441
|
-
self.oauth_grants = oauth_grants.OAuthGrantsResourceWithRawResponse(client.oauth_grants)
|
|
1442
1442
|
|
|
1443
1443
|
|
|
1444
1444
|
class AsyncTelnyxWithRawResponse:
|
|
1445
1445
|
def __init__(self, client: AsyncTelnyx) -> None:
|
|
1446
|
+
self.legacy = legacy.AsyncLegacyResourceWithRawResponse(client.legacy)
|
|
1447
|
+
self.oauth = oauth.AsyncOAuthResourceWithRawResponse(client.oauth)
|
|
1448
|
+
self.oauth_clients = oauth_clients.AsyncOAuthClientsResourceWithRawResponse(client.oauth_clients)
|
|
1449
|
+
self.oauth_grants = oauth_grants.AsyncOAuthGrantsResourceWithRawResponse(client.oauth_grants)
|
|
1446
1450
|
self.access_ip_address = access_ip_address.AsyncAccessIPAddressResourceWithRawResponse(client.access_ip_address)
|
|
1447
1451
|
self.access_ip_ranges = access_ip_ranges.AsyncAccessIPRangesResourceWithRawResponse(client.access_ip_ranges)
|
|
1448
1452
|
self.actions = actions.AsyncActionsResourceWithRawResponse(client.actions)
|
|
@@ -1758,14 +1762,14 @@ class AsyncTelnyxWithRawResponse:
|
|
|
1758
1762
|
client.partner_campaigns
|
|
1759
1763
|
)
|
|
1760
1764
|
self.well_known = well_known.AsyncWellKnownResourceWithRawResponse(client.well_known)
|
|
1761
|
-
self.legacy = legacy.AsyncLegacyResourceWithRawResponse(client.legacy)
|
|
1762
|
-
self.oauth = oauth.AsyncOAuthResourceWithRawResponse(client.oauth)
|
|
1763
|
-
self.oauth_clients = oauth_clients.AsyncOAuthClientsResourceWithRawResponse(client.oauth_clients)
|
|
1764
|
-
self.oauth_grants = oauth_grants.AsyncOAuthGrantsResourceWithRawResponse(client.oauth_grants)
|
|
1765
1765
|
|
|
1766
1766
|
|
|
1767
1767
|
class TelnyxWithStreamedResponse:
|
|
1768
1768
|
def __init__(self, client: Telnyx) -> None:
|
|
1769
|
+
self.legacy = legacy.LegacyResourceWithStreamingResponse(client.legacy)
|
|
1770
|
+
self.oauth = oauth.OAuthResourceWithStreamingResponse(client.oauth)
|
|
1771
|
+
self.oauth_clients = oauth_clients.OAuthClientsResourceWithStreamingResponse(client.oauth_clients)
|
|
1772
|
+
self.oauth_grants = oauth_grants.OAuthGrantsResourceWithStreamingResponse(client.oauth_grants)
|
|
1769
1773
|
self.access_ip_address = access_ip_address.AccessIPAddressResourceWithStreamingResponse(
|
|
1770
1774
|
client.access_ip_address
|
|
1771
1775
|
)
|
|
@@ -2087,14 +2091,14 @@ class TelnyxWithStreamedResponse:
|
|
|
2087
2091
|
client.partner_campaigns
|
|
2088
2092
|
)
|
|
2089
2093
|
self.well_known = well_known.WellKnownResourceWithStreamingResponse(client.well_known)
|
|
2090
|
-
self.legacy = legacy.LegacyResourceWithStreamingResponse(client.legacy)
|
|
2091
|
-
self.oauth = oauth.OAuthResourceWithStreamingResponse(client.oauth)
|
|
2092
|
-
self.oauth_clients = oauth_clients.OAuthClientsResourceWithStreamingResponse(client.oauth_clients)
|
|
2093
|
-
self.oauth_grants = oauth_grants.OAuthGrantsResourceWithStreamingResponse(client.oauth_grants)
|
|
2094
2094
|
|
|
2095
2095
|
|
|
2096
2096
|
class AsyncTelnyxWithStreamedResponse:
|
|
2097
2097
|
def __init__(self, client: AsyncTelnyx) -> None:
|
|
2098
|
+
self.legacy = legacy.AsyncLegacyResourceWithStreamingResponse(client.legacy)
|
|
2099
|
+
self.oauth = oauth.AsyncOAuthResourceWithStreamingResponse(client.oauth)
|
|
2100
|
+
self.oauth_clients = oauth_clients.AsyncOAuthClientsResourceWithStreamingResponse(client.oauth_clients)
|
|
2101
|
+
self.oauth_grants = oauth_grants.AsyncOAuthGrantsResourceWithStreamingResponse(client.oauth_grants)
|
|
2098
2102
|
self.access_ip_address = access_ip_address.AsyncAccessIPAddressResourceWithStreamingResponse(
|
|
2099
2103
|
client.access_ip_address
|
|
2100
2104
|
)
|
|
@@ -2458,10 +2462,6 @@ class AsyncTelnyxWithStreamedResponse:
|
|
|
2458
2462
|
client.partner_campaigns
|
|
2459
2463
|
)
|
|
2460
2464
|
self.well_known = well_known.AsyncWellKnownResourceWithStreamingResponse(client.well_known)
|
|
2461
|
-
self.legacy = legacy.AsyncLegacyResourceWithStreamingResponse(client.legacy)
|
|
2462
|
-
self.oauth = oauth.AsyncOAuthResourceWithStreamingResponse(client.oauth)
|
|
2463
|
-
self.oauth_clients = oauth_clients.AsyncOAuthClientsResourceWithStreamingResponse(client.oauth_clients)
|
|
2464
|
-
self.oauth_grants = oauth_grants.AsyncOAuthGrantsResourceWithStreamingResponse(client.oauth_grants)
|
|
2465
2465
|
|
|
2466
2466
|
|
|
2467
2467
|
Client = Telnyx
|
telnyx/_version.py
CHANGED
telnyx/resources/__init__.py
CHANGED
|
@@ -1211,6 +1211,30 @@ 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",
|
|
1214
1238
|
"WebhooksResource",
|
|
1215
1239
|
"AsyncWebhooksResource",
|
|
1216
1240
|
"AccessIPAddressResource",
|
|
@@ -2095,28 +2119,4 @@ __all__ = [
|
|
|
2095
2119
|
"AsyncWellKnownResourceWithRawResponse",
|
|
2096
2120
|
"WellKnownResourceWithStreamingResponse",
|
|
2097
2121
|
"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
|
]
|
|
@@ -7,7 +7,7 @@ from typing_extensions import Literal
|
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
9
9
|
|
|
10
|
-
from ..types import advanced_order_create_params,
|
|
10
|
+
from ..types import advanced_order_create_params, advanced_order_update_requirement_group_params
|
|
11
11
|
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
12
12
|
from .._utils import maybe_transform, async_maybe_transform
|
|
13
13
|
from .._compat import cached_property
|
|
@@ -129,9 +129,28 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
129
129
|
cast_to=object,
|
|
130
130
|
)
|
|
131
131
|
|
|
132
|
-
def
|
|
132
|
+
def list(
|
|
133
133
|
self,
|
|
134
|
-
|
|
134
|
+
*,
|
|
135
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
136
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
137
|
+
extra_headers: Headers | None = None,
|
|
138
|
+
extra_query: Query | None = None,
|
|
139
|
+
extra_body: Body | None = None,
|
|
140
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
141
|
+
) -> object:
|
|
142
|
+
"""List Advanced Orders"""
|
|
143
|
+
return self._get(
|
|
144
|
+
"/advanced_orders",
|
|
145
|
+
options=make_request_options(
|
|
146
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
147
|
+
),
|
|
148
|
+
cast_to=object,
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
def update_requirement_group(
|
|
152
|
+
self,
|
|
153
|
+
advanced_order_id: str,
|
|
135
154
|
*,
|
|
136
155
|
area_code: str | Omit = omit,
|
|
137
156
|
comments: str | Omit = omit,
|
|
@@ -162,10 +181,10 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
162
181
|
|
|
163
182
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
164
183
|
"""
|
|
165
|
-
if not
|
|
166
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
184
|
+
if not advanced_order_id:
|
|
185
|
+
raise ValueError(f"Expected a non-empty value for `advanced_order_id` but received {advanced_order_id!r}")
|
|
167
186
|
return self._patch(
|
|
168
|
-
f"/advanced_orders/{
|
|
187
|
+
f"/advanced_orders/{advanced_order_id}/requirement_group",
|
|
169
188
|
body=maybe_transform(
|
|
170
189
|
{
|
|
171
190
|
"area_code": area_code,
|
|
@@ -177,7 +196,7 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
177
196
|
"quantity": quantity,
|
|
178
197
|
"requirement_group_id": requirement_group_id,
|
|
179
198
|
},
|
|
180
|
-
|
|
199
|
+
advanced_order_update_requirement_group_params.AdvancedOrderUpdateRequirementGroupParams,
|
|
181
200
|
),
|
|
182
201
|
options=make_request_options(
|
|
183
202
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -185,25 +204,6 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
185
204
|
cast_to=object,
|
|
186
205
|
)
|
|
187
206
|
|
|
188
|
-
def list(
|
|
189
|
-
self,
|
|
190
|
-
*,
|
|
191
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
192
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
193
|
-
extra_headers: Headers | None = None,
|
|
194
|
-
extra_query: Query | None = None,
|
|
195
|
-
extra_body: Body | None = None,
|
|
196
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
197
|
-
) -> object:
|
|
198
|
-
"""List Advanced Orders"""
|
|
199
|
-
return self._get(
|
|
200
|
-
"/advanced_orders",
|
|
201
|
-
options=make_request_options(
|
|
202
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
203
|
-
),
|
|
204
|
-
cast_to=object,
|
|
205
|
-
)
|
|
206
|
-
|
|
207
207
|
|
|
208
208
|
class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
209
209
|
@cached_property
|
|
@@ -311,9 +311,28 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
311
311
|
cast_to=object,
|
|
312
312
|
)
|
|
313
313
|
|
|
314
|
-
async def
|
|
314
|
+
async def list(
|
|
315
315
|
self,
|
|
316
|
-
|
|
316
|
+
*,
|
|
317
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
318
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
319
|
+
extra_headers: Headers | None = None,
|
|
320
|
+
extra_query: Query | None = None,
|
|
321
|
+
extra_body: Body | None = None,
|
|
322
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
323
|
+
) -> object:
|
|
324
|
+
"""List Advanced Orders"""
|
|
325
|
+
return await self._get(
|
|
326
|
+
"/advanced_orders",
|
|
327
|
+
options=make_request_options(
|
|
328
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
329
|
+
),
|
|
330
|
+
cast_to=object,
|
|
331
|
+
)
|
|
332
|
+
|
|
333
|
+
async def update_requirement_group(
|
|
334
|
+
self,
|
|
335
|
+
advanced_order_id: str,
|
|
317
336
|
*,
|
|
318
337
|
area_code: str | Omit = omit,
|
|
319
338
|
comments: str | Omit = omit,
|
|
@@ -344,10 +363,10 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
344
363
|
|
|
345
364
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
346
365
|
"""
|
|
347
|
-
if not
|
|
348
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
366
|
+
if not advanced_order_id:
|
|
367
|
+
raise ValueError(f"Expected a non-empty value for `advanced_order_id` but received {advanced_order_id!r}")
|
|
349
368
|
return await self._patch(
|
|
350
|
-
f"/advanced_orders/{
|
|
369
|
+
f"/advanced_orders/{advanced_order_id}/requirement_group",
|
|
351
370
|
body=await async_maybe_transform(
|
|
352
371
|
{
|
|
353
372
|
"area_code": area_code,
|
|
@@ -359,7 +378,7 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
359
378
|
"quantity": quantity,
|
|
360
379
|
"requirement_group_id": requirement_group_id,
|
|
361
380
|
},
|
|
362
|
-
|
|
381
|
+
advanced_order_update_requirement_group_params.AdvancedOrderUpdateRequirementGroupParams,
|
|
363
382
|
),
|
|
364
383
|
options=make_request_options(
|
|
365
384
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -367,25 +386,6 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
367
386
|
cast_to=object,
|
|
368
387
|
)
|
|
369
388
|
|
|
370
|
-
async def list(
|
|
371
|
-
self,
|
|
372
|
-
*,
|
|
373
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
374
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
375
|
-
extra_headers: Headers | None = None,
|
|
376
|
-
extra_query: Query | None = None,
|
|
377
|
-
extra_body: Body | None = None,
|
|
378
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
379
|
-
) -> object:
|
|
380
|
-
"""List Advanced Orders"""
|
|
381
|
-
return await self._get(
|
|
382
|
-
"/advanced_orders",
|
|
383
|
-
options=make_request_options(
|
|
384
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
385
|
-
),
|
|
386
|
-
cast_to=object,
|
|
387
|
-
)
|
|
388
|
-
|
|
389
389
|
|
|
390
390
|
class AdvancedOrdersResourceWithRawResponse:
|
|
391
391
|
def __init__(self, advanced_orders: AdvancedOrdersResource) -> None:
|
|
@@ -397,12 +397,12 @@ class AdvancedOrdersResourceWithRawResponse:
|
|
|
397
397
|
self.retrieve = to_raw_response_wrapper(
|
|
398
398
|
advanced_orders.retrieve,
|
|
399
399
|
)
|
|
400
|
-
self.update = to_raw_response_wrapper(
|
|
401
|
-
advanced_orders.update,
|
|
402
|
-
)
|
|
403
400
|
self.list = to_raw_response_wrapper(
|
|
404
401
|
advanced_orders.list,
|
|
405
402
|
)
|
|
403
|
+
self.update_requirement_group = to_raw_response_wrapper(
|
|
404
|
+
advanced_orders.update_requirement_group,
|
|
405
|
+
)
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
class AsyncAdvancedOrdersResourceWithRawResponse:
|
|
@@ -415,12 +415,12 @@ class AsyncAdvancedOrdersResourceWithRawResponse:
|
|
|
415
415
|
self.retrieve = async_to_raw_response_wrapper(
|
|
416
416
|
advanced_orders.retrieve,
|
|
417
417
|
)
|
|
418
|
-
self.update = async_to_raw_response_wrapper(
|
|
419
|
-
advanced_orders.update,
|
|
420
|
-
)
|
|
421
418
|
self.list = async_to_raw_response_wrapper(
|
|
422
419
|
advanced_orders.list,
|
|
423
420
|
)
|
|
421
|
+
self.update_requirement_group = async_to_raw_response_wrapper(
|
|
422
|
+
advanced_orders.update_requirement_group,
|
|
423
|
+
)
|
|
424
424
|
|
|
425
425
|
|
|
426
426
|
class AdvancedOrdersResourceWithStreamingResponse:
|
|
@@ -433,12 +433,12 @@ class AdvancedOrdersResourceWithStreamingResponse:
|
|
|
433
433
|
self.retrieve = to_streamed_response_wrapper(
|
|
434
434
|
advanced_orders.retrieve,
|
|
435
435
|
)
|
|
436
|
-
self.update = to_streamed_response_wrapper(
|
|
437
|
-
advanced_orders.update,
|
|
438
|
-
)
|
|
439
436
|
self.list = to_streamed_response_wrapper(
|
|
440
437
|
advanced_orders.list,
|
|
441
438
|
)
|
|
439
|
+
self.update_requirement_group = to_streamed_response_wrapper(
|
|
440
|
+
advanced_orders.update_requirement_group,
|
|
441
|
+
)
|
|
442
442
|
|
|
443
443
|
|
|
444
444
|
class AsyncAdvancedOrdersResourceWithStreamingResponse:
|
|
@@ -451,9 +451,9 @@ class AsyncAdvancedOrdersResourceWithStreamingResponse:
|
|
|
451
451
|
self.retrieve = async_to_streamed_response_wrapper(
|
|
452
452
|
advanced_orders.retrieve,
|
|
453
453
|
)
|
|
454
|
-
self.update = async_to_streamed_response_wrapper(
|
|
455
|
-
advanced_orders.update,
|
|
456
|
-
)
|
|
457
454
|
self.list = async_to_streamed_response_wrapper(
|
|
458
455
|
advanced_orders.list,
|
|
459
456
|
)
|
|
457
|
+
self.update_requirement_group = async_to_streamed_response_wrapper(
|
|
458
|
+
advanced_orders.update_requirement_group,
|
|
459
|
+
)
|
|
@@ -18,6 +18,7 @@ from ....._response import (
|
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
20
|
from ....._base_client import make_request_options
|
|
21
|
+
from .....types.legacy.reporting.filter_param import FilterParam
|
|
21
22
|
from .....types.legacy.reporting.batch_detail_records import messaging_create_params
|
|
22
23
|
from .....types.legacy.reporting.batch_detail_records.messaging_list_response import MessagingListResponse
|
|
23
24
|
from .....types.legacy.reporting.batch_detail_records.messaging_create_response import MessagingCreateResponse
|
|
@@ -54,7 +55,7 @@ class MessagingResource(SyncAPIResource):
|
|
|
54
55
|
start_time: Union[str, datetime],
|
|
55
56
|
connections: Iterable[int] | Omit = omit,
|
|
56
57
|
directions: Iterable[int] | Omit = omit,
|
|
57
|
-
filters: Iterable[
|
|
58
|
+
filters: Iterable[FilterParam] | Omit = omit,
|
|
58
59
|
include_message_body: bool | Omit = omit,
|
|
59
60
|
managed_accounts: SequenceNotStr[str] | Omit = omit,
|
|
60
61
|
profiles: SequenceNotStr[str] | Omit = omit,
|
|
@@ -245,7 +246,7 @@ class AsyncMessagingResource(AsyncAPIResource):
|
|
|
245
246
|
start_time: Union[str, datetime],
|
|
246
247
|
connections: Iterable[int] | Omit = omit,
|
|
247
248
|
directions: Iterable[int] | Omit = omit,
|
|
248
|
-
filters: Iterable[
|
|
249
|
+
filters: Iterable[FilterParam] | Omit = omit,
|
|
249
250
|
include_message_body: bool | Omit = omit,
|
|
250
251
|
managed_accounts: SequenceNotStr[str] | Omit = omit,
|
|
251
252
|
profiles: SequenceNotStr[str] | Omit = omit,
|
|
@@ -18,6 +18,7 @@ from ....._response import (
|
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
20
|
from ....._base_client import make_request_options
|
|
21
|
+
from .....types.legacy.reporting.filter_param import FilterParam
|
|
21
22
|
from .....types.legacy.reporting.batch_detail_records import voice_create_params
|
|
22
23
|
from .....types.legacy.reporting.batch_detail_records.voice_list_response import VoiceListResponse
|
|
23
24
|
from .....types.legacy.reporting.batch_detail_records.voice_create_response import VoiceCreateResponse
|
|
@@ -56,7 +57,7 @@ class VoiceResource(SyncAPIResource):
|
|
|
56
57
|
call_types: Iterable[int] | Omit = omit,
|
|
57
58
|
connections: Iterable[int] | Omit = omit,
|
|
58
59
|
fields: SequenceNotStr[str] | Omit = omit,
|
|
59
|
-
filters: Iterable[
|
|
60
|
+
filters: Iterable[FilterParam] | Omit = omit,
|
|
60
61
|
include_all_metadata: bool | Omit = omit,
|
|
61
62
|
managed_accounts: SequenceNotStr[str] | Omit = omit,
|
|
62
63
|
record_types: Iterable[int] | Omit = omit,
|
|
@@ -269,7 +270,7 @@ class AsyncVoiceResource(AsyncAPIResource):
|
|
|
269
270
|
call_types: Iterable[int] | Omit = omit,
|
|
270
271
|
connections: Iterable[int] | Omit = omit,
|
|
271
272
|
fields: SequenceNotStr[str] | Omit = omit,
|
|
272
|
-
filters: Iterable[
|
|
273
|
+
filters: Iterable[FilterParam] | Omit = omit,
|
|
273
274
|
include_all_metadata: bool | Omit = omit,
|
|
274
275
|
managed_accounts: SequenceNotStr[str] | Omit = omit,
|
|
275
276
|
record_types: Iterable[int] | Omit = omit,
|