Skip to content

Commit 12d91f6

Browse files
feat(api): manual updates
1 parent 04e377e commit 12d91f6

13 files changed

Lines changed: 56 additions & 202 deletions

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 846
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-cb0994e7d39146470cf25daa458555be4691e50795b9cb9be0cdd76a7d6bf357.yml
33
openapi_spec_hash: df09e67ae6d4df81593b396048046de5
4-
config_hash: 83c87521e1bf17d9f42440f9a623e988
4+
config_hash: 53adc7ec630d90dd582727459f58a597

api.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4655,20 +4655,18 @@ Methods:
46554655
- <code title="get /partnerCampaign/sharedByMe">client.partner_campaigns.<a href="./src/telnyx/resources/partner_campaigns.py">list_shared_by_me</a>(\*\*<a href="src/telnyx/types/partner_campaign_list_shared_by_me_params.py">params</a>) -> <a href="./src/telnyx/types/partner_campaign_list_shared_by_me_response.py">PartnerCampaignListSharedByMeResponse</a></code>
46564656
- <code title="get /partnerCampaign/{campaignId}/sharing">client.partner_campaigns.<a href="./src/telnyx/resources/partner_campaigns.py">retrieve_sharing_status</a>(campaign_id) -> <a href="./src/telnyx/types/partner_campaign_retrieve_sharing_status_response.py">PartnerCampaignRetrieveSharingStatusResponse</a></code>
46574657

4658-
# Client
4659-
4660-
## WellKnown
4658+
# WellKnown
46614659

46624660
Types:
46634661

46644662
```python
4665-
from telnyx.types.client import (
4663+
from telnyx.types import (
46664664
WellKnownRetrieveAuthorizationServerMetadataResponse,
46674665
WellKnownRetrieveProtectedResourceMetadataResponse,
46684666
)
46694667
```
46704668

46714669
Methods:
46724670

4673-
- <code title="get /.well-known/oauth-authorization-server">client.client.well_known.<a href="./src/telnyx/resources/client/well_known.py">retrieve_authorization_server_metadata</a>() -> <a href="./src/telnyx/types/client/well_known_retrieve_authorization_server_metadata_response.py">WellKnownRetrieveAuthorizationServerMetadataResponse</a></code>
4674-
- <code title="get /.well-known/oauth-protected-resource">client.client.well_known.<a href="./src/telnyx/resources/client/well_known.py">retrieve_protected_resource_metadata</a>() -> <a href="./src/telnyx/types/client/well_known_retrieve_protected_resource_metadata_response.py">WellKnownRetrieveProtectedResourceMetadataResponse</a></code>
4671+
- <code title="get /.well-known/oauth-authorization-server">client.well_known.<a href="./src/telnyx/resources/well_known.py">retrieve_authorization_server_metadata</a>() -> <a href="./src/telnyx/types/well_known_retrieve_authorization_server_metadata_response.py">WellKnownRetrieveAuthorizationServerMetadataResponse</a></code>
4672+
- <code title="get /.well-known/oauth-protected-resource">client.well_known.<a href="./src/telnyx/resources/well_known.py">retrieve_protected_resource_metadata</a>() -> <a href="./src/telnyx/types/well_known_retrieve_protected_resource_metadata_response.py">WellKnownRetrieveProtectedResourceMetadataResponse</a></code>

src/telnyx/_client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
messsages,
7171
user_tags,
7272
global_ips,
73+
well_known,
7374
call_events,
7475
connections,
7576
ota_updates,
@@ -181,7 +182,6 @@
181182
from .resources.faxes import faxes
182183
from .resources.rooms import rooms
183184
from .resources.texml import texml
184-
from .resources.client import client
185185
from .resources.legacy import legacy
186186
from .resources.queues import queues
187187
from .resources.actions import actions
@@ -375,7 +375,7 @@ class Telnyx(SyncAPIClient):
375375
wireless_blocklist_values: wireless_blocklist_values.WirelessBlocklistValuesResource
376376
wireless_blocklists: wireless_blocklists.WirelessBlocklistsResource
377377
partner_campaigns: partner_campaigns.PartnerCampaignsResource
378-
client: client.ClientResource
378+
well_known: well_known.WellKnownResource
379379
with_raw_response: TelnyxWithRawResponse
380380
with_streaming_response: TelnyxWithStreamedResponse
381381

