Skip to content

Commit ff3eb55

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

File tree

175 files changed

+1847
-1538
lines changed

Some content is hidden

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

175 files changed

+1847
-1538
lines changed

.fern/metadata.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"cliVersion": "0.107.3",
3+
"generatorName": "fernapi/fern-python-sdk",
4+
"generatorVersion": "4.36.2",
5+
"generatorConfig": {
6+
"timeout_in_seconds": 240,
7+
"default_bytes_stream_chunk_size": 1024,
8+
"inline_request_params": false,
9+
"follow_redirects_by_default": true,
10+
"recursion_limit": 5000,
11+
"pydantic_config": {
12+
"skip_validation": true
13+
},
14+
"client": {
15+
"class_name": "BaseElevenLabs",
16+
"filename": "base_client.py",
17+
"exported_class_name": "ElevenLabs",
18+
"exported_filename": "client.py"
19+
},
20+
"extra_dependencies": {
21+
"requests": ">=2.20",
22+
"websockets": ">=11.0",
23+
"pyaudio": {
24+
"version": ">=0.2.14",
25+
"optional": true
26+
}
27+
},
28+
"extra_dev_dependencies": {
29+
"types-pyaudio": "^0.2.16.20240516"
30+
},
31+
"extras": {
32+
"pyaudio": [
33+
"pyaudio"
34+
]
35+
},
36+
"additional_init_exports": [
37+
{
38+
"from": "play",
39+
"imports": [
40+
"play",
41+
"save",
42+
"stream"
43+
]
44+
},
45+
{
46+
"from": "realtime",
47+
"imports": [
48+
"RealtimeEvents",
49+
"RealtimeAudioOptions",
50+
"RealtimeUrlOptions",
51+
"AudioFormat",
52+
"CommitStrategy",
53+
"RealtimeConnection"
54+
]
55+
}
56+
]
57+
}
58+
}

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "elevenlabs"
33

44
[tool.poetry]
55
name = "elevenlabs"
6-
version = "v2.22.1"
6+
version = "v2.23.0"
77
description = ""
88
readme = "README.md"
99
authors = []
@@ -31,7 +31,7 @@ packages = [
3131
{ include = "elevenlabs", from = "src"}
3232
]
3333

34-
[project.urls]
34+
[tool.poetry.urls]
3535
Repository = 'https://github.com/elevenlabs/elevenlabs-python'
3636

3737
[tool.poetry.dependencies]

reference.md

