Skip to content

Commit 4e77459

Browse files
SDK regeneration (#651)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent a2ba67e commit 4e77459

37 files changed

+164
-365
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.18.0"
6+
version = "v2.19.0"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3668,6 +3668,7 @@ client = ElevenLabs(
36683668
api_key="YOUR_API_KEY",
36693669
)
36703670
client.studio.create_podcast(
3671+
safety_identifier="safety-identifier",
36713672
model_id="eleven_multilingual_v2",
36723673
mode=BodyCreatePodcastV1StudioPodcastsPostMode_Conversation(
36733674
conversation=PodcastConversationModeData(
@@ -3718,6 +3719,14 @@ client.studio.create_podcast(
37183719
<dl>
37193720
<dd>
37203721

3722+
**safety_identifier:** `typing.Optional[str]` — Used for moderation. Your workspace must be allowlisted to use this feature.
3723+
3724+
</dd>
3725+
</dl>
3726+
3727+
<dl>
3728+
<dd>
3729+
37213730
**quality_preset:** `typing.Optional[BodyCreatePodcastV1StudioPodcastsPostQualityPreset]`
37223731

37233732
Output quality of the generated audio. Must be one of:
@@ -7243,7 +7252,6 @@ client = ElevenLabs(
72437252
)
72447253
client.conversational_ai.agents.get(
72457254
agent_id="agent_3701k3ttaq12ewp8b7qv5rfyszkz",
7246-
version_id="version_id",
72477255
)
72487256

72497257
```
@@ -7268,14 +7276,6 @@ client.conversational_ai.agents.get(
72687276
<dl>
72697277
<dd>
72707278

7271-
**version_id:** `typing.Optional[str]` — The ID of the agent version to use
7272-
7273-
</dd>
7274-
</dl>
7275-
7276-
<dl>
7277-
<dd>
7278-
72797279
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
72807280

72817281
</dd>
@@ -7503,6 +7503,7 @@ client = ElevenLabs(
75037503
client.conversational_ai.agents.list(
75047504
page_size=1,
75057505
search="search",
7506+
archived=True,
75067507
sort_direction="asc",
75077508
sort_by="name",
75087509
cursor="cursor",
@@ -7538,6 +7539,14 @@ client.conversational_ai.agents.list(
75387539
<dl>
75397540
<dd>
75407541

7542+
**archived:** `typing.Optional[bool]` — Filter agents by archived status
7543+
7544+
</dd>
7545+
</dl>
7546+
7547+
<dl>
7548+
<dd>
7549+
75417550
**sort_direction:** `typing.Optional[SortDirection]` — The direction to sort the results
75427551

75437552
</dd>

src/elevenlabs/__init__.py

Lines changed: 9 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
AgentConfigOverrideConfig,
3030
AgentConfigOverrideInput,
3131
AgentConfigOverrideOutput,
32+
AgentDefinitionSource,
3233
AgentFailureResponseExample,
3334
AgentMetadata,
3435
AgentMetadataResponseModel,
@@ -1136,6 +1137,7 @@
11361137
TokenResponseModel,
11371138
Tool,
11381139
ToolAnnotations,
1140+
ToolExecutionMode,
11391141
ToolMockConfig,
11401142
ToolRequestModel,
11411143
ToolRequestModelToolConfig,
@@ -1239,18 +1241,7 @@
12391241
WebhookUsageType,
12401242
WebsocketTtsClientMessageMulti,
12411243
WebsocketTtsServerMessageMulti,
1242-
WhatsAppBusinessAccount,
1243-
WhatsAppBusinessAccountChangesItem,
1244-
WhatsAppBusinessAccountChangesItem_Calls,
1245-
WhatsAppBusinessAccountChangesItem_Messages,
1246-
WhatsAppCall,
1247-
WhatsAppCallDirection,
1248-
WhatsAppCalls,
1249-
WhatsAppChangeCalls,
1250-
WhatsAppChangeMessages,
1251-
WhatsAppEventRequest,
1252-
WhatsAppMetadata,
1253-
WhatsAppSession,
1244+
WhatsAppConversationInfo,
12541245
WidgetConfig,
12551246
WidgetConfigInputAvatar,
12561247
WidgetConfigInputAvatar_Image,
@@ -1514,6 +1505,7 @@
15141505
"AgentConfigOverrideConfig": ".types",
15151506
"AgentConfigOverrideInput": ".types",
15161507
"AgentConfigOverrideOutput": ".types",
1508+
"AgentDefinitionSource": ".types",
15171509
"AgentFailureResponseExample": ".types",
15181510
"AgentMetadata": ".types",
15191511
"AgentMetadataResponseModel": ".types",
@@ -2684,6 +2676,7 @@
26842676
"TooEarlyError": ".errors",
26852677
"Tool": ".types",
26862678
"ToolAnnotations": ".types",
2679+
"ToolExecutionMode": ".types",
26872680
"ToolMockConfig": ".types",
26882681
"ToolRequestModel": ".types",
26892682
"ToolRequestModelToolConfig": ".types",
@@ -2791,18 +2784,7 @@
27912784
"WebhookUsageType": ".types",
27922785
"WebsocketTtsClientMessageMulti": ".types",
27932786
"WebsocketTtsServerMessageMulti": ".types",
2794-
"WhatsAppBusinessAccount": ".types",
2795-
"WhatsAppBusinessAccountChangesItem": ".types",
2796-
"WhatsAppBusinessAccountChangesItem_Calls": ".types",
2797-
"WhatsAppBusinessAccountChangesItem_Messages": ".types",
2798-
"WhatsAppCall": ".types",
2799-
"WhatsAppCallDirection": ".types",
2800-
"WhatsAppCalls": ".types",
2801-
"WhatsAppChangeCalls": ".types",
2802-
"WhatsAppChangeMessages": ".types",
2803-
"WhatsAppEventRequest": ".types",
2804-
"WhatsAppMetadata": ".types",
2805-
"WhatsAppSession": ".types",
2787+
"WhatsAppConversationInfo": ".types",
28062788
"WidgetConfig": ".types",
28072789
"WidgetConfigInputAvatar": ".types",
28082790
"WidgetConfigInputAvatar_Image": ".types",
@@ -2960,12 +2942,6 @@
29602942
"voices": ".voices",
29612943
"webhooks": ".webhooks",
29622944
"workspace": ".workspace",
2963-
"RealtimeConnection": ".realtime",
2964-
"RealtimeEvents": ".realtime",
2965-
"AudioFormat": ".realtime",
2966-
"CommitStrategy": ".realtime",
2967-
"RealtimeAudioOptions": ".realtime",
2968-
"RealtimeUrlOptions": ".realtime",
29692945
}
29702946

29712947

@@ -2994,8 +2970,6 @@ def __dir__():
29942970
"AddChapterResponseModel",
29952971
"AddKnowledgeBaseResponseModel",
29962972
"AddProjectRequest",
2997-
"AudioFormat",
2998-
"RealtimeAudioOptions",
29992973
"AddProjectResponseModel",
30002974
"AddPronunciationDictionaryResponseModel",
30012975
"AddPronunciationDictionaryResponseModelPermissionOnResource",
@@ -3015,6 +2989,7 @@ def __dir__():
30152989
"AgentConfigOverrideConfig",
30162990
"AgentConfigOverrideInput",
30172991
"AgentConfigOverrideOutput",
2992+
"AgentDefinitionSource",
30182993
"AgentFailureResponseExample",
30192994
"AgentMetadata",
30202995
"AgentMetadataResponseModel",
@@ -3570,7 +3545,6 @@ def __dir__():
35703545
"ClientEvent",
35713546
"ClientToolConfigInput",
35723547
"ClientToolConfigOutput",
3573-
"CommitStrategy",
35743548
"CloseConnection",
35753549
"CloseContext",
35763550
"CloseSocket",
@@ -4049,8 +4023,6 @@ def __dir__():
40494023
"RagRetrievalInfo",
40504024
"ReaderResourceResponseModel",
40514025
"ReaderResourceResponseModelResourceType",
4052-
"RealtimeConnection",
4053-
"RealtimeEvents",
40544026
"RealtimeVoiceSettings",
40554027
"ReceiveMessage",
40564028
"ReceiveMessageMulti",
@@ -4188,6 +4160,7 @@ def __dir__():
41884160
"TooEarlyError",
41894161
"Tool",
41904162
"ToolAnnotations",
4163+
"ToolExecutionMode",
41914164
"ToolMockConfig",
41924165
"ToolRequestModel",
41934166
"ToolRequestModelToolConfig",
@@ -4249,7 +4222,6 @@ def __dir__():
42494222
"UpdatePronunciationDictionariesRequest",
42504223
"UpdateWorkspaceMemberResponseModel",
42514224
"UrlAvatar",
4252-
"RealtimeUrlOptions",
42534225
"UsageAggregationInterval",
42544226
"UsageCharactersResponseModel",
42554227
"User",
@@ -4296,18 +4268,7 @@ def __dir__():
42964268
"WebhookUsageType",
42974269
"WebsocketTtsClientMessageMulti",
42984270
"WebsocketTtsServerMessageMulti",
4299-
"WhatsAppBusinessAccount",
4300-
"WhatsAppBusinessAccountChangesItem",
4301-
"WhatsAppBusinessAccountChangesItem_Calls",
4302-
"WhatsAppBusinessAccountChangesItem_Messages",
4303-
"WhatsAppCall",
4304-
"WhatsAppCallDirection",
4305-
"WhatsAppCalls",
4306-
"WhatsAppChangeCalls",
4307-
"WhatsAppChangeMessages",
4308-
"WhatsAppEventRequest",
4309-
"WhatsAppMetadata",
4310-
"WhatsAppSession",
4271+
"WhatsAppConversationInfo",
43114272
"WidgetConfig",
43124273
"WidgetConfigInputAvatar",
43134274
"WidgetConfigInputAvatar_Image",

src/elevenlabs/conversational_ai/agents/client.py

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,7 @@ def create(
110110
)
111111
return _response.data
112112

113-
def get(
114-
self,
115-
agent_id: str,
116-
*,
117-
version_id: typing.Optional[str] = None,
118-
request_options: typing.Optional[RequestOptions] = None,
119-
) -> GetAgentResponseModel:
113+
def get(self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetAgentResponseModel:
120114
"""
121115
Retrieve config for an agent
122116
@@ -125,9 +119,6 @@ def get(
125119
agent_id : str
126120
The id of an agent. This is returned on agent creation.
127121
128-
version_id : typing.Optional[str]
129-
The ID of the agent version to use
130-
131122
request_options : typing.Optional[RequestOptions]
132123
Request-specific configuration.
133124
@@ -145,10 +136,9 @@ def get(
145136
)
146137
client.conversational_ai.agents.get(
147138
agent_id="agent_3701k3ttaq12ewp8b7qv5rfyszkz",
148-
version_id="version_id",
149139
)
150140
"""
151-
_response = self._raw_client.get(agent_id, version_id=version_id, request_options=request_options)
141+
_response = self._raw_client.get(agent_id, request_options=request_options)
152142
return _response.data
153143

154144
def delete(self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
@@ -250,6 +240,7 @@ def list(
250240
*,
251241
page_size: typing.Optional[int] = None,
252242
search: typing.Optional[str] = None,
243+
archived: typing.Optional[bool] = None,
253244
sort_direction: typing.Optional[SortDirection] = None,
254245
sort_by: typing.Optional[AgentSortBy] = None,
255246
cursor: typing.Optional[str] = None,
@@ -266,6 +257,9 @@ def list(
266257
search : typing.Optional[str]
267258
Search by agents name.
268259
260+
archived : typing.Optional[bool]
261+
Filter agents by archived status
262+
269263
sort_direction : typing.Optional[SortDirection]
270264
The direction to sort the results
271265
@@ -293,6 +287,7 @@ def list(
293287
client.conversational_ai.agents.list(
294288
page_size=1,
295289
search="search",
290+
archived=True,
296291
sort_direction="asc",
297292
sort_by="name",
298293
cursor="cursor",
@@ -301,6 +296,7 @@ def list(
301296
_response = self._raw_client.list(
302297
page_size=page_size,
303298
search=search,
299+
archived=archived,
304300
sort_direction=sort_direction,
305301
sort_by=sort_by,
306302
cursor=cursor,
@@ -649,11 +645,7 @@ async def main() -> None:
649645
return _response.data
650646

651647
async def get(
652-
self,
653-
agent_id: str,
654-
*,
655-
version_id: typing.Optional[str] = None,
656-
request_options: typing.Optional[RequestOptions] = None,
648+
self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
657649
) -> GetAgentResponseModel:
658650
"""
659651
Retrieve config for an agent
@@ -663,9 +655,6 @@ async def get(
663655
agent_id : str
664656
The id of an agent. This is returned on agent creation.
665657
666-
version_id : typing.Optional[str]
667-
The ID of the agent version to use
668-
669658
request_options : typing.Optional[RequestOptions]
670659
Request-specific configuration.
671660
@@ -688,13 +677,12 @@ async def get(
688677
async def main() -> None:
689678
await client.conversational_ai.agents.get(
690679
agent_id="agent_3701k3ttaq12ewp8b7qv5rfyszkz",
691-
version_id="version_id",
692680
)
693681
694682
695683
asyncio.run(main())
696684
"""
697-
_response = await self._raw_client.get(agent_id, version_id=version_id, request_options=request_options)
685+
_response = await self._raw_client.get(agent_id, request_options=request_options)
698686
return _response.data
699687

700688
async def delete(self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
@@ -812,6 +800,7 @@ async def list(
812800
*,
813801
page_size: typing.Optional[int] = None,
814802
search: typing.Optional[str] = None,
803+
archived: typing.Optional[bool] = None,
815804
sort_direction: typing.Optional[SortDirection] = None,
816805
sort_by: typing.Optional[AgentSortBy] = None,
817806
cursor: typing.Optional[str] = None,
@@ -828,6 +817,9 @@ async def list(
828817
search : typing.Optional[str]
829818
Search by agents name.
830819
820+
archived : typing.Optional[bool]
821+
Filter agents by archived status
822+
831823
sort_direction : typing.Optional[SortDirection]
832824
The direction to sort the results
833825
@@ -860,6 +852,7 @@ async def main() -> None:
860852
await client.conversational_ai.agents.list(
861853
page_size=1,
862854
search="search",
855+
archived=True,
863856
sort_direction="asc",
864857
sort_by="name",
865858
cursor="cursor",
@@ -871,6 +864,7 @@ async def main() -> None:
871864
_response = await self._raw_client.list(
872865
page_size=page_size,
873866
search=search,
867+
archived=archived,
874868
sort_direction=sort_direction,
875869
sort_by=sort_by,
876870
cursor=cursor,

0 commit comments

Comments
 (0)