Skip to content

Commit e8baa03

Browse files
Fix codegen issues
1 parent bb6b6ee commit e8baa03

23 files changed

Lines changed: 424 additions & 1482 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1028
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-06511aeb44453ff12a8a845a23f5ec2a3a75c134a5034643bf52e75ead6df4af.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-97ed6b5d93cacde716aea17a5338dd32187188fdb17534a478b80bd25126092f.yml
33
openapi_spec_hash: bc84cc2c68749e9ae6548119d44ccb33
4-
config_hash: 02e7c7ba3013d6df7b1e3f9ff6cc1d4f
4+
config_hash: 707cdaf772ca80aac956b75980b6a159

api.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5580,10 +5580,12 @@ Types:
55805580

55815581
```python
55825582
from telnyx.types import (
5583+
PronunciationDictAliasItem,
5584+
PronunciationDictData,
5585+
PronunciationDictPhonemeItem,
55835586
PronunciationDictCreateResponse,
55845587
PronunciationDictRetrieveResponse,
55855588
PronunciationDictUpdateResponse,
5586-
PronunciationDictListResponse,
55875589
)
55885590
```
55895591

@@ -5592,5 +5594,5 @@ Methods:
55925594
- <code title="post /pronunciation_dicts">client.pronunciation_dicts.<a href="./src/telnyx/resources/pronunciation_dicts.py">create</a>(\*\*<a href="src/telnyx/types/pronunciation_dict_create_params.py">params</a>) -> <a href="./src/telnyx/types/pronunciation_dict_create_response.py">PronunciationDictCreateResponse</a></code>
55935595
- <code title="get /pronunciation_dicts/{id}">client.pronunciation_dicts.<a href="./src/telnyx/resources/pronunciation_dicts.py">retrieve</a>(id) -> <a href="./src/telnyx/types/pronunciation_dict_retrieve_response.py">PronunciationDictRetrieveResponse</a></code>
55945596
- <code title="patch /pronunciation_dicts/{id}">client.pronunciation_dicts.<a href="./src/telnyx/resources/pronunciation_dicts.py">update</a>(id, \*\*<a href="src/telnyx/types/pronunciation_dict_update_params.py">params</a>) -> <a href="./src/telnyx/types/pronunciation_dict_update_response.py">PronunciationDictUpdateResponse</a></code>
5595-
- <code title="get /pronunciation_dicts">client.pronunciation_dicts.<a href="./src/telnyx/resources/pronunciation_dicts.py">list</a>(\*\*<a href="src/telnyx/types/pronunciation_dict_list_params.py">params</a>) -> <a href="./src/telnyx/types/pronunciation_dict_list_response.py">SyncDefaultFlatPagination[PronunciationDictListResponse]</a></code>
5597+
- <code title="get /pronunciation_dicts">client.pronunciation_dicts.<a href="./src/telnyx/resources/pronunciation_dicts.py">list</a>(\*\*<a href="src/telnyx/types/pronunciation_dict_list_params.py">params</a>) -> <a href="./src/telnyx/types/pronunciation_dict_data.py">SyncDefaultFlatPagination[PronunciationDictData]</a></code>
55965598
- <code title="delete /pronunciation_dicts/{id}">client.pronunciation_dicts.<a href="./src/telnyx/resources/pronunciation_dicts.py">delete</a>(id) -> None</code>

