typecast-python 0.3.12__py3-none-any.whl → 0.3.13__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.
typecast/_user_agent.py CHANGED
@@ -19,10 +19,12 @@ def attribution_suffix(
19
19
  if (
20
20
  not isinstance(source, str)
21
21
  or not isinstance(generated_by, str)
22
- or source not in {"llms", "skill"}
22
+ or source not in {"llms", "skill", "api-page", "api-docs"}
23
23
  or not generated_by
24
24
  ):
25
- raise ValueError("source (llms or skill) and generated_by must be provided together")
25
+ raise ValueError(
26
+ "source (llms, skill, api-page, or api-docs) and generated_by must be provided together"
27
+ )
26
28
  if not _GENERATED_BY_PATTERN.fullmatch(generated_by):
27
29
  raise ValueError("generated_by must be a lowercase token of at most 32 characters")
28
30
  return f" typecast-integration/1 (source={source}; generated_by={generated_by})"
typecast/async_client.py CHANGED
@@ -90,7 +90,7 @@ class AsyncTypecast:
90
90
  __aenter__ will not create a new session and __aexit__ will not close it
91
91
  (the caller owns its lifecycle). Auth headers (`X-API-KEY`, `User-Agent`)
92
92
  are attached per-request via `_request_headers()`.
93
- source: Integration source, either 'llms' or 'skill'.
93
+ source: Integration source: 'llms', 'skill', 'api-page', or 'api-docs'.
94
94
  generated_by: Lowercase token identifying the coding agent.
95
95
 
96
96
  Raises:
typecast/client.py CHANGED
@@ -124,7 +124,7 @@ class Typecast:
124
124
  the client will not create a new session nor close it; auth headers
125
125
  (`X-API-KEY`, `User-Agent`) are attached per-request via
126
126
  `_request_headers()`.
127
- source: Integration source, either 'llms' or 'skill'.
127
+ source: Integration source: 'llms', 'skill', 'api-page', or 'api-docs'.
128
128
  generated_by: Lowercase token identifying the coding agent.
129
129
 
130
130
  Raises:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: typecast-python
3
- Version: 0.3.12
3
+ Version: 0.3.13
4
4
  Summary: Official Typecast Python SDK - Convert text to lifelike speech using AI-powered voices
5
5
  Project-URL: Homepage, https://typecast.ai
6
6
  Project-URL: Documentation, https://typecast.ai/docs/overview
@@ -1,9 +1,9 @@
1
1
  typecast/__init__.py,sha256=L6m0Z1jn1UgGjPp9AFiTwhHk9DVV_B4WrLfQDEfbcZI,1093
2
2
  typecast/_httpx_compat.py,sha256=Xw4AvybiiXyaA2WATBUYHwST8clE8R7R0flLMpdvBC4,6170
3
- typecast/_user_agent.py,sha256=-QTjpg1fDDsPI_n5sYf-4zPqna_24w0TWqp8OknTthQ,3350
3
+ typecast/_user_agent.py,sha256=dCiHkvCuTQOz5qYxk4vmxEzL7qZUo9ceKmjXsQUM5wI,3417
4
4
  typecast/_voice_clone.py,sha256=TN2tbB3b5lC5uFCBnbERhz37bNJlbv6VZ-vj70EfTs4,3464
5
- typecast/async_client.py,sha256=leZ_DGgeJBDCSr7LJCQ6VxCEt-sjYK8X2khEZIsLO7w,23400
6
- typecast/client.py,sha256=k-dyxf-JcgXD0WFDW2_K2iRag9iwkTW_wt30z26Qi-0,22756
5
+ typecast/async_client.py,sha256=igeZye1Npjf1bFeiTuKMFEN2BxgWmR8DLToP7m3gNxw,23418
6
+ typecast/client.py,sha256=08YEMhSbTqcVlW54ZC6fyJiGxR3CnODrMT4eaFsqjaw,22774
7
7
  typecast/composer.py,sha256=pkRSVIv99uuAwPyOXw7KSW7NAkqvAUK4hCS5pmBb7bA,7313
8
8
  typecast/conf.py,sha256=yfOHYZDvIshWWMriN5wE0GFPR8AX3zv4Rg2655OvA9Q,724
9
9
  typecast/exceptions.py,sha256=Y0ZzYebe8zOSOSAHbXfKR0G_RJgdmZXxi15Z7ZxPLIk,1568
@@ -13,7 +13,7 @@ typecast/models/error.py,sha256=XomIjx7jvlCjItqzJuCAT4mXC9jwTjxR8lLDUk6P8KA,152
13
13
  typecast/models/subscription.py,sha256=EIaAAo3cCRw8LYT_O6D9AVwxqIHrWCijzl4UTx7FZB8,894
14
14
  typecast/models/tts.py,sha256=xiO1e936vFr7vZqUErTEhexydoaMem6BcY_x1A1zFow,16495
15
15
  typecast/models/voices.py,sha256=3UeBLwAlaNbQQUrt7FO18zqczLoP7jmi2x68yaUtllU,2687
16
- typecast_python-0.3.12.dist-info/METADATA,sha256=RrOSDitrzeRnGq2syDnkVdWv4H0Cb097jASB02sFIJM,25947
17
- typecast_python-0.3.12.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
18
- typecast_python-0.3.12.dist-info/licenses/LICENSE,sha256=HvtJ-S89uUkuYmt-OvVk4MRxmzwtbn84__qJtSrGU2Q,11348
19
- typecast_python-0.3.12.dist-info/RECORD,,
16
+ typecast_python-0.3.13.dist-info/METADATA,sha256=LmoUpiY-EyHT3sHfSK2bt2qFPlL-IBq_JL_wtbHM8-Y,25947
17
+ typecast_python-0.3.13.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
18
+ typecast_python-0.3.13.dist-info/licenses/LICENSE,sha256=HvtJ-S89uUkuYmt-OvVk4MRxmzwtbn84__qJtSrGU2Q,11348
19
+ typecast_python-0.3.13.dist-info/RECORD,,