Skip to content

Commit 7142ee9

Browse files
SDK regeneration (#688)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 3fa7c7f commit 7142ee9

File tree

57 files changed

+587
-574
lines changed

Some content is hidden

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

57 files changed

+587
-574
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "elevenlabs"
33

44
[tool.poetry]
55
name = "elevenlabs"
6-
version = "v2.23.0"
6+
version = "v2.24.0"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 21 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -9572,46 +9572,19 @@ Add a new tool to the available tools in the workspace.
95729572
```python
95739573
from elevenlabs import (
95749574
ElevenLabs,
9575-
LiteralJsonSchemaProperty,
9576-
ObjectJsonSchemaPropertyInput,
9577-
QueryParamsJsonSchema,
95789575
ToolRequestModel,
9579-
ToolRequestModelToolConfig_ApiIntegrationWebhook,
9580-
WebhookToolApiSchemaConfigInput,
9576+
ToolRequestModelToolConfig_Client,
95819577
)
95829578

95839579
client = ElevenLabs(
95849580
api_key="YOUR_API_KEY",
95859581
)
95869582
client.conversational_ai.tools.create(
95879583
request=ToolRequestModel(
9588-
tool_config=ToolRequestModelToolConfig_ApiIntegrationWebhook(
9584+
tool_config=ToolRequestModelToolConfig_Client(
95899585
name="name",
95909586
description="description",
9591-
api_integration_id="api_integration_id",
9592-
api_integration_connection_id="api_integration_connection_id",
9593-
base_api_schema=WebhookToolApiSchemaConfigInput(
9594-
url="https://example.com/agents/{agent_id}",
9595-
method="GET",
9596-
path_params_schema={
9597-
"agent_id": LiteralJsonSchemaProperty(
9598-
type="string",
9599-
)
9600-
},
9601-
query_params_schema=QueryParamsJsonSchema(
9602-
properties={
9603-
"key": LiteralJsonSchemaProperty(
9604-
type="string",
9605-
description="My property",
9606-
is_system_provided=False,
9607-
dynamic_variable="",
9608-
constant_value="",
9609-
)
9610-
},
9611-
),
9612-
request_body_schema=ObjectJsonSchemaPropertyInput(),
9613-
request_headers={"Authorization": "Bearer {api_key}"},
9614-
),
9587+
expects_response=False,
96159588
),
96169589
),
96179590
)
@@ -9819,12 +9792,8 @@ Update tool that is available in the workspace.
98199792
```python
98209793
from elevenlabs import (
98219794
ElevenLabs,
9822-
LiteralJsonSchemaProperty,
9823-
ObjectJsonSchemaPropertyInput,
9824-
QueryParamsJsonSchema,
98259795
ToolRequestModel,
9826-
ToolRequestModelToolConfig_ApiIntegrationWebhook,
9827-
WebhookToolApiSchemaConfigInput,
9796+
ToolRequestModelToolConfig_Client,
98289797
)
98299798

98309799
client = ElevenLabs(
@@ -9833,33 +9802,10 @@ client = ElevenLabs(
98339802
client.conversational_ai.tools.update(
98349803
tool_id="tool_id",
98359804
request=ToolRequestModel(
9836-
tool_config=ToolRequestModelToolConfig_ApiIntegrationWebhook(
9805+
tool_config=ToolRequestModelToolConfig_Client(
98379806
name="name",
98389807
description="description",
9839-
api_integration_id="api_integration_id",
9840-
api_integration_connection_id="api_integration_connection_id",
9841-
base_api_schema=WebhookToolApiSchemaConfigInput(
9842-
url="https://example.com/agents/{agent_id}",
9843-
method="GET",
9844-
path_params_schema={
9845-
"agent_id": LiteralJsonSchemaProperty(
9846-
type="string",
9847-
)
9848-
},
9849-
query_params_schema=QueryParamsJsonSchema(
9850-
properties={
9851-
"key": LiteralJsonSchemaProperty(
9852-
type="string",
9853-
description="My property",
9854-
is_system_provided=False,
9855-
dynamic_variable="",
9856-
constant_value="",
9857-
)
9858-
},
9859-
),
9860-
request_body_schema=ObjectJsonSchemaPropertyInput(),
9861-
request_headers={"Authorization": "Bearer {api_key}"},
9862-
),
9808+
expects_response=False,
98639809
),
98649810
),
98659811
)
@@ -10546,14 +10492,6 @@ client.conversational_ai.batch_calls.create(
1054610492
<dl>
1054710493
<dd>
1054810494

10549-
**agent_whatsapp_business_account_id:** `typing.Optional[str]`
10550-
10551-
</dd>
10552-
</dl>
10553-
10554-
<dl>
10555-
<dd>
10556-
1055710495
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1055810496

1055910497
</dd>
@@ -14220,7 +14158,7 @@ client.dubbing.resource.render(
1422014158
<dl>
1422114159
<dd>
1422214160

14223-
**language:** `str` — Render this language
14161+
**language:** `ResourceRenderRequestLanguage` — The target language code to render, eg. 'es'. To render the source track use 'original'.
1422414162

1422514163
</dd>
1422614164
</dl>
@@ -14372,6 +14310,7 @@ client = ElevenLabs(
1437214310
client.dubbing.transcript.get_transcript_for_dub(
1437314311
dubbing_id="dubbing_id",
1437414312
language_code="language_code",
14313+
format_type="srt",
1437514314
)
1437614315

1437714316
```
@@ -14404,7 +14343,7 @@ client.dubbing.transcript.get_transcript_for_dub(
1440414343
<dl>
1440514344
<dd>
1440614345

14407-
**format_type:** `typing.Optional[TranscriptGetTranscriptForDubRequestFormatType]` — Format to use for the subtitle file, either 'srt' or 'webvtt'
14346+
**format_type:** `typing.Optional[TranscriptGetTranscriptForDubRequestFormatType]` — Format to return transcript in. For subtitles use either 'srt' or 'webvtt', and for a full transcript use 'json'. The 'json' format is not yet supported for Dubbing Studio.
1440814347

1440914348
</dd>
1441014349
</dl>
@@ -17862,7 +17801,7 @@ client.text_to_voice.preview.stream(
1786217801
</details>
1786317802

1786417803
## Tokens SingleUse
17865-
<details><summary><code>client.tokens.single_use.<a href="src/elevenlabs/tokens/single_use/client.py">create</a>()</code></summary>
17804+
<details><summary><code>client.tokens.single_use.<a href="src/elevenlabs/tokens/single_use/client.py">create</a>(...)</code></summary>
1786617805
<dl>
1786717806
<dd>
1786817807

@@ -17894,7 +17833,9 @@ from elevenlabs import ElevenLabs
1789417833
client = ElevenLabs(
1789517834
api_key="YOUR_API_KEY",
1789617835
)
17897-
client.tokens.single_use.create()
17836+
client.tokens.single_use.create(
17837+
token_type="realtime_scribe",
17838+
)
1789817839

1789917840
```
1790017841
</dd>
@@ -17910,6 +17851,14 @@ client.tokens.single_use.create()
1791017851
<dl>
1791117852
<dd>
1791217853

17854+
**token_type:** `SingleUseTokenType`
17855+
17856+
</dd>
17857+
</dl>
17858+
17859+
<dl>
17860+
<dd>
17861+
1791317862
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1791417863

1791517864
</dd>

0 commit comments

Comments
 (0)