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 @@ -236,6 +236,13 @@ public partial interface IRetellAiClient
/// </param>
/// <param name="piiConfig"></param>
/// <param name="guardrailConfig"></param>
/// <param name="handbookConfig">
/// Behavior presets for voice agents. All presets are available.
/// </param>
/// <param name="timezone">
/// IANA timezone for the agent (e.g. America/New_York). Defaults to America/Los_Angeles if not set.<br/>
/// Example: America/New_York
/// </param>
/// <param name="isPublic">
/// Whether the agent is public. When set to true, the agent is available for public agent preview link.<br/>
/// Example: false
Expand Down Expand Up @@ -283,7 +290,7 @@ public partial interface IRetellAiClient
int? voicemailDetectionTimeoutMs = default,
global::RetellAI.AgentRequestVoicemailOption? voicemailOption = default,
global::RetellAI.AgentRequestIvrOption? ivrOption = default,
global::System.Collections.Generic.IList<global::RetellAI.AnalysisData>? postCallAnalysisData = default,
global::System.Collections.Generic.IList<global::RetellAI.PostCallAnalysisData>? postCallAnalysisData = default,
global::RetellAI.NullableLLMModel? postCallAnalysisModel = default,
string? analysisSuccessfulPrompt = default,
string? analysisSummaryPrompt = default,
Expand All @@ -298,6 +305,8 @@ public partial interface IRetellAiClient
global::RetellAI.AgentRequestDenoisingMode? denoisingMode = default,
global::RetellAI.PIIConfig? piiConfig = default,
global::RetellAI.GuardrailConfig? guardrailConfig = default,
global::RetellAI.VoiceHandbookConfig? handbookConfig = default,
string? timezone = default,
bool? isPublic = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ public partial interface IRetellAiClient
/// </param>
/// <param name="piiConfig"></param>
/// <param name="guardrailConfig"></param>
/// <param name="handbookConfig">
/// Behavior presets for chat agents. Voice-only presets are excluded.
/// </param>
/// <param name="timezone">
/// IANA timezone for the agent (e.g. America/New_York). Defaults to America/Los_Angeles if not set.<br/>
/// Example: America/New_York
/// </param>
/// <param name="isPublic">
/// Whether the agent is public. When set to true, the agent is available for public agent preview link.<br/>
/// Example: false
Expand All @@ -116,13 +123,15 @@ public partial interface IRetellAiClient
int? dataStorageRetentionDays = default,
bool? optInSignedUrl = default,
int? signedUrlExpirationMs = default,
global::System.Collections.Generic.IList<global::RetellAI.AnalysisData>? postChatAnalysisData = default,
global::System.Collections.Generic.IList<global::RetellAI.PostChatAnalysisData>? postChatAnalysisData = default,
global::RetellAI.NullableLLMModel? postChatAnalysisModel = default,
string? analysisSuccessfulPrompt = default,
string? analysisSummaryPrompt = default,
string? analysisUserSentimentPrompt = default,
global::RetellAI.PIIConfig? piiConfig = default,
global::RetellAI.GuardrailConfig? guardrailConfig = default,
global::RetellAI.ChatHandbookConfig? handbookConfig = default,
string? timezone = default,
bool? isPublic = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public partial interface IRetellAiClient
/// <param name="beginTagDisplayPosition">
/// Display position for the begin tag in the frontend
/// </param>
/// <param name="notes">
/// Visual annotations displayed on the flow canvas.
/// </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.ConversationFlowComponentResponse> UpdateConversationFlowComponentAsync(
Expand All @@ -52,6 +55,7 @@ public partial interface IRetellAiClient
global::System.Collections.Generic.IList<global::RetellAI.ConversationFlowNode>? nodes = default,
string? startNodeId = default,
global::RetellAI.ConversationFlowComponentBeginTagDisplayPosition? beginTagDisplayPosition = default,
global::System.Collections.Generic.IList<global::RetellAI.Note>? notes = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization
if (__jsonProps.Contains("end_call_after_silence_ms")) __score1++;
if (__jsonProps.Contains("fallback_voice_ids")) __score1++;
if (__jsonProps.Contains("guardrail_config")) __score1++;
if (__jsonProps.Contains("handbook_config")) __score1++;
if (__jsonProps.Contains("interruption_sensitivity")) __score1++;
if (__jsonProps.Contains("is_public")) __score1++;
if (__jsonProps.Contains("ivr_option")) __score1++;
Expand All @@ -70,6 +71,7 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization
if (__jsonProps.Contains("ring_duration_ms")) __score1++;
if (__jsonProps.Contains("signed_url_expiration_ms")) __score1++;
if (__jsonProps.Contains("stt_mode")) __score1++;
if (__jsonProps.Contains("timezone")) __score1++;
if (__jsonProps.Contains("user_dtmf_options")) __score1++;
if (__jsonProps.Contains("version_description")) __score1++;
if (__jsonProps.Contains("vocab_specialization")) __score1++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,27 @@ public class AnalysisDataJsonConverter : global::System.Text.Json.Serialization.
}

