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
@@ -0,0 +1,26 @@
#nullable enable

namespace RetellAI
{
public partial interface IRetellAiClient
{
/// <summary>
/// Get info about the API key used to authenticate, and the org that owns it.
/// </summary>
/// <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.GetApiKeyInfoResponse> GetApiKeyInfoAsync(
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get info about the API key used to authenticate, and the org that owns it.
/// </summary>
/// <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.GetApiKeyInfoResponse>> GetApiKeyInfoAsResponseAsync(
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#nullable enable

#pragma warning disable CS0618 // Type or member is obsolete

namespace RetellAI
{
public partial interface IRetellAiClient
Expand Down Expand Up @@ -156,7 +158,7 @@ public partial interface IRetellAiClient
/// Example: 1
/// </param>
/// <param name="language">
/// Specifies what language(s) the agent will operate in. Accepts either a single scalar locale (e.g. `en-US`), the legacy scalar value `multi` for multilingual support, or an array of concrete locale codes for explicit multi-locale selection (e.g. `["en-US","es-ES"]`). The array form must contain concrete locale codes only — the `multi` value is valid only as the scalar legacy form and must not appear inside an array. Single-element arrays are normalized to the equivalent scalar on output. If unset, defaults to `en-US`.
/// Specifies what language(s) the agent will operate in. Accepts either a single locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g. `["en-US","es-ES"]`). The scalar value `multi` is deprecated but still accepted as a scalar, and is stored and returned as the ten locales it used to mean. It must not appear inside the array form. Send an explicit locale array instead. If unset, defaults to `en-US`.
/// </param>
/// <param name="webhookUrl">
/// The webhook for agent to listen to call events. See what events it would get at [webhook doc](/features/webhook). If set, will binds webhook events for this agent to the specified url, and will ignore the account level webhook for this agent. Set to `null` to remove webhook url from this agent.<br/>
Expand Down Expand Up @@ -294,7 +296,9 @@ public partial interface IRetellAiClient
int? reminderMaxCount = default,
global::RetellAI.AgentRequestAmbientSound? ambientSound = default,
double? ambientSoundVolume = default,
global::RetellAI.OneOf<global::RetellAI.LanguageLegacy?, global::System.Collections.Generic.IList<global::RetellAI.Language3>>? language = default,
#pragma warning disable CS0618 // Type or member is obsolete
global::RetellAI.OneOf<global::RetellAI.Language3?, global::System.Collections.Generic.IList<global::RetellAI.Language3>, global::RetellAI.AgentRequestLanguage?>? language = default,
#pragma warning disable CS0618 // Type or member is obsolete
string? webhookUrl = default,
global::System.Collections.Generic.IList<global::RetellAI.AgentRequestWebhookEvent>? webhookEvents = default,
int? webhookTimeoutMs = default,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#nullable enable

#pragma warning disable CS0618 // Type or member is obsolete

namespace RetellAI
{
public partial interface IRetellAiClient
Expand Down Expand Up @@ -71,7 +73,7 @@ public partial interface IRetellAiClient
/// Example: 3600000
/// </param>
/// <param name="language">
/// Specifies what language(s) the agent will operate in. Accepts either a single scalar locale (e.g. `en-US`), the legacy scalar value `multi` for multilingual support, or an array of concrete locale codes for explicit multi-locale selection (e.g. `["en-US","es-ES"]`). The array form must contain concrete locale codes only — the `multi` value is valid only as the scalar legacy form and must not appear inside an array. Single-element arrays are normalized to the equivalent scalar on output. If unset, defaults to `en-US`.
/// Specifies what language(s) the agent will operate in. Accepts either a single locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g. `["en-US","es-ES"]`). The scalar value `multi` is deprecated but still accepted as a scalar, and is stored and returned as the ten locales it used to mean. It must not appear inside the array form. Send an explicit locale array instead. If unset, defaults to `en-US`.
/// </param>
/// <param name="webhookUrl">
/// The webhook for agent to listen to chat events. See what events it would get at [webhook doc](/features/webhook). If set, will binds webhook events for this agent to the specified url, and will ignore the account level webhook for this agent. Set to `null` to remove webhook url from this agent.<br/>
Expand Down Expand Up @@ -126,7 +128,9 @@ public partial interface IRetellAiClient
string? versionTitle = default,
string? autoCloseMessage = default,
int? endChatAfterSilenceMs = default,
global::RetellAI.OneOf<global::RetellAI.LanguageLegacy?, global::System.Collections.Generic.IList<global::RetellAI.Language3>>? language = default,
#pragma warning disable CS0618 // Type or member is obsolete
global::RetellAI.OneOf<global::RetellAI.Language3?, global::System.Collections.Generic.IList<global::RetellAI.Language3>, global::RetellAI.ChatAgentRequestLanguage?>? language = default,
#pragma warning disable CS0618 // Type or member is obsolete
string? webhookUrl = default,
global::System.Collections.Generic.IList<global::RetellAI.ChatAgentRequestWebhookEvent>? webhookEvents = default,
int? webhookTimeoutMs = default,
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 LanguageLegacyEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.LanguageLegacyEnum>
public sealed class AgentRequestLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.AgentRequestLanguage>
{
/// <inheritdoc />
public override global::RetellAI.LanguageLegacyEnum Read(
public override global::RetellAI.AgentRequestLanguage 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 LanguageLegacyEnumJsonConverter : global::System.Text.Json.S
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::RetellAI.LanguageLegacyEnumExtensions.ToEnum(stringValue) ?? default;
return global::RetellAI.AgentRequestLanguageExtensions.ToEnum(stringValue) ?? default;
}

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

writer.WriteStringValue(global::RetellAI.LanguageLegacyEnumExtensions.ToValueString(value));
writer.WriteStringValue(global::RetellAI.AgentRequestLanguageExtensions.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 LanguageLegacyEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.LanguageLegacyEnum?>
public sealed class AgentRequestLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.AgentRequestLanguage?>
{
/// <inheritdoc />
public override global::RetellAI.LanguageLegacyEnum? Read(
public override global::RetellAI.AgentRequestLanguage? 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 LanguageLegacyEnumNullableJsonConverter : global::System.Tex
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::RetellAI.LanguageLegacyEnumExtensions.ToEnum(stringValue);
return global::RetellAI.AgentRequestLanguageExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::RetellAI.LanguageLegacyEnum)numValue;
return (global::RetellAI.AgentRequestLanguage)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::RetellAI.LanguageLegacyEnum?);
return default(global::RetellAI.AgentRequestLanguage?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,7 +42,7 @@ public sealed class LanguageLegacyEnumNullableJsonConverter : global::System.Tex
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::RetellAI.LanguageLegacyEnum? value,
global::RetellAI.AgentRequestLanguage? 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.LanguageLegacyEnumExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::RetellAI.AgentRequestLanguageExtensions.ToValueString(value.Value));
}
}
}
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 ChatAgentRequestLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.ChatAgentRequestLanguage>
{
/// <inheritdoc />
public override global::RetellAI.ChatAgentRequestLanguage 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.ChatAgentRequestLanguageExtensions.ToEnum(stringValue) ?? default;
}

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

return default;
}

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

writer.WriteStringValue(global::RetellAI.ChatAgentRequestLanguageExtensions.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 ChatAgentRequestLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.ChatAgentRequestLanguage?>
{
/// <inheritdoc />
public override global::RetellAI.ChatAgentRequestLanguage? 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.ChatAgentRequestLanguageExtensions.ToEnum(stringValue);
}

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

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::RetellAI.ChatAgentRequestLanguage? 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.ChatAgentRequestLanguageExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class ChatMessageInputJsonConverter : global::System.Text.Json.Serializat
if (__jsonProps.Contains("content")) __score0++;
if (__jsonProps.Contains("created_timestamp")) __score0++;
if (__jsonProps.Contains("message_id")) __score0++;
if (__jsonProps.Contains("multimedia")) __score0++;
if (__jsonProps.Contains("role")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("arguments")) __score1++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class ConversationFlowJsonConverter : global::System.Text.Json.Serializat
if (__jsonProps.Contains("default_dynamic_variables")) __score1++;
if (__jsonProps.Contains("flex_mode")) __score1++;
if (__jsonProps.Contains("global_prompt")) __score1++;
if (__jsonProps.Contains("is_transfer_llm")) __score1++;
if (__jsonProps.Contains("is_transfer_cf")) __score1++;
if (__jsonProps.Contains("mcps")) __score1++;
if (__jsonProps.Contains("nodes")) __score1++;
if (__jsonProps.Contains("notes")) __score1++;
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 GetApiKeyInfoResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::RetellAI.GetApiKeyInfoResponseStatus>
{
/// <inheritdoc />
public override global::RetellAI.GetApiKeyInfoResponseStatus 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.GetApiKeyInfoResponseStatusExtensions.ToEnum(stringValue) ?? default;
}

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

return default;
}

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

writer.WriteStringValue(global::RetellAI.GetApiKeyInfoResponseStatusExtensions.ToValueString(value));
}
}
}
Loading
Loading