Skip to content

Commit 24db4ec

Browse files
release: 4.135.0 (#294)
* docs: add supported file formats to Send Fax endpoint * feat: Document PremiumCallScreening detection mode * release: 4.135.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 49d57e9 commit 24db4ec

18 files changed

Lines changed: 152 additions & 43 deletions

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.134.0"
2+
".": "4.135.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1041
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-84a5516e4e8dfd1f41476bef7aa5c9d18c4ed62574d3d0cc14c12b7ea894e455.yml
3-
openapi_spec_hash: 8388036da41d48e5e261d909785c6e6d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-9cc495153444889989ae89f838f2d0429c3dd41e08a26fb76658b03f68007794.yml
3+
openapi_spec_hash: 80c8b711c00455999eba32f4c3f225fe
44
config_hash: 6b6686945572dbb277d4884e51cb07e7

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 4.135.0 (2026-05-15)
4+
5+
Full Changelog: [v4.134.0...v4.135.0](https://github.com/team-telnyx/telnyx-python/compare/v4.134.0...v4.135.0)
6+
7+
### Features
8+
9+
* Document PremiumCallScreening detection mode ([77ffa1b](https://github.com/team-telnyx/telnyx-python/commit/77ffa1bd62e2b1454fc1e12079d740a06063a0b3))
10+
11+
12+
### Documentation
13+
14+
* add supported file formats to Send Fax endpoint ([8f73895](https://github.com/team-telnyx/telnyx-python/commit/8f738952250095e0f421edbaae93ccfa2b26094b))
15+
316
## 4.134.0 (2026-05-15)
417

518
Full Changelog: [v4.133.0...v4.134.0](https://github.com/team-telnyx/telnyx-python/compare/v4.133.0...v4.134.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "telnyx"
3-
version = "4.134.0"
3+
version = "4.135.0"
44
description = "The official Python library for the telnyx API"
55
dynamic = ["readme"]
66
license = "MIT"

src/telnyx/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "telnyx"
4-
__version__ = "4.134.0" # x-release-please-version
4+
__version__ = "4.135.0" # x-release-please-version

src/telnyx/resources/faxes/faxes.py

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@ def create(
9494
is bigger than 50MB or has more than 350 pages it will fail with
9595
`file_size_limit_exceeded` and `page_count_limit_exceeded` respectively.
9696
97+
**Supported file formats:**
98+
99+
- PDF (`application/pdf`)
100+
- TIFF (`application/tiff`, `image/tiff`)
101+
- JPEG (`image/jpeg`)
102+
- PNG (`image/png`)
103+
- Microsoft Word `.doc` (`application/msword`)
104+
- Microsoft Word `.docx`
105+
(`application/vnd.openxmlformats-officedocument.wordprocessingml.document`)
106+
- Rich Text Format `.rtf` (`application/rtf`)
107+
- Plain text `.txt` (`text/plain`)
108+
97109
**Expected Webhooks:**
98110
99111
- `fax.queued`
@@ -122,11 +134,13 @@ def create(
122134
number in the `from` field.
123135
124136
media_name: The media_name used for the fax's media. Must point to a file previously
125-
uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
126-
and media_url/contents can't be submitted together.
137+
uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
138+
formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
139+
media_url/contents can't be submitted together.
127140
128-
media_url: The URL (or list of URLs) to the PDF used for the fax's media. media_url and
129-
media_name/contents can't be submitted together.
141+
media_url: The URL (or list of URLs) to the fax document. Supported formats: PDF, TIFF,
142+
JPEG, PNG, DOC, DOCX, RTF, and TXT. media_url and media_name/contents can't be
143+
submitted together.
130144
131145
monochrome: The flag to enable monochrome, true black and white fax results.
132146
@@ -366,6 +380,18 @@ async def create(
366380
is bigger than 50MB or has more than 350 pages it will fail with
367381
`file_size_limit_exceeded` and `page_count_limit_exceeded` respectively.
368382
383+
**Supported file formats:**
384+
385+
- PDF (`application/pdf`)
386+
- TIFF (`application/tiff`, `image/tiff`)
387+
- JPEG (`image/jpeg`)
388+
- PNG (`image/png`)
389+
- Microsoft Word `.doc` (`application/msword`)
390+
- Microsoft Word `.docx`
391+
(`application/vnd.openxmlformats-officedocument.wordprocessingml.document`)
392+
- Rich Text Format `.rtf` (`application/rtf`)
393+
- Plain text `.txt` (`text/plain`)
394+
369395
**Expected Webhooks:**
370396
371397
- `fax.queued`
@@ -394,11 +420,13 @@ async def create(
394420
number in the `from` field.
395421
396422
media_name: The media_name used for the fax's media. Must point to a file previously
397-
uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
398-
and media_url/contents can't be submitted together.
423+
uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
424+
formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
425+
media_url/contents can't be submitted together.
399426
400-
media_url: The URL (or list of URLs) to the PDF used for the fax's media. media_url and
401-
media_name/contents can't be submitted together.
427+
media_url: The URL (or list of URLs) to the fax document. Supported formats: PDF, TIFF,
428+
JPEG, PNG, DOC, DOCX, RTF, and TXT. media_url and media_name/contents can't be
429+
submitted together.
402430
403431
monochrome: The flag to enable monochrome, true black and white fax results.
404432

src/telnyx/resources/texml/texml.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ def initiate_ai_call(
7777
conversation_callback_method: Literal["GET", "POST"] | Omit = omit,
7878
conversation_callbacks: SequenceNotStr[str] | Omit = omit,
7979
custom_headers: Iterable[texml_initiate_ai_call_params.CustomHeader] | Omit = omit,
80-
detection_mode: Literal["Premium", "Regular"] | Omit = omit,
80+
detection_mode: Literal["Premium", "Regular", "PremiumCallScreening"] | Omit = omit,
8181
machine_detection: Literal["Enable", "Disable", "DetectMessageEnd"] | Omit = omit,
82+
machine_detection_prompt_end_timeout: int | Omit = omit,
8283
machine_detection_silence_timeout: int | Omit = omit,
8384
machine_detection_speech_end_threshold: int | Omit = omit,
8485
machine_detection_speech_threshold: int | Omit = omit,
@@ -164,10 +165,15 @@ def initiate_ai_call(
164165
custom_headers: Custom HTTP headers to be sent with the call. Each header should be an object
165166
with 'name' and 'value' properties.
166167
167-
detection_mode: Allows you to choose between Premium and Standard detections.
168+
detection_mode: Allows you to choose between Regular, Premium, and PremiumCallScreening
169+
detections. See
170+
https://developers.telnyx.com/docs/voice/programmable-voice/answering-machine-detection
168171
169172
machine_detection: Enables Answering Machine Detection.
170173
174+
machine_detection_prompt_end_timeout: Silence duration threshold after a call screening prompt before ending prompt
175+
detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
176+
171177
machine_detection_silence_timeout: If initial silence duration is greater than this value, consider it a machine.
172178
Ignored when `premium` detection is used.
173179
@@ -266,6 +272,7 @@ def initiate_ai_call(
266272
"custom_headers": custom_headers,
267273
"detection_mode": detection_mode,
268274
"machine_detection": machine_detection,
275+
"machine_detection_prompt_end_timeout": machine_detection_prompt_end_timeout,
269276
"machine_detection_silence_timeout": machine_detection_silence_timeout,
270277
"machine_detection_speech_end_threshold": machine_detection_speech_end_threshold,
271278
"machine_detection_speech_threshold": machine_detection_speech_threshold,
@@ -392,8 +399,9 @@ async def initiate_ai_call(
392399
conversation_callback_method: Literal["GET", "POST"] | Omit = omit,
393400
conversation_callbacks: SequenceNotStr[str] | Omit = omit,
394401
custom_headers: Iterable[texml_initiate_ai_call_params.CustomHeader] | Omit = omit,
395-
detection_mode: Literal["Premium", "Regular"] | Omit = omit,
402+
detection_mode: Literal["Premium", "Regular", "PremiumCallScreening"] | Omit = omit,
396403
machine_detection: Literal["Enable", "Disable", "DetectMessageEnd"] | Omit = omit,
404+
machine_detection_prompt_end_timeout: int | Omit = omit,
397405
machine_detection_silence_timeout: int | Omit = omit,
398406
machine_detection_speech_end_threshold: int | Omit = omit,
399407
machine_detection_speech_threshold: int | Omit = omit,
@@ -479,10 +487,15 @@ async def initiate_ai_call(
479487
custom_headers: Custom HTTP headers to be sent with the call. Each header should be an object
480488
with 'name' and 'value' properties.
481489
482-
detection_mode: Allows you to choose between Premium and Standard detections.
490+
detection_mode: Allows you to choose between Regular, Premium, and PremiumCallScreening
491+
detections. See
492+
https://developers.telnyx.com/docs/voice/programmable-voice/answering-machine-detection
483493
484494
machine_detection: Enables Answering Machine Detection.
485495
496+
machine_detection_prompt_end_timeout: Silence duration threshold after a call screening prompt before ending prompt
497+
detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
498+
486499
machine_detection_silence_timeout: If initial silence duration is greater than this value, consider it a machine.
487500
Ignored when `premium` detection is used.
488501
@@ -581,6 +594,7 @@ async def initiate_ai_call(
581594
"custom_headers": custom_headers,
582595
"detection_mode": detection_mode,
583596
"machine_detection": machine_detection,
597+
"machine_detection_prompt_end_timeout": machine_detection_prompt_end_timeout,
584598
"machine_detection_silence_timeout": machine_detection_silence_timeout,
585599
"machine_detection_speech_end_threshold": machine_detection_speech_end_threshold,
586600
"machine_detection_speech_threshold": machine_detection_speech_threshold,

src/telnyx/types/fax.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ class Fax(BaseModel):
4040
"""The media_name used for the fax's media.
4141
4242
Must point to a file previously uploaded to api.telnyx.com/v2/media by the same
43-
user/organization. media_name and media_url/contents can't be submitted
44-
together.
43+
user/organization. Supported formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and
44+
TXT. media_name and media_url/contents can't be submitted together.
4545
"""
4646

4747
media_url: Optional[str] = None
48-
"""The URL (or list of URLs) to the PDF used for the fax's media.
48+
"""The URL (or list of URLs) to the fax document.
4949
50-
media_url and media_name/contents can't be submitted together.
50+
Supported formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_url and
51+
media_name/contents can't be submitted together.
5152
"""
5253

5354
preview_url: Optional[str] = None

src/telnyx/types/fax_create_params.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ class FaxCreateParams(TypedDict, total=False):
4444
"""The media_name used for the fax's media.
4545
4646
Must point to a file previously uploaded to api.telnyx.com/v2/media by the same
47-
user/organization. media_name and media_url/contents can't be submitted
48-
together.
47+
user/organization. Supported formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and
48+
TXT. media_name and media_url/contents can't be submitted together.
4949
"""
5050

5151
media_url: str
52-
"""The URL (or list of URLs) to the PDF used for the fax's media.
52+
"""The URL (or list of URLs) to the fax document.
5353
54-
media_url and media_name/contents can't be submitted together.
54+
Supported formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_url and
55+
media_name/contents can't be submitted together.
5556
"""
5657

5758
monochrome: bool

src/telnyx/types/fax_delivered.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class DataPayload(BaseModel):
3434
"""The media_name used for the fax's media.
3535
3636
Must point to a file previously uploaded to api.telnyx.com/v2/media by the same
37-
user/organization. media_name and media_url/contents can't be submitted
38-
together.
37+
user/organization. Supported formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and
38+
TXT. media_name and media_url/contents can't be submitted together.
3939
"""
4040

4141
original_media_url: Optional[str] = None

0 commit comments

Comments
 (0)