telnyx 3.5.0a0__py3-none-any.whl → 3.6.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 +56 -756
- telnyx/_version.py +1 -1
- telnyx/resources/__init__.py +70 -0
- telnyx/resources/advanced_orders.py +63 -63
- telnyx/resources/ai/assistants/assistants.py +15 -17
- telnyx/resources/ai/assistants/versions.py +13 -15
- telnyx/resources/ai/conversations/conversations.py +137 -3
- telnyx/resources/ai/conversations/messages.py +1 -134
- telnyx/resources/brand/brand.py +8 -4
- telnyx/resources/calls/actions.py +154 -150
- telnyx/resources/calls/calls.py +18 -10
- telnyx/resources/conferences/actions.py +8 -24
- telnyx/resources/conferences/conferences.py +2 -6
- telnyx/resources/documents.py +242 -37
- telnyx/resources/legacy/__init__.py +33 -0
- telnyx/resources/legacy/legacy.py +102 -0
- telnyx/resources/legacy/reporting/__init__.py +47 -0
- telnyx/resources/legacy/reporting/batch_detail_records/__init__.py +61 -0
- telnyx/resources/legacy/reporting/batch_detail_records/batch_detail_records.py +166 -0
- telnyx/resources/legacy/reporting/batch_detail_records/messaging.py +482 -0
- telnyx/resources/legacy/reporting/batch_detail_records/speech_to_text.py +399 -0
- telnyx/resources/legacy/reporting/batch_detail_records/voice.py +539 -0
- telnyx/resources/legacy/reporting/reporting.py +134 -0
- telnyx/resources/legacy/reporting/usage_reports/__init__.py +61 -0
- telnyx/resources/legacy/reporting/usage_reports/messaging.py +471 -0
- telnyx/resources/legacy/reporting/usage_reports/number_lookup.py +464 -0
- telnyx/resources/legacy/reporting/usage_reports/usage_reports.py +288 -0
- telnyx/resources/legacy/reporting/usage_reports/voice.py +493 -0
- telnyx/resources/messaging_profiles/messaging_profiles.py +16 -0
- telnyx/resources/messaging_tollfree/verification/requests.py +203 -1
- telnyx/resources/oauth.py +855 -0
- telnyx/resources/oauth_clients.py +711 -0
- telnyx/resources/oauth_grants.py +349 -0
- telnyx/resources/outbound_voice_profiles.py +24 -4
- telnyx/resources/phone_numbers/jobs.py +12 -0
- telnyx/resources/porting_orders/porting_orders.py +20 -8
- telnyx/resources/sim_cards/actions.py +12 -12
- telnyx/resources/sim_cards/sim_cards.py +3 -2
- telnyx/resources/texml/accounts/calls/calls.py +11 -0
- telnyx/resources/texml/accounts/conferences/participants.py +11 -0
- telnyx/resources/verifications/verifications.py +10 -0
- telnyx/resources/verified_numbers/verified_numbers.py +25 -4
- telnyx/resources/verify_profiles.py +182 -1
- telnyx/resources/well_known.py +198 -0
- telnyx/types/__init__.py +51 -9
- telnyx/types/access_ip_address_list_response.py +3 -12
- telnyx/types/access_ip_range_list_response.py +3 -12
- telnyx/types/addresses/action_validate_response.py +8 -3
- telnyx/types/{advanced_order_update_params.py → advanced_order_update_requirement_group_params.py} +2 -2
- telnyx/types/ai/__init__.py +2 -3
- telnyx/types/ai/assistant_import_params.py +1 -1
- telnyx/types/ai/assistants/__init__.py +0 -3
- telnyx/types/ai/assistants_list.py +4 -88
- telnyx/types/ai/{conversations/message_create_params.py → conversation_add_message_params.py} +4 -4
- telnyx/types/ai/conversations/__init__.py +0 -1
- telnyx/types/ai/import_metadata.py +1 -1
- telnyx/types/ai/{assistant_clone_response.py → inference_embedding.py} +2 -2
- 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/inference_embedding_webhook_tool_params.py +2 -0
- telnyx/types/ai/inference_embedding_webhook_tool_params_param.py +2 -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 +11 -3
- telnyx/types/calls/__init__.py +1 -0
- telnyx/types/calls/action_answer_params.py +1 -2
- telnyx/types/calls/action_gather_using_ai_params.py +5 -8
- telnyx/types/calls/action_start_streaming_params.py +5 -2
- telnyx/types/calls/action_start_transcription_params.py +160 -6
- telnyx/types/calls/action_transfer_params.py +50 -0
- telnyx/types/calls/telnyx_transcription_language.py +108 -0
- telnyx/types/calls/transcription_engine_b_config_param.py +3 -102
- telnyx/types/calls/transcription_start_request_param.py +161 -6
- telnyx/types/campaign_submit_appeal_response.py +0 -3
- telnyx/types/country_coverage_retrieve_country_response.py +7 -0
- telnyx/types/country_coverage_retrieve_response.py +7 -0
- telnyx/types/document_upload_json_params.py +39 -0
- telnyx/types/document_upload_json_response.py +12 -0
- telnyx/types/legacy/__init__.py +3 -0
- telnyx/types/legacy/reporting/__init__.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/__init__.py +24 -0
- telnyx/types/legacy/reporting/batch_detail_records/batch_csv_pagination_meta.py +17 -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 +55 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_delete_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +15 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_retrieve_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_params.py +19 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_delete_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_list_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.py +12 -0
- 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 +57 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_response.py +13 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_delete_response.py +13 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +15 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_fields_response.py +23 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_response.py +13 -0
- telnyx/types/legacy/reporting/filter.py +31 -0
- telnyx/types/legacy/reporting/filter_param.py +30 -0
- telnyx/types/legacy/reporting/usage_report_retrieve_speech_to_text_params.py +17 -0
- telnyx/types/legacy/reporting/usage_report_retrieve_speech_to_text_response.py +11 -0
- telnyx/types/legacy/reporting/usage_reports/__init__.py +21 -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_params.py +29 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_create_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_delete_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_list_params.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_list_response.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_retrieve_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_create_params.py +26 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_list_params.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/standard_pagination_meta.py +17 -0
- telnyx/types/legacy/reporting/usage_reports/voice_create_params.py +40 -0
- telnyx/types/legacy/reporting/usage_reports/voice_create_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/voice_delete_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/voice_list_params.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/voice_list_response.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/voice_retrieve_response.py +13 -0
- telnyx/types/message_template.py +12 -0
- telnyx/types/messaging_profile.py +3 -0
- telnyx/types/messaging_profile_create_params.py +3 -0
- telnyx/types/messaging_profile_update_params.py +3 -0
- telnyx/types/messaging_tollfree/verification/__init__.py +1 -0
- telnyx/types/messaging_tollfree/verification/request_create_params.py +51 -1
- telnyx/types/messaging_tollfree/verification/request_update_params.py +51 -1
- telnyx/types/messaging_tollfree/verification/toll_free_verification_entity_type.py +9 -0
- telnyx/types/messaging_tollfree/verification/verification_request_egress.py +24 -0
- telnyx/types/messaging_tollfree/verification/verification_request_status.py +24 -0
- telnyx/types/number_order_status_update_webhook_event.py +30 -4
- telnyx/types/oauth_client.py +59 -0
- telnyx/types/oauth_client_create_params.py +39 -0
- telnyx/types/oauth_client_create_response.py +12 -0
- telnyx/types/oauth_client_list_params.py +38 -0
- telnyx/types/oauth_client_list_response.py +15 -0
- telnyx/types/oauth_client_retrieve_response.py +12 -0
- telnyx/types/oauth_client_update_params.py +36 -0
- telnyx/types/oauth_client_update_response.py +12 -0
- telnyx/types/oauth_grant.py +29 -0
- telnyx/types/oauth_grant_delete_response.py +12 -0
- telnyx/types/oauth_grant_list_params.py +17 -0
- telnyx/types/oauth_grant_list_response.py +15 -0
- telnyx/types/oauth_grant_retrieve_response.py +12 -0
- telnyx/types/oauth_grants_params.py +15 -0
- telnyx/types/oauth_grants_response.py +10 -0
- telnyx/types/oauth_introspect_params.py +12 -0
- telnyx/types/oauth_introspect_response.py +30 -0
- telnyx/types/oauth_register_params.py +39 -0
- telnyx/types/oauth_register_response.py +45 -0
- telnyx/types/oauth_retrieve_authorize_params.py +30 -0
- telnyx/types/oauth_retrieve_jwks_response.py +25 -0
- telnyx/types/oauth_retrieve_response.py +47 -0
- telnyx/types/oauth_token_params.py +33 -0
- telnyx/types/oauth_token_response.py +25 -0
- telnyx/types/outbound_voice_profile.py +27 -1
- telnyx/types/outbound_voice_profile_create_params.py +27 -1
- telnyx/types/outbound_voice_profile_list_params.py +1 -1
- telnyx/types/outbound_voice_profile_update_params.py +27 -1
- telnyx/types/pagination_meta_cloudflare_ip_list_sync.py +15 -0
- telnyx/types/pagination_meta_oauth.py +21 -0
- telnyx/types/phone_number_blocks/__init__.py +1 -0
- telnyx/types/phone_number_blocks/job.py +3 -34
- telnyx/types/phone_number_blocks/job_error.py +32 -0
- telnyx/types/phone_number_delete_response.py +7 -0
- telnyx/types/phone_number_detailed.py +7 -0
- telnyx/types/phone_number_list_params.py +6 -0
- telnyx/types/phone_numbers/job_update_batch_params.py +7 -0
- telnyx/types/phone_numbers/phone_numbers_job.py +3 -36
- telnyx/types/porting_order.py +3 -0
- telnyx/types/porting_order_create_params.py +3 -0
- telnyx/types/porting_order_list_params.py +52 -31
- telnyx/types/porting_order_update_params.py +2 -0
- telnyx/types/porting_orders/phone_number_configuration_list_params.py +19 -19
- telnyx/types/report_list_mdrs_response.py +3 -12
- telnyx/types/reports/__init__.py +1 -0
- telnyx/types/reports/mdr_usage_report_list_response.py +3 -12
- telnyx/types/reports/pagination_meta_reporting.py +17 -0
- telnyx/types/requirement_group.py +2 -2
- telnyx/types/requirement_group_list_params.py +1 -1
- telnyx/types/shared/__init__.py +1 -0
- telnyx/types/{error.py → shared/api_error.py} +3 -3
- telnyx/types/shared/simple_sim_card.py +15 -0
- telnyx/types/sim_card.py +12 -0
- telnyx/types/sim_card_update_params.py +2 -1
- telnyx/types/stream_bidirectional_codec.py +1 -1
- telnyx/types/stream_bidirectional_sampling_rate.py +7 -0
- telnyx/types/stream_codec.py +1 -1
- telnyx/types/texml/accounts/call_calls_params.py +16 -1
- telnyx/types/texml/accounts/conferences/participant_participants_params.py +16 -1
- telnyx/types/verification_trigger_call_params.py +7 -0
- telnyx/types/verifications/__init__.py +1 -0
- telnyx/types/verifications/by_phone_number_list_response.py +4 -13
- telnyx/types/verifications/verify_meta.py +17 -0
- telnyx/types/verified_number_create_params.py +10 -0
- telnyx/types/verify_profile.py +18 -3
- telnyx/types/verify_profile_create_template_params.py +12 -0
- telnyx/types/verify_profile_list_response.py +4 -13
- 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_params.py +12 -0
- telnyx/types/well_known_retrieve_authorization_server_metadata_response.py +42 -0
- telnyx/types/well_known_retrieve_protected_resource_metadata_response.py +15 -0
- {telnyx-3.5.0a0.dist-info → telnyx-3.6.0.dist-info}/METADATA +4 -4
- {telnyx-3.5.0a0.dist-info → telnyx-3.6.0.dist-info}/RECORD +212 -121
- telnyx/types/ai/assistant_create_response.py +0 -92
- telnyx/types/ai/assistant_retrieve_response.py +0 -92
- telnyx/types/ai/assistants/version_promote_response.py +0 -92
- telnyx/types/ai/assistants/version_retrieve_response.py +0 -92
- telnyx/types/ai/assistants/version_update_response.py +0 -92
- 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.5.0a0.dist-info → telnyx-3.6.0.dist-info}/WHEEL +0 -0
- {telnyx-3.5.0a0.dist-info → telnyx-3.6.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from .._types import Body, Query, Headers, NotGiven, not_given
|
|
8
|
+
from .._compat import cached_property
|
|
9
|
+
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
10
|
+
from .._response import (
|
|
11
|
+
to_raw_response_wrapper,
|
|
12
|
+
to_streamed_response_wrapper,
|
|
13
|
+
async_to_raw_response_wrapper,
|
|
14
|
+
async_to_streamed_response_wrapper,
|
|
15
|
+
)
|
|
16
|
+
from .._base_client import make_request_options
|
|
17
|
+
from ..types.well_known_retrieve_protected_resource_metadata_response import (
|
|
18
|
+
WellKnownRetrieveProtectedResourceMetadataResponse,
|
|
19
|
+
)
|
|
20
|
+
from ..types.well_known_retrieve_authorization_server_metadata_response import (
|
|
21
|
+
WellKnownRetrieveAuthorizationServerMetadataResponse,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
__all__ = ["WellKnownResource", "AsyncWellKnownResource"]
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class WellKnownResource(SyncAPIResource):
|
|
28
|
+
@cached_property
|
|
29
|
+
def with_raw_response(self) -> WellKnownResourceWithRawResponse:
|
|
30
|
+
"""
|
|
31
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
32
|
+
the raw response object instead of the parsed content.
|
|
33
|
+
|
|
34
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
|
|
35
|
+
"""
|
|
36
|
+
return WellKnownResourceWithRawResponse(self)
|
|
37
|
+
|
|
38
|
+
@cached_property
|
|
39
|
+
def with_streaming_response(self) -> WellKnownResourceWithStreamingResponse:
|
|
40
|
+
"""
|
|
41
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
42
|
+
|
|
43
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#with_streaming_response
|
|
44
|
+
"""
|
|
45
|
+
return WellKnownResourceWithStreamingResponse(self)
|
|
46
|
+
|
|
47
|
+
def retrieve_authorization_server_metadata(
|
|
48
|
+
self,
|
|
49
|
+
*,
|
|
50
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
51
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
52
|
+
extra_headers: Headers | None = None,
|
|
53
|
+
extra_query: Query | None = None,
|
|
54
|
+
extra_body: Body | None = None,
|
|
55
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
56
|
+
) -> WellKnownRetrieveAuthorizationServerMetadataResponse:
|
|
57
|
+
"""OAuth 2.0 Authorization Server Metadata (RFC 8414)"""
|
|
58
|
+
return self._get(
|
|
59
|
+
"/.well-known/oauth-authorization-server"
|
|
60
|
+
if self._client._base_url_overridden
|
|
61
|
+
else "https://api.telnyx.com/.well-known/oauth-authorization-server",
|
|
62
|
+
options=make_request_options(
|
|
63
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
64
|
+
),
|
|
65
|
+
cast_to=WellKnownRetrieveAuthorizationServerMetadataResponse,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
def retrieve_protected_resource_metadata(
|
|
69
|
+
self,
|
|
70
|
+
*,
|
|
71
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
72
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
73
|
+
extra_headers: Headers | None = None,
|
|
74
|
+
extra_query: Query | None = None,
|
|
75
|
+
extra_body: Body | None = None,
|
|
76
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
77
|
+
) -> WellKnownRetrieveProtectedResourceMetadataResponse:
|
|
78
|
+
"""OAuth 2.0 Protected Resource Metadata for resource discovery"""
|
|
79
|
+
return self._get(
|
|
80
|
+
"/.well-known/oauth-protected-resource"
|
|
81
|
+
if self._client._base_url_overridden
|
|
82
|
+
else "https://api.telnyx.com/.well-known/oauth-protected-resource",
|
|
83
|
+
options=make_request_options(
|
|
84
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
85
|
+
),
|
|
86
|
+
cast_to=WellKnownRetrieveProtectedResourceMetadataResponse,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class AsyncWellKnownResource(AsyncAPIResource):
|
|
91
|
+
@cached_property
|
|
92
|
+
def with_raw_response(self) -> AsyncWellKnownResourceWithRawResponse:
|
|
93
|
+
"""
|
|
94
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
95
|
+
the raw response object instead of the parsed content.
|
|
96
|
+
|
|
97
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
|
|
98
|
+
"""
|
|
99
|
+
return AsyncWellKnownResourceWithRawResponse(self)
|
|
100
|
+
|
|
101
|
+
@cached_property
|
|
102
|
+
def with_streaming_response(self) -> AsyncWellKnownResourceWithStreamingResponse:
|
|
103
|
+
"""
|
|
104
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
105
|
+
|
|
106
|
+
For more information, see https://www.github.com/team-telnyx/telnyx-python#with_streaming_response
|
|
107
|
+
"""
|
|
108
|
+
return AsyncWellKnownResourceWithStreamingResponse(self)
|
|
109
|
+
|
|
110
|
+
async def retrieve_authorization_server_metadata(
|
|
111
|
+
self,
|
|
112
|
+
*,
|
|
113
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
114
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
115
|
+
extra_headers: Headers | None = None,
|
|
116
|
+
extra_query: Query | None = None,
|
|
117
|
+
extra_body: Body | None = None,
|
|
118
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
119
|
+
) -> WellKnownRetrieveAuthorizationServerMetadataResponse:
|
|
120
|
+
"""OAuth 2.0 Authorization Server Metadata (RFC 8414)"""
|
|
121
|
+
return await self._get(
|
|
122
|
+
"/.well-known/oauth-authorization-server"
|
|
123
|
+
if self._client._base_url_overridden
|
|
124
|
+
else "https://api.telnyx.com/.well-known/oauth-authorization-server",
|
|
125
|
+
options=make_request_options(
|
|
126
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
127
|
+
),
|
|
128
|
+
cast_to=WellKnownRetrieveAuthorizationServerMetadataResponse,
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
async def retrieve_protected_resource_metadata(
|
|
132
|
+
self,
|
|
133
|
+
*,
|
|
134
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
135
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
136
|
+
extra_headers: Headers | None = None,
|
|
137
|
+
extra_query: Query | None = None,
|
|
138
|
+
extra_body: Body | None = None,
|
|
139
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
140
|
+
) -> WellKnownRetrieveProtectedResourceMetadataResponse:
|
|
141
|
+
"""OAuth 2.0 Protected Resource Metadata for resource discovery"""
|
|
142
|
+
return await self._get(
|
|
143
|
+
"/.well-known/oauth-protected-resource"
|
|
144
|
+
if self._client._base_url_overridden
|
|
145
|
+
else "https://api.telnyx.com/.well-known/oauth-protected-resource",
|
|
146
|
+
options=make_request_options(
|
|
147
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
148
|
+
),
|
|
149
|
+
cast_to=WellKnownRetrieveProtectedResourceMetadataResponse,
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
class WellKnownResourceWithRawResponse:
|
|
154
|
+
def __init__(self, well_known: WellKnownResource) -> None:
|
|
155
|
+
self._well_known = well_known
|
|
156
|
+
|
|
157
|
+
self.retrieve_authorization_server_metadata = to_raw_response_wrapper(
|
|
158
|
+
well_known.retrieve_authorization_server_metadata,
|
|
159
|
+
)
|
|
160
|
+
self.retrieve_protected_resource_metadata = to_raw_response_wrapper(
|
|
161
|
+
well_known.retrieve_protected_resource_metadata,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class AsyncWellKnownResourceWithRawResponse:
|
|
166
|
+
def __init__(self, well_known: AsyncWellKnownResource) -> None:
|
|
167
|
+
self._well_known = well_known
|
|
168
|
+
|
|
169
|
+
self.retrieve_authorization_server_metadata = async_to_raw_response_wrapper(
|
|
170
|
+
well_known.retrieve_authorization_server_metadata,
|
|
171
|
+
)
|
|
172
|
+
self.retrieve_protected_resource_metadata = async_to_raw_response_wrapper(
|
|
173
|
+
well_known.retrieve_protected_resource_metadata,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
class WellKnownResourceWithStreamingResponse:
|
|
178
|
+
def __init__(self, well_known: WellKnownResource) -> None:
|
|
179
|
+
self._well_known = well_known
|
|
180
|
+
|
|
181
|
+
self.retrieve_authorization_server_metadata = to_streamed_response_wrapper(
|
|
182
|
+
well_known.retrieve_authorization_server_metadata,
|
|
183
|
+
)
|
|
184
|
+
self.retrieve_protected_resource_metadata = to_streamed_response_wrapper(
|
|
185
|
+
well_known.retrieve_protected_resource_metadata,
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
class AsyncWellKnownResourceWithStreamingResponse:
|
|
190
|
+
def __init__(self, well_known: AsyncWellKnownResource) -> None:
|
|
191
|
+
self._well_known = well_known
|
|
192
|
+
|
|
193
|
+
self.retrieve_authorization_server_metadata = async_to_streamed_response_wrapper(
|
|
194
|
+
well_known.retrieve_authorization_server_metadata,
|
|
195
|
+
)
|
|
196
|
+
self.retrieve_protected_resource_metadata = async_to_streamed_response_wrapper(
|
|
197
|
+
well_known.retrieve_protected_resource_metadata,
|
|
198
|
+
)
|
telnyx/types/__init__.py
CHANGED
|
@@ -8,9 +8,9 @@ from .ip import IP as IP
|
|
|
8
8
|
from .fax import Fax as Fax
|
|
9
9
|
from .fqdn import Fqdn as Fqdn
|
|
10
10
|
from .room import Room as Room
|
|
11
|
-
from .error import Error as Error
|
|
12
11
|
from .record import Record as Record
|
|
13
12
|
from .shared import (
|
|
13
|
+
APIError as APIError,
|
|
14
14
|
Metadata as Metadata,
|
|
15
15
|
ShortCode as ShortCode,
|
|
16
16
|
HostedNumber as HostedNumber,
|
|
@@ -38,10 +38,12 @@ from .conference import Conference as Conference
|
|
|
38
38
|
from .inbound_ip import InboundIP as InboundIP
|
|
39
39
|
from .sip_header import SipHeader as SipHeader
|
|
40
40
|
from .entity_type import EntityType as EntityType
|
|
41
|
+
from .oauth_grant import OAuthGrant as OAuthGrant
|
|
41
42
|
from .outbound_ip import OutboundIP as OutboundIP
|
|
42
43
|
from .task_status import TaskStatus as TaskStatus
|
|
43
44
|
from .inbound_fqdn import InboundFqdn as InboundFqdn
|
|
44
45
|
from .month_detail import MonthDetail as MonthDetail
|
|
46
|
+
from .oauth_client import OAuthClient as OAuthClient
|
|
45
47
|
from .phone_number import PhoneNumber as PhoneNumber
|
|
46
48
|
from .record_param import RecordParam as RecordParam
|
|
47
49
|
from .room_session import RoomSession as RoomSession
|
|
@@ -83,6 +85,7 @@ from .interface_status import InterfaceStatus as InterfaceStatus
|
|
|
83
85
|
from .ip_create_params import IPCreateParams as IPCreateParams
|
|
84
86
|
from .ip_list_response import IPListResponse as IPListResponse
|
|
85
87
|
from .ip_update_params import IPUpdateParams as IPUpdateParams
|
|
88
|
+
from .message_template import MessageTemplate as MessageTemplate
|
|
86
89
|
from .rcs_card_content import RcsCardContent as RcsCardContent
|
|
87
90
|
from .rcs_content_info import RcsContentInfo as RcsContentInfo
|
|
88
91
|
from .room_composition import RoomComposition as RoomComposition
|
|
@@ -112,6 +115,7 @@ from .ip_delete_response import IPDeleteResponse as IPDeleteResponse
|
|
|
112
115
|
from .ip_update_response import IPUpdateResponse as IPUpdateResponse
|
|
113
116
|
from .number_block_order import NumberBlockOrder as NumberBlockOrder
|
|
114
117
|
from .number_reservation import NumberReservation as NumberReservation
|
|
118
|
+
from .oauth_token_params import OAuthTokenParams as OAuthTokenParams
|
|
115
119
|
from .porting_order_misc import PortingOrderMisc as PortingOrderMisc
|
|
116
120
|
from .porting_order_type import PortingOrderType as PortingOrderType
|
|
117
121
|
from .rcs_agent_response import RcsAgentResponse as RcsAgentResponse
|
|
@@ -138,6 +142,7 @@ from .media_upload_params import MediaUploadParams as MediaUploadParams
|
|
|
138
142
|
from .message_send_params import MessageSendParams as MessageSendParams
|
|
139
143
|
from .messsage_rcs_params import MesssageRcsParams as MesssageRcsParams
|
|
140
144
|
from .network_list_params import NetworkListParams as NetworkListParams
|
|
145
|
+
from .oauth_grants_params import OAuthGrantsParams as OAuthGrantsParams
|
|
141
146
|
from .outbound_fqdn_param import OutboundFqdnParam as OutboundFqdnParam
|
|
142
147
|
from .portout_list_params import PortoutListParams as PortoutListParams
|
|
143
148
|
from .telnyx_campaign_csp import TelnyxCampaignCsp as TelnyxCampaignCsp
|
|
@@ -156,6 +161,7 @@ from .notification_channel import NotificationChannel as NotificationChannel
|
|
|
156
161
|
from .notification_profile import NotificationProfile as NotificationProfile
|
|
157
162
|
from .notification_setting import NotificationSetting as NotificationSetting
|
|
158
163
|
from .number_pool_settings import NumberPoolSettings as NumberPoolSettings
|
|
164
|
+
from .oauth_token_response import OAuthTokenResponse as OAuthTokenResponse
|
|
159
165
|
from .rcs_suggestion_param import RcsSuggestionParam as RcsSuggestionParam
|
|
160
166
|
from .region_list_response import RegionListResponse as RegionListResponse
|
|
161
167
|
from .room_create_response import RoomCreateResponse as RoomCreateResponse
|
|
@@ -178,8 +184,6 @@ from .credential_connection import CredentialConnection as CredentialConnection
|
|
|
178
184
|
from .fax_retrieve_response import FaxRetrieveResponse as FaxRetrieveResponse
|
|
179
185
|
from .global_ip_list_params import GlobalIPListParams as GlobalIPListParams
|
|
180
186
|
from .invoice_list_response import InvoiceListResponse as InvoiceListResponse
|
|
181
|
-
from .list_buckets_response import ListBucketsResponse as ListBucketsResponse
|
|
182
|
-
from .list_objects_response import ListObjectsResponse as ListObjectsResponse
|
|
183
187
|
from .media_update_response import MediaUpdateResponse as MediaUpdateResponse
|
|
184
188
|
from .media_upload_response import MediaUploadResponse as MediaUploadResponse
|
|
185
189
|
from .message_send_response import MessageSendResponse as MessageSendResponse
|
|
@@ -187,6 +191,9 @@ from .messsage_rcs_response import MesssageRcsResponse as MesssageRcsResponse
|
|
|
187
191
|
from .network_create_params import NetworkCreateParams as NetworkCreateParams
|
|
188
192
|
from .network_list_response import NetworkListResponse as NetworkListResponse
|
|
189
193
|
from .network_update_params import NetworkUpdateParams as NetworkUpdateParams
|
|
194
|
+
from .oauth_grants_response import OAuthGrantsResponse as OAuthGrantsResponse
|
|
195
|
+
from .oauth_register_params import OAuthRegisterParams as OAuthRegisterParams
|
|
196
|
+
from .pagination_meta_oauth import PaginationMetaOAuth as PaginationMetaOAuth
|
|
190
197
|
from .phone_number_campaign import PhoneNumberCampaign as PhoneNumberCampaign
|
|
191
198
|
from .phone_number_detailed import PhoneNumberDetailed as PhoneNumberDetailed
|
|
192
199
|
from .portout_list_response import PortoutListResponse as PortoutListResponse
|
|
@@ -237,6 +244,10 @@ from .message_schedule_params import MessageScheduleParams as MessageSchedulePar
|
|
|
237
244
|
from .network_create_response import NetworkCreateResponse as NetworkCreateResponse
|
|
238
245
|
from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse
|
|
239
246
|
from .network_update_response import NetworkUpdateResponse as NetworkUpdateResponse
|
|
247
|
+
from .oauth_grant_list_params import OAuthGrantListParams as OAuthGrantListParams
|
|
248
|
+
from .oauth_introspect_params import OAuthIntrospectParams as OAuthIntrospectParams
|
|
249
|
+
from .oauth_register_response import OAuthRegisterResponse as OAuthRegisterResponse
|
|
250
|
+
from .oauth_retrieve_response import OAuthRetrieveResponse as OAuthRetrieveResponse
|
|
240
251
|
from .outbound_call_recording import OutboundCallRecording as OutboundCallRecording
|
|
241
252
|
from .porting_order_documents import PortingOrderDocuments as PortingOrderDocuments
|
|
242
253
|
from .porting_order_messaging import PortingOrderMessaging as PortingOrderMessaging
|
|
@@ -252,8 +263,6 @@ from .azure_configuration_data import AzureConfigurationData as AzureConfigurati
|
|
|
252
263
|
from .call_control_application import CallControlApplication as CallControlApplication
|
|
253
264
|
from .call_event_list_response import CallEventListResponse as CallEventListResponse
|
|
254
265
|
from .channel_zone_list_params import ChannelZoneListParams as ChannelZoneListParams
|
|
255
|
-
from .client_get_object_params import ClientGetObjectParams as ClientGetObjectParams
|
|
256
|
-
from .client_put_object_params import ClientPutObjectParams as ClientPutObjectParams
|
|
257
266
|
from .conference_create_params import ConferenceCreateParams as ConferenceCreateParams
|
|
258
267
|
from .conference_list_response import ConferenceListResponse as ConferenceListResponse
|
|
259
268
|
from .connection_list_response import ConnectionListResponse as ConnectionListResponse
|
|
@@ -265,6 +274,7 @@ from .document_upload_response import DocumentUploadResponse as DocumentUploadRe
|
|
|
265
274
|
from .fax_failed_webhook_event import FaxFailedWebhookEvent as FaxFailedWebhookEvent
|
|
266
275
|
from .fax_queued_webhook_event import FaxQueuedWebhookEvent as FaxQueuedWebhookEvent
|
|
267
276
|
from .number_order_list_params import NumberOrderListParams as NumberOrderListParams
|
|
277
|
+
from .oauth_client_list_params import OAuthClientListParams as OAuthClientListParams
|
|
268
278
|
from .ota_update_list_response import OtaUpdateListResponse as OtaUpdateListResponse
|
|
269
279
|
from .outbound_message_payload import OutboundMessagePayload as OutboundMessagePayload
|
|
270
280
|
from .phone_number_list_params import PhoneNumberListParams as PhoneNumberListParams
|
|
@@ -296,6 +306,8 @@ from .message_retrieve_response import MessageRetrieveResponse as MessageRetriev
|
|
|
296
306
|
from .message_schedule_response import MessageScheduleResponse as MessageScheduleResponse
|
|
297
307
|
from .network_retrieve_response import NetworkRetrieveResponse as NetworkRetrieveResponse
|
|
298
308
|
from .number_order_phone_number import NumberOrderPhoneNumber as NumberOrderPhoneNumber
|
|
309
|
+
from .oauth_grant_list_response import OAuthGrantListResponse as OAuthGrantListResponse
|
|
310
|
+
from .oauth_introspect_response import OAuthIntrospectResponse as OAuthIntrospectResponse
|
|
299
311
|
from .porting_order_list_params import PortingOrderListParams as PortingOrderListParams
|
|
300
312
|
from .porting_order_requirement import PortingOrderRequirement as PortingOrderRequirement
|
|
301
313
|
from .portout_retrieve_response import PortoutRetrieveResponse as PortoutRetrieveResponse
|
|
@@ -309,7 +321,6 @@ from .access_ip_address_response import AccessIPAddressResponse as AccessIPAddre
|
|
|
309
321
|
from .call_bridged_webhook_event import CallBridgedWebhookEvent as CallBridgedWebhookEvent
|
|
310
322
|
from .channel_zone_list_response import ChannelZoneListResponse as ChannelZoneListResponse
|
|
311
323
|
from .channel_zone_update_params import ChannelZoneUpdateParams as ChannelZoneUpdateParams
|
|
312
|
-
from .client_list_objects_params import ClientListObjectsParams as ClientListObjectsParams
|
|
313
324
|
from .conference_create_response import ConferenceCreateResponse as ConferenceCreateResponse
|
|
314
325
|
from .document_retrieve_response import DocumentRetrieveResponse as DocumentRetrieveResponse
|
|
315
326
|
from .dynamic_emergency_endpoint import DynamicEmergencyEndpoint as DynamicEmergencyEndpoint
|
|
@@ -319,6 +330,9 @@ from .number_order_create_params import NumberOrderCreateParams as NumberOrderCr
|
|
|
319
330
|
from .number_order_list_response import NumberOrderListResponse as NumberOrderListResponse
|
|
320
331
|
from .number_order_update_params import NumberOrderUpdateParams as NumberOrderUpdateParams
|
|
321
332
|
from .number_pool_settings_param import NumberPoolSettingsParam as NumberPoolSettingsParam
|
|
333
|
+
from .oauth_client_create_params import OAuthClientCreateParams as OAuthClientCreateParams
|
|
334
|
+
from .oauth_client_list_response import OAuthClientListResponse as OAuthClientListResponse
|
|
335
|
+
from .oauth_client_update_params import OAuthClientUpdateParams as OAuthClientUpdateParams
|
|
322
336
|
from .phone_number_list_response import PhoneNumberListResponse as PhoneNumberListResponse
|
|
323
337
|
from .phone_number_update_params import PhoneNumberUpdateParams as PhoneNumberUpdateParams
|
|
324
338
|
from .room_recording_list_params import RoomRecordingListParams as RoomRecordingListParams
|
|
@@ -341,9 +355,9 @@ from .billing_group_update_params import BillingGroupUpdateParams as BillingGrou
|
|
|
341
355
|
from .brand_get_feedback_response import BrandGetFeedbackResponse as BrandGetFeedbackResponse
|
|
342
356
|
from .call_answered_webhook_event import CallAnsweredWebhookEvent as CallAnsweredWebhookEvent
|
|
343
357
|
from .call_enqueued_webhook_event import CallEnqueuedWebhookEvent as CallEnqueuedWebhookEvent
|
|
344
|
-
from .client_create_bucket_params import ClientCreateBucketParams as ClientCreateBucketParams
|
|
345
358
|
from .detail_record_list_response import DetailRecordListResponse as DetailRecordListResponse
|
|
346
359
|
from .document_link_list_response import DocumentLinkListResponse as DocumentLinkListResponse
|
|
360
|
+
from .document_upload_json_params import DocumentUploadJsonParams as DocumentUploadJsonParams
|
|
347
361
|
from .fax_application_list_params import FaxApplicationListParams as FaxApplicationListParams
|
|
348
362
|
from .fax_delivered_webhook_event import FaxDeliveredWebhookEvent as FaxDeliveredWebhookEvent
|
|
349
363
|
from .fqdn_connection_list_params import FqdnConnectionListParams as FqdnConnectionListParams
|
|
@@ -353,6 +367,7 @@ from .ip_connection_list_response import IPConnectionListResponse as IPConnectio
|
|
|
353
367
|
from .ip_connection_update_params import IPConnectionUpdateParams as IPConnectionUpdateParams
|
|
354
368
|
from .ledger_billing_group_report import LedgerBillingGroupReport as LedgerBillingGroupReport
|
|
355
369
|
from .managed_account_list_params import ManagedAccountListParams as ManagedAccountListParams
|
|
370
|
+
from .oauth_grant_delete_response import OAuthGrantDeleteResponse as OAuthGrantDeleteResponse
|
|
356
371
|
from .porting_order_create_params import PortingOrderCreateParams as PortingOrderCreateParams
|
|
357
372
|
from .porting_order_list_response import PortingOrderListResponse as PortingOrderListResponse
|
|
358
373
|
from .porting_order_update_params import PortingOrderUpdateParams as PortingOrderUpdateParams
|
|
@@ -363,11 +378,9 @@ from .s3_configuration_data_param import S3ConfigurationDataParam as S3Configura
|
|
|
363
378
|
from .transcription_webhook_event import TranscriptionWebhookEvent as TranscriptionWebhookEvent
|
|
364
379
|
from .verified_number_list_params import VerifiedNumberListParams as VerifiedNumberListParams
|
|
365
380
|
from .advanced_order_create_params import AdvancedOrderCreateParams as AdvancedOrderCreateParams
|
|
366
|
-
from .advanced_order_update_params import AdvancedOrderUpdateParams as AdvancedOrderUpdateParams
|
|
367
381
|
from .call_initiated_webhook_event import CallInitiatedWebhookEvent as CallInitiatedWebhookEvent
|
|
368
382
|
from .campaign_deactivate_response import CampaignDeactivateResponse as CampaignDeactivateResponse
|
|
369
383
|
from .channel_zone_update_response import ChannelZoneUpdateResponse as ChannelZoneUpdateResponse
|
|
370
|
-
from .client_delete_objects_params import ClientDeleteObjectsParams as ClientDeleteObjectsParams
|
|
371
384
|
from .conference_retrieve_response import ConferenceRetrieveResponse as ConferenceRetrieveResponse
|
|
372
385
|
from .connection_retrieve_response import ConnectionRetrieveResponse as ConnectionRetrieveResponse
|
|
373
386
|
from .create_verification_response import CreateVerificationResponse as CreateVerificationResponse
|
|
@@ -377,6 +390,9 @@ from .messaging_optout_list_params import MessagingOptoutListParams as Messaging
|
|
|
377
390
|
from .network_coverage_list_params import NetworkCoverageListParams as NetworkCoverageListParams
|
|
378
391
|
from .number_order_create_response import NumberOrderCreateResponse as NumberOrderCreateResponse
|
|
379
392
|
from .number_order_update_response import NumberOrderUpdateResponse as NumberOrderUpdateResponse
|
|
393
|
+
from .oauth_client_create_response import OAuthClientCreateResponse as OAuthClientCreateResponse
|
|
394
|
+
from .oauth_client_update_response import OAuthClientUpdateResponse as OAuthClientUpdateResponse
|
|
395
|
+
from .oauth_retrieve_jwks_response import OAuthRetrieveJwksResponse as OAuthRetrieveJwksResponse
|
|
380
396
|
from .ota_update_retrieve_response import OtaUpdateRetrieveResponse as OtaUpdateRetrieveResponse
|
|
381
397
|
from .partner_campaign_list_params import PartnerCampaignListParams as PartnerCampaignListParams
|
|
382
398
|
from .phone_number_delete_response import PhoneNumberDeleteResponse as PhoneNumberDeleteResponse
|
|
@@ -417,6 +433,7 @@ from .call_retrieve_status_response import CallRetrieveStatusResponse as CallRet
|
|
|
417
433
|
from .campaign_submit_appeal_params import CampaignSubmitAppealParams as CampaignSubmitAppealParams
|
|
418
434
|
from .comment_mark_as_read_response import CommentMarkAsReadResponse as CommentMarkAsReadResponse
|
|
419
435
|
from .delivery_update_webhook_event import DeliveryUpdateWebhookEvent as DeliveryUpdateWebhookEvent
|
|
436
|
+
from .document_upload_json_response import DocumentUploadJsonResponse as DocumentUploadJsonResponse
|
|
420
437
|
from .fax_application_create_params import FaxApplicationCreateParams as FaxApplicationCreateParams
|
|
421
438
|
from .fax_application_list_response import FaxApplicationListResponse as FaxApplicationListResponse
|
|
422
439
|
from .fax_application_update_params import FaxApplicationUpdateParams as FaxApplicationUpdateParams
|
|
@@ -437,6 +454,7 @@ from .message_send_long_code_params import MessageSendLongCodeParams as MessageS
|
|
|
437
454
|
from .messaging_profile_list_params import MessagingProfileListParams as MessagingProfileListParams
|
|
438
455
|
from .number_lookup_retrieve_params import NumberLookupRetrieveParams as NumberLookupRetrieveParams
|
|
439
456
|
from .numbers_feature_create_params import NumbersFeatureCreateParams as NumbersFeatureCreateParams
|
|
457
|
+
from .oauth_grant_retrieve_response import OAuthGrantRetrieveResponse as OAuthGrantRetrieveResponse
|
|
440
458
|
from .outbound_call_recording_param import OutboundCallRecordingParam as OutboundCallRecordingParam
|
|
441
459
|
from .phone_number_slim_list_params import PhoneNumberSlimListParams as PhoneNumberSlimListParams
|
|
442
460
|
from .porting_order_create_response import PortingOrderCreateResponse as PortingOrderCreateResponse
|
|
@@ -465,6 +483,7 @@ from .notification_event_list_params import NotificationEventListParams as Notif
|
|
|
465
483
|
from .number_block_order_list_params import NumberBlockOrderListParams as NumberBlockOrderListParams
|
|
466
484
|
from .number_order_retrieve_response import NumberOrderRetrieveResponse as NumberOrderRetrieveResponse
|
|
467
485
|
from .number_reservation_list_params import NumberReservationListParams as NumberReservationListParams
|
|
486
|
+
from .oauth_client_retrieve_response import OAuthClientRetrieveResponse as OAuthClientRetrieveResponse
|
|
468
487
|
from .partner_campaign_list_response import PartnerCampaignListResponse as PartnerCampaignListResponse
|
|
469
488
|
from .partner_campaign_update_params import PartnerCampaignUpdateParams as PartnerCampaignUpdateParams
|
|
470
489
|
from .phone_number_retrieve_response import PhoneNumberRetrieveResponse as PhoneNumberRetrieveResponse
|
|
@@ -522,6 +541,7 @@ from .messaging_profile_update_params import MessagingProfileUpdateParams as Mes
|
|
|
522
541
|
from .number_lookup_retrieve_response import NumberLookupRetrieveResponse as NumberLookupRetrieveResponse
|
|
523
542
|
from .number_order_with_phone_numbers import NumberOrderWithPhoneNumbers as NumberOrderWithPhoneNumbers
|
|
524
543
|
from .numbers_feature_create_response import NumbersFeatureCreateResponse as NumbersFeatureCreateResponse
|
|
544
|
+
from .oauth_retrieve_authorize_params import OAuthRetrieveAuthorizeParams as OAuthRetrieveAuthorizeParams
|
|
525
545
|
from .phone_number_slim_list_response import PhoneNumberSlimListResponse as PhoneNumberSlimListResponse
|
|
526
546
|
from .porting_order_end_user_location import PortingOrderEndUserLocation as PortingOrderEndUserLocation
|
|
527
547
|
from .porting_order_retrieve_response import PortingOrderRetrieveResponse as PortingOrderRetrieveResponse
|
|
@@ -650,6 +670,7 @@ from .requirement_type_retrieve_response import RequirementTypeRetrieveResponse
|
|
|
650
670
|
from .room_composition_retrieve_response import RoomCompositionRetrieveResponse as RoomCompositionRetrieveResponse
|
|
651
671
|
from .room_participant_retrieve_response import RoomParticipantRetrieveResponse as RoomParticipantRetrieveResponse
|
|
652
672
|
from .siprec_connector_retrieve_response import SiprecConnectorRetrieveResponse as SiprecConnectorRetrieveResponse
|
|
673
|
+
from .stream_bidirectional_sampling_rate import StreamBidirectionalSamplingRate as StreamBidirectionalSamplingRate
|
|
653
674
|
from .sub_number_order_retrieve_response import SubNumberOrderRetrieveResponse as SubNumberOrderRetrieveResponse
|
|
654
675
|
from .telephony_credential_create_params import TelephonyCredentialCreateParams as TelephonyCredentialCreateParams
|
|
655
676
|
from .telephony_credential_list_response import TelephonyCredentialListResponse as TelephonyCredentialListResponse
|
|
@@ -794,6 +815,12 @@ from .text_to_speech_generate_speech_params import TextToSpeechGenerateSpeechPar
|
|
|
794
815
|
from .verification_trigger_flashcall_params import (
|
|
795
816
|
VerificationTriggerFlashcallParams as VerificationTriggerFlashcallParams,
|
|
796
817
|
)
|
|
818
|
+
from .verify_profile_create_template_params import (
|
|
819
|
+
VerifyProfileCreateTemplateParams as VerifyProfileCreateTemplateParams,
|
|
820
|
+
)
|
|
821
|
+
from .verify_profile_update_template_params import (
|
|
822
|
+
VerifyProfileUpdateTemplateParams as VerifyProfileUpdateTemplateParams,
|
|
823
|
+
)
|
|
797
824
|
from .virtual_cross_connect_create_response import (
|
|
798
825
|
VirtualCrossConnectCreateResponse as VirtualCrossConnectCreateResponse,
|
|
799
826
|
)
|
|
@@ -917,6 +944,9 @@ from .messaging_hosted_number_delete_response import (
|
|
|
917
944
|
from .number_order_phone_number_list_response import (
|
|
918
945
|
NumberOrderPhoneNumberListResponse as NumberOrderPhoneNumberListResponse,
|
|
919
946
|
)
|
|
947
|
+
from .pagination_meta_cloudflare_ip_list_sync import (
|
|
948
|
+
PaginationMetaCloudflareIPListSync as PaginationMetaCloudflareIPListSync,
|
|
949
|
+
)
|
|
920
950
|
from .public_internet_gateway_create_response import (
|
|
921
951
|
PublicInternetGatewayCreateResponse as PublicInternetGatewayCreateResponse,
|
|
922
952
|
)
|
|
@@ -989,6 +1019,9 @@ from .regulatory_requirement_retrieve_response import (
|
|
|
989
1019
|
from .sub_number_orders_report_create_response import (
|
|
990
1020
|
SubNumberOrdersReportCreateResponse as SubNumberOrdersReportCreateResponse,
|
|
991
1021
|
)
|
|
1022
|
+
from .verify_profile_message_template_response import (
|
|
1023
|
+
VerifyProfileMessageTemplateResponse as VerifyProfileMessageTemplateResponse,
|
|
1024
|
+
)
|
|
992
1025
|
from .authentication_provider_retrieve_response import (
|
|
993
1026
|
AuthenticationProviderRetrieveResponse as AuthenticationProviderRetrieveResponse,
|
|
994
1027
|
)
|
|
@@ -1175,6 +1208,9 @@ from .seti_retrieve_black_box_test_results_response import (
|
|
|
1175
1208
|
from .virtual_cross_connects_coverage_list_response import (
|
|
1176
1209
|
VirtualCrossConnectsCoverageListResponse as VirtualCrossConnectsCoverageListResponse,
|
|
1177
1210
|
)
|
|
1211
|
+
from .advanced_order_update_requirement_group_params import (
|
|
1212
|
+
AdvancedOrderUpdateRequirementGroupParams as AdvancedOrderUpdateRequirementGroupParams,
|
|
1213
|
+
)
|
|
1178
1214
|
from .porting_order_phone_number_configuration_param import (
|
|
1179
1215
|
PortingOrderPhoneNumberConfigurationParam as PortingOrderPhoneNumberConfigurationParam,
|
|
1180
1216
|
)
|
|
@@ -1295,9 +1331,15 @@ from .phone_numbers_regulatory_requirement_retrieve_response import (
|
|
|
1295
1331
|
from .messaging_hosted_number_order_check_eligibility_response import (
|
|
1296
1332
|
MessagingHostedNumberOrderCheckEligibilityResponse as MessagingHostedNumberOrderCheckEligibilityResponse,
|
|
1297
1333
|
)
|
|
1334
|
+
from .well_known_retrieve_protected_resource_metadata_response import (
|
|
1335
|
+
WellKnownRetrieveProtectedResourceMetadataResponse as WellKnownRetrieveProtectedResourceMetadataResponse,
|
|
1336
|
+
)
|
|
1298
1337
|
from .number_order_phone_number_update_requirement_group_params import (
|
|
1299
1338
|
NumberOrderPhoneNumberUpdateRequirementGroupParams as NumberOrderPhoneNumberUpdateRequirementGroupParams,
|
|
1300
1339
|
)
|
|
1340
|
+
from .well_known_retrieve_authorization_server_metadata_response import (
|
|
1341
|
+
WellKnownRetrieveAuthorizationServerMetadataResponse as WellKnownRetrieveAuthorizationServerMetadataResponse,
|
|
1342
|
+
)
|
|
1301
1343
|
from .customer_service_record_verify_phone_number_coverage_params import (
|
|
1302
1344
|
CustomerServiceRecordVerifyPhoneNumberCoverageParams as CustomerServiceRecordVerifyPhoneNumberCoverageParams,
|
|
1303
1345
|
)
|
|
@@ -4,21 +4,12 @@ from typing import List
|
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
from .access_ip_address_response import AccessIPAddressResponse
|
|
7
|
+
from .pagination_meta_cloudflare_ip_list_sync import PaginationMetaCloudflareIPListSync
|
|
7
8
|
|
|
8
|
-
__all__ = ["AccessIPAddressListResponse"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class Meta(BaseModel):
|
|
12
|
-
page_number: int
|
|
13
|
-
|
|
14
|
-
page_size: int
|
|
15
|
-
|
|
16
|
-
total_pages: int
|
|
17
|
-
|
|
18
|
-
total_results: int
|
|
9
|
+
__all__ = ["AccessIPAddressListResponse"]
|
|
19
10
|
|
|
20
11
|
|
|
21
12
|
class AccessIPAddressListResponse(BaseModel):
|
|
22
13
|
data: List[AccessIPAddressResponse]
|
|
23
14
|
|
|
24
|
-
meta:
|
|
15
|
+
meta: PaginationMetaCloudflareIPListSync
|
|
@@ -4,21 +4,12 @@ from typing import List
|
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
from .access_ip_range import AccessIPRange
|
|
7
|
+
from .pagination_meta_cloudflare_ip_list_sync import PaginationMetaCloudflareIPListSync
|
|
7
8
|
|
|
8
|
-
__all__ = ["AccessIPRangeListResponse"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class Meta(BaseModel):
|
|
12
|
-
page_number: int
|
|
13
|
-
|
|
14
|
-
page_size: int
|
|
15
|
-
|
|
16
|
-
total_pages: int
|
|
17
|
-
|
|
18
|
-
total_results: int
|
|
9
|
+
__all__ = ["AccessIPRangeListResponse"]
|
|
19
10
|
|
|
20
11
|
|
|
21
12
|
class AccessIPRangeListResponse(BaseModel):
|
|
22
13
|
data: List[AccessIPRange]
|
|
23
14
|
|
|
24
|
-
meta:
|
|
15
|
+
meta: PaginationMetaCloudflareIPListSync
|
|
@@ -5,8 +5,8 @@ from typing_extensions import Literal
|
|
|
5
5
|
|
|
6
6
|
from pydantic import Field as FieldInfo
|
|
7
7
|
|
|
8
|
-
from ..error import Error
|
|
9
8
|
from ..._models import BaseModel
|
|
9
|
+
from ..shared.api_error import APIError
|
|
10
10
|
|
|
11
11
|
__all__ = ["ActionValidateResponse", "Data", "DataSuggested"]
|
|
12
12
|
|
|
@@ -39,12 +39,17 @@ class DataSuggested(BaseModel):
|
|
|
39
39
|
street_address: Optional[str] = None
|
|
40
40
|
"""The primary street address information about the address."""
|
|
41
41
|
|
|
42
|
-
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
|
|
43
42
|
if TYPE_CHECKING:
|
|
43
|
+
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
|
|
44
|
+
# value to this field, so for compatibility we avoid doing it at runtime.
|
|
45
|
+
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
|
|
46
|
+
|
|
44
47
|
# Stub to indicate that arbitrary properties are accepted.
|
|
45
48
|
# To access properties that are not valid identifiers you can use `getattr`, e.g.
|
|
46
49
|
# `getattr(obj, '$type')`
|
|
47
50
|
def __getattr__(self, attr: str) -> object: ...
|
|
51
|
+
else:
|
|
52
|
+
__pydantic_extra__: Dict[str, object]
|
|
48
53
|
|
|
49
54
|
|
|
50
55
|
class Data(BaseModel):
|
|
@@ -54,7 +59,7 @@ class Data(BaseModel):
|
|
|
54
59
|
suggested: DataSuggested
|
|
55
60
|
"""Provides normalized address when available."""
|
|
56
61
|
|
|
57
|
-
errors: Optional[List[
|
|
62
|
+
errors: Optional[List[APIError]] = None
|
|
58
63
|
|
|
59
64
|
record_type: Optional[str] = None
|
|
60
65
|
"""Identifies the type of the resource."""
|
telnyx/types/{advanced_order_update_params.py → advanced_order_update_requirement_group_params.py}
RENAMED
|
@@ -5,10 +5,10 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import List
|
|
6
6
|
from typing_extensions import Literal, TypedDict
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["AdvancedOrderUpdateRequirementGroupParams"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class AdvancedOrderUpdateRequirementGroupParams(TypedDict, total=False):
|
|
12
12
|
area_code: str
|
|
13
13
|
|
|
14
14
|
comments: str
|
telnyx/types/ai/__init__.py
CHANGED
|
@@ -23,6 +23,7 @@ from .messaging_settings import MessagingSettings as MessagingSettings
|
|
|
23
23
|
from .telephony_settings import TelephonySettings as TelephonySettings
|
|
24
24
|
from .webhook_tool_param import WebhookToolParam as WebhookToolParam
|
|
25
25
|
from .cluster_list_params import ClusterListParams as ClusterListParams
|
|
26
|
+
from .inference_embedding import InferenceEmbedding as InferenceEmbedding
|
|
26
27
|
from .transfer_tool_param import TransferToolParam as TransferToolParam
|
|
27
28
|
from .assistant_tool_param import AssistantToolParam as AssistantToolParam
|
|
28
29
|
from .embedding_url_params import EmbeddingURLParams as EmbeddingURLParams
|
|
@@ -44,13 +45,11 @@ from .audio_transcribe_params import AudioTranscribeParams as AudioTranscribePar
|
|
|
44
45
|
from .cluster_retrieve_params import ClusterRetrieveParams as ClusterRetrieveParams
|
|
45
46
|
from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams
|
|
46
47
|
from .embedding_list_response import EmbeddingListResponse as EmbeddingListResponse
|
|
47
|
-
from .assistant_clone_response import AssistantCloneResponse as AssistantCloneResponse
|
|
48
48
|
from .cluster_compute_response import ClusterComputeResponse as ClusterComputeResponse
|
|
49
49
|
from .conversation_list_params import ConversationListParams as ConversationListParams
|
|
50
50
|
from .hangup_tool_params_param import HangupToolParamsParam as HangupToolParamsParam
|
|
51
51
|
from .messaging_settings_param import MessagingSettingsParam as MessagingSettingsParam
|
|
52
52
|
from .telephony_settings_param import TelephonySettingsParam as TelephonySettingsParam
|
|
53
|
-
from .assistant_create_response import AssistantCreateResponse as AssistantCreateResponse
|
|
54
53
|
from .assistant_delete_response import AssistantDeleteResponse as AssistantDeleteResponse
|
|
55
54
|
from .assistant_retrieve_params import AssistantRetrieveParams as AssistantRetrieveParams
|
|
56
55
|
from .audio_transcribe_response import AudioTranscribeResponse as AudioTranscribeResponse
|
|
@@ -59,7 +58,6 @@ from .cluster_fetch_graph_params import ClusterFetchGraphParams as ClusterFetchG
|
|
|
59
58
|
from .conversation_create_params import ConversationCreateParams as ConversationCreateParams
|
|
60
59
|
from .conversation_list_response import ConversationListResponse as ConversationListResponse
|
|
61
60
|
from .conversation_update_params import ConversationUpdateParams as ConversationUpdateParams
|
|
62
|
-
from .assistant_retrieve_response import AssistantRetrieveResponse as AssistantRetrieveResponse
|
|
63
61
|
from .embedding_retrieve_response import EmbeddingRetrieveResponse as EmbeddingRetrieveResponse
|
|
64
62
|
from .assistant_get_texml_response import AssistantGetTexmlResponse as AssistantGetTexmlResponse
|
|
65
63
|
from .conversation_update_response import ConversationUpdateResponse as ConversationUpdateResponse
|
|
@@ -67,6 +65,7 @@ from .transcription_settings_param import TranscriptionSettingsParam as Transcri
|
|
|
67
65
|
from .chat_create_completion_params import ChatCreateCompletionParams as ChatCreateCompletionParams
|
|
68
66
|
from .conversation_retrieve_response import ConversationRetrieveResponse as ConversationRetrieveResponse
|
|
69
67
|
from .inference_embedding_bucket_ids import InferenceEmbeddingBucketIDs as InferenceEmbeddingBucketIDs
|
|
68
|
+
from .conversation_add_message_params import ConversationAddMessageParams as ConversationAddMessageParams
|
|
70
69
|
from .embedding_similarity_search_params import EmbeddingSimilaritySearchParams as EmbeddingSimilaritySearchParams
|
|
71
70
|
from .embedding_similarity_search_response import EmbeddingSimilaritySearchResponse as EmbeddingSimilaritySearchResponse
|
|
72
71
|
from .inference_embedding_bucket_ids_param import InferenceEmbeddingBucketIDsParam as InferenceEmbeddingBucketIDsParam
|
|
@@ -15,11 +15,8 @@ from .version_config_param import VersionConfigParam as VersionConfigParam
|
|
|
15
15
|
from .version_update_params import VersionUpdateParams as VersionUpdateParams
|
|
16
16
|
from .canary_deploy_response import CanaryDeployResponse as CanaryDeployResponse
|
|
17
17
|
from .version_retrieve_params import VersionRetrieveParams as VersionRetrieveParams
|
|
18
|
-
from .version_update_response import VersionUpdateResponse as VersionUpdateResponse
|
|
19
18
|
from .scheduled_event_response import ScheduledEventResponse as ScheduledEventResponse
|
|
20
|
-
from .version_promote_response import VersionPromoteResponse as VersionPromoteResponse
|
|
21
19
|
from .conversation_channel_type import ConversationChannelType as ConversationChannelType
|
|
22
|
-
from .version_retrieve_response import VersionRetrieveResponse as VersionRetrieveResponse
|
|
23
20
|
from .canary_deploy_create_params import CanaryDeployCreateParams as CanaryDeployCreateParams
|
|
24
21
|
from .canary_deploy_update_params import CanaryDeployUpdateParams as CanaryDeployUpdateParams
|
|
25
22
|
from .scheduled_event_list_params import ScheduledEventListParams as ScheduledEventListParams
|