src/telnyx/resources/pronunciation_dicts.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
)
2020
from ..pagination import SyncDefaultFlatPagination, AsyncDefaultFlatPagination
2121
from .._base_client import AsyncPaginator, make_request_options
22-
from ..types.pronunciation_dict_list_response import PronunciationDictListResponse
22+
from ..types.pronunciation_dict_data import PronunciationDictData
2323
from ..types.pronunciation_dict_create_response import PronunciationDictCreateResponse
2424
from ..types.pronunciation_dict_update_response import PronunciationDictUpdateResponse
2525
from ..types.pronunciation_dict_retrieve_response import PronunciationDictRetrieveResponse
@@ -214,7 +214,7 @@ def list(
214214
extra_query: Query | None = None,
215215
extra_body: Body | None = None,
216216
timeout: float | httpx.Timeout | None | NotGiven = not_given,
217-
) -> SyncDefaultFlatPagination[PronunciationDictListResponse]:
217+
) -> SyncDefaultFlatPagination[PronunciationDictData]:
218218
"""List all pronunciation dictionaries for the authenticated organization.
219219
220220
Results
@@ -235,7 +235,7 @@ def list(
235235
"""
236236
return self._get_api_list(
237237
"/pronunciation_dicts",
238-
page=SyncDefaultFlatPagination[PronunciationDictListResponse],
238+
page=SyncDefaultFlatPagination[PronunciationDictData],
239239
options=make_request_options(
240240
extra_headers=extra_headers,
241241
extra_query=extra_query,
@@ -249,7 +249,7 @@ def list(
249249
pronunciation_dict_list_params.PronunciationDictListParams,
250250
),
251251
),
252-
model=PronunciationDictListResponse,
252+
model=PronunciationDictData,
253253
)
254254

255255
def delete(
@@ -474,7 +474,7 @@ def list(
474474
extra_query: Query | None = None,
475475
extra_body: Body | None = None,
476476
timeout: float | httpx.Timeout | None | NotGiven = not_given,
477-
) -> AsyncPaginator[PronunciationDictListResponse, AsyncDefaultFlatPagination[PronunciationDictListResponse]]:
477+
) -> AsyncPaginator[PronunciationDictData, AsyncDefaultFlatPagination[PronunciationDictData]]:
478478
"""List all pronunciation dictionaries for the authenticated organization.
479479
480480
Results
@@ -495,7 +495,7 @@ def list(
495495
"""
496496
return self._get_api_list(
497497
"/pronunciation_dicts",
498-
page=AsyncDefaultFlatPagination[PronunciationDictListResponse],
498+
page=AsyncDefaultFlatPagination[PronunciationDictData],
499499
options=make_request_options(
500500
extra_headers=extra_headers,
501501
extra_query=extra_query,
@@ -509,7 +509,7 @@ def list(
509509
pronunciation_dict_list_params.PronunciationDictListParams,
510510
),
511511
),
512-
model=PronunciationDictListResponse,
512+
model=PronunciationDictData,
513513
)
514514

