Skip to content

Commit 74f91cd

Browse files
feat: add dial timeout configuration and conversation type to transfer and SMS transport
Enhance TransferPlan with configurable dial timeout for SIP operations and introduce conversation type support for TwilioSmsChatTransport. These additions provide better control over call transfer behavior and enable explicit chat type specification for SMS transport. Key changes: - Add DialTimeout property to TransferPlan for configuring SIP dial operation timeout (default 60 seconds) - Add ConversationType property to TwilioSmsChatTransport with new enum for chat specification - Update project GUIDs in solution file for project reference alignment - Adjust User-Agent header to use dynamic versioning 🌿 Generated with Fern
1 parent 72e66ca commit 74f91cd

File tree

8 files changed

+51
-13
lines changed

8 files changed

+51
-13
lines changed

changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## 0.11.0 - 2025-11-19
2+
* feat: add dial timeout configuration and conversation type to transfer and SMS transport
3+
* Enhance TransferPlan with configurable dial timeout for SIP operations and introduce conversation type support for TwilioSmsChatTransport. These additions provide better control over call transfer behavior and enable explicit chat type specification for SMS transport.
4+
* Key changes:
5+
* Add DialTimeout property to TransferPlan for configuring SIP dial operation timeout (default 60 seconds)
6+
* Add ConversationType property to TwilioSmsChatTransport with new enum for chat specification
7+
* Update project GUIDs in solution file for project reference alignment
8+
* Adjust User-Agent header to use dynamic versioning
9+
* 🌿 Generated with Fern
10+

src/Vapi.Net.sln

Lines changed: 10 additions & 10 deletions
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", "{1E8D9780-518C-4A7B-B4BC-3904E0B3E9A7}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net", "Vapi.Net\Vapi.Net.csproj", "{0335FF66-50A0-4355-9BE3-4985388D968A}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net.Test", "Vapi.Net.Test\Vapi.Net.Test.csproj", "{DE87E19F-BD13-445B-8FFD-057E77EE332A}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net.Test", "Vapi.Net.Test\Vapi.Net.Test.csproj", "{4DCDA4CD-BD9F-4D9E-8A66-C79CC6768B31}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -16,13 +16,13 @@ Global
1616
HideSolutionNode = FALSE
1717
EndGlobalSection
1818
GlobalSection(ProjectConfigurationPlatforms) = postSolution
19-
{1E8D9780-518C-4A7B-B4BC-3904E0B3E9A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20-
{1E8D9780-518C-4A7B-B4BC-3904E0B3E9A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
21-
{1E8D9780-518C-4A7B-B4BC-3904E0B3E9A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
22-
{1E8D9780-518C-4A7B-B4BC-3904E0B3E9A7}.Release|Any CPU.Build.0 = Release|Any CPU
23-
{DE87E19F-BD13-445B-8FFD-057E77EE332A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24-
{DE87E19F-BD13-445B-8FFD-057E77EE332A}.Debug|Any CPU.Build.0 = Debug|Any CPU
25-
{DE87E19F-BD13-445B-8FFD-057E77EE332A}.Release|Any CPU.ActiveCfg = Release|Any CPU
26-
{DE87E19F-BD13-445B-8FFD-057E77EE332A}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{0335FF66-50A0-4355-9BE3-4985388D968A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{0335FF66-50A0-4355-9BE3-4985388D968A}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{0335FF66-50A0-4355-9BE3-4985388D968A}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{0335FF66-50A0-4355-9BE3-4985388D968A}.Release|Any CPU.Build.0 = Release|Any CPU
23+
{4DCDA4CD-BD9F-4D9E-8A66-C79CC6768B31}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24+
{4DCDA4CD-BD9F-4D9E-8A66-C79CC6768B31}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{4DCDA4CD-BD9F-4D9E-8A66-C79CC6768B31}.Release|Any CPU.ActiveCfg = Release|Any CPU
26+
{4DCDA4CD-BD9F-4D9E-8A66-C79CC6768B31}.Release|Any CPU.Build.0 = Release|Any CPU
2727
EndGlobalSection
2828
EndGlobal

src/Vapi.Net/Core/Public/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ namespace Vapi.Net;
33
[Serializable]
44
internal class Version
55
{
6-
public const string Current = "0.10.0";
6+
public const string Current = "0.11.0";
77
}

src/Vapi.Net/Types/TransferPlan.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ public record TransferPlan
5252
[JsonPropertyName("sipVerb")]
5353
public object? SipVerb { get; set; }
5454

55+
/// <summary>
56+
/// This sets the timeout for the dial operation in seconds. This is the duration the call will ring before timing out.
57+
///
58+
/// Only applicable when `sipVerb='dial'`. Not applicable for SIP REFER or BYE.
59+
///
60+
/// @default 60
61+
/// </summary>
62+
[JsonPropertyName("dialTimeout")]
63+
public double? DialTimeout { get; set; }
64+
5565
/// <summary>
5666
/// This is the URL to an audio file played while the customer is on hold during transfer.
5767
///

src/Vapi.Net/Types/TwilioSmsChatTransport.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ namespace Vapi.Net;
77
[Serializable]
88
public record TwilioSmsChatTransport
99
{
10+
/// <summary>
11+
/// This is the conversation type of the call (ie, voice or chat).
12+
/// </summary>
13+
[JsonPropertyName("conversationType")]
14+
public TwilioSmsChatTransportConversationType? ConversationType { get; set; }
15+
1016
/// <summary>
1117
/// This is the phone number that will be used to send the SMS.
1218
/// If provided, will create a new session. If not provided, uses existing session's phoneNumberId.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System.Runtime.Serialization;
2+
using System.Text.Json.Serialization;
3+
using Vapi.Net.Core;
4+
5+
namespace Vapi.Net;
6+
7+
[JsonConverter(typeof(EnumSerializer<TwilioSmsChatTransportConversationType>))]
8+
public enum TwilioSmsChatTransportConversationType
9+
{
10+
[EnumMember(Value = "chat")]
11+
Chat,
12+
}

src/Vapi.Net/Vapi.Net.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ImplicitUsings>enable</ImplicitUsings>
55
<LangVersion>12</LangVersion>
66
<Nullable>enable</Nullable>
7-
<Version>0.10.0</Version>
7+
<Version>0.11.0</Version>
88
<AssemblyVersion>$(Version)</AssemblyVersion>
99
<FileVersion>$(Version)</FileVersion>
1010
<PackageReadmeFile>README.md</PackageReadmeFile>

src/Vapi.Net/VapiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public VapiClient(string? token = null, ClientOptions? clientOptions = null)
1515
{ "X-Fern-Language", "C#" },
1616
{ "X-Fern-SDK-Name", "Vapi.Net" },
1717
{ "X-Fern-SDK-Version", Version.Current },
18-
{ "User-Agent", "Vapi.Net/0.10.0" },
18+
{ "User-Agent", "Vapi.Net/AUTO" },
1919
}
2020
);
2121
clientOptions ??= new ClientOptions();

0 commit comments

Comments
 (0)