Skip to content

Commit 40a8008

Browse files
SDK regeneration (#711)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 93235d9 commit 40a8008

32 files changed

Lines changed: 579 additions & 42 deletions

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Elevenlabs.
3+
Copyright (c) 2026 Elevenlabs.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

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.28.0"
7+
version = "v2.29.0"
88
description = ""
99
readme = "README.md"
1010
authors = []

reference.md

Lines changed: 107 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4490,7 +4490,7 @@ typing.Optional[core.File]` — See core.File for more documentation
44904490
<dl>
44914491
<dd>
44924492

4493-
**mode:** `typing.Optional[DubbingCreateRequestMode]` — The mode in which to run this Dubbing job. Defaults to automatic, use manual if specifically providing a CSV transcript to use.
4493+
**mode:** `typing.Optional[DubbingCreateRequestMode]` — The mode in which to run this Dubbing job. Defaults to automatic, use manual if specifically providing a CSV transcript to use. Note that manual mode is experimental and production use is strongly discouraged.
44944494

44954495
</dd>
44964496
</dl>
@@ -6295,6 +6295,22 @@ typing.Optional[core.File]` — See core.File for more documentation
62956295
<dl>
62966296
<dd>
62976297

6298+
**entity_detection:** `typing.Optional[SpeechToTextConvertRequestEntityDetection]` — Detect entities in the transcript. Can be 'all' to detect all entities, a single entity type or category string, or a list of entity types/categories. Categories include 'pii', 'phi', 'pci', 'other', 'offensive_language'. When enabled, detected entities will be returned in the 'entities' field with their text, type, and character positions.
6299+
6300+
</dd>
6301+
</dl>
6302+
6303+
<dl>
6304+
<dd>
6305+
6306+
**keyterms:** `typing.Optional[typing.List[str]]` — A list of keyterms to bias the transcription towards. The keyterms are words or phrases you want the model to recognise more accurately. The number of keyterms cannot exceed 100. The length of each keyterm must be less than 50 characters. Keyterms can contain at most 5 words (after normalisation). For example ["hello", "world", "technical term"]
6307+
6308+
</dd>
6309+
</dl>
6310+
6311+
<dl>
6312+
<dd>
6313+
62986314
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
62996315

63006316
</dd>
@@ -9939,7 +9955,6 @@ client.conversational_ai.knowledge_base.list(
99399955
folders_first=True,
99409956
sort_direction="asc",
99419957
sort_by="name",
9942-
use_typesense=True,
99439958
cursor="cursor",
99449959
)
99459960

@@ -10033,14 +10048,6 @@ client.conversational_ai.knowledge_base.list(
1003310048
<dl>
1003410049
<dd>
1003510050

10036-
**use_typesense:** `typing.Optional[bool]` — If set to true, the endpoint will use typesense DB to search for the documents).
10037-
10038-
</dd>
10039-
</dl>
10040-
10041-
<dl>
10042-
<dd>
10043-
1004410051
**cursor:** `typing.Optional[str]` — Used for fetching next page. Cursor is returned in the response.
1004510052

1004610053
</dd>
@@ -17280,7 +17287,7 @@ typing.Optional[core.File]` — See core.File for more documentation
1728017287

1728117288

1728217289
An optional content to initialize the Studio project with. If this is set, 'from_url' and 'from_document' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank.
17283-
17290+
1728417291
Example:
1728517292
[{"name": "Chapter A", "blocks": [{"sub_type": "p", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "A", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "B", "type": "tts_node"}]}, {"sub_type": "h1", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "C", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "D", "type": "tts_node"}]}]}, {"name": "Chapter B", "blocks": [{"sub_type": "p", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "E", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "F", "type": "tts_node"}]}, {"sub_type": "h2", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "G", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "H", "type": "tts_node"}]}]}]
1728617293

@@ -18067,7 +18074,7 @@ typing.Optional[core.File]` — See core.File for more documentation
1806718074

1806818075

1806918076
An optional content to initialize the Studio project with. If this is set, 'from_url' and 'from_document' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank.
18070-
18077+
1807118078
Example:
1807218079
[{"name": "Chapter A", "blocks": [{"sub_type": "p", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "A", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "B", "type": "tts_node"}]}, {"sub_type": "h1", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "C", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "D", "type": "tts_node"}]}]}, {"name": "Chapter B", "blocks": [{"sub_type": "p", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "E", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "F", "type": "tts_node"}]}, {"sub_type": "h2", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "G", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "H", "type": "tts_node"}]}]}]
1807318080