515515
async def delete(

src/telnyx/resources/texml/accounts/calls/calls.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable
5+
from typing import Iterable, Optional
66
from typing_extensions import Literal, overload
77

88
import httpx
@@ -265,7 +265,7 @@ def calls(
265265
status_callback_method: Literal["GET", "POST"] | Omit = omit,
266266
supervise_call_sid: str | Omit = omit,
267267
supervising_role: Literal["barge", "whisper", "monitor"] | Omit = omit,
268-
texml: object | Omit = omit,
268+
texml: Optional[str] | Omit = omit,
269269
time_limit: int | Omit = omit,
270270
timeout_seconds: int | Omit = omit,
271271
to: str | Omit = omit,
@@ -449,7 +449,7 @@ def calls(
449449
timeout_seconds: int | Omit = omit,
450450
to: str | Omit = omit,
451451
trim: Literal["trim-silence", "do-not-trim"] | Omit = omit,
452-
url: object | Omit = omit,
452+
url: Optional[str] | Omit = omit,
453453
url_method: Literal["GET", "POST"] | Omit = omit,
454454
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
455455
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -625,12 +625,12 @@ def calls(
625625
status_callback_method: Literal["GET", "POST"] | Omit = omit,
626626
supervise_call_sid: str | Omit = omit,
627627
supervising_role: Literal["barge", "whisper", "monitor"] | Omit = omit,
628-
texml: object | Omit = omit,
628+
texml: Optional[str] | Omit = omit,
629629
time_limit: int | Omit = omit,
630630
timeout_seconds: int | Omit = omit,
631631
to: str | Omit = omit,
632632
trim: Literal["trim-silence", "do-not-trim"] | Omit = omit,
633-
url: object | Omit = omit,
633+
url: Optional[str] | Omit = omit,
634634
url_method: Literal["GET", "POST"] | Omit = omit,
635635
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
636636
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -768,7 +768,7 @@ def calls(
768768
self,
769769
account_sid: str,
770770
*,
771-
url: str | object | Omit = omit,
771+
url: str | Optional[str] | Omit = omit,
772772
application_sid: str | Omit = omit,
773773
async_amd: bool | Omit = omit,
774774
async_amd_status_callback: str | Omit = omit,
@@ -806,7 +806,7 @@ def calls(
806806
status_callback_method: Literal["GET", "POST"] | Omit = omit,
807807
supervise_call_sid: str | Omit = omit,
808808
supervising_role: Literal["barge", "whisper", "monitor"] | Omit = omit,
809-
texml: object | str | Omit = omit,
809+
texml: Optional[str] | str | Omit = omit,
810810
time_limit: int | Omit = omit,
811811
timeout_seconds: int | Omit = omit,
812812
to: str | Omit = omit,
@@ -1328,7 +1328,7 @@ async def calls(
13281328
status_callback_method: Literal["GET", "POST"] | Omit = omit,
13291329
supervise_call_sid: str | Omit = omit,
13301330
supervising_role: Literal["barge", "whisper", "monitor"] | Omit = omit,
1331-
texml: object | Omit = omit,
1331+
texml: Optional[str] | Omit = omit,
13321332
time_limit: int | Omit = omit,
13331333
timeout_seconds: int | Omit = omit,
13341334
to: str | Omit = omit,
@@ -1512,7 +1512,7 @@ async def calls(
15121512
timeout_seconds: int | Omit = omit,
15131513
to: str | Omit = omit,
15141514
trim: Literal["trim-silence", "do-not-trim"] | Omit = omit,
1515-
url: object | Omit = omit,
1515+
url: Optional[str] | Omit = omit,
15161516
url_method: Literal["GET", "POST"] | Omit = omit,
15171517
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
15181518
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1688,12 +1688,12 @@ async def calls(
16881688
status_callback_method: Literal["GET", "POST"] | Omit = omit,
16891689
supervise_call_sid: str | Omit = omit,
16901690
supervising_role: Literal["barge", "whisper", "monitor"] | Omit = omit,
1691-
texml: object | Omit = omit,
1691+
texml: Optional[str] | Omit = omit,
16921692
time_limit: int | Omit = omit,
16931693
timeout_seconds: int | Omit = omit,
16941694
to: str | Omit = omit,
16951695
trim: Literal["trim-silence", "do-not-trim"] | Omit = omit,
1696-
url: object | Omit = omit,
1696+
url: Optional[str] | Omit = omit,
16971697
url_method: Literal["GET", "POST"] | Omit = omit,
16981698
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
16991699
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1831,7 +1831,7 @@ async def calls(
18311831
self,
18321832
account_sid: str,
18331833
*,
1834-
url: str | object | Omit = omit,
1834+
url: str | Optional[str] | Omit = omit,
18351835
application_sid: str | Omit = omit,
18361836
async_amd: bool | Omit = omit,
18371837
async_amd_status_callback: str | Omit = omit,
@@ -1869,7 +1869,7 @@ async def calls(
18691869
status_callback_method: Literal["GET", "POST"] | Omit = omit,
18701870
supervise_call_sid: str | Omit = omit,
18711871
supervising_role: Literal["barge", "whisper", "monitor"] | Omit = omit,
1872-
texml: object | str | Omit = omit,
1872+
texml: Optional[str] | str | Omit = omit,
18731873
time_limit: int | Omit = omit,
18741874
timeout_seconds: int | Omit = omit,
18751875
to: str | Omit = omit,

0 commit comments

Comments
 (0)