Skip to content

Commit ad74a8a

Browse files
committed
Release 0.0.0-alpha6
1 parent 3031df3 commit ad74a8a

File tree

149 files changed

+643
-1643
lines changed

Some content is hidden

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

149 files changed

+643
-1643
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Vapi C# Library
22

3-
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Ffern-demo%2Fvapi-csharp-sdk)
3+
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FVapiAI%2Fserver-sdk-csharp)
44
[![nuget shield](https://img.shields.io/nuget/v/Vapi.Net)](https://nuget.org/packages/Vapi.Net)
55

66
The Vapi C# library provides convenient access to the Vapi API from C#.

reference.md

+21-25
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ await client.Assistants.UpdateAsync("id", new UpdateAssistantDto());
418418
</details>
419419

420420
## PhoneNumbers
421-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">ListAsync</a>(PhoneNumbersListRequest { ... }) -> IEnumerable<OneOf<ByoPhoneNumber, TwilioPhoneNumber, VonagePhoneNumber, VapiPhoneNumber>></code></summary>
421+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">ListAsync</a>(PhoneNumbersListRequest { ... }) -> IEnumerable<object></code></summary>
422422
<dl>
423423
<dd>
424424

@@ -458,7 +458,7 @@ await client.PhoneNumbers.ListAsync(new PhoneNumbersListRequest());
458458
</dl>
459459
</details>
460460

461-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">CreateAsync</a>(OneOf<CreateByoPhoneNumberDto, CreateTwilioPhoneNumberDto, CreateVonagePhoneNumberDto, CreateVapiPhoneNumberDto> { ... }) -> OneOf<ByoPhoneNumber, TwilioPhoneNumber, VonagePhoneNumber, VapiPhoneNumber></code></summary>
461+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">CreateAsync</a>(object { ... }) -> object</code></summary>
462462
<dl>
463463
<dd>
464464

@@ -471,9 +471,7 @@ await client.PhoneNumbers.ListAsync(new PhoneNumbersListRequest());
471471
<dd>
472472

473473
```csharp
474-
await client.PhoneNumbers.CreateAsync(
475-
new CreateByoPhoneNumberDto { Provider = "byo-phone-number", CredentialId = "credentialId" }
476-
);
474+
await client.PhoneNumbers.CreateAsync(new CreateVapiPhoneNumberDto { SipUri = "string" });
477475
```
478476
</dd>
479477
</dl>
@@ -488,7 +486,7 @@ await client.PhoneNumbers.CreateAsync(
488486
<dl>
489487
<dd>
490488

491-
**request:** `OneOf<CreateByoPhoneNumberDto, CreateTwilioPhoneNumberDto, CreateVonagePhoneNumberDto, CreateVapiPhoneNumberDto>`
489+
**request:** `object`
492490

493491
</dd>
494492
</dl>
@@ -500,7 +498,7 @@ await client.PhoneNumbers.CreateAsync(
500498
</dl>
501499
</details>
502500

503-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">GetAsync</a>(id) -> OneOf<ByoPhoneNumber, TwilioPhoneNumber, VonagePhoneNumber, VapiPhoneNumber></code></summary>
501+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">GetAsync</a>(id) -> object</code></summary>
504502
<dl>
505503
<dd>
506504

@@ -540,7 +538,7 @@ await client.PhoneNumbers.GetAsync("id");
540538
</dl>
541539
</details>
542540

543-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">DeleteAsync</a>(id) -> OneOf<ByoPhoneNumber, TwilioPhoneNumber, VonagePhoneNumber, VapiPhoneNumber></code></summary>
541+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">DeleteAsync</a>(id) -> object</code></summary>
544542
<dl>
545543
<dd>
546544

@@ -580,7 +578,7 @@ await client.PhoneNumbers.DeleteAsync("id");
580578
</dl>
581579
</details>
582580

583-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">UpdateAsync</a>(id, UpdatePhoneNumberDto { ... }) -> OneOf<ByoPhoneNumber, TwilioPhoneNumber, VonagePhoneNumber, VapiPhoneNumber></code></summary>
581+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">UpdateAsync</a>(id, UpdatePhoneNumberDto { ... }) -> object</code></summary>
584582
<dl>
585583
<dd>
586584

@@ -843,7 +841,7 @@ await client.Squads.UpdateAsync(
843841
</details>
844842

845843
## Blocks
846-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">ListAsync</a>(BlocksListRequest { ... }) -> IEnumerable<OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>></code></summary>
844+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">ListAsync</a>(BlocksListRequest { ... }) -> IEnumerable<object></code></summary>
847845
<dl>
848846
<dd>
849847

@@ -883,7 +881,7 @@ await client.Blocks.ListAsync(new BlocksListRequest());
883881
</dl>
884882
</details>
885883

886-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">CreateAsync</a>(OneOf<CreateConversationBlockDto, CreateToolCallBlockDto, CreateWorkflowBlockDto> { ... }) -> OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock></code></summary>
884+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">CreateAsync</a>(object { ... }) -> object</code></summary>
887885
<dl>
888886
<dd>
889887

@@ -896,9 +894,7 @@ await client.Blocks.ListAsync(new BlocksListRequest());
896894
<dd>
897895

898896
```csharp
899-
await client.Blocks.CreateAsync(
900-
new CreateConversationBlockDto { Type = "conversation", Instruction = "instruction" }
901-
);
897+
await client.Blocks.CreateAsync(new CreateWorkflowBlockDto());
902898
```
903899
</dd>
904900
</dl>
@@ -913,7 +909,7 @@ await client.Blocks.CreateAsync(
913909
<dl>
914910
<dd>
915911

916-
**request:** `OneOf<CreateConversationBlockDto, CreateToolCallBlockDto, CreateWorkflowBlockDto>`
912+
**request:** `object`
917913

918914
</dd>
919915
</dl>
@@ -925,7 +921,7 @@ await client.Blocks.CreateAsync(
925921
</dl>
926922
</details>
927923

928-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">GetAsync</a>(id) -> OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock></code></summary>
924+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">GetAsync</a>(id) -> object</code></summary>
929925
<dl>
930926
<dd>
931927

@@ -965,7 +961,7 @@ await client.Blocks.GetAsync("id");
965961
</dl>
966962
</details>
967963

968-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">DeleteAsync</a>(id) -> OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock></code></summary>
964+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">DeleteAsync</a>(id) -> object</code></summary>
969965
<dl>
970966
<dd>
971967

@@ -1005,7 +1001,7 @@ await client.Blocks.DeleteAsync("id");
10051001
</dl>
10061002
</details>
10071003

1008-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">UpdateAsync</a>(id, UpdateBlockDto { ... }) -> OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock></code></summary>
1004+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">UpdateAsync</a>(id, UpdateBlockDto { ... }) -> object</code></summary>
10091005
<dl>
10101006
<dd>
10111007

@@ -1054,7 +1050,7 @@ await client.Blocks.UpdateAsync("id", new UpdateBlockDto());
10541050
</details>
10551051

10561052
## Tools
1057-
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">ListAsync</a>(ToolsListRequest { ... }) -> IEnumerable<OneOf<DtmfTool, EndCallTool, FunctionTool, GhlTool, MakeTool, TransferCallTool, OutputTool>></code></summary>
1053+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">ListAsync</a>(ToolsListRequest { ... }) -> IEnumerable<object></code></summary>
10581054
<dl>
10591055
<dd>
10601056

@@ -1094,7 +1090,7 @@ await client.Tools.ListAsync(new ToolsListRequest());
10941090
</dl>
10951091
</details>
10961092

1097-
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">CreateAsync</a>(OneOf<CreateDtmfToolDto, CreateEndCallToolDto, CreateFunctionToolDto, CreateGhlToolDto, CreateMakeToolDto, CreateTransferCallToolDto, CreateOutputToolDto> { ... }) -> OneOf<DtmfTool, EndCallTool, FunctionTool, GhlTool, MakeTool, TransferCallTool, OutputTool></code></summary>
1093+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">CreateAsync</a>(object { ... }) -> object</code></summary>
10981094
<dl>
10991095
<dd>
11001096

@@ -1107,7 +1103,7 @@ await client.Tools.ListAsync(new ToolsListRequest());
11071103
<dd>
11081104

11091105
```csharp
1110-
await client.Tools.CreateAsync(new CreateDtmfToolDto { Type = "dtmf" });
1106+
await client.Tools.CreateAsync(new CreateOutputToolDto { Async = false });
11111107
```
11121108
</dd>
11131109
</dl>
@@ -1122,7 +1118,7 @@ await client.Tools.CreateAsync(new CreateDtmfToolDto { Type = "dtmf" });
11221118
<dl>
11231119
<dd>
11241120

1125-
**request:** `OneOf<CreateDtmfToolDto, CreateEndCallToolDto, CreateFunctionToolDto, CreateGhlToolDto, CreateMakeToolDto, CreateTransferCallToolDto, CreateOutputToolDto>`
1121+
**request:** `object`
11261122

11271123
</dd>
11281124
</dl>
@@ -1134,7 +1130,7 @@ await client.Tools.CreateAsync(new CreateDtmfToolDto { Type = "dtmf" });
11341130
</dl>
11351131
</details>
11361132

1137-
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">GetAsync</a>(id) -> OneOf<DtmfTool, EndCallTool, FunctionTool, GhlTool, MakeTool, TransferCallTool, OutputTool></code></summary>
1133+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">GetAsync</a>(id) -> object</code></summary>
11381134
<dl>
11391135
<dd>
11401136

@@ -1174,7 +1170,7 @@ await client.Tools.GetAsync("id");
11741170
</dl>
11751171
</details>
11761172

1177-
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">DeleteAsync</a>(id) -> OneOf<DtmfTool, EndCallTool, FunctionTool, GhlTool, MakeTool, TransferCallTool, OutputTool></code></summary>
1173+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">DeleteAsync</a>(id) -> object</code></summary>
11781174
<dl>
11791175
<dd>
11801176

@@ -1214,7 +1210,7 @@ await client.Tools.DeleteAsync("id");
12141210
</dl>
12151211
</details>
12161212

1217-
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">UpdateAsync</a>(id, UpdateToolDto { ... }) -> OneOf<DtmfTool, EndCallTool, FunctionTool, GhlTool, MakeTool, TransferCallTool, OutputTool></code></summary>
1213+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">UpdateAsync</a>(id, UpdateToolDto { ... }) -> object</code></summary>
12181214
<dl>
12191215
<dd>
12201216

src/Vapi.Net.sln

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net", "Vapi.Net\Vapi.Net.csproj", "{D614673F-0965-47EB-B45B-8D8D3C37BA32}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net", "Vapi.Net\Vapi.Net.csproj", "{78DCECF6-D870-44EA-8620-496137FFD83E}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net.Test", "Vapi.Net.Test\Vapi.Net.Test.csproj", "{A7FB338C-BFFE-49FA-B663-792D129C9D15}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net.Test", "Vapi.Net.Test\Vapi.Net.Test.csproj", "{5069B9C6-842E-42F3-92D6-AE02B3806F1D}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -16,13 +16,13 @@ Global
1616
HideSolutionNode = FALSE
1717
EndGlobalSection
1818
GlobalSection(ProjectConfigurationPlatforms) = postSolution
19-
{D614673F-0965-47EB-B45B-8D8D3C37BA32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20-
{D614673F-0965-47EB-B45B-8D8D3C37BA32}.Debug|Any CPU.Build.0 = Debug|Any CPU
21-
{D614673F-0965-47EB-B45B-8D8D3C37BA32}.Release|Any CPU.ActiveCfg = Release|Any CPU
22-
{D614673F-0965-47EB-B45B-8D8D3C37BA32}.Release|Any CPU.Build.0 = Release|Any CPU
23-
{A7FB338C-BFFE-49FA-B663-792D129C9D15}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24-
{A7FB338C-BFFE-49FA-B663-792D129C9D15}.Debug|Any CPU.Build.0 = Debug|Any CPU
25-
{A7FB338C-BFFE-49FA-B663-792D129C9D15}.Release|Any CPU.ActiveCfg = Release|Any CPU
26-
{A7FB338C-BFFE-49FA-B663-792D129C9D15}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{78DCECF6-D870-44EA-8620-496137FFD83E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{78DCECF6-D870-44EA-8620-496137FFD83E}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{78DCECF6-D870-44EA-8620-496137FFD83E}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{78DCECF6-D870-44EA-8620-496137FFD83E}.Release|Any CPU.Build.0 = Release|Any CPU
23+
{5069B9C6-842E-42F3-92D6-AE02B3806F1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24+
{5069B9C6-842E-42F3-92D6-AE02B3806F1D}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{5069B9C6-842E-42F3-92D6-AE02B3806F1D}.Release|Any CPU.ActiveCfg = Release|Any CPU
26+
{5069B9C6-842E-42F3-92D6-AE02B3806F1D}.Release|Any CPU.Build.0 = Release|Any CPU
2727
EndGlobalSection
2828
EndGlobal

src/Vapi.Net/Assistants/Requests/UpdateAssistantDto.cs

+3-29
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Text.Json.Serialization;
2-
using OneOf;
32
using Vapi.Net.Core;
43

54
#nullable enable
@@ -12,44 +11,19 @@ public record UpdateAssistantDto
1211
/// These are the options for the assistant's transcriber.
1312
/// </summary>
1413
[JsonPropertyName("transcriber")]
15-
public OneOf<
16-
DeepgramTranscriber,
17-
GladiaTranscriber,
18-
TalkscriberTranscriber
19-
>? Transcriber { get; set; }
14+
public object? Transcriber { get; set; }
2015

2116
/// <summary>
2217
/// These are the options for the assistant's LLM.
2318
/// </summary>
2419
[JsonPropertyName("model")]
25-
public OneOf<
26-
AnyscaleModel,
27-
AnthropicModel,
28-
CustomLlmModel,
29-
DeepInfraModel,
30-
GroqModel,
31-
OpenAiModel,
32-
OpenRouterModel,
33-
PerplexityAiModel,
34-
TogetherAiModel,
35-
VapiModel
36-
>? Model { get; set; }
20+
public object? Model { get; set; }
3721

3822
/// <summary>
3923
/// These are the options for the assistant's voice.
4024
/// </summary>
4125
[JsonPropertyName("voice")]
42-
public OneOf<
43-
AzureVoice,
44-
CartesiaVoice,
45-
DeepgramVoice,
46-
ElevenLabsVoice,
47-
LmntVoice,
48-
NeetsVoice,
49-
OpenAiVoice,
50-
PlayHtVoice,
51-
RimeAiVoice
52-
>? Voice { get; set; }
26+
public object? Voice { get; set; }
5327

5428
/// <summary>
5529
/// This is the mode for the first message. Default is 'assistant-speaks-first'.

0 commit comments

Comments
 (0)