Skip to content

Commit ce12ed6

Browse files
committed
Release 0.0.0-alpha2
1 parent 9ee3ac6 commit ce12ed6

File tree

260 files changed

+1622
-18450
lines changed

Some content is hidden

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

260 files changed

+1622
-18450
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "Vapi"
3-
version = "0.0.0-alpha0"
3+
version = "0.0.0-alpha2"
44
description = ""
55
readme = "README.md"
66
authors = []

reference.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,15 +1587,14 @@ client.phone_numbers.list()
15871587
<dd>
15881588

15891589
```python
1590-
from vapi import Vapi
1591-
from vapi.phone_numbers import PhoneNumbersCreateRequest_Vapi
1590+
from vapi import CreateByoPhoneNumberDto, Vapi
15921591

15931592
client = Vapi(
15941593
token="YOUR_TOKEN",
15951594
)
15961595
client.phone_numbers.create(
1597-
request=PhoneNumbersCreateRequest_Vapi(
1598-
sip_uri="string",
1596+
request=CreateByoPhoneNumberDto(
1597+
credential_id="credentialId",
15991598
),
16001599
)
16011600

@@ -2406,14 +2405,15 @@ client.blocks.list()
24062405
<dd>
24072406

24082407
```python
2409-
from vapi import Vapi
2410-
from vapi.blocks import BlocksCreateRequest_Workflow
2408+
from vapi import CreateConversationBlockDto, Vapi
24112409

24122410
client = Vapi(
24132411
token="YOUR_TOKEN",
24142412
)
24152413
client.blocks.create(
2416-
request=BlocksCreateRequest_Workflow(),
2414+
request=CreateConversationBlockDto(
2415+
instruction="instruction",
2416+
),
24172417
)
24182418

24192419
```
@@ -2851,16 +2851,13 @@ client.tools.list()
28512851
<dd>
28522852

28532853
```python
2854-
from vapi import Vapi
2855-
from vapi.tools import ToolsCreateRequest_Output
2854+
from vapi import CreateDtmfToolDto, Vapi
28562855

28572856
client = Vapi(
28582857
token="YOUR_TOKEN",
28592858
)
28602859
client.tools.create(
2861-
request=ToolsCreateRequest_Output(
2862-
async_=False,
2863-
),
2860+
request=CreateDtmfToolDto(),
28642861
)
28652862

28662863
```

0 commit comments

Comments
 (0)