Skip to content

Commit 31edde5

Browse files
SDK regeneration
1 parent 13d5e85 commit 31edde5

File tree

154 files changed

+1222
-1278
lines changed

Some content is hidden

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

154 files changed

+1222
-1278
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.20.1"
6+
version = "v2.21.0"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4050,7 +4050,7 @@ client.dubbing.create()
40504050

40514051
**file:** `from __future__ import annotations
40524052

4053-
core.File` — See core.File for more documentation
4053+
typing.Optional[core.File]` — See core.File for more documentation
40544054

40554055
</dd>
40564056
</dl>
@@ -4060,7 +4060,7 @@ core.File` — See core.File for more documentation
40604060

40614061
**csv_file:** `from __future__ import annotations
40624062

4063-
core.File` — See core.File for more documentation
4063+
typing.Optional[core.File]` — See core.File for more documentation
40644064

40654065
</dd>
40664066
</dl>
@@ -4070,7 +4070,7 @@ core.File` — See core.File for more documentation
40704070

40714071
**foreground_audio_file:** `from __future__ import annotations
40724072

4073-
core.File` — See core.File for more documentation
4073+
typing.Optional[core.File]` — See core.File for more documentation
40744074

40754075
</dd>
40764076
</dl>
@@ -4080,7 +4080,7 @@ core.File` — See core.File for more documentation
40804080

40814081
**background_audio_file:** `from __future__ import annotations
40824082

4083-
core.File` — See core.File for more documentation
4083+
typing.Optional[core.File]` — See core.File for more documentation
40844084

40854085
</dd>
40864086
</dl>
@@ -4965,7 +4965,7 @@ client.pronunciation_dictionaries.create_from_file(
49654965

49664966
**file:** `from __future__ import annotations
49674967

4968-
core.File` — See core.File for more documentation
4968+
typing.Optional[core.File]` — See core.File for more documentation
49694969

