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
37 changes: 6 additions & 31 deletions src/libs/RetellAI/Generated/RetellAI.AllOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace RetellAI
/// <summary>
///
/// </summary>
public readonly partial struct AllOf<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2> : global::System.IEquatable<AllOf<T1, T2>>
public readonly partial struct AllOf<T1, T2> : global::System.IEquatable<AllOf<T1, T2>>
{
/// <summary>
///
Expand Down Expand Up @@ -105,42 +105,17 @@ Value1 as object
Value2?.ToString()
;

private static bool RequiresValue<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] TValue>() => RequirementCache<TValue>.Value;

private static bool DetermineRequiresValue([global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type type)
private static bool RequiresValue<TValue>()
{
var type = typeof(TValue);
if (global::System.Nullable.GetUnderlyingType(type) != null)
{
return false;
}

if (type.IsValueType ||
type == typeof(string) ||
type.IsArray)
{
return true;
}

foreach (var property in type.GetProperties(global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Public))
{
foreach (var attributeData in property.CustomAttributes)
{
var attributeTypeName = attributeData.AttributeType.FullName;
if (attributeTypeName == "System.Text.Json.Serialization.JsonRequiredAttribute" ||
attributeTypeName == "Newtonsoft.Json.JsonRequiredAttribute" ||
attributeTypeName == "System.Runtime.CompilerServices.RequiredMemberAttribute")
{
return true;
}
}
}

return false;
}

private static class RequirementCache<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] TValue>
{
public static readonly bool Value = DetermineRequiresValue(typeof(TValue));
return type.IsValueType ||
type == typeof(string) ||
type.IsArray;
}


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#nullable enable

