Skip to content

Commit 2903c52

Browse files
committed
Release 0.0.0-alpha0
1 parent ae26762 commit 2903c52

File tree

428 files changed

+987
-985
lines changed

Some content is hidden

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

428 files changed

+987
-985
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ jobs:
6666
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
6767
run: |
6868
dotnet pack src -c Release
69-
dotnet nuget push src/Vapi.Client/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source "nuget.org"
69+
dotnet nuget push src/Vapi.Net/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source "nuget.org"

README.md

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

3-
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
4-
[![nuget shield](https://img.shields.io/nuget/v/Vapi.Client)](https://nuget.org/packages/Vapi.Client)
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)
4+
[![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#.
77

88
## Installation
99

1010
```sh
11-
nuget install Vapi.Client
11+
nuget install Vapi.Net
1212
```
1313

1414
## Usage
1515

1616
Instantiate and use the client with the following:
1717

1818
```csharp
19-
using Vapi.Client;
19+
using Vapi.Net;
2020

21-
var client = new Vapi("TOKEN");
21+
var client = new VapiClient("TOKEN");
2222
await client.Calls.CreateAsync(new CreateCallDto());
2323
```
2424

@@ -28,11 +28,11 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
2828
will be thrown.
2929

3030
```csharp
31-
using Vapi.Client;
31+
using Vapi.Net;
3232

3333
try {
3434
var response = await client.Calls.CreateAsync(...);
35-
} catch (VapiApiException e) {
35+
} catch (VapiClientApiException e) {
3636
System.Console.WriteLine(e.Body);
3737
System.Console.WriteLine(e.StatusCode);
3838
}

reference.md

+36-36
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Reference
22
## Calls
3-
<details><summary><code>client.Calls.<a href="/src/Vapi.Client/Calls/CallsClient.cs">ListAsync</a>(CallsListRequest { ... }) -> IEnumerable<Call></code></summary>
3+
<details><summary><code>client.Calls.<a href="/src/Vapi.Net/Calls/CallsClient.cs">ListAsync</a>(CallsListRequest { ... }) -> IEnumerable<Call></code></summary>
44
<dl>
55
<dd>
66

@@ -40,7 +40,7 @@ await client.Calls.ListAsync(new CallsListRequest());
4040
</dl>
4141
</details>
4242

43-
<details><summary><code>client.Calls.<a href="/src/Vapi.Client/Calls/CallsClient.cs">CreateAsync</a>(CreateCallDto { ... }) -> Call</code></summary>
43+
<details><summary><code>client.Calls.<a href="/src/Vapi.Net/Calls/CallsClient.cs">CreateAsync</a>(CreateCallDto { ... }) -> Call</code></summary>
4444
<dl>
4545
<dd>
4646

@@ -80,7 +80,7 @@ await client.Calls.CreateAsync(new CreateCallDto());
8080
</dl>
8181
</details>
8282

83-
<details><summary><code>client.Calls.<a href="/src/Vapi.Client/Calls/CallsClient.cs">GetAsync</a>(id) -> Call</code></summary>
83+
<details><summary><code>client.Calls.<a href="/src/Vapi.Net/Calls/CallsClient.cs">GetAsync</a>(id) -> Call</code></summary>
8484
<dl>
8585
<dd>
8686

@@ -120,7 +120,7 @@ await client.Calls.GetAsync("id");
120120
</dl>
121121
</details>
122122

123-
<details><summary><code>client.Calls.<a href="/src/Vapi.Client/Calls/CallsClient.cs">DeleteAsync</a>(id) -> Call</code></summary>
123+
<details><summary><code>client.Calls.<a href="/src/Vapi.Net/Calls/CallsClient.cs">DeleteAsync</a>(id) -> Call</code></summary>
124124
<dl>
125125
<dd>
126126

@@ -160,7 +160,7 @@ await client.Calls.DeleteAsync("id");
160160
</dl>
161161
</details>
162162

163-
<details><summary><code>client.Calls.<a href="/src/Vapi.Client/Calls/CallsClient.cs">UpdateAsync</a>(id, UpdateCallDto { ... }) -> Call</code></summary>
163+
<details><summary><code>client.Calls.<a href="/src/Vapi.Net/Calls/CallsClient.cs">UpdateAsync</a>(id, UpdateCallDto { ... }) -> Call</code></summary>
164164
<dl>
165165
<dd>
166166

@@ -209,7 +209,7 @@ await client.Calls.UpdateAsync("id", new UpdateCallDto());
209209
</details>
210210

211211
## Assistants
212-
<details><summary><code>client.Assistants.<a href="/src/Vapi.Client/Assistants/AssistantsClient.cs">ListAsync</a>(AssistantsListRequest { ... }) -> IEnumerable<Assistant></code></summary>
212+
<details><summary><code>client.Assistants.<a href="/src/Vapi.Net/Assistants/AssistantsClient.cs">ListAsync</a>(AssistantsListRequest { ... }) -> IEnumerable<Assistant></code></summary>
213213
<dl>
214214
<dd>
215215

@@ -249,7 +249,7 @@ await client.Assistants.ListAsync(new AssistantsListRequest());
249249
</dl>
250250
</details>
251251

252-
<details><summary><code>client.Assistants.<a href="/src/Vapi.Client/Assistants/AssistantsClient.cs">CreateAsync</a>(CreateAssistantDto { ... }) -> Assistant</code></summary>
252+
<details><summary><code>client.Assistants.<a href="/src/Vapi.Net/Assistants/AssistantsClient.cs">CreateAsync</a>(CreateAssistantDto { ... }) -> Assistant</code></summary>
253253
<dl>
254254
<dd>
255255

@@ -289,7 +289,7 @@ await client.Assistants.CreateAsync(new CreateAssistantDto());
289289
</dl>
290290
</details>
291291

292-
<details><summary><code>client.Assistants.<a href="/src/Vapi.Client/Assistants/AssistantsClient.cs">GetAsync</a>(id) -> Assistant</code></summary>
292+
<details><summary><code>client.Assistants.<a href="/src/Vapi.Net/Assistants/AssistantsClient.cs">GetAsync</a>(id) -> Assistant</code></summary>
293293
<dl>
294294
<dd>
295295

@@ -329,7 +329,7 @@ await client.Assistants.GetAsync("id");
329329
</dl>
330330
</details>
331331

332-
<details><summary><code>client.Assistants.<a href="/src/Vapi.Client/Assistants/AssistantsClient.cs">DeleteAsync</a>(id) -> Assistant</code></summary>
332+
<details><summary><code>client.Assistants.<a href="/src/Vapi.Net/Assistants/AssistantsClient.cs">DeleteAsync</a>(id) -> Assistant</code></summary>
333333
<dl>
334334
<dd>
335335

@@ -369,7 +369,7 @@ await client.Assistants.DeleteAsync("id");
369369
</dl>
370370
</details>
371371

372-
<details><summary><code>client.Assistants.<a href="/src/Vapi.Client/Assistants/AssistantsClient.cs">UpdateAsync</a>(id, UpdateAssistantDto { ... }) -> Assistant</code></summary>
372+
<details><summary><code>client.Assistants.<a href="/src/Vapi.Net/Assistants/AssistantsClient.cs">UpdateAsync</a>(id, UpdateAssistantDto { ... }) -> Assistant</code></summary>
373373
<dl>
374374
<dd>
375375

@@ -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.Client/PhoneNumbers/PhoneNumbersClient.cs">ListAsync</a>(PhoneNumbersListRequest { ... }) -> IEnumerable<object></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.Client/PhoneNumbers/PhoneNumbersClient.cs">CreateAsync</a>(object { ... }) -> object</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

@@ -498,7 +498,7 @@ await client.PhoneNumbers.CreateAsync(new CreateVapiPhoneNumberDto { SipUri = "s
498498
</dl>
499499
</details>
500500

501-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Client/PhoneNumbers/PhoneNumbersClient.cs">GetAsync</a>(id) -> object</code></summary>
501+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">GetAsync</a>(id) -> object</code></summary>
502502
<dl>
503503
<dd>
504504

@@ -538,7 +538,7 @@ await client.PhoneNumbers.GetAsync("id");
538538
</dl>
539539
</details>
540540

541-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Client/PhoneNumbers/PhoneNumbersClient.cs">DeleteAsync</a>(id) -> object</code></summary>
541+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">DeleteAsync</a>(id) -> object</code></summary>
542542
<dl>
543543
<dd>
544544

@@ -578,7 +578,7 @@ await client.PhoneNumbers.DeleteAsync("id");
578578
</dl>
579579
</details>
580580

581-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Client/PhoneNumbers/PhoneNumbersClient.cs">UpdateAsync</a>(id, UpdatePhoneNumberDto { ... }) -> object</code></summary>
581+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">UpdateAsync</a>(id, UpdatePhoneNumberDto { ... }) -> object</code></summary>
582582
<dl>
583583
<dd>
584584

@@ -627,7 +627,7 @@ await client.PhoneNumbers.UpdateAsync("id", new UpdatePhoneNumberDto());
627627
</details>
628628

629629
## Squads
630-
<details><summary><code>client.Squads.<a href="/src/Vapi.Client/Squads/SquadsClient.cs">ListAsync</a>(SquadsListRequest { ... }) -> IEnumerable<Squad></code></summary>
630+
<details><summary><code>client.Squads.<a href="/src/Vapi.Net/Squads/SquadsClient.cs">ListAsync</a>(SquadsListRequest { ... }) -> IEnumerable<Squad></code></summary>
631631
<dl>
632632
<dd>
633633

@@ -667,7 +667,7 @@ await client.Squads.ListAsync(new SquadsListRequest());
667667
</dl>
668668
</details>
669669

670-
<details><summary><code>client.Squads.<a href="/src/Vapi.Client/Squads/SquadsClient.cs">CreateAsync</a>(CreateSquadDto { ... }) -> Squad</code></summary>
670+
<details><summary><code>client.Squads.<a href="/src/Vapi.Net/Squads/SquadsClient.cs">CreateAsync</a>(CreateSquadDto { ... }) -> Squad</code></summary>
671671
<dl>
672672
<dd>
673673

@@ -709,7 +709,7 @@ await client.Squads.CreateAsync(
709709
</dl>
710710
</details>
711711

712-
<details><summary><code>client.Squads.<a href="/src/Vapi.Client/Squads/SquadsClient.cs">GetAsync</a>(id) -> Squad</code></summary>
712+
<details><summary><code>client.Squads.<a href="/src/Vapi.Net/Squads/SquadsClient.cs">GetAsync</a>(id) -> Squad</code></summary>
713713
<dl>
714714
<dd>
715715

@@ -749,7 +749,7 @@ await client.Squads.GetAsync("id");
749749
</dl>
750750
</details>
751751

752-
<details><summary><code>client.Squads.<a href="/src/Vapi.Client/Squads/SquadsClient.cs">DeleteAsync</a>(id) -> Squad</code></summary>
752+
<details><summary><code>client.Squads.<a href="/src/Vapi.Net/Squads/SquadsClient.cs">DeleteAsync</a>(id) -> Squad</code></summary>
753753
<dl>
754754
<dd>
755755

@@ -789,7 +789,7 @@ await client.Squads.DeleteAsync("id");
789789
</dl>
790790
</details>
791791

792-
<details><summary><code>client.Squads.<a href="/src/Vapi.Client/Squads/SquadsClient.cs">UpdateAsync</a>(id, UpdateSquadDto { ... }) -> Squad</code></summary>
792+
<details><summary><code>client.Squads.<a href="/src/Vapi.Net/Squads/SquadsClient.cs">UpdateAsync</a>(id, UpdateSquadDto { ... }) -> Squad</code></summary>
793793
<dl>
794794
<dd>
795795

@@ -841,7 +841,7 @@ await client.Squads.UpdateAsync(
841841
</details>
842842

843843
## Blocks
844-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Client/Blocks/BlocksClient.cs">ListAsync</a>(BlocksListRequest { ... }) -> IEnumerable<object></code></summary>
844+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">ListAsync</a>(BlocksListRequest { ... }) -> IEnumerable<object></code></summary>
845845
<dl>
846846
<dd>
847847

@@ -881,7 +881,7 @@ await client.Blocks.ListAsync(new BlocksListRequest());
881881
</dl>
882882
</details>
883883

884-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Client/Blocks/BlocksClient.cs">CreateAsync</a>(object { ... }) -> object</code></summary>
884+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">CreateAsync</a>(object { ... }) -> object</code></summary>
885885
<dl>
886886
<dd>
887887

@@ -921,7 +921,7 @@ await client.Blocks.CreateAsync(new CreateWorkflowBlockDto());
921921
</dl>
922922
</details>
923923

924-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Client/Blocks/BlocksClient.cs">GetAsync</a>(id) -> object</code></summary>
924+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">GetAsync</a>(id) -> object</code></summary>
925925
<dl>
926926
<dd>
927927

@@ -961,7 +961,7 @@ await client.Blocks.GetAsync("id");
961961
</dl>
962962
</details>
963963

964-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Client/Blocks/BlocksClient.cs">DeleteAsync</a>(id) -> object</code></summary>
964+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">DeleteAsync</a>(id) -> object</code></summary>
965965
<dl>
966966
<dd>
967967

@@ -1001,7 +1001,7 @@ await client.Blocks.DeleteAsync("id");
10011001
</dl>
10021002
</details>
10031003

1004-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Client/Blocks/BlocksClient.cs">UpdateAsync</a>(id, UpdateBlockDto { ... }) -> object</code></summary>
1004+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">UpdateAsync</a>(id, UpdateBlockDto { ... }) -> object</code></summary>
10051005
<dl>
10061006
<dd>
10071007

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

10521052
## Tools
1053-
<details><summary><code>client.Tools.<a href="/src/Vapi.Client/Tools/ToolsClient.cs">ListAsync</a>(ToolsListRequest { ... }) -> IEnumerable<object></code></summary>
1053+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">ListAsync</a>(ToolsListRequest { ... }) -> IEnumerable<object></code></summary>
10541054
<dl>
10551055
<dd>
10561056

@@ -1090,7 +1090,7 @@ await client.Tools.ListAsync(new ToolsListRequest());
10901090
</dl>
10911091
</details>
10921092

1093-
<details><summary><code>client.Tools.<a href="/src/Vapi.Client/Tools/ToolsClient.cs">CreateAsync</a>(object { ... }) -> object</code></summary>
1093+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">CreateAsync</a>(object { ... }) -> object</code></summary>
10941094
<dl>
10951095
<dd>
10961096

@@ -1130,7 +1130,7 @@ await client.Tools.CreateAsync(new CreateOutputToolDto { Async = false });
11301130
</dl>
11311131
</details>
11321132

1133-
<details><summary><code>client.Tools.<a href="/src/Vapi.Client/Tools/ToolsClient.cs">GetAsync</a>(id) -> object</code></summary>
1133+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">GetAsync</a>(id) -> object</code></summary>
11341134
<dl>
11351135
<dd>
11361136

@@ -1170,7 +1170,7 @@ await client.Tools.GetAsync("id");
11701170
</dl>
11711171
</details>
11721172

1173-
<details><summary><code>client.Tools.<a href="/src/Vapi.Client/Tools/ToolsClient.cs">DeleteAsync</a>(id) -> object</code></summary>
1173+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">DeleteAsync</a>(id) -> object</code></summary>
11741174
<dl>
11751175
<dd>
11761176

@@ -1210,7 +1210,7 @@ await client.Tools.DeleteAsync("id");
12101210
</dl>
12111211
</details>
12121212

1213-
<details><summary><code>client.Tools.<a href="/src/Vapi.Client/Tools/ToolsClient.cs">UpdateAsync</a>(id, UpdateToolDto { ... }) -> object</code></summary>
1213+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">UpdateAsync</a>(id, UpdateToolDto { ... }) -> object</code></summary>
12141214
<dl>
12151215
<dd>
12161216

@@ -1259,7 +1259,7 @@ await client.Tools.UpdateAsync("id", new UpdateToolDto());
12591259
</details>
12601260

12611261
## Files
1262-
<details><summary><code>client.Files.<a href="/src/Vapi.Client/Files/FilesClient.cs">ListAsync</a>() -> IEnumerable<File></code></summary>
1262+
<details><summary><code>client.Files.<a href="/src/Vapi.Net/Files/FilesClient.cs">ListAsync</a>() -> IEnumerable<File></code></summary>
12631263
<dl>
12641264
<dd>
12651265

@@ -1284,7 +1284,7 @@ await client.Files.ListAsync();
12841284
</dl>
12851285
</details>
12861286

1287-
<details><summary><code>client.Files.<a href="/src/Vapi.Client/Files/FilesClient.cs">GetAsync</a>(id) -> File</code></summary>
1287+
<details><summary><code>client.Files.<a href="/src/Vapi.Net/Files/FilesClient.cs">GetAsync</a>(id) -> File</code></summary>
12881288
<dl>
12891289
<dd>
12901290

@@ -1324,7 +1324,7 @@ await client.Files.GetAsync("id");
13241324
</dl>
13251325
</details>
13261326

1327-
<details><summary><code>client.Files.<a href="/src/Vapi.Client/Files/FilesClient.cs">DeleteAsync</a>(id) -> File</code></summary>
1327+
<details><summary><code>client.Files.<a href="/src/Vapi.Net/Files/FilesClient.cs">DeleteAsync</a>(id) -> File</code></summary>
13281328
<dl>
13291329
<dd>
13301330

@@ -1364,7 +1364,7 @@ await client.Files.DeleteAsync("id");
13641364
</dl>
13651365
</details>
13661366

1367-
<details><summary><code>client.Files.<a href="/src/Vapi.Client/Files/FilesClient.cs">UpdateAsync</a>(id, UpdateFileDto { ... }) -> File</code></summary>
1367+
<details><summary><code>client.Files.<a href="/src/Vapi.Net/Files/FilesClient.cs">UpdateAsync</a>(id, UpdateFileDto { ... }) -> File</code></summary>
13681368
<dl>
13691369
<dd>
13701370

@@ -1413,7 +1413,7 @@ await client.Files.UpdateAsync("id", new UpdateFileDto());
14131413
</details>
14141414

14151415
## Analytics
1416-
<details><summary><code>client.Analytics.<a href="/src/Vapi.Client/Analytics/AnalyticsClient.cs">GetAsync</a>(AnalyticsQueryDto { ... }) -> IEnumerable<AnalyticsQueryResult></code></summary>
1416+
<details><summary><code>client.Analytics.<a href="/src/Vapi.Net/Analytics/AnalyticsClient.cs">GetAsync</a>(AnalyticsQueryDto { ... }) -> IEnumerable<AnalyticsQueryResult></code></summary>
14171417
<dl>
14181418
<dd>
14191419

@@ -1474,7 +1474,7 @@ await client.Analytics.GetAsync(
14741474
</details>
14751475

14761476
## Logs
1477-
<details><summary><code>client.Logs.<a href="/src/Vapi.Client/Logs/LogsClient.cs">GetAsync</a>(LogsGetRequest { ... }) -> LogsPaginatedResponse</code></summary>
1477+
<details><summary><code>client.Logs.<a href="/src/Vapi.Net/Logs/LogsClient.cs">GetAsync</a>(LogsGetRequest { ... }) -> LogsPaginatedResponse</code></summary>
14781478
<dl>
14791479
<dd>
14801480

0 commit comments

Comments
 (0)