@@ -21676,6 +21683,94 @@ client.workspace.resources.unshare(
2167621683
</dl>
2167721684

2167821685

21686+
</dd>
21687+
</dl>
21688+
</details>
21689+
21690+
<details><summary><code>client.workspace.resources.<a href="src/elevenlabs/workspace/resources/client.py">copy_to_workspace</a>(...)</code></summary>
21691+
<dl>
21692+
<dd>
21693+
21694+
#### 📝 Description
21695+
21696+
<dl>
21697+
<dd>
21698+
21699+
<dl>
21700+
<dd>
21701+
21702+
Copies a workspace resource to another workspace.
21703+
</dd>
21704+
</dl>
21705+
</dd>
21706+
</dl>
21707+
21708+
#### 🔌 Usage
21709+
21710+
<dl>
21711+
<dd>
21712+
21713+
<dl>
21714+
<dd>
21715+
21716+
```python
21717+
from elevenlabs import ElevenLabs
21718+
21719+
client = ElevenLabs(
21720+
api_key="YOUR_API_KEY",
21721+
)
21722+
client.workspace.resources.copy_to_workspace(
21723+
resource_id="resource_id",
21724+
resource_type="voice",
21725+
target_user_id="target_user_id",
21726+
)
21727+
21728+
```
21729+
</dd>
21730+
</dl>
21731+
</dd>
21732+
</dl>
21733+
21734+
#### ⚙️ Parameters
21735+
21736+
<dl>
21737+
<dd>
21738+
21739+
<dl>
21740+
<dd>
21741+
21742+
**resource_id:** `str` — The ID of the target resource.
21743+
21744+
</dd>
21745+
</dl>
21746+
21747+
<dl>
21748+
<dd>
21749+
21750+
**resource_type:** `WorkspaceResourceType` — Resource type of the target resource.
21751+
21752+
</dd>
21753+
</dl>
21754+
21755+
<dl>
21756+
<dd>
21757+
21758+
**target_user_id:** `str` — The ID of the target user.
21759+
21760+
</dd>
21761+
</dl>
21762+
21763+
<dl>
21764+
<dd>
21765+
21766+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
21767+
21768+
</dd>
21769+
</dl>
21770+
</dd>
21771+
</dl>
21772+
21773+
2167921774
</dd>
2168021775
</dl>
2168121776
</details>

src/elevenlabs/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@
721721
DependentUnknownAgentIdentifier,
722722
DependentUnknownToolIdentifier,
723723
DetailedMusicResponse,
724+
DetectedEntity,
724725
DialogueInput,
725726
DialogueInputResponseModel,
726727
DiscountResponseModel,
@@ -878,6 +879,7 @@
878879
KnowledgeBaseDocumentMetadataResponseModel,
879880
KnowledgeBaseDocumentType,
880881
KnowledgeBaseFolderPathSegmentResponseModel,
882+
KnowledgeBaseFolderPathSegmentSummaryResponseModel,
881883
KnowledgeBaseLocator,
882884
KnowledgeBaseSortBy,
883885
KnowledgeBaseSummaryBatchSuccessfulResponseModel,
@@ -1534,6 +1536,7 @@
15341536
SpeechToSpeechStreamRequestOutputFormat,
15351537
)
15361538
from .speech_to_text import (
1539+
SpeechToTextConvertRequestEntityDetection,
15371540
SpeechToTextConvertRequestFileFormat,
15381541
SpeechToTextConvertRequestTimestampsGranularity,
15391542
SpeechToTextConvertRequestWebhookMetadata,
@@ -2322,6 +2325,7 @@
23222325
"DependentUnknownAgentIdentifier": ".types",
23232326
"DependentUnknownToolIdentifier": ".types",
23242327
"DetailedMusicResponse": ".types",
2328+
"DetectedEntity": ".types",
23252329
"DialogueInput": ".types",
23262330
"DialogueInputResponseModel": ".types",
23272331
"DiscountResponseModel": ".types",
@@ -2488,6 +2492,7 @@
24882492
"KnowledgeBaseDocumentMetadataResponseModel": ".types",
24892493
"KnowledgeBaseDocumentType": ".types",
24902494
"KnowledgeBaseFolderPathSegmentResponseModel": ".types",
2495+
"KnowledgeBaseFolderPathSegmentSummaryResponseModel": ".types",
24912496
"KnowledgeBaseLocator": ".types",
24922497
"KnowledgeBaseSortBy": ".types",
24932498
"KnowledgeBaseSummaryBatchSuccessfulResponseModel": ".types",
@@ -2778,6 +2783,7 @@
27782783
"SpeechToSpeechStreamRequestOutputFormat": ".speech_to_speech",
27792784
"SpeechToTextCharacterResponseModel": ".types",
27802785
"SpeechToTextChunkResponseModel": ".types",
2786+
"SpeechToTextConvertRequestEntityDetection": ".speech_to_text",
27812787
"SpeechToTextConvertRequestFileFormat": ".speech_to_text",
27822788
"SpeechToTextConvertRequestTimestampsGranularity": ".speech_to_text",
27832789
"SpeechToTextConvertRequestWebhookMetadata": ".speech_to_text",
@@ -3897,6 +3903,7 @@ def __dir__():
38973903
"DependentUnknownAgentIdentifier",
38983904
"DependentUnknownToolIdentifier",
38993905
"DetailedMusicResponse",
3906+
"DetectedEntity",
39003907
"DialogueInput",
39013908
"DialogueInputResponseModel",
39023909
"DiscountResponseModel",
@@ -4063,6 +4070,7 @@ def __dir__():
40634070
"KnowledgeBaseDocumentMetadataResponseModel",
40644071
"KnowledgeBaseDocumentType",
40654072
"KnowledgeBaseFolderPathSegmentResponseModel",
4073+
"KnowledgeBaseFolderPathSegmentSummaryResponseModel",
40664074
"KnowledgeBaseLocator",
40674075
"KnowledgeBaseSortBy",
40684076
"KnowledgeBaseSummaryBatchSuccessfulResponseModel",
@@ -4353,6 +4361,7 @@ def __dir__():
43534361
"SpeechToSpeechStreamRequestOutputFormat",
43544362
"SpeechToTextCharacterResponseModel",
43554363
"SpeechToTextChunkResponseModel",
4364+
"SpeechToTextConvertRequestEntityDetection",
43564365
"SpeechToTextConvertRequestFileFormat",
43574366
"SpeechToTextConvertRequestTimestampsGranularity",
43584367
"SpeechToTextConvertRequestWebhookMetadata",

src/elevenlabs/conversational_ai/knowledge_base/client.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def list(
5555
folders_first: typing.Optional[bool] = None,
5656
sort_direction: typing.Optional[SortDirection] = None,
5757
sort_by: typing.Optional[KnowledgeBaseSortBy] = None,
58-
use_typesense: typing.Optional[bool] = None,
5958
cursor: typing.Optional[str] = None,
6059
request_options: typing.Optional[RequestOptions] = None,
6160
) -> GetKnowledgeBaseListResponseModel:
@@ -91,9 +90,6 @@ def list(
9190
sort_by : typing.Optional[KnowledgeBaseSortBy]
9291
The field to sort the results by
9392
94-
use_typesense : typing.Optional[bool]
95-
If set to true, the endpoint will use typesense DB to search for the documents).
96-
9793
cursor : typing.Optional[str]
9894
Used for fetching next page. Cursor is returned in the response.
9995
@@ -121,7 +117,6 @@ def list(
121117
folders_first=True,
122118
sort_direction="asc",
123119
sort_by="name",
124-
use_typesense=True,
125120
cursor="cursor",
126121
)
127122
"""
@@ -135,7 +130,6 @@ def list(
135130
folders_first=folders_first,
136131
sort_direction=sort_direction,
137132
sort_by=sort_by,
138-
use_typesense=use_typesense,
139133
cursor=cursor,
140134
request_options=request_options,
141135
)
@@ -232,7 +226,6 @@ async def list(
232226
folders_first: typing.Optional[bool] = None,
233227
sort_direction: typing.Optional[SortDirection] = None,
234228
sort_by: typing.Optional[KnowledgeBaseSortBy] = None,
235-
use_typesense: typing.Optional[bool] = None,
236229
cursor: typing.Optional[str] = None,
237230
request_options: typing.Optional[RequestOptions] = None,
238231
) -> GetKnowledgeBaseListResponseModel:
@@ -268,9 +261,6 @@ async def list(
268261
sort_by : typing.Optional[KnowledgeBaseSortBy]
269262
The field to sort the results by
270263
271-
use_typesense : typing.Optional[bool]
272-
If set to true, the endpoint will use typesense DB to search for the documents).
273-
274264
cursor : typing.Optional[str]
275265
Used for fetching next page. Cursor is returned in the response.
276266
@@ -303,7 +293,6 @@ async def main() -> None:
303293
folders_first=True,
304294
sort_direction="asc",
305295
sort_by="name",
306-
use_typesense=True,
307296
cursor="cursor",
308297
)
309298
@@ -320,7 +309,6 @@ async def main() -> None:
320309
folders_first=folders_first,
321310
sort_direction=sort_direction,
322311
sort_by=sort_by,
323-
use_typesense=use_typesense,
324312
cursor=cursor,
325313
request_options=request_options,
326314
)

src/elevenlabs/conversational_ai/knowledge_base/raw_client.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def list(
4242
folders_first: typing.Optional[bool] = None,
4343
sort_direction: typing.Optional[SortDirection] = None,
4444
sort_by: typing.Optional[KnowledgeBaseSortBy] = None,
45-
use_typesense: typing.Optional[bool] = None,
4645
cursor: typing.Optional[str] = None,
4746
request_options: typing.Optional[RequestOptions] = None,
4847
) -> HttpResponse[GetKnowledgeBaseListResponseModel]:
@@ -78,9 +77,6 @@ def list(
7877
sort_by : typing.Optional[KnowledgeBaseSortBy]
7978
The field to sort the results by
8079
81-
use_typesense : typing.Optional[bool]
82-
If set to true, the endpoint will use typesense DB to search for the documents).
83-
8480
cursor : typing.Optional[str]
8581
Used for fetching next page. Cursor is returned in the response.
8682
@@ -105,7 +101,6 @@ def list(
105101
"folders_first": folders_first,
106102
"sort_direction": sort_direction,
107103
"sort_by": sort_by,
108-
"use_typesense": use_typesense,
109104
"cursor": cursor,
110105
},
111106
request_options=request_options,
@@ -217,7 +212,6 @@ async def list(
217212
folders_first: typing.Optional[bool] = None,
218213
sort_direction: typing.Optional[SortDirection] = None,
219214
sort_by: typing.Optional[KnowledgeBaseSortBy] = None,
220-
use_typesense: typing.Optional[bool] = None,
221215
cursor: typing.Optional[str] = None,
222216
request_options: typing.Optional[RequestOptions] = None,
223217
) -> AsyncHttpResponse[GetKnowledgeBaseListResponseModel]:
@@ -253,9 +247,6 @@ async def list(
253247
sort_by : typing.Optional[KnowledgeBaseSortBy]
254248
The field to sort the results by
255249
256-
use_typesense : typing.Optional[bool]
257-
If set to true, the endpoint will use typesense DB to search for the documents).
258-
259250
cursor : typing.Optional[str]
260251
Used for fetching next page. Cursor is returned in the response.
261252
@@ -280,7 +271,6 @@ async def list(
280271
"folders_first": folders_first,
281272
"sort_direction": sort_direction,
282273
"sort_by": sort_by,
283-
"use_typesense": use_typesense,
284274
"cursor": cursor,
285275
},
286276
request_options=request_options,

src/elevenlabs/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "elevenlabs/v2.28.0",
25+
"User-Agent": "elevenlabs/v2.29.0",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "elevenlabs",
28-
"X-Fern-SDK-Version": "v2.28.0",
28+
"X-Fern-SDK-Version": "v2.29.0",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
if self._api_key is not None:

0 commit comments

Comments
 (0)