Lines changed: 182 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7009,6 +7009,8 @@ client.conversational_ai.conversations.list(
70097009
call_successful="success",
70107010
call_start_before_unix=1,
70117011
call_start_after_unix=1,
7012+
call_duration_min_secs=1,
7013+
call_duration_max_secs=1,
70127014
user_id="user_id",
70137015
page_size=1,
70147016
summary_mode="exclude",
@@ -7069,6 +7071,22 @@ client.conversational_ai.conversations.list(
70697071
<dl>
70707072
<dd>
70717073

7074+
**call_duration_min_secs:** `typing.Optional[int]` — Minimum call duration in seconds.
7075+
7076+
</dd>
7077+
</dl>
7078+
7079+
<dl>
7080+
<dd>
7081+
7082+
**call_duration_max_secs:** `typing.Optional[int]` — Maximum call duration in seconds.
7083+
7084+
</dd>
7085+
</dl>
7086+
7087+
<dl>
7088+
<dd>
7089+
70727090
**user_id:** `typing.Optional[str]` — Filter conversations by the user ID who initiated them.
70737091

70747092
</dd>
@@ -7077,6 +7095,30 @@ client.conversational_ai.conversations.list(
70777095
<dl>
70787096
<dd>
70797097

7098+
**evaluation_params:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Evaluation filters. Repeat param. Format: criteria_id:result. Example: eval=value_framing:success
7099+
7100+
</dd>
7101+
</dl>
7102+
7103+
<dl>
7104+
<dd>
7105+
7106+
**data_collection_params:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Data collection filters. Repeat param. Format: id:op:value where op is one of eq|neq|gt|gte|lt|lte|in|exists|missing. For in, pipe-delimit values.
7107+
7108+
</dd>
7109+
</dl>
7110+
7111+
<dl>
7112+
<dd>
7113+
7114+
**tool_names:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Filter conversations by tool names used during the call.
7115+
7116+
</dd>
7117+
</dl>
7118+
7119+
<dl>
7120+
<dd>
7121+
70807122
**page_size:** `typing.Optional[int]` — How many conversations to return at maximum. Can not exceed 100, defaults to 30.
70817123

70827124
</dd>
@@ -8185,6 +8227,14 @@ client.conversational_ai.agents.run_tests(
81858227
<dl>
81868228
<dd>
81878229

8230+
**branch_id:** `typing.Optional[str]` — ID of the branch to run the tests on. If not provided, the tests will be run on the agent default configuration.
8231+
8232+
</dd>
8233+
</dl>
8234+
8235+
<dl>
8236+
<dd>
8237+
81888238
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
81898239

81908240
</dd>
@@ -9522,8 +9572,12 @@ Add a new tool to the available tools in the workspace.
95229572
```python
95239573
from elevenlabs import (
95249574
ElevenLabs,
9575+
LiteralJsonSchemaProperty,
9576+
ObjectJsonSchemaPropertyInput,
9577+
QueryParamsJsonSchema,
95259578
ToolRequestModel,
95269579
ToolRequestModelToolConfig_ApiIntegrationWebhook,
9580+
WebhookToolApiSchemaConfigInput,
95279581
)
95289582

95299583
client = ElevenLabs(
@@ -9536,6 +9590,28 @@ client.conversational_ai.tools.create(
95369590
description="description",
95379591
api_integration_id="api_integration_id",
95389592
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+
),
95399615
),
95409616
),
95419617
)
@@ -9743,8 +9819,12 @@ Update tool that is available in the workspace.
97439819
```python
97449820
from elevenlabs import (
97459821
ElevenLabs,
9822+
LiteralJsonSchemaProperty,
9823+
ObjectJsonSchemaPropertyInput,
9824+
QueryParamsJsonSchema,
97469825
ToolRequestModel,
97479826
ToolRequestModelToolConfig_ApiIntegrationWebhook,
9827+
WebhookToolApiSchemaConfigInput,
97489828
)
97499829

97509830
client = ElevenLabs(
@@ -9758,6 +9838,28 @@ client.conversational_ai.tools.update(
97589838
description="description",
97599839
api_integration_id="api_integration_id",
97609840
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+
),
97619863
),
97629864
),
97639865
)
@@ -11050,6 +11152,76 @@ client.conversational_ai.mcp_servers.get(
1105011152
</dl>
1105111153

1105211154

11155+
</dd>
11156+
</dl>
11157+
</details>
11158+
11159+
<details><summary><code>client.conversational_ai.mcp_servers.<a href="src/elevenlabs/conversational_ai/mcp_servers/client.py">delete</a>(...)</code></summary>
11160+
<dl>
11161+
<dd>
11162+
11163+
#### 📝 Description
11164+
11165+
<dl>
11166+
<dd>
11167+
11168+
<dl>
11169+
<dd>
11170+
11171+
Delete a specific MCP server configuration from the workspace.
11172+
</dd>
11173+
</dl>
11174+
</dd>
11175+
</dl>
11176+
11177+
#### 🔌 Usage
11178+
11179+
<dl>
11180+
<dd>
11181+
11182+
<dl>
11183+
<dd>
11184+
11185+
```python
11186+
from elevenlabs import ElevenLabs
11187+
11188+
client = ElevenLabs(
11189+
api_key="YOUR_API_KEY",
11190+
)
11191+
client.conversational_ai.mcp_servers.delete(
11192+
mcp_server_id="mcp_server_id",
11193+
)
11194+
11195+
```
11196+
</dd>
11197+
</dl>
11198+
</dd>
11199+
</dl>
11200+
11201+
#### ⚙️ Parameters
11202+
11203+
<dl>
11204+
<dd>
11205+
11206+
<dl>
11207+
<dd>
11208+
11209+
**mcp_server_id:** `str` — ID of the MCP Server.
11210+
11211+
</dd>
11212+
</dl>
11213+
11214+
<dl>
11215+
<dd>
11216+
11217+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
11218+
11219+
</dd>
11220+
</dl>
11221+
</dd>
11222+
</dl>
11223+
11224+
1105311225
</dd>
1105411226
</dl>
1105511227
</details>
@@ -11714,7 +11886,7 @@ client.conversational_ai.conversations.feedback.create(
1171411886
<dl>
1171511887
<dd>
1171611888

11717-
**feedback:** `UserFeedbackScore` — Either 'like' or 'dislike' to indicate the feedback for the conversation.
11889+
**feedback:** `typing.Optional[UserFeedbackScore]` — Either 'like' or 'dislike' to indicate the feedback for the conversation.
1171811890

1171911891
</dd>
1172011892
</dl>
@@ -12881,7 +13053,7 @@ client.conversational_ai.mcp_servers.tool_approvals.create(
1288113053
<dl>
1288213054
<dd>
1288313055

12884-
**input_schema:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` — The input schema of the MCP tool (the schema defined on the MCP server before ElevenLabs does any extra processing)
13056+
**input_schema:** `typing.Optional[typing.Dict[str, typing.Any]]` — The input schema of the MCP tool (the schema defined on the MCP server before ElevenLabs does any extra processing)
1288513057

1288613058
</dd>
1288713059
</dl>
@@ -13644,6 +13816,14 @@ client.conversational_ai.tests.invocations.resubmit(
1364413816
<dl>
1364513817
<dd>
1364613818

13819+
**branch_id:** `typing.Optional[str]` — ID of the branch to run the tests on. If not provided, the tests will be run on the agent default configuration.
13820+
13821+
</dd>
13822+
</dl>
13823+
13824+
<dl>
13825+
<dd>
13826+
1364713827
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1364813828

1364913829
</dd>

0 commit comments

Comments
 (0)