Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public partial interface IRetellAiClient
/// Example: Frontdesk Number
/// </param>
/// <param name="inboundWebhookUrl">
/// If set, Retell will send a webhook for inbound calls, where you can override the agent ID, set dynamic variables, reject the call, and configure other fields specific to that call.<br/>
/// If set, Retell will send a webhook for inbound calls, where you can override the agent ID, set dynamic variables, reject the call, and configure other fields specific to that call. Includes call_inbound.call_id for deduplication across HTTP retries. Early setup failures may not create a call history record.<br/>
/// Example: https://example.com/inbound-webhook
/// </param>
/// <param name="allowedInboundCountryList">
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public partial interface IRetellAiClient
/// Example: Frontdesk Number
/// </param>
/// <param name="inboundWebhookUrl">
/// If set, Retell will send a webhook for inbound calls, where you can override the agent ID, set dynamic variables, reject the call, and configure other fields specific to that call.<br/>
/// If set, Retell will send a webhook for inbound calls, where you can override the agent ID, set dynamic variables, reject the call, and configure other fields specific to that call. Includes call_inbound.call_id for deduplication across HTTP retries. Early setup failures may not create a call history record.<br/>
/// Example: https://example.com/inbound-webhook
/// </param>
/// <param name="allowedInboundCountryList">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#nullable enable

namespace RetellAI
{
public partial interface IRetellAiClient
{
/// <summary>
/// Mint a subscribe-only access token for an in-progress call so a client can listen to live audio. The returned token grants join + subscribe on the call's existing audio room; it cannot publish. The call must be in ONGOING status.
/// </summary>
/// <param name="callId">
/// Example: 119c3f8e47135a29e65947eeb34cf12d
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::RetellAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::RetellAI.ListenLiveCallResponse> ListenLiveCallAsync(
string callId,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Mint a subscribe-only access token for an in-progress call so a client can listen to live audio. The returned token grants join + subscribe on the call's existing audio room; it cannot publish. The call must be in ONGOING status.
/// </summary>
/// <param name="callId">
/// Example: 119c3f8e47135a29e65947eeb34cf12d
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::RetellAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::RetellAI.AutoSDKHttpResponse<global::RetellAI.ListenLiveCallResponse>> ListenLiveCallAsResponseAsync(
string callId,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#nullable enable

namespace RetellAI
{
public partial interface IRetellAiClient
{
/// <summary>
/// Take over an in-progress call from the AI agent. The agent stops responding and the specified live-listen participant is allowed to speak directly to the caller. The call must be in ONGOING status.
/// </summary>
/// <param name="callId">
/// Example: 119c3f8e47135a29e65947eeb34cf12d
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::RetellAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::RetellAI.TakeOverLiveCallResponse> TakeOverLiveCallAsync(
string callId,

global::RetellAI.TakeOverLiveCallRequest request,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Take over an in-progress call from the AI agent. The agent stops responding and the specified live-listen participant is allowed to speak directly to the caller. The call must be in ONGOING status.
/// </summary>
/// <param name="callId">
/// Example: 119c3f8e47135a29e65947eeb34cf12d
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::RetellAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::RetellAI.AutoSDKHttpResponse<global::RetellAI.TakeOverLiveCallResponse>> TakeOverLiveCallAsResponseAsync(
string callId,

global::RetellAI.TakeOverLiveCallRequest request,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Take over an in-progress call from the AI agent. The agent stops responding and the specified live-listen participant is allowed to speak directly to the caller. The call must be in ONGOING status.
/// </summary>
/// <param name="callId">
/// Example: 119c3f8e47135a29e65947eeb34cf12d
/// </param>
/// <param name="participantId">
/// The id of the live-listen participant to upgrade, obtained when joining via /v2/listen-live-call.<br/>
/// Example: listener_a1b2c3d4e5f6g7h8i9j0
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::RetellAI.TakeOverLiveCallResponse> TakeOverLiveCallAsync(
string callId,
string participantId,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public partial interface IRetellAiClient
/// Example: Frontdesk Number
/// </param>
/// <param name="inboundWebhookUrl">
/// If set, Retell will send a webhook for inbound calls, where you can override the agent ID, set dynamic variables, reject the call, and configure other fields specific to that call.<br/>
/// If set, Retell will send a webhook for inbound calls, where you can override the agent ID, set dynamic variables, reject the call, and configure other fields specific to that call. Includes call_inbound.call_id for deduplication across HTTP retries. Early setup failures may not create a call history record.<br/>
/// Example: https://example.com/inbound-webhook
/// </param>
/// <param name="inboundSmsWebhookUrl">
/// If set, Retell will send a webhook for inbound SMS, where you can override the agent ID, set dynamic variables, reject the SMS, and configure other fields specific to that chat.<br/>
/// If set, Retell will send a webhook for inbound SMS, where you can override the agent ID, set dynamic variables, reject the SMS, and configure other fields specific to that chat. Includes chat_inbound.chat_id for deduplication across HTTP retries. Early setup failures may not create a chat history record.<br/>
/// Example: https://example.com/inbound-sms-webhook
/// </param>
/// <param name="allowedInboundCountryList">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace RetellAI.JsonConverters
{
/// <inheritdoc />
public sealed class ChartConfigSizeEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.ChartConfigSizeEnum>
public sealed class CallTransportJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.CallTransport>
{
/// <inheritdoc />
public override global::RetellAI.ChartConfigSizeEnum Read(
public override global::RetellAI.CallTransport Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class ChartConfigSizeEnumJsonConverter : global::System.Text.Json.
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::RetellAI.ChartConfigSizeEnumExtensions.ToEnum(stringValue) ?? default;
return global::RetellAI.CallTransportExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::RetellAI.ChartConfigSizeEnum)numValue;
return (global::RetellAI.CallTransport)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::RetellAI.ChartConfigSizeEnum);
return default(global::RetellAI.CallTransport);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,12 +42,12 @@ public sealed class ChartConfigSizeEnumJsonConverter : global::System.Text.Json.
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::RetellAI.ChartConfigSizeEnum value,
global::RetellAI.CallTransport value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::RetellAI.ChartConfigSizeEnumExtensions.ToValueString(value));
writer.WriteStringValue(global::RetellAI.CallTransportExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace RetellAI.JsonConverters
{
/// <inheritdoc />
public sealed class ChartConfigSizeEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.ChartConfigSizeEnum?>
public sealed class CallTransportNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.CallTransport?>
{
/// <inheritdoc />
public override global::RetellAI.ChartConfigSizeEnum? Read(
public override global::RetellAI.CallTransport? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class ChartConfigSizeEnumNullableJsonConverter : global::System.Te
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::RetellAI.ChartConfigSizeEnumExtensions.ToEnum(stringValue);
return global::RetellAI.CallTransportExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::RetellAI.ChartConfigSizeEnum)numValue;
return (global::RetellAI.CallTransport)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::RetellAI.ChartConfigSizeEnum?);
return default(global::RetellAI.CallTransport?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,7 +42,7 @@ public sealed class ChartConfigSizeEnumNullableJsonConverter : global::System.Te
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::RetellAI.ChartConfigSizeEnum? value,
global::RetellAI.CallTransport? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -53,7 +53,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::RetellAI.ChartConfigSizeEnumExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::RetellAI.CallTransportExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Loading