syllable-sdk 0.41.14__py3-none-any.whl → 0.41.23__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.
syllable_sdk/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "syllable-sdk"
6
- __version__: str = "0.41.14"
6
+ __version__: str = "0.41.23"
7
7
  __openapi_doc_version__: str = "0.0.2"
8
- __gen_version__: str = "2.751.0"
9
- __user_agent__: str = "speakeasy-sdk/python 0.41.14 2.751.0 0.0.2 syllable-sdk"
8
+ __gen_version__: str = "2.755.9"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.41.23 2.755.9 0.0.2 syllable-sdk"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -696,10 +696,6 @@ if TYPE_CHECKING:
696
696
  PronunciationOverridesDictionary,
697
697
  PronunciationOverridesDictionaryTypedDict,
698
698
  )
699
- from .pronunciations_download_csvop import (
700
- PronunciationsDownloadCsvResponse,
701
- PronunciationsDownloadCsvResponseTypedDict,
702
- )
703
699
  from .pronunciationscsvuploadresponse import (
704
700
  PronunciationsCsvUploadResponse,
705
701
  PronunciationsCsvUploadResponseTypedDict,
@@ -1392,8 +1388,6 @@ __all__ = [
1392
1388
  "PronunciationOverridesDictionaryTypedDict",
1393
1389
  "PronunciationsCsvUploadResponse",
1394
1390
  "PronunciationsCsvUploadResponseTypedDict",
1395
- "PronunciationsDownloadCsvResponse",
1396
- "PronunciationsDownloadCsvResponseTypedDict",
1397
1391
  "RequestStatus",
1398
1392
  "RoleCreateRequest",
1399
1393
  "RoleCreateRequestTypedDict",
@@ -2034,8 +2028,6 @@ _dynamic_imports: dict[str, str] = {
2034
2028
  "PronunciationOverrideTypedDict": ".pronunciationoverride",
2035
2029
  "PronunciationOverridesDictionary": ".pronunciationoverridesdictionary",
2036
2030
  "PronunciationOverridesDictionaryTypedDict": ".pronunciationoverridesdictionary",
2037
- "PronunciationsDownloadCsvResponse": ".pronunciations_download_csvop",
2038
- "PronunciationsDownloadCsvResponseTypedDict": ".pronunciations_download_csvop",
2039
2031
  "PronunciationsCsvUploadResponse": ".pronunciationscsvuploadresponse",
2040
2032
  "PronunciationsCsvUploadResponseTypedDict": ".pronunciationscsvuploadresponse",
2041
2033
  "RequestStatus": ".requeststatus",
@@ -1,6 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from .basesdk import BaseSDK
4
+ import httpx
4
5
  from syllable_sdk import errors, models, utils
5
6
  from syllable_sdk._hooks import HookContext
6
7
  from syllable_sdk.types import BaseModel, OptionalNullable, UNSET
@@ -317,7 +318,7 @@ class Pronunciations(BaseSDK):
317
318
  server_url: Optional[str] = None,
318
319
  timeout_ms: Optional[int] = None,
319
320
  http_headers: Optional[Mapping[str, str]] = None,
320
- ) -> models.PronunciationsDownloadCsvResponse:
321
+ ) -> httpx.Response:
321
322
  r"""Download Pronunciations Csv
322
323
 
323
324
  :param retries: Override the default retry configuration for this method
@@ -375,9 +376,7 @@ class Pronunciations(BaseSDK):
375
376
  )
376
377
 
377
378
  if utils.match_response(http_res, "200", "text/csv"):
378
- return models.PronunciationsDownloadCsvResponse(
379
- result=http_res, headers=utils.get_response_headers(http_res.headers)
380
- )
379
+ return http_res
381
380
  if utils.match_response(http_res, "4XX", "*"):
382
381
  http_res_text = utils.stream_to_text(http_res)
383
382
  raise errors.APIError("API error occurred", http_res, http_res_text)
@@ -395,7 +394,7 @@ class Pronunciations(BaseSDK):
395
394
  server_url: Optional[str] = None,
396
395
  timeout_ms: Optional[int] = None,
397
396
  http_headers: Optional[Mapping[str, str]] = None,
398
- ) -> models.PronunciationsDownloadCsvResponse:
397
+ ) -> httpx.Response:
399
398
  r"""Download Pronunciations Csv
400
399
 
401
400
  :param retries: Override the default retry configuration for this method
@@ -453,9 +452,7 @@ class Pronunciations(BaseSDK):
453
452
  )
454
453
 
455
454
  if utils.match_response(http_res, "200", "text/csv"):
456
- return models.PronunciationsDownloadCsvResponse(
457
- result=http_res, headers=utils.get_response_headers(http_res.headers)
458
- )
455
+ return http_res
459
456
  if utils.match_response(http_res, "4XX", "*"):