@@ -593,7 +593,7 @@ def __init__(
593593
self.wireless_blocklist_values = wireless_blocklist_values.WirelessBlocklistValuesResource(self)
594594
self.wireless_blocklists = wireless_blocklists.WirelessBlocklistsResource(self)
595595
self.partner_campaigns = partner_campaigns.PartnerCampaignsResource(self)
596-
self.client = client.ClientResource(self)
596+
self.well_known = well_known.WellKnownResource(self)
597597
self.with_raw_response = TelnyxWithRawResponse(self)
598598
self.with_streaming_response = TelnyxWithStreamedResponse(self)
599599

@@ -1161,7 +1161,7 @@ class AsyncTelnyx(AsyncAPIClient):
11611161
wireless_blocklist_values: wireless_blocklist_values.AsyncWirelessBlocklistValuesResource
11621162
wireless_blocklists: wireless_blocklists.AsyncWirelessBlocklistsResource
11631163
partner_campaigns: partner_campaigns.AsyncPartnerCampaignsResource
1164-
client: client.AsyncClientResource
1164+
well_known: well_known.AsyncWellKnownResource
11651165
with_raw_response: AsyncTelnyxWithRawResponse
11661166
with_streaming_response: AsyncTelnyxWithStreamedResponse
11671167

@@ -1385,7 +1385,7 @@ def __init__(
13851385
self.wireless_blocklist_values = wireless_blocklist_values.AsyncWirelessBlocklistValuesResource(self)
13861386
self.wireless_blocklists = wireless_blocklists.AsyncWirelessBlocklistsResource(self)
13871387
self.partner_campaigns = partner_campaigns.AsyncPartnerCampaignsResource(self)
1388-
self.client = client.AsyncClientResource(self)
1388+
self.well_known = well_known.AsyncWellKnownResource(self)
13891389
self.with_raw_response = AsyncTelnyxWithRawResponse(self)
13901390
self.with_streaming_response = AsyncTelnyxWithStreamedResponse(self)
13911391

@@ -2085,7 +2085,7 @@ def __init__(self, client: Telnyx) -> None:
20852085
client.wireless_blocklists
20862086
)
20872087
self.partner_campaigns = partner_campaigns.PartnerCampaignsResourceWithRawResponse(client.partner_campaigns)
2088-
self.client = client.ClientResourceWithRawResponse(client.client)
2088+
self.well_known = well_known.WellKnownResourceWithRawResponse(client.well_known)
20892089

20902090
self.create_bucket = to_raw_response_wrapper(
20912091
client.create_bucket,
@@ -2434,7 +2434,7 @@ def __init__(self, client: AsyncTelnyx) -> None:
24342434
self.partner_campaigns = partner_campaigns.AsyncPartnerCampaignsResourceWithRawResponse(
24352435
client.partner_campaigns
24362436
)
2437-
self.client = client.AsyncClientResourceWithRawResponse(client.client)
2437+
self.well_known = well_known.AsyncWellKnownResourceWithRawResponse(client.well_known)
24382438

24392439
self.create_bucket = async_to_raw_response_wrapper(
24402440
client.create_bucket,
@@ -2789,7 +2789,7 @@ def __init__(self, client: Telnyx) -> None:
27892789
self.partner_campaigns = partner_campaigns.PartnerCampaignsResourceWithStreamingResponse(
27902790
client.partner_campaigns
27912791
)
2792-
self.client = client.ClientResourceWithStreamingResponse(client.client)
2792+
self.well_known = well_known.WellKnownResourceWithStreamingResponse(client.well_known)
27932793

27942794
self.create_bucket = to_streamed_response_wrapper(
27952795
client.create_bucket,
@@ -3186,7 +3186,7 @@ def __init__(self, client: AsyncTelnyx) -> None:
31863186
self.partner_campaigns = partner_campaigns.AsyncPartnerCampaignsResourceWithStreamingResponse(
31873187
client.partner_campaigns
31883188
)
3189-
self.client = client.AsyncClientResourceWithStreamingResponse(client.client)
3189+
self.well_known = well_known.AsyncWellKnownResourceWithStreamingResponse(client.well_known)
31903190

31913191
self.create_bucket = async_to_streamed_response_wrapper(
31923192
client.create_bucket,

src/telnyx/resources/__init__.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,6 @@
104104
TexmlResourceWithStreamingResponse,
105105
AsyncTexmlResourceWithStreamingResponse,
106106
)
107-
from .client import (
108-
ClientResource,
109-
AsyncClientResource,
110-
ClientResourceWithRawResponse,
111-
AsyncClientResourceWithRawResponse,
112-
ClientResourceWithStreamingResponse,
113-
AsyncClientResourceWithStreamingResponse,
114-
)
115107
from .legacy import (
116108
LegacyResource,
117109
AsyncLegacyResource,
@@ -305,6 +297,14 @@
305297
RecordingsResourceWithStreamingResponse,
306298
AsyncRecordingsResourceWithStreamingResponse,
307299
)
300+
from .well_known import (
301+
WellKnownResource,
302+
AsyncWellKnownResource,
303+
WellKnownResourceWithRawResponse,
304+
AsyncWellKnownResourceWithRawResponse,
305+
WellKnownResourceWithStreamingResponse,
306+
AsyncWellKnownResourceWithStreamingResponse,
307+
)
308308
from .call_events import (
309309
CallEventsResource,
310310
AsyncCallEventsResource,
@@ -2113,10 +2113,10 @@
21132113
"AsyncPartnerCampaignsResourceWithRawResponse",
21142114
"PartnerCampaignsResourceWithStreamingResponse",
21152115
"AsyncPartnerCampaignsResourceWithStreamingResponse",
2116-
"ClientResource",
2117-
"AsyncClientResource",
2118-
"ClientResourceWithRawResponse",
2119-
"AsyncClientResourceWithRawResponse",
2120-
"ClientResourceWithStreamingResponse",
2121-
"AsyncClientResourceWithStreamingResponse",
2116+
"WellKnownResource",
2117+
"AsyncWellKnownResource",
2118+
"WellKnownResourceWithRawResponse",
2119+
"AsyncWellKnownResourceWithRawResponse",
2120+
"WellKnownResourceWithStreamingResponse",
2121+
"AsyncWellKnownResourceWithStreamingResponse",
21222122
]

src/telnyx/resources/client/__init__.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/telnyx/resources/client/client.py

Lines changed: 0 additions & 102 deletions
This file was deleted.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44

55
import httpx
66

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 (
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 (
1111
to_raw_response_wrapper,
1212
to_streamed_response_wrapper,
1313
async_to_raw_response_wrapper,
1414
async_to_streamed_response_wrapper,
1515
)
16-
from ..._base_client import make_request_options
17-
from ...types.client.well_known_retrieve_protected_resource_metadata_response import (
16+
from .._base_client import make_request_options
17+
from ..types.well_known_retrieve_protected_resource_metadata_response import (
1818
WellKnownRetrieveProtectedResourceMetadataResponse,
1919
)
20-
from ...types.client.well_known_retrieve_authorization_server_metadata_response import (
20+
from ..types.well_known_retrieve_authorization_server_metadata_response import (
2121
WellKnownRetrieveAuthorizationServerMetadataResponse,
2222
)
2323

src/telnyx/types/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,9 +1329,15 @@
13291329
from .messaging_hosted_number_order_check_eligibility_response import (
13301330
MessagingHostedNumberOrderCheckEligibilityResponse as MessagingHostedNumberOrderCheckEligibilityResponse,
13311331
)
1332+
from .well_known_retrieve_protected_resource_metadata_response import (
1333+
WellKnownRetrieveProtectedResourceMetadataResponse as WellKnownRetrieveProtectedResourceMetadataResponse,
1334+
)
13321335
from .number_order_phone_number_update_requirement_group_params import (
13331336
NumberOrderPhoneNumberUpdateRequirementGroupParams as NumberOrderPhoneNumberUpdateRequirementGroupParams,
13341337
)
1338+
from .well_known_retrieve_authorization_server_metadata_response import (
1339+
WellKnownRetrieveAuthorizationServerMetadataResponse as WellKnownRetrieveAuthorizationServerMetadataResponse,
1340+
)
13351341
from .customer_service_record_verify_phone_number_coverage_params import (
13361342
CustomerServiceRecordVerifyPhoneNumberCoverageParams as CustomerServiceRecordVerifyPhoneNumberCoverageParams,
13371343
)

src/telnyx/types/client/__init__.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/telnyx/types/client/well_known_retrieve_authorization_server_metadata_response.py renamed to src/telnyx/types/well_known_retrieve_authorization_server_metadata_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from typing import List, Optional
44

5-
from ..._models import BaseModel
5+
from .._models import BaseModel
66

77
__all__ = ["WellKnownRetrieveAuthorizationServerMetadataResponse"]
88

0 commit comments

Comments
 (0)