namespace RetellAI
{
public partial interface IRetellAiClient
{
/// <summary>
/// Create a new draft agent version from a base version.
/// </summary>
/// <param name="agentId">
/// Example: agent_xxx
/// </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.OneOf<global::RetellAI.AgentResponse?, global::RetellAI.ChatAgentResponse?>> CreateAgentVersionAsync(
string agentId,

global::RetellAI.CreateAgentVersionRequest request,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a new draft agent version from a base version.
/// </summary>
/// <param name="agentId">
/// Example: agent_xxx
/// </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.OneOf<global::RetellAI.AgentResponse?, global::RetellAI.ChatAgentResponse?>>> CreateAgentVersionAsResponseAsync(
string agentId,

global::RetellAI.CreateAgentVersionRequest request,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a new draft agent version from a base version.
/// </summary>
/// <param name="agentId">
/// Example: agent_xxx
/// </param>
/// <param name="baseVersion">
/// Existing version used as the base when creating a new draft.<br/>
/// Example: 12
/// </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.OneOf<global::RetellAI.AgentResponse?, global::RetellAI.ChatAgentResponse?>> CreateAgentVersionAsync(
string agentId,
int baseVersion,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public partial interface IRetellAiClient
/// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD
/// </param>
/// <param name="agentVersion">
/// The version of the chat agent to use for the chat. If not provided, will default to latest version.<br/>
/// Example: 1
/// Agent version reference. Supports a numeric version (for example 3) or a tag/environment name (for example "prod"). When a tag is provided, resolution uses that exact tag assignment (including its dynamic variables). If the tag exists but is currently unassigned, it resolves to latest. When a numeric version (or latest) is provided, resolution applies dynamic variables from the preferred tag for that resolved version (most recently assigned), if any.
/// </param>
/// <param name="metadata">
/// An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.
Expand All @@ -51,7 +50,7 @@ public partial interface IRetellAiClient
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::RetellAI.ChatResponse> CreateChatAsync(
string agentId,
int? agentVersion = default,
global::RetellAI.AgentVersionReference? agentVersion = default,
object? metadata = default,
object? retellLlmDynamicVariables = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public partial interface IRetellAiClient
/// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD
/// </param>
/// <param name="overrideAgentVersion">
/// For this particular call, override the agent version used with this version. This does not bind the agent version to this number, this is for one time override.<br/>
/// Example: 1
/// Agent version reference. Supports a numeric version (for example 3) or a tag/environment name (for example "prod"). When a tag is provided, resolution uses that exact tag assignment (including its dynamic variables). If the tag exists but is currently unassigned, it resolves to latest. When a numeric version (or latest) is provided, resolution applies dynamic variables from the preferred tag for that resolved version (most recently assigned), if any.
/// </param>
/// <param name="agentOverride">
/// Override configuration for agent, retell LLM, or conversation flow settings for a specific call.
Expand All @@ -72,7 +71,7 @@ public partial interface IRetellAiClient
string fromNumber,
string toNumber,
string? overrideAgentId = default,
int? overrideAgentVersion = default,
global::RetellAI.AgentVersionReference? overrideAgentVersion = default,
global::RetellAI.AgentOverrideRequest? agentOverride = default,
object? metadata = default,
object? retellLlmDynamicVariables = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public partial interface IRetellAiClient
/// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD
/// </param>
/// <param name="overrideAgentVersion">
/// For this particular chat, override the agent version used with this version. This does not bind the agent version to this number, this is for one time override.<br/>
/// Example: 1
/// Agent version reference. Supports a numeric version (for example 3) or a tag/environment name (for example "prod"). When a tag is provided, resolution uses that exact tag assignment (including its dynamic variables). If the tag exists but is currently unassigned, it resolves to latest. When a numeric version (or latest) is provided, resolution applies dynamic variables from the preferred tag for that resolved version (most recently assigned), if any.
/// </param>
/// <param name="metadata">
/// An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.
Expand All @@ -61,7 +60,7 @@ public partial interface IRetellAiClient
string fromNumber,
string toNumber,
string? overrideAgentId = default,
int? overrideAgentVersion = default,
global::RetellAI.AgentVersionReference? overrideAgentVersion = default,
object? metadata = default,
object? retellLlmDynamicVariables = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public partial interface IRetellAiClient
/// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD
/// </param>
/// <param name="agentVersion">
/// The version of the agent to use for the call.<br/>
/// Example: 1
/// Agent version reference. Supports a numeric version (for example 3) or a tag/environment name (for example "prod"). When a tag is provided, resolution uses that exact tag assignment (including its dynamic variables). If the tag exists but is currently unassigned, it resolves to latest. When a numeric version (or latest) is provided, resolution applies dynamic variables from the preferred tag for that resolved version (most recently assigned), if any.
/// </param>
/// <param name="agentOverride">
/// Override configuration for agent, retell LLM, or conversation flow settings for a specific call.
Expand All @@ -62,7 +61,7 @@ public partial interface IRetellAiClient
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::RetellAI.V2WebCallResponse> CreateWebCallAsync(
string agentId,
int? agentVersion = default,
global::RetellAI.AgentVersionReference? agentVersion = default,
global::RetellAI.AgentOverrideRequest? agentOverride = default,
object? metadata = default,
object? retellLlmDynamicVariables = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,37 @@ namespace RetellAI
public partial interface IRetellAiClient
{
/// <summary>
/// Publish the latest version of the agent and create a new draft agent with newer version.
/// Delete a specific agent version.
/// </summary>
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// Example: agent_xxx
/// </param>
/// <param name="version">
/// Example: 1
/// </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 PublishAgentAsync(
global::System.Threading.Tasks.Task DeleteAgentVersionAsync(
string agentId,
int version,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Publish the latest version of the agent and create a new draft agent with newer version.
/// Delete a specific agent version.
/// </summary>
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// Example: agent_xxx
/// </param>
/// <param name="version">
/// Example: 1
/// </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> PublishAgentAsResponseAsync(
global::System.Threading.Tasks.Task<global::RetellAI.AutoSDKHttpResponse> DeleteAgentVersionAsResponseAsync(
string agentId,
int version,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ public partial interface IRetellAiClient
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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::System.Collections.Generic.IList<global::RetellAI.AgentResponse>> GetAgentVersionsAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -23,11 +27,15 @@ public partial interface IRetellAiClient
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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::System.Collections.Generic.IList<global::RetellAI.AgentResponse>>> GetAgentVersionsAsResponseAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ public partial interface IRetellAiClient
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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::System.Collections.Generic.IList<global::RetellAI.ChatAgentResponse>> GetChatAgentVersionsAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -23,11 +27,15 @@ public partial interface IRetellAiClient
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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::System.Collections.Generic.IList<global::RetellAI.ChatAgentResponse>>> GetChatAgentVersionsAsResponseAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Loading