460
457
  http_res_text = await utils.stream_to_text_async(http_res)
461
458
  raise errors.APIError("API error occurred", http_res, http_res_text)
@@ -1,12 +1,26 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
- from typing import Any, Optional
3
+ from typing import Any, Optional, Type, TypeVar, overload
4
4
 
5
5
  import httpx
6
6
 
7
7
  from .serializers import unmarshal_json
8
8
  from syllable_sdk import errors
9
9
 
10
+ T = TypeVar("T")
11
+
12
+
13
+ @overload
14
+ def unmarshal_json_response(
15
+ typ: Type[T], http_res: httpx.Response, body: Optional[str] = None
16
+ ) -> T: ...
17
+
18
+
19
+ @overload
20
+ def unmarshal_json_response(
21
+ typ: Any, http_res: httpx.Response, body: Optional[str] = None
22
+ ) -> Any: ...
23
+
10
24
 
11
25
  def unmarshal_json_response(
12
26
  typ: Any, http_res: httpx.Response, body: Optional[str] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syllable-sdk
3
- Version: 0.41.14
3
+ Version: 0.41.23
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Syllable
6
6
  Requires-Python: >=3.9.2
@@ -3,7 +3,7 @@ syllable_sdk/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU
3
3
  syllable_sdk/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
4
4
  syllable_sdk/_hooks/sdkhooks.py,sha256=aRu2TMpxilLKDrG6EIy6uQd6IrBH7kaHOoVkd7GIcus,2562
5
5
  syllable_sdk/_hooks/types.py,sha256=uwJkn18g4_rLZhVtKdE6Ed5YcCjGWSqVgN9-PWqV7Ho,3053
6
- syllable_sdk/_version.py,sha256=GrPK3l2ACP_fX2F5LQdhbrPjGRgwjmZL47dmFPStBx8,470
6
+ syllable_sdk/_version.py,sha256=Tukkp8n7moH0ncAXh3d97CEeasOUaNzXXsLqyMEUkXc,470
7
7
  syllable_sdk/agents.py,sha256=KV-3_nFZGBOQV0IAfjO3TFhorfr-PV6eeuTl6DL8AqI,46820
8
8
  syllable_sdk/basesdk.py,sha256=PCXez-bS_sOzXpRo7awDMzW4zqGJtktHytrlQfG1HNw,12211
9
9
  syllable_sdk/batches.py,sha256=I-mV5vzpM3BfO91NLmtwt-GKhrOjf351XWFLrdvIofU,73095
@@ -29,7 +29,7 @@ syllable_sdk/insights_sdk.py,sha256=_RfPEqpJGTYpGv0kxID2YQb-EbbhZKc82VwlB4xDON4,
29
29
  syllable_sdk/insights_tools.py,sha256=CcOobBAVx2kS8fj4Qk6eoPanmVpEMK7oH9IFaijDlQs,55143
30
30
  syllable_sdk/language_groups.py,sha256=6x4_4TNhVaz-O50iT1hpDQGfoH1OZdIR0-lL4y5Psbg,51531
31
31
  syllable_sdk/latency.py,sha256=qJT16MmojZcxXD2-x5i27FplrB4O_fAN264LsHbHckg,7453
32
- syllable_sdk/models/__init__.py,sha256=IO-o6wdU3f610vYFjZBURrwKxZ3-sghEFX8h58fVyhc,96830
32
+ syllable_sdk/models/__init__.py,sha256=4M4y_1K00h2p2ivL3xpqmz9QzwLU1BI55IRKUAbVtj8,96430
33
33
  syllable_sdk/models/agent_deleteop.py,sha256=tUbi-gwd4chf2Ba9O9lCvqDQw6YOnn7aheu8OPDzptc,629
34
34
  syllable_sdk/models/agent_get_by_idop.py,sha256=vj_xEbhOv3c8n3-B3uQnfTwHWdxYSE4k3Zvr58Yc9A4,484
35
35
  syllable_sdk/models/agent_listop.py,sha256=dJdQuIst1TF4xMol9XVdX4xOw8z06jyAQpm46_u0Ysk,5007
@@ -264,7 +264,6 @@ syllable_sdk/models/prompts_listop.py,sha256=s9iHPBo_MDmtVvwh3bqEFSgxmNVUqjNebO8
264
264
  syllable_sdk/models/promptupdaterequest.py,sha256=H-PEJ_C9DbHEjwpkyDfbehKPd6OyLmPPBdK11GqtXqM,4221
265
265
  syllable_sdk/models/pronunciationoverride.py,sha256=hh40Pm5_foJuS57H-umDw55KMFnYxM_fai5NbLFVu_Y,1120
266
266
  syllable_sdk/models/pronunciationoverridesdictionary.py,sha256=VAVif2n6qV2xIYNugb9DT52U33PwW1YXFDIGcFPWuPQ,2693
267
- syllable_sdk/models/pronunciations_download_csvop.py,sha256=xCoc57YcYPwYjhJ1ZcfvpaDePoEJ4HJuXIgyBSL0hlA,472
268
267
  syllable_sdk/models/pronunciationscsvuploadresponse.py,sha256=SjHZfk0je0BPUlYCU5BkO8eR7fup9B1EpKkafjra0JU,773
269
268
  syllable_sdk/models/requeststatus.py,sha256=zvE_ov3uTsDY0R2MAMrl2YCVvwkMLO1qREEogFcT5wQ,429
270
269
  syllable_sdk/models/rolecreaterequest.py,sha256=6p4WSFxwIeQrDvAy5hqu2_bSMC5o2IvgkX6I3_Tn_iY,1990
@@ -370,7 +369,7 @@ syllable_sdk/organizations.py,sha256=xe843aVTG2lTMY14LdpBDQCfgSd6hPDc8XacBwILLYU
370
369
  syllable_sdk/outbound.py,sha256=SKcqICw_VNT4vGDdu6b4TFh55hdA4Nh3QbZHbTs3MIc,902
371
370
  syllable_sdk/permissions.py,sha256=AVjhL5dMyMPACBpDZBxcocon4_OF5NqXooFQNFeGlvI,6895
372
371
  syllable_sdk/prompts.py,sha256=qu4yha2PdiG5ntsGjOgZIlwbRFaFlaCzvcxbm4cYKC0,53372
373
- syllable_sdk/pronunciations.py,sha256=eDd25xxtUAaqzeyiF-unpR5RL7hpAJICVSGg_9i_gNA,32972
372
+ syllable_sdk/pronunciations.py,sha256=pubjPXB4TzcyxupwgJGqECaYw54Y_5iFRymMMYtpO8Y,32667
374
373
  syllable_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
375
374
  syllable_sdk/roles.py,sha256=zt9FWrBptDZ4Lz3_aJYetvkEVdxSHE9fGXeRlR0MLhk,40394
376
375
  syllable_sdk/sdk.py,sha256=pokZi3ctgGEHa--dfC4taqX_wihqRxruFfKn8IIPTVM,16815
@@ -402,12 +401,12 @@ syllable_sdk/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4
402
401
  syllable_sdk/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
403
402
  syllable_sdk/utils/security.py,sha256=ISsENQVLMQAPDsJ09g-m67Bs9YaS1-H-Hhw89RBJA3E,6037
404
403
  syllable_sdk/utils/serializers.py,sha256=Hndks5M_rJXVub_N5lu0gKZQUoEmWrn6PN7R-0HwvOE,5999
405
- syllable_sdk/utils/unmarshal_json_response.py,sha256=ie3yrnympvSLf0qqOrnZFbnV_tswyDbbDjqFLU_IBzc,588
404
+ syllable_sdk/utils/unmarshal_json_response.py,sha256=DwB7Hxdo9JjWFMqsxsTznV6d_MIlLLLz-tq04at_X9s,877
406
405
  syllable_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
407
406
  syllable_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
408
407
  syllable_sdk/v1.py,sha256=BuA9D8PTM3ACw7t2p_wd6bIZblDM1JF8Scx0U2GPpCQ,53476
409
408
  syllable_sdk/voice_groups.py,sha256=m68HbT6z6SWtGWPoZaFFu6NIyNYIG7H9H5QkQuzlTQU,48512
410
409
  syllable_sdk/workflows.py,sha256=xHWT4Wl65qw2jvNZ5xF_MwpR5xd5147cSlQE_6gvfSo,64809
411
- syllable_sdk-0.41.14.dist-info/METADATA,sha256=q2liWdIf2AybyfCw9HgERDJfdMNyQBUYe2lSn1Pd7ls,49729
412
- syllable_sdk-0.41.14.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
413
- syllable_sdk-0.41.14.dist-info/RECORD,,
410
+ syllable_sdk-0.41.23.dist-info/METADATA,sha256=zGbzpWvatDugVjkCUS3P66nUby5ijKZfxoKdv1dlAyU,49729
411
+ syllable_sdk-0.41.23.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
412
+ syllable_sdk-0.41.23.dist-info/RECORD,,
@@ -1,18 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- import httpx
5
- from syllable_sdk.types import BaseModel
6
- from typing import Dict, List
7
- from typing_extensions import TypedDict
8
-
9
-
10
- class PronunciationsDownloadCsvResponseTypedDict(TypedDict):
11
- headers: Dict[str, List[str]]
12
- result: httpx.Response
13
-
14
-
15
- class PronunciationsDownloadCsvResponse(BaseModel):
16
- headers: Dict[str, List[str]]
17
-
18
- result: httpx.Response