var __score0 = 0;
if (__jsonProps.Contains("conditional_prompt")) __score0++;
if (__jsonProps.Contains("description")) __score0++;
if (__jsonProps.Contains("examples")) __score0++;
if (__jsonProps.Contains("name")) __score0++;
if (__jsonProps.Contains("required")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("choices")) __score1++;
if (__jsonProps.Contains("conditional_prompt")) __score1++;
if (__jsonProps.Contains("description")) __score1++;
if (__jsonProps.Contains("name")) __score1++;
if (__jsonProps.Contains("required")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("conditional_prompt")) __score2++;
if (__jsonProps.Contains("description")) __score2++;
if (__jsonProps.Contains("name")) __score2++;
if (__jsonProps.Contains("required")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("conditional_prompt")) __score3++;
if (__jsonProps.Contains("description")) __score3++;
if (__jsonProps.Contains("name")) __score3++;
if (__jsonProps.Contains("required")) __score3++;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace RetellAI.JsonConverters
{
/// <inheritdoc />
public sealed class CallPresetAnalysisDataNameJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.CallPresetAnalysisDataName>
{
/// <inheritdoc />
public override global::RetellAI.CallPresetAnalysisDataName Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::RetellAI.CallPresetAnalysisDataNameExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::RetellAI.CallPresetAnalysisDataName)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::RetellAI.CallPresetAnalysisDataName);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::RetellAI.CallPresetAnalysisDataName value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::RetellAI.CallPresetAnalysisDataNameExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace RetellAI.JsonConverters
{
/// <inheritdoc />
public sealed class CallPresetAnalysisDataNameNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.CallPresetAnalysisDataName?>
{
/// <inheritdoc />
public override global::RetellAI.CallPresetAnalysisDataName? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::RetellAI.CallPresetAnalysisDataNameExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::RetellAI.CallPresetAnalysisDataName)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::RetellAI.CallPresetAnalysisDataName?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::RetellAI.CallPresetAnalysisDataName? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

if (value == null)
{
writer.WriteNullValue();
}
else
{
writer.WriteStringValue(global::RetellAI.CallPresetAnalysisDataNameExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace RetellAI.JsonConverters
{
/// <inheritdoc />
public sealed class CallPresetAnalysisDataTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.CallPresetAnalysisDataType>
{
/// <inheritdoc />
public override global::RetellAI.CallPresetAnalysisDataType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::RetellAI.CallPresetAnalysisDataTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::RetellAI.CallPresetAnalysisDataType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::RetellAI.CallPresetAnalysisDataType);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::RetellAI.CallPresetAnalysisDataType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::RetellAI.CallPresetAnalysisDataTypeExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace RetellAI.JsonConverters
{
/// <inheritdoc />
public sealed class CallPresetAnalysisDataTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.CallPresetAnalysisDataType?>
{
/// <inheritdoc />
public override global::RetellAI.CallPresetAnalysisDataType? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::RetellAI.CallPresetAnalysisDataTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::RetellAI.CallPresetAnalysisDataType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::RetellAI.CallPresetAnalysisDataType?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::RetellAI.CallPresetAnalysisDataType? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

if (value == null)
{
writer.WriteNullValue();
}
else
{
writer.WriteStringValue(global::RetellAI.CallPresetAnalysisDataTypeExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa
if (__jsonProps.Contains("data_storage_setting")) __score1++;
if (__jsonProps.Contains("end_chat_after_silence_ms")) __score1++;
if (__jsonProps.Contains("guardrail_config")) __score1++;
if (__jsonProps.Contains("handbook_config")) __score1++;
if (__jsonProps.Contains("is_public")) __score1++;
if (__jsonProps.Contains("language")) __score1++;
if (__jsonProps.Contains("opt_in_signed_url")) __score1++;
Expand All @@ -48,6 +49,7 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa
if (__jsonProps.Contains("post_chat_analysis_model")) __score1++;
if (__jsonProps.Contains("response_engine")) __score1++;
if (__jsonProps.Contains("signed_url_expiration_ms")) __score1++;
if (__jsonProps.Contains("timezone")) __score1++;
if (__jsonProps.Contains("webhook_events")) __score1++;
if (__jsonProps.Contains("webhook_timeout_ms")) __score1++;
if (__jsonProps.Contains("webhook_url")) __score1++;
Expand Down
Loading