49704970
</dd>
49714971
</dl>
@@ -5636,17 +5636,17 @@ client.speech_to_text.convert(
56365636
<dl>
56375637
<dd>
56385638

5639-
**file:** `from __future__ import annotations
5640-
5641-
core.File` — See core.File for more documentation
5639+
**enable_logging:** `typing.Optional[bool]` — When enable_logging is set to false zero retention mode will be used for the request. This will mean log and transcript storage features are unavailable for this request. Zero retention mode may only be used by enterprise customers.
56425640

56435641
</dd>
56445642
</dl>
56455643

56465644
<dl>
56475645
<dd>
56485646

5649-
**enable_logging:** `typing.Optional[bool]` — When enable_logging is set to false zero retention mode will be used for the request. This will mean log and transcript storage features are unavailable for this request. Zero retention mode may only be used by enterprise customers.
5647+
**file:** `from __future__ import annotations
5648+
5649+
typing.Optional[core.File]` — See core.File for more documentation
56505650

56515651
</dd>
56525652
</dl>
@@ -6786,6 +6786,7 @@ client.conversational_ai.conversations.list(
67866786
user_id="user_id",
67876787
page_size=1,
67886788
summary_mode="exclude",
6789+
search="search",
67896790
)
67906791

67916792
```
@@ -6866,6 +6867,14 @@ client.conversational_ai.conversations.list(
68666867
<dl>
68676868
<dd>
68686869

6870+
**search:** `typing.Optional[str]` — Full-text or fuzzy search over transcript messages
6871+
6872+
</dd>
6873+
</dl>
6874+
6875+
<dl>
6876+
<dd>
6877+
68696878
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
68706879

68716880
</dd>
@@ -10896,6 +10905,14 @@ client.conversational_ai.mcp_servers.update(
1089610905
<dl>
1089710906
<dd>
1089810907

10908+
**execution_mode:** `typing.Optional[ToolExecutionMode]` — The execution mode for all tools from this MCP server
10909+
10910+
</dd>
10911+
</dl>
10912+
10913+
<dl>
10914+
<dd>
10915+
1089910916
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1090010917

1090110918
</dd>
@@ -15000,41 +15017,41 @@ client.studio.projects.create(
1500015017
<dl>
1500115018
<dd>
1500215019

15003-
**from_document:** `from __future__ import annotations
15004-
15005-
core.File` — See core.File for more documentation
15020+
**default_title_voice_id:** `typing.Optional[str]` — The voice_id that corresponds to the default voice used for new titles.
1500615021

1500715022
</dd>
1500815023
</dl>
1500915024

1501015025
<dl>
1501115026
<dd>
1501215027

15013-
**default_title_voice_id:** `typing.Optional[str]` — The voice_id that corresponds to the default voice used for new titles.
15028+
**default_paragraph_voice_id:** `typing.Optional[str]` — The voice_id that corresponds to the default voice used for new paragraphs.
1501415029

1501515030
</dd>
1501615031
</dl>
1501715032

1501815033
<dl>
1501915034
<dd>
1502015035

15021-
**default_paragraph_voice_id:** `typing.Optional[str]` — The voice_id that corresponds to the default voice used for new paragraphs.
15036+
**default_model_id:** `typing.Optional[str]` — The ID of the model to be used for this Studio project, you can query GET /v1/models to list all available models.
1502215037

1502315038
</dd>
1502415039
</dl>
1502515040

1502615041
<dl>
1502715042
<dd>
1502815043

15029-
**default_model_id:** `typing.Optional[str]` — The ID of the model to be used for this Studio project, you can query GET /v1/models to list all available models.
15044+
**from_url:** `typing.Optional[str]` — An optional URL from which we will extract content to initialize the Studio project. If this is set, 'from_url' and 'from_content' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank.
1503015045

1503115046
</dd>
1503215047
</dl>
1503315048

1503415049
<dl>
1503515050
<dd>
1503615051

15037-
**from_url:** `typing.Optional[str]` — An optional URL from which we will extract content to initialize the Studio project. If this is set, 'from_url' and 'from_content' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank.
15052+
**from_document:** `from __future__ import annotations
15053+
15054+
typing.Optional[core.File]` — See core.File for more documentation
1503815055

1503915056
</dd>
1504015057
</dl>
@@ -15797,17 +15814,17 @@ client.studio.projects.content.update(
1579715814
<dl>
1579815815
<dd>
1579915816

15800-
**from_document:** `from __future__ import annotations
15801-
15802-
core.File` — See core.File for more documentation
15817+
**from_url:** `typing.Optional[str]` — An optional URL from which we will extract content to initialize the Studio project. If this is set, 'from_url' and 'from_content' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank.
1580315818

1580415819
</dd>
1580515820
</dl>
1580615821

1580715822
<dl>
1580815823
<dd>
1580915824

15810-
**from_url:** `typing.Optional[str]` — An optional URL from which we will extract content to initialize the Studio project. If this is set, 'from_url' and 'from_content' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank.
15825+
**from_document:** `from __future__ import annotations
15826+
15827+
typing.Optional[core.File]` — See core.File for more documentation
1581115828

1581215829
</dd>
1581315830
</dl>

src/elevenlabs/__init__.py

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
# isort: skip_file
44

5+
import sys
56
import typing
67
from importlib import import_module
78

9+
if sys.getrecursionlimit() < 5000:
10+
sys.setrecursionlimit(5000)
811
if typing.TYPE_CHECKING:
912
from .types import (
1013
AddChapterResponseModel,
@@ -34,7 +37,11 @@
3437
AgentMetadata,
3538
AgentMetadataResponseModel,
3639
AgentPlatformSettingsRequestModel,
40+
AgentPlatformSettingsRequestModelGuardrails,
41+
AgentPlatformSettingsRequestModelGuardrails_1,
3742
AgentPlatformSettingsResponseModel,
43+
AgentPlatformSettingsResponseModelGuardrails,
44+
AgentPlatformSettingsResponseModelGuardrails_1,
3845
AgentSimulatedChatTestResponseModel,
3946
AgentSortBy,
4047
AgentSuccessfulResponseExample,
@@ -830,6 +837,8 @@
830837
GetVoicesResponse,
831838
GetVoicesV2Response,
832839
GetWorkspaceSecretsResponseModel,
840+
GuardrailsV1Input,
841+
GuardrailsV1Output,
833842
HistoryAlignmentResponseModel,
834843
HistoryAlignmentsResponseModel,
835844
HistoryItemResponse,
@@ -900,6 +909,9 @@
900909
Model,
901910
ModelRatesResponseModel,
902911
ModelSettingsResponseModel,
912+
ModerationConfig,
913+
ModerationGuardrailInput,
914+
ModerationGuardrailOutput,
903915
MultichannelSpeechToTextResponseModel,
904916
MultipartMusicResponse,
905917
MusicPrompt,
@@ -1023,6 +1035,7 @@
10231035
RealtimeVoiceSettings,
10241036
RecordingResponse,
10251037
ReferencedToolCommonModel,
1038+
ReferencedToolCommonModelType,
10261039
RegexParameterEvaluationStrategy,
10271040
RemoveMemberFromGroupRequest,
10281041
Render,
@@ -1128,6 +1141,7 @@
11281141
TextToSpeechStreamRequest,
11291142
TextToSpeechStreamWithTimestampsRequest,
11301143
TextToSpeechWithTimestampsRequest,
1144+
ThresholdGuardrail,
11311145
TimeRange,
11321146
TokenResponseModel,
11331147
Tool,
@@ -1139,7 +1153,6 @@
11391153
ToolRequestModel,
11401154
ToolRequestModelToolConfig,
11411155
ToolRequestModelToolConfig_Client,
1142-
ToolRequestModelToolConfig_Mcp,
11431156
ToolRequestModelToolConfig_System,
11441157
ToolRequestModelToolConfig_Webhook,
11451158
ToolResponseModel,
@@ -1172,6 +1185,7 @@
11721185
TtsOutputFormat,
11731186
TurnConfig,
11741187
TurnConfigWorkflowOverride,
1188+
TurnEagerness,
11751189
TurnMode,
11761190
TwilioOutboundCallResponse,
11771191
TxtExportOptions,
@@ -1515,7 +1529,11 @@
15151529
"AgentMetadata": ".types",
15161530
"AgentMetadataResponseModel": ".types",
15171531
"AgentPlatformSettingsRequestModel": ".types",
1532+
"AgentPlatformSettingsRequestModelGuardrails": ".types",
1533+
"AgentPlatformSettingsRequestModelGuardrails_1": ".types",
15181534
"AgentPlatformSettingsResponseModel": ".types",
1535+
"AgentPlatformSettingsResponseModelGuardrails": ".types",
1536+
"AgentPlatformSettingsResponseModelGuardrails_1": ".types",
15191537
"AgentSimulatedChatTestResponseModel": ".types",
15201538
"AgentSortBy": ".types",
15211539
"AgentSuccessfulResponseExample": ".types",
@@ -2345,6 +2363,8 @@
23452363
"GetVoicesResponse": ".types",
23462364
"GetVoicesV2Response": ".types",
23472365
"GetWorkspaceSecretsResponseModel": ".types",
2366+
"GuardrailsV1Input": ".types",
2367+
"GuardrailsV1Output": ".types",
23482368
"HistoryAlignmentResponseModel": ".types",
23492369
"HistoryAlignmentsResponseModel": ".types",
23502370
"HistoryItemResponse": ".types",
@@ -2417,6 +2437,9 @@
24172437
"Model": ".types",
24182438
"ModelRatesResponseModel": ".types",
24192439
"ModelSettingsResponseModel": ".types",
2440+
"ModerationConfig": ".types",
2441+
"ModerationGuardrailInput": ".types",
2442+
"ModerationGuardrailOutput": ".types",
24202443
"MultichannelSpeechToTextResponseModel": ".types",
24212444
"MultipartMusicResponse": ".types",
24222445
"MusicComposeDetailedRequestOutputFormat": ".music",
@@ -2552,6 +2575,7 @@
25522575
"ReceiveMessageMulti": ".v_1_text_to_speech_voice_id_multi_stream_input",
25532576
"RecordingResponse": ".types",
25542577
"ReferencedToolCommonModel": ".types",
2578+
"ReferencedToolCommonModelType": ".types",
25552579
"RegexParameterEvaluationStrategy": ".types",
25562580
"RemoveMemberFromGroupRequest": ".types",
25572581
"Render": ".types",
@@ -2677,6 +2701,7 @@
26772701
"TextToVoiceCreatePreviewsRequestOutputFormat": ".text_to_voice",
26782702
"TextToVoiceDesignRequestOutputFormat": ".text_to_voice",
26792703
"TextToVoiceRemixRequestOutputFormat": ".text_to_voice",
2704+
"ThresholdGuardrail": ".types",
26802705
"TimeRange": ".types",
26812706
"TokenResponseModel": ".types",
26822707
"TooEarlyError": ".errors",
@@ -2689,7 +2714,6 @@
26892714
"ToolRequestModel": ".types",
26902715
"ToolRequestModelToolConfig": ".types",
26912716
"ToolRequestModelToolConfig_Client": ".types",
2692-
"ToolRequestModelToolConfig_Mcp": ".types",
26932717
"ToolRequestModelToolConfig_System": ".types",
26942718
"ToolRequestModelToolConfig_Webhook": ".types",
26952719
"ToolResponseModel": ".types",
@@ -2722,6 +2746,7 @@
27222746
"TtsOutputFormat": ".types",
27232747
"TurnConfig": ".types",
27242748
"TurnConfigWorkflowOverride": ".types",
2749+
"TurnEagerness": ".types",
27252750
"TurnMode": ".types",
27262751
"TwilioOutboundCallResponse": ".types",
27272752
"TxtExportOptions": ".types",
@@ -3002,7 +3027,11 @@ def __dir__():
30023027
"AgentMetadata",
30033028
"AgentMetadataResponseModel",
30043029
"AgentPlatformSettingsRequestModel",
3030+
"AgentPlatformSettingsRequestModelGuardrails",
3031+
"AgentPlatformSettingsRequestModelGuardrails_1",
30053032
"AgentPlatformSettingsResponseModel",
3033+
"AgentPlatformSettingsResponseModelGuardrails",
3034+
"AgentPlatformSettingsResponseModelGuardrails_1",
30063035
"AgentSimulatedChatTestResponseModel",
30073036
"AgentSortBy",
30083037
"AgentSuccessfulResponseExample",
@@ -3832,6 +3861,8 @@ def __dir__():
38323861
"GetVoicesResponse",
38333862
"GetVoicesV2Response",
38343863
"GetWorkspaceSecretsResponseModel",
3864+
"GuardrailsV1Input",
3865+
"GuardrailsV1Output",
38353866
"HistoryAlignmentResponseModel",
38363867
"HistoryAlignmentsResponseModel",
38373868
"HistoryItemResponse",
@@ -3904,6 +3935,9 @@ def __dir__():
39043935
"Model",
39053936
"ModelRatesResponseModel",
39063937
"ModelSettingsResponseModel",
3938+
"ModerationConfig",
3939+
"ModerationGuardrailInput",
3940+
"ModerationGuardrailOutput",
39073941
"MultichannelSpeechToTextResponseModel",
39083942
"MultipartMusicResponse",
39093943
"MusicComposeDetailedRequestOutputFormat",
@@ -4039,6 +4073,7 @@ def __dir__():
40394073
"ReceiveMessageMulti",
40404074
"RecordingResponse",
40414075
"ReferencedToolCommonModel",
4076+
"ReferencedToolCommonModelType",
40424077
"RegexParameterEvaluationStrategy",
40434078
"RemoveMemberFromGroupRequest",
40444079
"Render",
@@ -4164,6 +4199,7 @@ def __dir__():
41644199
"TextToVoiceCreatePreviewsRequestOutputFormat",
41654200
"TextToVoiceDesignRequestOutputFormat",
41664201
"TextToVoiceRemixRequestOutputFormat",
4202+
"ThresholdGuardrail",
41674203
"TimeRange",
41684204
"TokenResponseModel",
41694205
"TooEarlyError",
@@ -4176,7 +4212,6 @@ def __dir__():
41764212
"ToolRequestModel",
41774213
"ToolRequestModelToolConfig",
41784214
"ToolRequestModelToolConfig_Client",
4179-
"ToolRequestModelToolConfig_Mcp",
41804215
"ToolRequestModelToolConfig_System",
41814216
"ToolRequestModelToolConfig_Webhook",
41824217
"ToolResponseModel",
@@ -4209,6 +4244,7 @@ def __dir__():
42094244
"TtsOutputFormat",
42104245
"TurnConfig",
42114246
"TurnConfigWorkflowOverride",
4247+
"TurnEagerness",
42124248
"TurnMode",
42134249
"TwilioOutboundCallResponse",
42144250
"TxtExportOptions",

0 commit comments

Comments
 (0)