Skip to content

Commit 78ed67e

Browse files
SDK regeneration (#740)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent f71bcd8 commit 78ed67e

File tree

74 files changed

+1569
-63
lines changed

Some content is hidden

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

74 files changed

+1569
-63
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "elevenlabs"
7-
version = "v2.37.0"
7+
version = "v2.38.0"
88
description = ""
99
readme = "README.md"
1010
authors = []

reference.md

Lines changed: 236 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6285,7 +6285,7 @@ client = ElevenLabs(
62856285
)
62866286
client.speech_to_text.convert(
62876287
enable_logging=True,
6288-
model_id="scribe_v1",
6288+
model_id="scribe_v2",
62896289
)
62906290

62916291
```
@@ -6984,7 +6984,7 @@ client.music.compose()
69846984
<dl>
69856985
<dd>
69866986

6987-
**store_for_inpainting:** `typing.Optional[bool]` — Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting API.
6987+
**store_for_inpainting:** `typing.Optional[bool]` — Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting feature.
69886988

69896989
</dd>
69906990
</dl>
@@ -7116,7 +7116,7 @@ client.music.compose_detailed()
71167116
<dl>
71177117
<dd>
71187118

7119-
**store_for_inpainting:** `typing.Optional[bool]` — Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting API.
7119+
**store_for_inpainting:** `typing.Optional[bool]` — Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting feature.
71207120

71217121
</dd>
71227122
</dl>
@@ -7256,7 +7256,7 @@ client.music.stream()
72567256
<dl>
72577257
<dd>
72587258

7259-
**store_for_inpainting:** `typing.Optional[bool]` — Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting API.
7259+
**store_for_inpainting:** `typing.Optional[bool]` — Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting feature.
72607260

72617261
</dd>
72627262
</dl>
@@ -7272,6 +7272,84 @@ client.music.stream()
72727272
</dl>
72737273

72747274

7275+
</dd>
7276+
</dl>
7277+
</details>
7278+
7279+
<details><summary><code>client.music.<a href="src/elevenlabs/music/client.py">upload</a>(...)</code></summary>
7280+
<dl>
7281+
<dd>
7282+
7283+
#### 📝 Description
7284+
7285+
<dl>
7286+
<dd>
7287+
7288+
<dl>
7289+
<dd>
7290+
7291+
Upload a music file to be later used for inpainting. Only available to enterprise clients with access to the inpainting feature.
7292+
</dd>
7293+
</dl>
7294+
</dd>
7295+
</dl>
7296+
7297+
#### 🔌 Usage
7298+
7299+
<dl>
7300+
<dd>
7301+
7302+
<dl>
7303+
<dd>
7304+
7305+
```python
7306+
from elevenlabs import ElevenLabs
7307+
7308+
client = ElevenLabs(
7309+
api_key="YOUR_API_KEY",
7310+
)
7311+
client.music.upload()
7312+
7313+
```
7314+
</dd>
7315+
</dl>
7316+
</dd>
7317+
</dl>
7318+
7319+
#### ⚙️ Parameters
7320+
7321+
<dl>
7322+
<dd>
7323+
7324+
<dl>
7325+
<dd>
7326+
7327+
**file:** `from __future__ import annotations
7328+
7329+
core.File` — See core.File for more documentation
7330+
7331+
</dd>
7332+
</dl>
7333+
7334+
<dl>
7335+
<dd>
7336+
7337+
**extract_composition_plan:** `typing.Optional[bool]` — Whether to generate and return the composition plan for the uploaded song. If True, the response will include the composition_plan but will increase the latency.
7338+
7339+
</dd>
7340+
</dl>
7341+
7342+
<dl>
7343+
<dd>
7344+
7345+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
7346+
7347+
</dd>
7348+
</dl>
7349+
</dd>
7350+
</dl>
7351+
7352+
72757353
</dd>
72767354
</dl>
72777355
</details>
@@ -7923,6 +8001,14 @@ client.conversational_ai.twilio.outbound_call(
79238001
<dl>
79248002
<dd>
79258003

8004+
**telephony_call_config:** `typing.Optional[TelephonyCallConfig]`
8005+
8006+
</dd>
8007+
</dl>
8008+
8009+
<dl>
8010+
<dd>
8011+
79268012
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
79278013

79288014
</dd>
@@ -8326,6 +8412,7 @@ client = ElevenLabs(
83268412
api_key="YOUR_API_KEY",
83278413
)
83288414
client.conversational_ai.agents.create(
8415+
enable_versioning=True,
83298416
conversation_config=ConversationalConfig(),
83308417
)
83318418

@@ -8351,6 +8438,14 @@ client.conversational_ai.agents.create(
83518438
<dl>
83528439
<dd>
83538440

8441+
**enable_versioning:** `typing.Optional[bool]` — Enable versioning for the agent
8442+
8443+
</dd>
8444+
</dl>
8445+
8446+
<dl>
8447+
<dd>
8448+
83548449
**platform_settings:** `typing.Optional[AgentPlatformSettingsRequestModel]` — Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
83558450

83568451
</dd>
@@ -8595,6 +8690,7 @@ client = ElevenLabs(
85958690
)
85968691
client.conversational_ai.agents.update(
85978692
agent_id="agent_3701k3ttaq12ewp8b7qv5rfyszkz",
8693+
enable_versioning_if_not_enabled=True,
85988694
branch_id="branch_id",
85998695
)
86008696

@@ -8620,6 +8716,14 @@ client.conversational_ai.agents.update(
86208716
<dl>
86218717
<dd>
86228718

8719+
**enable_versioning_if_not_enabled:** `typing.Optional[bool]` — Enable versioning for the agent, if not already enabled
8720+
8721+
</dd>
8722+
</dl>
8723+
8724+
<dl>
8725+
<dd>
8726+
86238727
**branch_id:** `typing.Optional[str]` — The ID of the branch to use
86248728

86258729
</dd>
@@ -9662,7 +9766,15 @@ client.conversational_ai.tests.list(
96629766
<dl>
96639767
<dd>
96649768

9665-
**include_folders:** `typing.Optional[bool]` — Whether to include folders in the response. Defaults to false.
9769+
**types:** `typing.Optional[typing.Union[TestType, typing.Sequence[TestType]]]` — If present, the endpoint will return only tests/folders of the given types.
9770+
9771+
</dd>
9772+
</dl>
9773+
9774+
<dl>
9775+
<dd>
9776+
9777+
**include_folders:** `typing.Optional[bool]` — Deprecated. Use the `types` query param and include `folder` instead.
96669778

96679779
</dd>
96689780
</dl>
@@ -11684,6 +11796,14 @@ client.conversational_ai.batch_calls.create(
1168411796
<dl>
1168511797
<dd>
1168611798

11799+
**telephony_call_config:** `typing.Optional[TelephonyCallConfig]`
11800+
11801+
</dd>
11802+
</dl>
11803+
11804+
<dl>
11805+
<dd>
11806+
1168711807
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1168811808

1168911809
</dd>
@@ -12140,6 +12260,14 @@ client.conversational_ai.sip_trunk.outbound_call(
1214012260
<dl>
1214112261
<dd>
1214212262

12263+
**telephony_call_config:** `typing.Optional[TelephonyCallConfig]`
12264+
12265+
</dd>
12266+
</dl>
12267+
12268+
<dl>
12269+
<dd>
12270+
1214312271
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1214412272

1214512273
</dd>
@@ -12788,6 +12916,14 @@ client.conversational_ai.whatsapp_accounts.update(
1278812916
<dl>
1278912917
<dd>
1279012918

12919+
**enable_messaging:** `typing.Optional[bool]`
12920+
12921+
</dd>
12922+
</dl>
12923+
12924+
<dl>
12925+
<dd>
12926+
1279112927
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1279212928

1279312929
</dd>
@@ -18871,6 +19007,101 @@ client.music.composition_plan.create(
1887119007
</details>
1887219008

1887319009
## PronunciationDictionaries Rules
19010+
<details><summary><code>client.pronunciation_dictionaries.rules.<a href="src/elevenlabs/pronunciation_dictionaries/rules/client.py">set</a>(...)</code></summary>
19011+
<dl>
19012+
<dd>
19013+
19014+
#### 📝 Description
19015+
19016+
<dl>
19017+
<dd>
19018+
19019+
<dl>
19020+
<dd>
19021+
19022+
Replaces all existing rules on the pronunciation dictionary with the provided ones.
19023+
</dd>
19024+
</dl>
19025+
</dd>
19026+
</dl>
19027+
19028+
#### 🔌 Usage
19029+
19030+
<dl>
19031+
<dd>
19032+
19033+
<dl>
19034+
<dd>
19035+
19036+
```python
19037+
from elevenlabs import ElevenLabs
19038+
from elevenlabs.pronunciation_dictionaries.rules import (
19039+
BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem_Alias,
19040+
)
19041+
19042+
client = ElevenLabs(
19043+
api_key="YOUR_API_KEY",
19044+
)
19045+
client.pronunciation_dictionaries.rules.set(
19046+
pronunciation_dictionary_id="21m00Tcm4TlvDq8ikWAM",
19047+
rules=[
19048+
BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem_Alias(
19049+
string_to_replace="Thailand",
19050+
case_sensitive=True,
19051+
word_boundaries=True,
19052+
alias="tie-land",
19053+
)
19054+
],
19055+
)
19056+
19057+
```
19058+
</dd>
19059+
</dl>
19060+
</dd>
19061+
</dl>
19062+
19063+
#### ⚙️ Parameters
19064+
19065+
<dl>
19066+
<dd>
19067+
19068+
<dl>
19069+
<dd>
19070+
19071+
**pronunciation_dictionary_id:** `str` — The id of the pronunciation dictionary
19072+
19073+
</dd>
19074+
</dl>
19075+
19076+
<dl>
19077+
<dd>
19078+
19079+
**rules:** `typing.Sequence[
19080+
BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem
19081+
]`
19082+
19083+
List of pronunciation rules. Rule can be either:
19084+
an alias rule: {'string_to_replace': 'a', 'type': 'alias', 'alias': 'b', }
19085+
or a phoneme rule: {'string_to_replace': 'a', 'type': 'phoneme', 'phoneme': 'b', 'alphabet': 'ipa' }
19086+
19087+
</dd>
19088+
</dl>
19089+
19090+
<dl>
19091+
<dd>
19092+
19093+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
19094+
19095+
</dd>
19096+
</dl>
19097+
</dd>
19098+
</dl>
19099+
19100+
19101+
</dd>
19102+
</dl>
19103+
</details>
19104+
1887419105
<details><summary><code>client.pronunciation_dictionaries.rules.<a href="src/elevenlabs/pronunciation_dictionaries/rules/client.py">add</a>(...)</code></summary>
1887519106
<dl>
1887619107
<dd>

0 commit comments

Comments
 (0)