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 @@ -21,7 +21,7 @@ public partial interface IPvcVoicesClient
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ElevenLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ElevenLabs.SpeakerSeparationResponseModel> CreateVoicesPvcByVoiceIdSamplesBySampleIdSeparateSpeakersAsync(
global::System.Threading.Tasks.Task<global::ElevenLabs.StartSpeakerSeparationResponseModel> CreateVoicesPvcByVoiceIdSamplesBySampleIdSeparateSpeakersAsync(
string voiceId,
string sampleId,
string? xiApiKey = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public partial interface ISpeechToTextClient
/// Example: pcm_s16le_16
/// </param>
/// <param name="cloudStorageUrl">
/// The valid AWS S3 or Google Cloud Storage URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be a valid publicly accessible cloud storage URL. The file size must be less than 2GB. URL can be pre-signed.<br/>
/// Example: https://storage.googleapis.com/bucket-name/object-name
/// The valid AWS S3, Cloudflare R2 or Google Cloud Storage URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be a valid publicly accessible cloud storage URL. The file size must be less than 2GB. URL can be pre-signed.<br/>
/// Example: https://storage.googleapis.com/my-bucket/folder/audio.mp3
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#nullable enable

namespace ElevenLabs
{
public partial interface IWorkspaceClient
{
/// <summary>
/// Delete Member<br/>
/// Deletes a workspace member. This endpoint may only be called by workspace administrators.
/// </summary>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ElevenLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ElevenLabs.DeleteWorkspaceMemberResponseModel> DeleteWorkspaceMembersAsync(
global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete request,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Delete Member<br/>
/// Deletes a workspace member. This endpoint may only be called by workspace administrators.
/// </summary>
/// <param name="email">
/// Email of the target user.
/// </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.DeleteWorkspaceMemberResponseModel> DeleteWorkspaceMembersAsync(
string email,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#nullable enable

namespace ElevenLabs
{
public sealed partial class BodyDeleteMemberV1WorkspaceMembersDelete
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete),
jsonSerializerContext) as global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete),
jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete;
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::System.Threading.Tasks.ValueTask<global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::ElevenLabs.BodyDeleteMemberV1WorkspaceMembersDelete?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

#nullable enable

namespace ElevenLabs
{
/// <summary>
///
/// </summary>
public sealed partial class BodyDeleteMemberV1WorkspaceMembersDelete
{
/// <summary>
/// Email of the target user.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("email")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Email { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

/// <summary>
/// Initializes a new instance of the <see cref="BodyDeleteMemberV1WorkspaceMembersDelete" /> class.
/// </summary>
/// <param name="email">
/// Email of the target user.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public BodyDeleteMemberV1WorkspaceMembersDelete(
string email)
{
this.Email = email ?? throw new global::System.ArgumentNullException(nameof(email));
}

/// <summary>
/// Initializes a new instance of the <see cref="BodyDeleteMemberV1WorkspaceMembersDelete" /> class.
/// </summary>
public BodyDeleteMemberV1WorkspaceMembersDelete()
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public sealed partial class BodySpeechToTextV1SpeechToTextPost
public global::ElevenLabs.BodySpeechToTextV1SpeechToTextPostFileFormat? FileFormat { get; set; }

/// <summary>
/// The valid AWS S3 or Google Cloud Storage URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be a valid publicly accessible cloud storage URL. The file size must be less than 2GB. URL can be pre-signed.<br/>
/// Example: https://storage.googleapis.com/bucket-name/object-name
/// The valid AWS S3, Cloudflare R2 or Google Cloud Storage URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be a valid publicly accessible cloud storage URL. The file size must be less than 2GB. URL can be pre-signed.<br/>
/// Example: https://storage.googleapis.com/my-bucket/folder/audio.mp3
/// </summary>
/// <example>https://storage.googleapis.com/bucket-name/object-name</example>
/// <example>https://storage.googleapis.com/my-bucket/folder/audio.mp3</example>
[global::System.Text.Json.Serialization.JsonPropertyName("cloud_storage_url")]
public string? CloudStorageUrl { get; set; }

Expand Down Expand Up @@ -128,8 +128,8 @@ public sealed partial class BodySpeechToTextV1SpeechToTextPost
/// Example: pcm_s16le_16
/// </param>
/// <param name="cloudStorageUrl">
/// The valid AWS S3 or Google Cloud Storage URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be a valid publicly accessible cloud storage URL. The file size must be less than 2GB. URL can be pre-signed.<br/>
/// Example: https://storage.googleapis.com/bucket-name/object-name
/// The valid AWS S3, Cloudflare R2 or Google Cloud Storage URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be a valid publicly accessible cloud storage URL. The file size must be less than 2GB. URL can be pre-signed.<br/>
/// Example: https://storage.googleapis.com/my-bucket/folder/audio.mp3
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public enum ClientEvent
/// <summary>
///
/// </summary>
InternalVadScore,
VadScore,
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -79,7 +79,7 @@ public static string ToValueString(this ClientEvent value)
ClientEvent.AgentResponse => "agent_response",
ClientEvent.AgentResponseCorrection => "agent_response_correction",
ClientEvent.ClientToolCall => "client_tool_call",
ClientEvent.InternalVadScore => "internal_vad_score",
ClientEvent.VadScore => "vad_score",
ClientEvent.InternalTurnProbability => "internal_turn_probability",
ClientEvent.InternalTentativeAgentResponse => "internal_tentative_agent_response",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
Expand All @@ -101,7 +101,7 @@ public static string ToValueString(this ClientEvent value)
"agent_response" => ClientEvent.AgentResponse,
"agent_response_correction" => ClientEvent.AgentResponseCorrection,
"client_tool_call" => ClientEvent.ClientToolCall,
"internal_vad_score" => ClientEvent.InternalVadScore,
"vad_score" => ClientEvent.VadScore,
"internal_turn_probability" => ClientEvent.InternalTurnProbability,
"internal_tentative_agent_response" => ClientEvent.InternalTentativeAgentResponse,
_ => null,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#nullable enable

namespace ElevenLabs
{
public sealed partial class DeleteWorkspaceMemberResponseModel
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::ElevenLabs.DeleteWorkspaceMemberResponseModel? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::ElevenLabs.DeleteWorkspaceMemberResponseModel),
jsonSerializerContext) as global::ElevenLabs.DeleteWorkspaceMemberResponseModel;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::ElevenLabs.DeleteWorkspaceMemberResponseModel? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::ElevenLabs.DeleteWorkspaceMemberResponseModel>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::ElevenLabs.DeleteWorkspaceMemberResponseModel?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::ElevenLabs.DeleteWorkspaceMemberResponseModel),
jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteWorkspaceMemberResponseModel;
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::System.Threading.Tasks.ValueTask<global::ElevenLabs.DeleteWorkspaceMemberResponseModel?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::ElevenLabs.DeleteWorkspaceMemberResponseModel?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Loading