telnyx 3.10.0__py3-none-any.whl → 3.11.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.

Files changed (49) hide show
  1. telnyx/_version.py +1 -1
  2. telnyx/resources/__init__.py +1 -2
  3. telnyx/resources/ai/__init__.py +28 -0
  4. telnyx/resources/ai/ai.py +64 -0
  5. telnyx/resources/ai/integrations/__init__.py +33 -0
  6. telnyx/resources/ai/integrations/connections.py +294 -0
  7. telnyx/resources/ai/integrations/integrations.py +246 -0
  8. telnyx/resources/ai/mcp_servers.py +571 -0
  9. telnyx/resources/conferences/actions.py +180 -8
  10. telnyx/resources/conferences/conferences.py +50 -3
  11. telnyx/resources/texml/accounts/calls/calls.py +8 -0
  12. telnyx/resources/webhooks.py +82 -94
  13. telnyx/types/__init__.py +1 -0
  14. telnyx/types/ai/__init__.py +9 -0
  15. telnyx/types/ai/integration_list_response.py +28 -0
  16. telnyx/types/ai/integration_retrieve_response.py +24 -0
  17. telnyx/types/ai/integrations/__init__.py +6 -0
  18. telnyx/types/ai/integrations/connection_list_response.py +19 -0
  19. telnyx/types/ai/integrations/connection_retrieve_response.py +19 -0
  20. telnyx/types/ai/mcp_server_create_params.py +22 -0
  21. telnyx/types/ai/mcp_server_create_response.py +24 -0
  22. telnyx/types/ai/mcp_server_list_params.py +19 -0
  23. telnyx/types/ai/mcp_server_list_response.py +28 -0
  24. telnyx/types/ai/mcp_server_retrieve_response.py +24 -0
  25. telnyx/types/ai/mcp_server_update_params.py +28 -0
  26. telnyx/types/ai/mcp_server_update_response.py +24 -0
  27. telnyx/types/conference_create_params.py +6 -0
  28. telnyx/types/conference_list_params.py +3 -0
  29. telnyx/types/conference_list_participants_params.py +4 -1
  30. telnyx/types/conference_retrieve_params.py +12 -0
  31. telnyx/types/conferences/action_hold_params.py +7 -1
  32. telnyx/types/conferences/action_join_params.py +6 -0
  33. telnyx/types/conferences/action_leave_params.py +6 -0
  34. telnyx/types/conferences/action_mute_params.py +7 -1
  35. telnyx/types/conferences/action_play_params.py +7 -1
  36. telnyx/types/conferences/action_record_pause_params.py +7 -1
  37. telnyx/types/conferences/action_record_resume_params.py +7 -1
  38. telnyx/types/conferences/action_record_start_params.py +6 -0
  39. telnyx/types/conferences/action_record_stop_params.py +7 -1
  40. telnyx/types/conferences/action_speak_params.py +6 -0
  41. telnyx/types/conferences/action_stop_params.py +7 -1
  42. telnyx/types/conferences/action_unhold_params.py +7 -1
  43. telnyx/types/conferences/action_unmute_params.py +7 -1
  44. telnyx/types/conferences/action_update_params.py +6 -0
  45. telnyx/types/texml/accounts/call_calls_params.py +5 -0
  46. {telnyx-3.10.0.dist-info → telnyx-3.11.0.dist-info}/METADATA +1 -1
  47. {telnyx-3.10.0.dist-info → telnyx-3.11.0.dist-info}/RECORD +49 -32
  48. {telnyx-3.10.0.dist-info → telnyx-3.11.0.dist-info}/WHEEL +0 -0
  49. {telnyx-3.10.0.dist-info → telnyx-3.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from datetime import datetime
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["McpServerCreateResponse"]
9
+
10
+
11
+ class McpServerCreateResponse(BaseModel):
12
+ id: str
13
+
14
+ created_at: datetime
15
+
16
+ name: str
17
+
18
+ type: str
19
+
20
+ url: str
21
+
22
+ allowed_tools: Optional[List[str]] = None
23
+
24
+ api_key_ref: Optional[str] = None
@@ -0,0 +1,19 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Annotated, TypedDict
6
+
7
+ from ..._utils import PropertyInfo
8
+
9
+ __all__ = ["McpServerListParams"]
10
+
11
+
12
+ class McpServerListParams(TypedDict, total=False):
13
+ page_number: Annotated[int, PropertyInfo(alias="page[number]")]
14
+
15
+ page_size: Annotated[int, PropertyInfo(alias="page[size]")]
16
+
17
+ type: str
18
+
19
+ url: str
@@ -0,0 +1,28 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from datetime import datetime
5
+ from typing_extensions import TypeAlias
6
+
7
+ from ..._models import BaseModel
8
+
9
+ __all__ = ["McpServerListResponse", "McpServerListResponseItem"]
10
+
11
+
12
+ class McpServerListResponseItem(BaseModel):
13
+ id: str
14
+
15
+ created_at: datetime
16
+
17
+ name: str
18
+
19
+ type: str
20
+
21
+ url: str
22
+
23
+ allowed_tools: Optional[List[str]] = None
24
+
25
+ api_key_ref: Optional[str] = None
26
+
27
+
28
+ McpServerListResponse: TypeAlias = List[McpServerListResponseItem]
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from datetime import datetime
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["McpServerRetrieveResponse"]
9
+
10
+
11
+ class McpServerRetrieveResponse(BaseModel):
12
+ id: str
13
+
14
+ created_at: datetime
15
+
16
+ name: str
17
+
18
+ type: str
19
+
20
+ url: str
21
+
22
+ allowed_tools: Optional[List[str]] = None
23
+
24
+ api_key_ref: Optional[str] = None
@@ -0,0 +1,28 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Union, Optional
6
+ from datetime import datetime
7
+ from typing_extensions import Annotated, TypedDict
8
+
9
+ from ..._types import SequenceNotStr
10
+ from ..._utils import PropertyInfo
11
+
12
+ __all__ = ["McpServerUpdateParams"]
13
+
14
+
15
+ class McpServerUpdateParams(TypedDict, total=False):
16
+ id: str
17
+
18
+ allowed_tools: Optional[SequenceNotStr[str]]
19
+
20
+ api_key_ref: Optional[str]
21
+
22
+ created_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
23
+
24
+ name: str
25
+
26
+ type: str
27
+
28
+ url: str
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from datetime import datetime
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["McpServerUpdateResponse"]
9
+
10
+
11
+ class McpServerUpdateResponse(BaseModel):
12
+ id: str
13
+
14
+ created_at: datetime
15
+
16
+ name: str
17
+
18
+ type: str
19
+
20
+ url: str
21
+
22
+ allowed_tools: Optional[List[str]] = None
23
+
24
+ api_key_ref: Optional[str] = None
@@ -64,6 +64,12 @@ class ConferenceCreateParams(TypedDict, total=False):
64
64
  Must be between 2 and 800. Defaults to 250
65
65
  """
66
66
 
67
+ region: Literal["Australia", "Europe", "Middle East", "US"]
68
+ """Sets the region where the conference data will be hosted.
69
+
70
+ Defaults to the region defined in user's data locality settings (Europe or US).
71
+ """
72
+
67
73
  start_conference_on_create: bool
68
74
  """Whether the conference should be started on creation.
69
75
 
@@ -26,6 +26,9 @@ class ConferenceListParams(TypedDict, total=False):
26
26
  Originally: page[after], page[before], page[limit], page[size], page[number]
27
27
  """
28
28
 
29
+ region: Literal["Australia", "Europe", "Middle East", "US"]
30
+ """Region where the conference data is located"""
31
+
29
32
 
30
33
  class FilterApplicationName(TypedDict, total=False):
31
34
  contains: str
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  __all__ = ["ConferenceListParticipantsParams", "Filter", "Page"]
8
8
 
@@ -20,6 +20,9 @@ class ConferenceListParticipantsParams(TypedDict, total=False):
20
20
  Originally: page[after], page[before], page[limit], page[size], page[number]
21
21
  """
22
22
 
23
+ region: Literal["Australia", "Europe", "Middle East", "US"]
24
+ """Region where the conference data is located"""
25
+
23
26
 
24
27
  class Filter(TypedDict, total=False):
25
28
  muted: bool
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal, TypedDict
6
+
7
+ __all__ = ["ConferenceRetrieveParams"]
8
+
9
+
10
+ class ConferenceRetrieveParams(TypedDict, total=False):
11
+ region: Literal["Australia", "Europe", "Middle East", "US"]
12
+ """Region where the conference data is located"""
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  from ..._types import SequenceNotStr
8
8
 
@@ -29,3 +29,9 @@ class ActionHoldParams(TypedDict, total=False):
29
29
  api.telnyx.com/v2/media by the same user/organization. The file must either be a
30
30
  WAV or MP3 file.
31
31
  """
32
+
33
+ region: Literal["Australia", "Europe", "Middle East", "US"]
34
+ """Region where the conference data is located.
35
+
36
+ Defaults to the region defined in user's data locality settings (Europe or US).
37
+ """
@@ -71,6 +71,12 @@ class ActionJoinParams(TypedDict, total=False):
71
71
  Defaults to "false".
72
72
  """
73
73
 
74
+ region: Literal["Australia", "Europe", "Middle East", "US"]
75
+ """Region where the conference data is located.
76
+
77
+ Defaults to the region defined in user's data locality settings (Europe or US).
78
+ """
79
+
74
80
  soft_end_conference_on_exit: bool
75
81
  """Whether the conference should end after the participant leaves the conference.
76
82
 
@@ -24,3 +24,9 @@ class ActionLeaveParams(TypedDict, total=False):
24
24
  Telnyx will ignore subsequent commands with the same `command_id` as one that
25
25
  has already been executed.
26
26
  """
27
+
28
+ region: Literal["Australia", "Europe", "Middle East", "US"]
29
+ """Region where the conference data is located.
30
+
31
+ Defaults to the region defined in user's data locality settings (Europe or US).
32
+ """
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  from ..._types import SequenceNotStr
8
8
 
@@ -15,3 +15,9 @@ class ActionMuteParams(TypedDict, total=False):
15
15
 
16
16
  When empty all participants will be muted.
17
17
  """
18
+
19
+ region: Literal["Australia", "Europe", "Middle East", "US"]
20
+ """Region where the conference data is located.
21
+
22
+ Defaults to the region defined in user's data locality settings (Europe or US).
23
+ """
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  from ..._types import SequenceNotStr
8
8
  from ..calls.loopcount_param import LoopcountParam
@@ -37,3 +37,9 @@ class ActionPlayParams(TypedDict, total=False):
37
37
  api.telnyx.com/v2/media by the same user/organization. The file must either be a
38
38
  WAV or MP3 file.
39
39
  """
40
+
41
+ region: Literal["Australia", "Europe", "Middle East", "US"]
42
+ """Region where the conference data is located.
43
+
44
+ Defaults to the region defined in user's data locality settings (Europe or US).
45
+ """
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  __all__ = ["ActionRecordPauseParams"]
8
8
 
@@ -17,3 +17,9 @@ class ActionRecordPauseParams(TypedDict, total=False):
17
17
 
18
18
  recording_id: str
19
19
  """Use this field to pause specific recording."""
20
+
21
+ region: Literal["Australia", "Europe", "Middle East", "US"]
22
+ """Region where the conference data is located.
23
+
24
+ Defaults to the region defined in user's data locality settings (Europe or US).
25
+ """
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  __all__ = ["ActionRecordResumeParams"]
8
8
 
@@ -17,3 +17,9 @@ class ActionRecordResumeParams(TypedDict, total=False):
17
17
 
18
18
  recording_id: str
19
19
  """Use this field to resume specific recording."""
20
+
21
+ region: Literal["Australia", "Europe", "Middle East", "US"]
22
+ """Region where the conference data is located.
23
+
24
+ Defaults to the region defined in user's data locality settings (Europe or US).
25
+ """
@@ -30,6 +30,12 @@ class ActionRecordStartParams(TypedDict, total=False):
30
30
  play_beep: bool
31
31
  """If enabled, a beep sound will be played at the start of a recording."""
32
32
 
33
+ region: Literal["Australia", "Europe", "Middle East", "US"]
34
+ """Region where the conference data is located.
35
+
36
+ Defaults to the region defined in user's data locality settings (Europe or US).
37
+ """
38
+
33
39
  trim: Literal["trim-silence"]
34
40
  """
35
41
  When set to `trim-silence`, silence will be removed from the beginning and end
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  __all__ = ["ActionRecordStopParams"]
8
8
 
@@ -23,3 +23,9 @@ class ActionRecordStopParams(TypedDict, total=False):
23
23
 
24
24
  recording_id: str
25
25
  """Uniquely identifies the resource."""
26
+
27
+ region: Literal["Australia", "Europe", "Middle East", "US"]
28
+ """Region where the conference data is located.
29
+
30
+ Defaults to the region defined in user's data locality settings (Europe or US).
31
+ """
@@ -104,6 +104,12 @@ class ActionSpeakParams(TypedDict, total=False):
104
104
  (SSML).
105
105
  """
106
106
 
107
+ region: Literal["Australia", "Europe", "Middle East", "US"]
108
+ """Region where the conference data is located.
109
+
110
+ Defaults to the region defined in user's data locality settings (Europe or US).
111
+ """
112
+
107
113
  voice_settings: VoiceSettings
108
114
  """The settings associated with the voice selected"""
109
115
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  from ..._types import SequenceNotStr
8
8
 
@@ -15,3 +15,9 @@ class ActionStopParams(TypedDict, total=False):
15
15
  List of call control ids identifying participants the audio file should stop be
16
16
  played to. If not given, the audio will be stoped to the entire conference.
17
17
  """
18
+
19
+ region: Literal["Australia", "Europe", "Middle East", "US"]
20
+ """Region where the conference data is located.
21
+
22
+ Defaults to the region defined in user's data locality settings (Europe or US).
23
+ """
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import Required, TypedDict
5
+ from typing_extensions import Literal, Required, TypedDict
6
6
 
7
7
  from ..._types import SequenceNotStr
8
8
 
@@ -15,3 +15,9 @@ class ActionUnholdParams(TypedDict, total=False):
15
15
 
16
16
  Enter each call control ID to be unheld.
17
17
  """
18
+
19
+ region: Literal["Australia", "Europe", "Middle East", "US"]
20
+ """Region where the conference data is located.
21
+
22
+ Defaults to the region defined in user's data locality settings (Europe or US).
23
+ """
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  from ..._types import SequenceNotStr
8
8
 
@@ -16,3 +16,9 @@ class ActionUnmuteParams(TypedDict, total=False):
16
16
  Enter each call control ID to be unmuted. When empty all participants will be
17
17
  unmuted.
18
18
  """
19
+
20
+ region: Literal["Australia", "Europe", "Middle East", "US"]
21
+ """Region where the conference data is located.
22
+
23
+ Defaults to the region defined in user's data locality settings (Europe or US).
24
+ """
@@ -30,6 +30,12 @@ class ActionUpdateParams(TypedDict, total=False):
30
30
  has already been executed.
31
31
  """
32
32
 
33
+ region: Literal["Australia", "Europe", "Middle East", "US"]
34
+ """Region where the conference data is located.
35
+
36
+ Defaults to the region defined in user's data locality settings (Europe or US).
37
+ """
38
+
33
39
  whisper_call_control_ids: SequenceNotStr[str]
34
40
  """Array of unique call_control_ids the supervisor can whisper to.
35
41
 
@@ -146,6 +146,11 @@ class CallCallsParams(TypedDict, total=False):
146
146
  sip_auth_username: Annotated[str, PropertyInfo(alias="SipAuthUsername")]
147
147
  """The username to use for SIP authentication."""
148
148
 
149
+ sip_region: Annotated[
150
+ Literal["US", "Europe", "Canada", "Australia", "Middle East"], PropertyInfo(alias="SipRegion")
151
+ ]
152
+ """Defines the SIP region to be used for the call."""
153
+
149
154
  status_callback: Annotated[str, PropertyInfo(alias="StatusCallback")]
150
155
  """URL destination for Telnyx to send status callback events to for the call."""
151
156
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: telnyx
3
- Version: 3.10.0
3
+ Version: 3.11.0
4
4
  Summary: Telnyx API SDK for global Voice, SMS, MMS, WhatsApp, Fax, Wireless IoT, SIP Trunking, and Call Control.
5
5
  Project-URL: Homepage, https://github.com/team-telnyx/telnyx-python
6
6
  Project-URL: Repository, https://github.com/team-telnyx/telnyx-python