Skip to content

Commit 613573b

Browse files
release: 3.3.0-alpha (#96)
* codegen metadata * feat(api): manual updates * codegen metadata * release: 3.3.0-alpha --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 32ea1f2 commit 613573b

78 files changed

Lines changed: 4498 additions & 6 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.release-please-manifest.json

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

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 801
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-f817dc5db29d722549a84a416041e8b986274237116593a3feeaefb1c5e93ed0.yml
3-
openapi_spec_hash: e344d1e9ae23ddd4cd7646113ee76e7f
4-
config_hash: 6bab75d5a002089c3f9b042706f8c4eb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-9b2e42d595d8704628cb792563adef970f306e60f81b682f41747f0e44321d2a.yml
3+
openapi_spec_hash: c78b6c372d7b9a5d8735956b67e724ce
4+
config_hash: c278464aecdd82ee0c185dcc6450746b

CHANGELOG.md

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

3+
## 3.3.0-alpha (2025-08-27)
4+
5+
Full Changelog: [v3.2.0-alpha...v3.3.0-alpha](https://github.com/team-telnyx/telnyx-python/compare/v3.2.0-alpha...v3.3.0-alpha)
6+
7+
### Features
8+
9+
* **api:** manual updates ([c471f6f](https://github.com/team-telnyx/telnyx-python/commit/c471f6f7595e375725124181460385b57c3335f4))
10+
311
## 3.2.0-alpha (2025-08-27)
412

513
Full Changelog: [v3.1.0-alpha...v3.2.0-alpha](https://github.com/team-telnyx/telnyx-python/compare/v3.1.0-alpha...v3.2.0-alpha)

api.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,80 @@ Methods:
3939
- <code title="get /{bucketName}">client.<a href="./src/telnyx/_client.py">list_objects</a>(bucket_name, \*\*<a href="src/telnyx/types/client_list_objects_params.py">params</a>) -> <a href="./src/telnyx/types/list_objects_response.py">ListObjectsResponse</a></code>
4040
- <code title="put /{bucketName}/{objectName}">client.<a href="./src/telnyx/_client.py">put_object</a>(object_name, \*, bucket_name, \*\*<a href="src/telnyx/types/client_put_object_params.py">params</a>) -> None</code>
4141

42+
# Webhooks
43+
44+
Types:
45+
46+
```python
47+
from telnyx.types import (
48+
CallAIGatherEndedWebhookEvent,
49+
CallAIGatherMessageHistoryUpdatedWebhookEvent,
50+
CallAIGatherPartialResultsWebhookEvent,
51+
CustomerServiceRecordStatusChangedWebhookEvent,
52+
CallAnsweredWebhookEvent,
53+
CallBridgedWebhookEvent,
54+
CallConversationEndedWebhookEvent,
55+
CallConversationInsightsGeneratedWebhookEvent,
56+
CallDtmfReceivedWebhookEvent,
57+
CallEnqueuedWebhookEvent,
58+
CallForkStartedWebhookEvent,
59+
CallForkStoppedWebhookEvent,
60+
CallGatherEndedWebhookEvent,
61+
CallHangupWebhookEvent,
62+
CallInitiatedWebhookEvent,
63+
CallLeftQueueWebhookEvent,
64+
CallMachineDetectionEndedWebhookEvent,
65+
CallMachineGreetingEndedWebhookEvent,
66+
CallMachinePremiumDetectionEndedWebhookEvent,
67+
CallMachinePremiumGreetingEndedWebhookEvent,
68+
CallPlaybackEndedWebhookEvent,
69+
CallPlaybackStartedWebhookEvent,
70+
CallRecordingErrorWebhookEvent,
71+
CallRecordingSavedWebhookEvent,
72+
CallRecordingTranscriptionSavedWebhookEvent,
73+
CallReferCompletedWebhookEvent,
74+
CallReferFailedWebhookEvent,
75+
CallReferStartedWebhookEvent,
76+
CallSiprecFailedWebhookEvent,
77+
CallSiprecStartedWebhookEvent,
78+
CallSiprecStoppedWebhookEvent,
79+
CallSpeakEndedWebhookEvent,
80+
CallSpeakStartedWebhookEvent,
81+
CallStreamingFailedWebhookEvent,
82+
CallStreamingStartedWebhookEvent,
83+
CallStreamingStoppedWebhookEvent,
84+
CampaignStatusUpdateWebhookEvent,
85+
ConferenceCreatedWebhookEvent,
86+
ConferenceEndedWebhookEvent,
87+
ConferenceFloorChangedWebhookEvent,
88+
ConferenceParticipantJoinedWebhookEvent,
89+
ConferenceParticipantLeftWebhookEvent,
90+
ConferenceParticipantPlaybackEndedWebhookEvent,
91+
ConferenceParticipantPlaybackStartedWebhookEvent,
92+
ConferenceParticipantSpeakEndedWebhookEvent,
93+
ConferenceParticipantSpeakStartedWebhookEvent,
94+
ConferencePlaybackEndedWebhookEvent,
95+
ConferencePlaybackStartedWebhookEvent,
96+
ConferenceRecordingSavedWebhookEvent,
97+
ConferenceSpeakEndedWebhookEvent,
98+
ConferenceSpeakStartedWebhookEvent,
99+
DeliveryUpdateWebhookEvent,
100+
FaxDeliveredWebhookEvent,
101+
FaxFailedWebhookEvent,
102+
FaxMediaProcessedWebhookEvent,
103+
FaxQueuedWebhookEvent,
104+
FaxSendingStartedWebhookEvent,
105+
InboundMessageWebhookEvent,
106+
NumberOrderStatusUpdateWebhookEvent,
107+
ReplacedLinkClickWebhookEvent,
108+
StreamingFailedWebhookEvent,
109+
StreamingStartedWebhookEvent,
110+
StreamingStoppedWebhookEvent,
111+
TranscriptionWebhookEvent,
112+
UnwrapWebhookEvent,
113+
)
114+
```
115+
42116
# AccessIPAddress
43117

44118
Types:

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 = "3.2.0-alpha"
3+
version = "3.3.0-alpha"
44
description = "The official Python library for the telnyx API"
55
dynamic = ["readme"]
66
license = "MIT"

src/telnyx/_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
regions,
6464
comments,
6565
invoices,
66+
webhooks,
6667
documents,
6768
messsages,
6869
user_tags,
@@ -215,6 +216,7 @@
215216

216217

217218
class Telnyx(SyncAPIClient):
219+
webhooks: webhooks.WebhooksResource
218220
access_ip_address: access_ip_address.AccessIPAddressResource
219221
access_ip_ranges: access_ip_ranges.AccessIPRangesResource
220222
actions: actions.ActionsResource
@@ -420,6 +422,7 @@ def __init__(
420422
_strict_response_validation=_strict_response_validation,
421423
)
422424

425+
self.webhooks = webhooks.WebhooksResource(self)
423426
self.access_ip_address = access_ip_address.AccessIPAddressResource(self)
424427
self.access_ip_ranges = access_ip_ranges.AccessIPRangesResource(self)
425428
self.actions = actions.ActionsResource(self)
@@ -986,6 +989,7 @@ def _make_status_error(
986989

987990

988991
class AsyncTelnyx(AsyncAPIClient):
992+
webhooks: webhooks.AsyncWebhooksResource
989993
access_ip_address: access_ip_address.AsyncAccessIPAddressResource
990994
access_ip_ranges: access_ip_ranges.AsyncAccessIPRangesResource
991995
actions: actions.AsyncActionsResource
@@ -1191,6 +1195,7 @@ def __init__(
11911195
_strict_response_validation=_strict_response_validation,
11921196
)
11931197

1198+
self.webhooks = webhooks.AsyncWebhooksResource(self)
11941199
self.access_ip_address = access_ip_address.AsyncAccessIPAddressResource(self)
11951200
self.access_ip_ranges = access_ip_ranges.AsyncAccessIPRangesResource(self)
11961201
self.actions = actions.AsyncActionsResource(self)

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__ = "3.2.0-alpha" # x-release-please-version
4+
__version__ = "3.3.0-alpha" # x-release-please-version

src/telnyx/resources/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@
208208
PortoutsResourceWithStreamingResponse,
209209
AsyncPortoutsResourceWithStreamingResponse,
210210
)
211+
from .webhooks import WebhooksResource, AsyncWebhooksResource
211212
from .wireless import (
212213
WirelessResource,
213214
AsyncWirelessResource,
@@ -1170,6 +1171,8 @@
11701171
)
11711172

11721173
__all__ = [
1174+
"WebhooksResource",
1175+
"AsyncWebhooksResource",
11731176
"AccessIPAddressResource",
11741177
"AsyncAccessIPAddressResource",
11751178
"AccessIPAddressResourceWithRawResponse",

src/telnyx/resources/webhooks.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
import json
6+
from typing import cast
7+
8+
from .._models import construct_type
9+
from .._resource import SyncAPIResource, AsyncAPIResource
10+
from ..types.unwrap_webhook_event import UnwrapWebhookEvent
11+
12+
__all__ = ["WebhooksResource", "AsyncWebhooksResource"]
13+
14+
15+
class WebhooksResource(SyncAPIResource):
16+
def unwrap(self, payload: str) -> UnwrapWebhookEvent:
17+
return cast(
18+
UnwrapWebhookEvent,
19+
construct_type(
20+
type_=UnwrapWebhookEvent,
21+
value=json.loads(payload),
22+
),
23+
)
24+
25+
26+
class AsyncWebhooksResource(AsyncAPIResource):
27+
def unwrap(self, payload: str) -> UnwrapWebhookEvent:
28+
return cast(
29+
UnwrapWebhookEvent,
30+
construct_type(
31+
type_=UnwrapWebhookEvent,
32+
value=json.loads(payload),
33+
),
34+
)

0 commit comments

Comments
 (0)