telnyx 3.5.0__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/_version.py +1 -1
- telnyx/resources/ai/assistants/assistants.py +13 -15
- telnyx/resources/ai/assistants/versions.py +13 -15
- telnyx/resources/calls/actions.py +4 -2
- telnyx/resources/calls/calls.py +4 -2
- telnyx/resources/documents.py +242 -37
- telnyx/resources/messaging_tollfree/verification/requests.py +6 -9
- telnyx/resources/verify_profiles.py +9 -10
- telnyx/types/__init__.py +8 -6
- telnyx/types/access_ip_address_list_response.py +3 -12
- telnyx/types/access_ip_range_list_response.py +3 -12
- telnyx/types/ai/__init__.py +1 -3
- telnyx/types/ai/assistants/__init__.py +0 -3
- telnyx/types/ai/assistants_list.py +4 -88
- telnyx/types/ai/{assistant_clone_response.py → inference_embedding.py} +2 -2
- telnyx/types/call_dial_params.py +2 -1
- telnyx/types/calls/__init__.py +1 -0
- telnyx/types/calls/action_start_streaming_params.py +2 -1
- telnyx/types/calls/action_start_transcription_params.py +2 -102
- 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 +2 -102
- telnyx/types/document_upload_json_params.py +39 -0
- telnyx/types/document_upload_json_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/__init__.py +1 -0
- telnyx/types/legacy/reporting/batch_detail_records/batch_csv_pagination_meta.py +17 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +3 -12
- telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +3 -12
- telnyx/types/legacy/reporting/usage_reports/__init__.py +1 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_list_response.py +3 -12
- telnyx/types/legacy/reporting/usage_reports/standard_pagination_meta.py +17 -0
- telnyx/types/legacy/reporting/usage_reports/voice_list_response.py +3 -12
- telnyx/types/{verify_profile_create_template_response.py → message_template.py} +2 -2
- telnyx/types/messaging_tollfree/verification/__init__.py +1 -0
- telnyx/types/messaging_tollfree/verification/request_create_params.py +3 -5
- telnyx/types/messaging_tollfree/verification/request_update_params.py +3 -5
- telnyx/types/messaging_tollfree/verification/toll_free_verification_entity_type.py +9 -0
- telnyx/types/messaging_tollfree/verification/verification_request_egress.py +2 -4
- telnyx/types/messaging_tollfree/verification/verification_request_status.py +2 -4
- telnyx/types/oauth_client_list_response.py +3 -16
- telnyx/types/oauth_grant_list_response.py +3 -16
- 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_numbers/phone_numbers_job.py +3 -36
- 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/stream_bidirectional_sampling_rate.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/verify_profile_list_response.py +4 -13
- {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/METADATA +2 -2
- {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/RECORD +60 -54
- 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/verify_profile_update_template_response.py +0 -12
- {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/WHEEL +0 -0
- {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -4,7 +4,6 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing import Union, Iterable, Optional
|
|
6
6
|
from datetime import datetime
|
|
7
|
-
from typing_extensions import Literal
|
|
8
7
|
|
|
9
8
|
import httpx
|
|
10
9
|
|
|
@@ -23,6 +22,7 @@ from ....types.messaging_tollfree.verification import (
|
|
|
23
22
|
Volume,
|
|
24
23
|
UseCaseCategories,
|
|
25
24
|
TfVerificationStatus,
|
|
25
|
+
TollFreeVerificationEntityType,
|
|
26
26
|
request_list_params,
|
|
27
27
|
request_create_params,
|
|
28
28
|
request_update_params,
|
|
@@ -35,6 +35,7 @@ from ....types.messaging_tollfree.verification.tf_phone_number_param import TfPh
|
|
|
35
35
|
from ....types.messaging_tollfree.verification.tf_verification_status import TfVerificationStatus
|
|
36
36
|
from ....types.messaging_tollfree.verification.verification_request_egress import VerificationRequestEgress
|
|
37
37
|
from ....types.messaging_tollfree.verification.verification_request_status import VerificationRequestStatus
|
|
38
|
+
from ....types.messaging_tollfree.verification.toll_free_verification_entity_type import TollFreeVerificationEntityType
|
|
38
39
|
|
|
39
40
|
__all__ = ["RequestsResource", "AsyncRequestsResource"]
|
|
40
41
|
|
|
@@ -87,8 +88,7 @@ class RequestsResource(SyncAPIResource):
|
|
|
87
88
|
business_registration_number: Optional[str] | Omit = omit,
|
|
88
89
|
business_registration_type: Optional[str] | Omit = omit,
|
|
89
90
|
doing_business_as: Optional[str] | Omit = omit,
|
|
90
|
-
entity_type: Optional[
|
|
91
|
-
| Omit = omit,
|
|
91
|
+
entity_type: Optional[TollFreeVerificationEntityType] | Omit = omit,
|
|
92
92
|
help_message_response: Optional[str] | Omit = omit,
|
|
93
93
|
opt_in_confirmation_response: Optional[str] | Omit = omit,
|
|
94
94
|
opt_in_keywords: Optional[str] | Omit = omit,
|
|
@@ -295,8 +295,7 @@ class RequestsResource(SyncAPIResource):
|
|
|
295
295
|
business_registration_number: Optional[str] | Omit = omit,
|
|
296
296
|
business_registration_type: Optional[str] | Omit = omit,
|
|
297
297
|
doing_business_as: Optional[str] | Omit = omit,
|
|
298
|
-
entity_type: Optional[
|
|
299
|
-
| Omit = omit,
|
|
298
|
+
entity_type: Optional[TollFreeVerificationEntityType] | Omit = omit,
|
|
300
299
|
help_message_response: Optional[str] | Omit = omit,
|
|
301
300
|
opt_in_confirmation_response: Optional[str] | Omit = omit,
|
|
302
301
|
opt_in_keywords: Optional[str] | Omit = omit,
|
|
@@ -589,8 +588,7 @@ class AsyncRequestsResource(AsyncAPIResource):
|
|
|
589
588
|
business_registration_number: Optional[str] | Omit = omit,
|
|
590
589
|
business_registration_type: Optional[str] | Omit = omit,
|
|
591
590
|
doing_business_as: Optional[str] | Omit = omit,
|
|
592
|
-
entity_type: Optional[
|
|
593
|
-
| Omit = omit,
|
|
591
|
+
entity_type: Optional[TollFreeVerificationEntityType] | Omit = omit,
|
|
594
592
|
help_message_response: Optional[str] | Omit = omit,
|
|
595
593
|
opt_in_confirmation_response: Optional[str] | Omit = omit,
|
|
596
594
|
opt_in_keywords: Optional[str] | Omit = omit,
|
|
@@ -797,8 +795,7 @@ class AsyncRequestsResource(AsyncAPIResource):
|
|
|
797
795
|
business_registration_number: Optional[str] | Omit = omit,
|
|
798
796
|
business_registration_type: Optional[str] | Omit = omit,
|
|
799
797
|
doing_business_as: Optional[str] | Omit = omit,
|
|
800
|
-
entity_type: Optional[
|
|
801
|
-
| Omit = omit,
|
|
798
|
+
entity_type: Optional[TollFreeVerificationEntityType] | Omit = omit,
|
|
802
799
|
help_message_response: Optional[str] | Omit = omit,
|
|
803
800
|
opt_in_confirmation_response: Optional[str] | Omit = omit,
|
|
804
801
|
opt_in_keywords: Optional[str] | Omit = omit,
|
|
@@ -22,10 +22,9 @@ from .._response import (
|
|
|
22
22
|
async_to_streamed_response_wrapper,
|
|
23
23
|
)
|
|
24
24
|
from .._base_client import make_request_options
|
|
25
|
+
from ..types.message_template import MessageTemplate
|
|
25
26
|
from ..types.verify_profile_data import VerifyProfileData
|
|
26
27
|
from ..types.verify_profile_list_response import VerifyProfileListResponse
|
|
27
|
-
from ..types.verify_profile_create_template_response import VerifyProfileCreateTemplateResponse
|
|
28
|
-
from ..types.verify_profile_update_template_response import VerifyProfileUpdateTemplateResponse
|
|
29
28
|
from ..types.verify_profile_retrieve_templates_response import VerifyProfileRetrieveTemplatesResponse
|
|
30
29
|
|
|
31
30
|
__all__ = ["VerifyProfilesResource", "AsyncVerifyProfilesResource"]
|
|
@@ -275,7 +274,7 @@ class VerifyProfilesResource(SyncAPIResource):
|
|
|
275
274
|
extra_query: Query | None = None,
|
|
276
275
|
extra_body: Body | None = None,
|
|
277
276
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
278
|
-
) ->
|
|
277
|
+
) -> MessageTemplate:
|
|
279
278
|
"""
|
|
280
279
|
Create a new Verify profile message template.
|
|
281
280
|
|
|
@@ -298,7 +297,7 @@ class VerifyProfilesResource(SyncAPIResource):
|
|
|
298
297
|
options=make_request_options(
|
|
299
298
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
300
299
|
),
|
|
301
|
-
cast_to=
|
|
300
|
+
cast_to=MessageTemplate,
|
|
302
301
|
)
|
|
303
302
|
|
|
304
303
|
def retrieve_templates(
|
|
@@ -331,7 +330,7 @@ class VerifyProfilesResource(SyncAPIResource):
|
|
|
331
330
|
extra_query: Query | None = None,
|
|
332
331
|
extra_body: Body | None = None,
|
|
333
332
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
334
|
-
) ->
|
|
333
|
+
) -> MessageTemplate:
|
|
335
334
|
"""
|
|
336
335
|
Update an existing Verify profile message template.
|
|
337
336
|
|
|
@@ -356,7 +355,7 @@ class VerifyProfilesResource(SyncAPIResource):
|
|
|
356
355
|
options=make_request_options(
|
|
357
356
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
358
357
|
),
|
|
359
|
-
cast_to=
|
|
358
|
+
cast_to=MessageTemplate,
|
|
360
359
|
)
|
|
361
360
|
|
|
362
361
|
|
|
@@ -604,7 +603,7 @@ class AsyncVerifyProfilesResource(AsyncAPIResource):
|
|
|
604
603
|
extra_query: Query | None = None,
|
|
605
604
|
extra_body: Body | None = None,
|
|
606
605
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
607
|
-
) ->
|
|
606
|
+
) -> MessageTemplate:
|
|
608
607
|
"""
|
|
609
608
|
Create a new Verify profile message template.
|
|
610
609
|
|
|
@@ -627,7 +626,7 @@ class AsyncVerifyProfilesResource(AsyncAPIResource):
|
|
|
627
626
|
options=make_request_options(
|
|
628
627
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
629
628
|
),
|
|
630
|
-
cast_to=
|
|
629
|
+
cast_to=MessageTemplate,
|
|
631
630
|
)
|
|
632
631
|
|
|
633
632
|
async def retrieve_templates(
|
|
@@ -660,7 +659,7 @@ class AsyncVerifyProfilesResource(AsyncAPIResource):
|
|
|
660
659
|
extra_query: Query | None = None,
|
|
661
660
|
extra_body: Body | None = None,
|
|
662
661
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
663
|
-
) ->
|
|
662
|
+
) -> MessageTemplate:
|
|
664
663
|
"""
|
|
665
664
|
Update an existing Verify profile message template.
|
|
666
665
|
|
|
@@ -685,7 +684,7 @@ class AsyncVerifyProfilesResource(AsyncAPIResource):
|
|
|
685
684
|
options=make_request_options(
|
|
686
685
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
687
686
|
),
|
|
688
|
-
cast_to=
|
|
687
|
+
cast_to=MessageTemplate,
|
|
689
688
|
)
|
|
690
689
|
|
|
691
690
|
|
telnyx/types/__init__.py
CHANGED
|
@@ -85,6 +85,7 @@ from .interface_status import InterfaceStatus as InterfaceStatus
|
|
|
85
85
|
from .ip_create_params import IPCreateParams as IPCreateParams
|
|
86
86
|
from .ip_list_response import IPListResponse as IPListResponse
|
|
87
87
|
from .ip_update_params import IPUpdateParams as IPUpdateParams
|
|
88
|
+
from .message_template import MessageTemplate as MessageTemplate
|
|
88
89
|
from .rcs_card_content import RcsCardContent as RcsCardContent
|
|
89
90
|
from .rcs_content_info import RcsContentInfo as RcsContentInfo
|
|
90
91
|
from .room_composition import RoomComposition as RoomComposition
|
|
@@ -192,6 +193,7 @@ from .network_list_response import NetworkListResponse as NetworkListResponse
|
|
|
192
193
|
from .network_update_params import NetworkUpdateParams as NetworkUpdateParams
|
|
193
194
|
from .oauth_grants_response import OAuthGrantsResponse as OAuthGrantsResponse
|
|
194
195
|
from .oauth_register_params import OAuthRegisterParams as OAuthRegisterParams
|
|
196
|
+
from .pagination_meta_oauth import PaginationMetaOAuth as PaginationMetaOAuth
|
|
195
197
|
from .phone_number_campaign import PhoneNumberCampaign as PhoneNumberCampaign
|
|
196
198
|
from .phone_number_detailed import PhoneNumberDetailed as PhoneNumberDetailed
|
|
197
199
|
from .portout_list_response import PortoutListResponse as PortoutListResponse
|
|
@@ -355,6 +357,7 @@ from .call_answered_webhook_event import CallAnsweredWebhookEvent as CallAnswere
|
|
|
355
357
|
from .call_enqueued_webhook_event import CallEnqueuedWebhookEvent as CallEnqueuedWebhookEvent
|
|
356
358
|
from .detail_record_list_response import DetailRecordListResponse as DetailRecordListResponse
|
|
357
359
|
from .document_link_list_response import DocumentLinkListResponse as DocumentLinkListResponse
|
|
360
|
+
from .document_upload_json_params import DocumentUploadJsonParams as DocumentUploadJsonParams
|
|
358
361
|
from .fax_application_list_params import FaxApplicationListParams as FaxApplicationListParams
|
|
359
362
|
from .fax_delivered_webhook_event import FaxDeliveredWebhookEvent as FaxDeliveredWebhookEvent
|
|
360
363
|
from .fqdn_connection_list_params import FqdnConnectionListParams as FqdnConnectionListParams
|
|
@@ -430,6 +433,7 @@ from .call_retrieve_status_response import CallRetrieveStatusResponse as CallRet
|
|
|
430
433
|
from .campaign_submit_appeal_params import CampaignSubmitAppealParams as CampaignSubmitAppealParams
|
|
431
434
|
from .comment_mark_as_read_response import CommentMarkAsReadResponse as CommentMarkAsReadResponse
|
|
432
435
|
from .delivery_update_webhook_event import DeliveryUpdateWebhookEvent as DeliveryUpdateWebhookEvent
|
|
436
|
+
from .document_upload_json_response import DocumentUploadJsonResponse as DocumentUploadJsonResponse
|
|
433
437
|
from .fax_application_create_params import FaxApplicationCreateParams as FaxApplicationCreateParams
|
|
434
438
|
from .fax_application_list_response import FaxApplicationListResponse as FaxApplicationListResponse
|
|
435
439
|
from .fax_application_update_params import FaxApplicationUpdateParams as FaxApplicationUpdateParams
|
|
@@ -666,6 +670,7 @@ from .requirement_type_retrieve_response import RequirementTypeRetrieveResponse
|
|
|
666
670
|
from .room_composition_retrieve_response import RoomCompositionRetrieveResponse as RoomCompositionRetrieveResponse
|
|
667
671
|
from .room_participant_retrieve_response import RoomParticipantRetrieveResponse as RoomParticipantRetrieveResponse
|
|
668
672
|
from .siprec_connector_retrieve_response import SiprecConnectorRetrieveResponse as SiprecConnectorRetrieveResponse
|
|
673
|
+
from .stream_bidirectional_sampling_rate import StreamBidirectionalSamplingRate as StreamBidirectionalSamplingRate
|
|
669
674
|
from .sub_number_order_retrieve_response import SubNumberOrderRetrieveResponse as SubNumberOrderRetrieveResponse
|
|
670
675
|
from .telephony_credential_create_params import TelephonyCredentialCreateParams as TelephonyCredentialCreateParams
|
|
671
676
|
from .telephony_credential_list_response import TelephonyCredentialListResponse as TelephonyCredentialListResponse
|
|
@@ -939,6 +944,9 @@ from .messaging_hosted_number_delete_response import (
|
|
|
939
944
|
from .number_order_phone_number_list_response import (
|
|
940
945
|
NumberOrderPhoneNumberListResponse as NumberOrderPhoneNumberListResponse,
|
|
941
946
|
)
|
|
947
|
+
from .pagination_meta_cloudflare_ip_list_sync import (
|
|
948
|
+
PaginationMetaCloudflareIPListSync as PaginationMetaCloudflareIPListSync,
|
|
949
|
+
)
|
|
942
950
|
from .public_internet_gateway_create_response import (
|
|
943
951
|
PublicInternetGatewayCreateResponse as PublicInternetGatewayCreateResponse,
|
|
944
952
|
)
|
|
@@ -954,12 +962,6 @@ from .sim_card_order_preview_preview_response import (
|
|
|
954
962
|
from .sub_number_order_regulatory_requirement import (
|
|
955
963
|
SubNumberOrderRegulatoryRequirement as SubNumberOrderRegulatoryRequirement,
|
|
956
964
|
)
|
|
957
|
-
from .verify_profile_create_template_response import (
|
|
958
|
-
VerifyProfileCreateTemplateResponse as VerifyProfileCreateTemplateResponse,
|
|
959
|
-
)
|
|
960
|
-
from .verify_profile_update_template_response import (
|
|
961
|
-
VerifyProfileUpdateTemplateResponse as VerifyProfileUpdateTemplateResponse,
|
|
962
|
-
)
|
|
963
965
|
from .virtual_cross_connect_retrieve_response import (
|
|
964
966
|
VirtualCrossConnectRetrieveResponse as VirtualCrossConnectRetrieveResponse,
|
|
965
967
|
)
|
|
@@ -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
|
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
|
|
@@ -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
|
|
@@ -1,96 +1,12 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
4
|
-
from datetime import datetime
|
|
3
|
+
from typing import List
|
|
5
4
|
|
|
6
5
|
from ..._models import BaseModel
|
|
7
|
-
from .
|
|
8
|
-
from .voice_settings import VoiceSettings
|
|
9
|
-
from .import_metadata import ImportMetadata
|
|
10
|
-
from .enabled_features import EnabledFeatures
|
|
11
|
-
from .insight_settings import InsightSettings
|
|
12
|
-
from .privacy_settings import PrivacySettings
|
|
13
|
-
from .messaging_settings import MessagingSettings
|
|
14
|
-
from .telephony_settings import TelephonySettings
|
|
15
|
-
from .transcription_settings import TranscriptionSettings
|
|
6
|
+
from .inference_embedding import InferenceEmbedding
|
|
16
7
|
|
|
17
|
-
__all__ = ["AssistantsList"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class Data(BaseModel):
|
|
21
|
-
id: str
|
|
22
|
-
|
|
23
|
-
created_at: datetime
|
|
24
|
-
|
|
25
|
-
instructions: str
|
|
26
|
-
"""System instructions for the assistant.
|
|
27
|
-
|
|
28
|
-
These may be templated with
|
|
29
|
-
[dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
30
|
-
"""
|
|
31
|
-
|
|
32
|
-
model: str
|
|
33
|
-
"""ID of the model to use.
|
|
34
|
-
|
|
35
|
-
You can use the
|
|
36
|
-
[Get models API](https://developers.telnyx.com/api/inference/inference-embedding/get-models-public-models-get)
|
|
37
|
-
to see all of your available models,
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
name: str
|
|
41
|
-
|
|
42
|
-
description: Optional[str] = None
|
|
43
|
-
|
|
44
|
-
dynamic_variables: Optional[Dict[str, object]] = None
|
|
45
|
-
"""Map of dynamic variables and their values"""
|
|
46
|
-
|
|
47
|
-
dynamic_variables_webhook_url: Optional[str] = None
|
|
48
|
-
"""
|
|
49
|
-
If the dynamic_variables_webhook_url is set for the assistant, we will send a
|
|
50
|
-
request at the start of the conversation. See our
|
|
51
|
-
[guide](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
52
|
-
for more information.
|
|
53
|
-
"""
|
|
54
|
-
|
|
55
|
-
enabled_features: Optional[List[EnabledFeatures]] = None
|
|
56
|
-
|
|
57
|
-
greeting: Optional[str] = None
|
|
58
|
-
"""Text that the assistant will use to start the conversation.
|
|
59
|
-
|
|
60
|
-
This may be templated with
|
|
61
|
-
[dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
62
|
-
"""
|
|
63
|
-
|
|
64
|
-
import_metadata: Optional[ImportMetadata] = None
|
|
65
|
-
|
|
66
|
-
insight_settings: Optional[InsightSettings] = None
|
|
67
|
-
|
|
68
|
-
llm_api_key_ref: Optional[str] = None
|
|
69
|
-
"""This is only needed when using third-party inference providers.
|
|
70
|
-
|
|
71
|
-
The `identifier` for an integration secret
|
|
72
|
-
[/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
73
|
-
that refers to your LLM provider's API key. Warning: Free plans are unlikely to
|
|
74
|
-
work with this integration.
|
|
75
|
-
"""
|
|
76
|
-
|
|
77
|
-
messaging_settings: Optional[MessagingSettings] = None
|
|
78
|
-
|
|
79
|
-
privacy_settings: Optional[PrivacySettings] = None
|
|
80
|
-
|
|
81
|
-
telephony_settings: Optional[TelephonySettings] = None
|
|
82
|
-
|
|
83
|
-
tools: Optional[List[AssistantTool]] = None
|
|
84
|
-
"""The tools that the assistant can use.
|
|
85
|
-
|
|
86
|
-
These may be templated with
|
|
87
|
-
[dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
88
|
-
"""
|
|
89
|
-
|
|
90
|
-
transcription: Optional[TranscriptionSettings] = None
|
|
91
|
-
|
|
92
|
-
voice_settings: Optional[VoiceSettings] = None
|
|
8
|
+
__all__ = ["AssistantsList"]
|
|
93
9
|
|
|
94
10
|
|
|
95
11
|
class AssistantsList(BaseModel):
|
|
96
|
-
data: List[
|
|
12
|
+
data: List[InferenceEmbedding]
|
|
@@ -14,10 +14,10 @@ from .messaging_settings import MessagingSettings
|
|
|
14
14
|
from .telephony_settings import TelephonySettings
|
|
15
15
|
from .transcription_settings import TranscriptionSettings
|
|
16
16
|
|
|
17
|
-
__all__ = ["
|
|
17
|
+
__all__ = ["InferenceEmbedding"]
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class InferenceEmbedding(BaseModel):
|
|
21
21
|
id: str
|
|
22
22
|
|
|
23
23
|
created_at: datetime
|
telnyx/types/call_dial_params.py
CHANGED
|
@@ -15,6 +15,7 @@ from .sound_modifications_param import SoundModificationsParam
|
|
|
15
15
|
from .stream_bidirectional_mode import StreamBidirectionalMode
|
|
16
16
|
from .stream_bidirectional_codec import StreamBidirectionalCodec
|
|
17
17
|
from .stream_bidirectional_target_legs import StreamBidirectionalTargetLegs
|
|
18
|
+
from .stream_bidirectional_sampling_rate import StreamBidirectionalSamplingRate
|
|
18
19
|
from .calls.transcription_start_request_param import TranscriptionStartRequestParam
|
|
19
20
|
|
|
20
21
|
__all__ = ["CallDialParams", "AnsweringMachineDetectionConfig", "ConferenceConfig"]
|
|
@@ -233,7 +234,7 @@ class CallDialParams(TypedDict, total=False):
|
|
|
233
234
|
stream_bidirectional_mode: StreamBidirectionalMode
|
|
234
235
|
"""Configures method of bidirectional streaming (mp3, rtp)."""
|
|
235
236
|
|
|
236
|
-
stream_bidirectional_sampling_rate:
|
|
237
|
+
stream_bidirectional_sampling_rate: StreamBidirectionalSamplingRate
|
|
237
238
|
"""Audio sampling rate."""
|
|
238
239
|
|
|
239
240
|
stream_bidirectional_target_legs: StreamBidirectionalTargetLegs
|
telnyx/types/calls/__init__.py
CHANGED
|
@@ -52,6 +52,7 @@ from .action_start_recording_params import ActionStartRecordingParams as ActionS
|
|
|
52
52
|
from .action_start_streaming_params import ActionStartStreamingParams as ActionStartStreamingParams
|
|
53
53
|
from .action_stop_playback_response import ActionStopPlaybackResponse as ActionStopPlaybackResponse
|
|
54
54
|
from .google_transcription_language import GoogleTranscriptionLanguage as GoogleTranscriptionLanguage
|
|
55
|
+
from .telnyx_transcription_language import TelnyxTranscriptionLanguage as TelnyxTranscriptionLanguage
|
|
55
56
|
from .action_resume_recording_params import ActionResumeRecordingParams as ActionResumeRecordingParams
|
|
56
57
|
from .action_start_playback_response import ActionStartPlaybackResponse as ActionStartPlaybackResponse
|
|
57
58
|
from .action_stop_recording_response import ActionStopRecordingResponse as ActionStopRecordingResponse
|
|
@@ -9,6 +9,7 @@ from ..dialogflow_config_param import DialogflowConfigParam
|
|
|
9
9
|
from ..stream_bidirectional_mode import StreamBidirectionalMode
|
|
10
10
|
from ..stream_bidirectional_codec import StreamBidirectionalCodec
|
|
11
11
|
from ..stream_bidirectional_target_legs import StreamBidirectionalTargetLegs
|
|
12
|
+
from ..stream_bidirectional_sampling_rate import StreamBidirectionalSamplingRate
|
|
12
13
|
|
|
13
14
|
__all__ = ["ActionStartStreamingParams"]
|
|
14
15
|
|
|
@@ -41,7 +42,7 @@ class ActionStartStreamingParams(TypedDict, total=False):
|
|
|
41
42
|
stream_bidirectional_mode: StreamBidirectionalMode
|
|
42
43
|
"""Configures method of bidirectional streaming (mp3, rtp)."""
|
|
43
44
|
|
|
44
|
-
stream_bidirectional_sampling_rate:
|
|
45
|
+
stream_bidirectional_sampling_rate: StreamBidirectionalSamplingRate
|
|
45
46
|
"""Audio sampling rate."""
|
|
46
47
|
|
|
47
48
|
stream_bidirectional_target_legs: StreamBidirectionalTargetLegs
|
|
@@ -7,6 +7,7 @@ from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
|
7
7
|
|
|
8
8
|
from ..._types import SequenceNotStr
|
|
9
9
|
from .google_transcription_language import GoogleTranscriptionLanguage
|
|
10
|
+
from .telnyx_transcription_language import TelnyxTranscriptionLanguage
|
|
10
11
|
from .transcription_engine_a_config_param import TranscriptionEngineAConfigParam
|
|
11
12
|
from .transcription_engine_b_config_param import TranscriptionEngineBConfigParam
|
|
12
13
|
|
|
@@ -106,108 +107,7 @@ class TranscriptionEngineConfigTranscriptionEngineGoogleConfig(TypedDict, total=
|
|
|
106
107
|
|
|
107
108
|
|
|
108
109
|
class TranscriptionEngineConfigTranscriptionEngineTelnyxConfig(TypedDict, total=False):
|
|
109
|
-
language:
|
|
110
|
-
"en",
|
|
111
|
-
"zh",
|
|
112
|
-
"de",
|
|
113
|
-
"es",
|
|
114
|
-
"ru",
|
|
115
|
-
"ko",
|
|
116
|
-
"fr",
|
|
117
|
-
"ja",
|
|
118
|
-
"pt",
|
|
119
|
-
"tr",
|
|
120
|
-
"pl",
|
|
121
|
-
"ca",
|
|
122
|
-
"nl",
|
|
123
|
-
"ar",
|
|
124
|
-
"sv",
|
|
125
|
-
"it",
|
|
126
|
-
"id",
|
|
127
|
-
"hi",
|
|
128
|
-
"fi",
|
|
129
|
-
"vi",
|
|
130
|
-
"he",
|
|
131
|
-
"uk",
|
|
132
|
-
"el",
|
|
133
|
-
"ms",
|
|
134
|
-
"cs",
|
|
135
|
-
"ro",
|
|
136
|
-
"da",
|
|
137
|
-
"hu",
|
|
138
|
-
"ta",
|
|
139
|
-
"no",
|
|
140
|
-
"th",
|
|
141
|
-
"ur",
|
|
142
|
-
"hr",
|
|
143
|
-
"bg",
|
|
144
|
-
"lt",
|
|
145
|
-
"la",
|
|
146
|
-
"mi",
|
|
147
|
-
"ml",
|
|
148
|
-
"cy",
|
|
149
|
-
"sk",
|
|
150
|
-
"te",
|
|
151
|
-
"fa",
|
|
152
|
-
"lv",
|
|
153
|
-
"bn",
|
|
154
|
-
"sr",
|
|
155
|
-
"az",
|
|
156
|
-
"sl",
|
|
157
|
-
"kn",
|
|
158
|
-
"et",
|
|
159
|
-
"mk",
|
|
160
|
-
"br",
|
|
161
|
-
"eu",
|
|
162
|
-
"is",
|
|
163
|
-
"hy",
|
|
164
|
-
"ne",
|
|
165
|
-
"mn",
|
|
166
|
-
"bs",
|
|
167
|
-
"kk",
|
|
168
|
-
"sq",
|
|
169
|
-
"sw",
|
|
170
|
-
"gl",
|
|
171
|
-
"mr",
|
|
172
|
-
"pa",
|
|
173
|
-
"si",
|
|
174
|
-
"km",
|
|
175
|
-
"sn",
|
|
176
|
-
"yo",
|
|
177
|
-
"so",
|
|
178
|
-
"af",
|
|
179
|
-
"oc",
|
|
180
|
-
"ka",
|
|
181
|
-
"be",
|
|
182
|
-
"tg",
|
|
183
|
-
"sd",
|
|
184
|
-
"gu",
|
|
185
|
-
"am",
|
|
186
|
-
"yi",
|
|
187
|
-
"lo",
|
|
188
|
-
"uz",
|
|
189
|
-
"fo",
|
|
190
|
-
"ht",
|
|
191
|
-
"ps",
|
|
192
|
-
"tk",
|
|
193
|
-
"nn",
|
|
194
|
-
"mt",
|
|
195
|
-
"sa",
|
|
196
|
-
"lb",
|
|
197
|
-
"my",
|
|
198
|
-
"bo",
|
|
199
|
-
"tl",
|
|
200
|
-
"mg",
|
|
201
|
-
"as",
|
|
202
|
-
"tt",
|
|
203
|
-
"haw",
|
|
204
|
-
"ln",
|
|
205
|
-
"ha",
|
|
206
|
-
"ba",
|
|
207
|
-
"jw",
|
|
208
|
-
"su",
|
|
209
|
-
"auto_detect",
|
|
210
|
-
]
|
|
110
|
+
language: TelnyxTranscriptionLanguage
|
|
211
111
|
"""Language to use for speech recognition"""
|
|
212
112
|
|
|
213
113
|
transcription_engine: Literal["Telnyx"]
|