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 @@ -221,20 +221,26 @@ partial void ProcessCreateConvaiAgentsCreateResponseContent(
/// A name to make the agent easier to find<br/>
/// Example: My agent
/// </param>
/// <param name="categories">
/// Categories to help classify and filter the agent<br/>
/// Example: [Customer Support, Technical Help, Eleven]
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::ElevenLabs.CreateAgentResponseModel> CreateConvaiAgentsCreateAsync(
global::ElevenLabs.ConversationalConfigAPIModelInput conversationConfig,
string? xiApiKey = default,
global::ElevenLabs.AgentPlatformSettingsRequestModel? platformSettings = default,
string? name = default,
global::System.Collections.Generic.IList<string>? categories = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost
{
ConversationConfig = conversationConfig,
PlatformSettings = platformSettings,
Name = name,
Categories = categories,
};

return await CreateConvaiAgentsCreateAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ partial void ProcessEditConvaiAgentsByAgentIdResponseContent(
/// A name to make the agent easier to find<br/>
/// Example: My agent
/// </param>
/// <param name="categories">
/// Categories to help classify and filter the agent<br/>
/// Example: [Customer Support, Technical Help, Eleven]
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::ElevenLabs.GetAgentResponseModel> EditConvaiAgentsByAgentIdAsync(
Expand All @@ -246,13 +250,15 @@ partial void ProcessEditConvaiAgentsByAgentIdResponseContent(
object? conversationConfig = default,
object? platformSettings = default,
string? name = default,
global::System.Collections.Generic.IList<string>? categories = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch
{
ConversationConfig = conversationConfig,
PlatformSettings = platformSettings,
Name = name,
Categories = categories,
};

return await EditConvaiAgentsByAgentIdAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ partial void PrepareGetConvaiConversationsArguments(
ref string? agentId,
ref global::ElevenLabs.EvaluationSuccessResult? callSuccessful,
ref global::System.DateTimeOffset? callStartBeforeUnix,
ref global::System.DateTimeOffset? callStartAfterUnix,
ref int? pageSize,
ref string? xiApiKey);
partial void PrepareGetConvaiConversationsRequest(
Expand All @@ -20,6 +21,7 @@ partial void PrepareGetConvaiConversationsRequest(
string? agentId,
global::ElevenLabs.EvaluationSuccessResult? callSuccessful,
global::System.DateTimeOffset? callStartBeforeUnix,
global::System.DateTimeOffset? callStartAfterUnix,
int? pageSize,
string? xiApiKey);
partial void ProcessGetConvaiConversationsResponse(
Expand All @@ -46,6 +48,9 @@ partial void ProcessGetConvaiConversationsResponseContent(
/// <param name="callStartBeforeUnix">
/// Unix timestamp (in seconds) to filter conversations up to this start date.
/// </param>
/// <param name="callStartAfterUnix">
/// Unix timestamp (in seconds) to filter conversations after to this start date.
/// </param>
/// <param name="pageSize">
/// How many conversations to return at maximum. Can not exceed 100, defaults to 30.<br/>
/// Default Value: 30
Expand All @@ -60,6 +65,7 @@ partial void ProcessGetConvaiConversationsResponseContent(
string? agentId = default,
global::ElevenLabs.EvaluationSuccessResult? callSuccessful = default,
global::System.DateTimeOffset? callStartBeforeUnix = default,
global::System.DateTimeOffset? callStartAfterUnix = default,
int? pageSize = default,
string? xiApiKey = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand All @@ -72,6 +78,7 @@ partial void ProcessGetConvaiConversationsResponseContent(
agentId: ref agentId,
callSuccessful: ref callSuccessful,
callStartBeforeUnix: ref callStartBeforeUnix,
callStartAfterUnix: ref callStartAfterUnix,
pageSize: ref pageSize,
xiApiKey: ref xiApiKey);

Expand All @@ -83,6 +90,7 @@ partial void ProcessGetConvaiConversationsResponseContent(
.AddOptionalParameter("agent_id", agentId)
.AddOptionalParameter("call_successful", callSuccessful?.ToValueString())
.AddOptionalParameter("call_start_before_unix", callStartBeforeUnix?.ToString())
.AddOptionalParameter("call_start_after_unix", callStartAfterUnix?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
;
var __path = __pathBuilder.ToString();
Expand Down Expand Up @@ -126,6 +134,7 @@ partial void ProcessGetConvaiConversationsResponseContent(
agentId: agentId,
callSuccessful: callSuccessful,
callStartBeforeUnix: callStartBeforeUnix,
callStartAfterUnix: callStartAfterUnix,
pageSize: pageSize,
xiApiKey: xiApiKey);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,18 @@ public partial interface IConversationalAIClient
/// A name to make the agent easier to find<br/>
/// Example: My agent
/// </param>
/// <param name="categories">
/// Categories to help classify and filter the agent<br/>
/// Example: [Customer Support, Technical Help, Eleven]
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::ElevenLabs.CreateAgentResponseModel> CreateConvaiAgentsCreateAsync(
global::ElevenLabs.ConversationalConfigAPIModelInput conversationConfig,
string? xiApiKey = default,
global::ElevenLabs.AgentPlatformSettingsRequestModel? platformSettings = default,
string? name = default,
global::System.Collections.Generic.IList<string>? categories = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public partial interface IConversationalAIClient
/// A name to make the agent easier to find<br/>
/// Example: My agent
/// </param>
/// <param name="categories">
/// Categories to help classify and filter the agent<br/>
/// Example: [Customer Support, Technical Help, Eleven]
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::ElevenLabs.GetAgentResponseModel> EditConvaiAgentsByAgentIdAsync(
Expand All @@ -53,6 +57,7 @@ public partial interface IConversationalAIClient
object? conversationConfig = default,
object? platformSettings = default,
string? name = default,
global::System.Collections.Generic.IList<string>? categories = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public partial interface IConversationalAIClient
/// <param name="callStartBeforeUnix">
/// Unix timestamp (in seconds) to filter conversations up to this start date.
/// </param>
/// <param name="callStartAfterUnix">
/// Unix timestamp (in seconds) to filter conversations after to this start date.
/// </param>
/// <param name="pageSize">
/// How many conversations to return at maximum. Can not exceed 100, defaults to 30.<br/>
/// Default Value: 30
Expand All @@ -33,6 +36,7 @@ public partial interface IConversationalAIClient
string? agentId = default,
global::ElevenLabs.EvaluationSuccessResult? callSuccessful = default,
global::System.DateTimeOffset? callStartBeforeUnix = default,
global::System.DateTimeOffset? callStartAfterUnix = default,
int? pageSize = default,
string? xiApiKey = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ public sealed partial class AgentSummaryResponseModel
[global::System.Text.Json.Serialization.JsonRequired]
public required string Name { get; set; }

/// <summary>
/// The categories of the agent
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("categories")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<string> Categories { get; set; }

/// <summary>
/// The creation time of the agent in unix seconds
/// </summary>
Expand Down Expand Up @@ -51,6 +58,9 @@ public sealed partial class AgentSummaryResponseModel
/// <param name="name">
/// The name of the agent
/// </param>
/// <param name="categories">
/// The categories of the agent
/// </param>
/// <param name="createdAtUnixSecs">
/// The creation time of the agent in unix seconds
/// </param>
Expand All @@ -61,11 +71,13 @@ public sealed partial class AgentSummaryResponseModel
public AgentSummaryResponseModel(
string agentId,
string name,
global::System.Collections.Generic.IList<string> categories,
int createdAtUnixSecs,
global::ElevenLabs.ResourceAccessInfo accessInfo)
{
this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId));
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Categories = categories ?? throw new global::System.ArgumentNullException(nameof(categories));
this.CreatedAtUnixSecs = createdAtUnixSecs;
this.AccessInfo = accessInfo ?? throw new global::System.ArgumentNullException(nameof(accessInfo));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ public sealed partial class BodyCreateAgentV1ConvaiAgentsCreatePost
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; }

/// <summary>
/// Categories to help classify and filter the agent<br/>
/// Example: [Customer Support, Technical Help, Eleven]
/// </summary>
/// <example>[Customer Support, Technical Help, Eleven]</example>
[global::System.Text.Json.Serialization.JsonPropertyName("categories")]
public global::System.Collections.Generic.IList<string>? Categories { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -44,17 +52,23 @@ public sealed partial class BodyCreateAgentV1ConvaiAgentsCreatePost
/// A name to make the agent easier to find<br/>
/// Example: My agent
/// </param>
/// <param name="categories">
/// Categories to help classify and filter the agent<br/>
/// Example: [Customer Support, Technical Help, Eleven]
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public BodyCreateAgentV1ConvaiAgentsCreatePost(
global::ElevenLabs.ConversationalConfigAPIModelInput conversationConfig,
global::ElevenLabs.AgentPlatformSettingsRequestModel? platformSettings,
string? name)
string? name,
global::System.Collections.Generic.IList<string>? categories)
{
this.ConversationConfig = conversationConfig ?? throw new global::System.ArgumentNullException(nameof(conversationConfig));
this.PlatformSettings = platformSettings;
this.Name = name;
this.Categories = categories;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ public sealed partial class BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; }

/// <summary>
/// Categories to help classify and filter the agent<br/>
/// Example: [Customer Support, Technical Help, Eleven]
/// </summary>
/// <example>[Customer Support, Technical Help, Eleven]</example>
[global::System.Text.Json.Serialization.JsonPropertyName("categories")]
public global::System.Collections.Generic.IList<string>? Categories { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -47,17 +55,23 @@ public sealed partial class BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch
/// A name to make the agent easier to find<br/>
/// Example: My agent
/// </param>
/// <param name="categories">
/// Categories to help classify and filter the agent<br/>
/// Example: [Customer Support, Technical Help, Eleven]
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch(
object? conversationConfig,
object? platformSettings,
string? name)
string? name,
global::System.Collections.Generic.IList<string>? categories)
{
this.ConversationConfig = conversationConfig;
this.PlatformSettings = platformSettings;
this.Name = name;
this.Categories = categories;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ public sealed partial class GetAgentResponseModel
[global::System.Text.Json.Serialization.JsonPropertyName("access_info")]
public global::ElevenLabs.ResourceAccessInfo? AccessInfo { get; set; }

/// <summary>
/// The categories of the agent
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("categories")]
public global::System.Collections.Generic.IList<string>? Categories { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -76,6 +82,9 @@ public sealed partial class GetAgentResponseModel
/// The phone numbers of the agent
/// </param>
/// <param name="accessInfo"></param>
/// <param name="categories">
/// The categories of the agent
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -86,7 +95,8 @@ public GetAgentResponseModel(
global::ElevenLabs.AgentMetadataResponseModel metadata,
global::ElevenLabs.AgentPlatformSettingsResponseModel? platformSettings,
global::System.Collections.Generic.IList<global::ElevenLabs.GetPhoneNumberResponseModel>? phoneNumbers,
global::ElevenLabs.ResourceAccessInfo? accessInfo)
global::ElevenLabs.ResourceAccessInfo? accessInfo,
global::System.Collections.Generic.IList<string>? categories)
{
this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId));
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
Expand All @@ -95,6 +105,7 @@ public GetAgentResponseModel(
this.PlatformSettings = platformSettings;
this.PhoneNumbers = phoneNumbers;
this.AccessInfo = accessInfo;
this.Categories = categories;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ public sealed partial class InvoiceResponseModel
[global::System.Text.Json.Serialization.JsonRequired]
public required int AmountDueCents { get; set; }

/// <summary>
/// The discount applied to the invoice. E.g. [20.0f] for 20% off.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("discount_percent_off")]
public double? DiscountPercentOff { get; set; }

/// <summary>
/// The Unix timestamp of the next payment attempt.
/// </summary>
Expand All @@ -35,6 +41,9 @@ public sealed partial class InvoiceResponseModel
/// <param name="amountDueCents">
/// The amount due in cents.
/// </param>
/// <param name="discountPercentOff">
/// The discount applied to the invoice. E.g. [20.0f] for 20% off.
/// </param>
/// <param name="nextPaymentAttemptUnix">
/// The Unix timestamp of the next payment attempt.
/// </param>
Expand All @@ -43,10 +52,12 @@ public sealed partial class InvoiceResponseModel
#endif
public InvoiceResponseModel(
int amountDueCents,
global::System.DateTimeOffset nextPaymentAttemptUnix)
global::System.DateTimeOffset nextPaymentAttemptUnix,
double? discountPercentOff)
{
this.AmountDueCents = amountDueCents;
this.NextPaymentAttemptUnix = nextPaymentAttemptUnix;
this.DiscountPercentOff = discountPercentOff;
}

/// <summary>
Expand Down
Loading