Skip to content

Commit

Permalink
Merge pull request #43 from tryAGI/bot/update-openapi_202502120052
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Feb 12, 2025
2 parents b265480 + fc7fecc commit 20ad87d
Show file tree
Hide file tree
Showing 12 changed files with 388 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ partial void ProcessCallsCreateResponseContent(
/// (interruptible) greeting generated based on the system prompt and any initial messages.<br/>
/// (If first_speaker is set and this is not, first_speaker will be used instead.)
/// </param>
/// <param name="experimentalSettings">
/// Experimental settings for the call.
/// </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::Ultravox.Call> CallsCreateAsync(
Expand All @@ -274,6 +277,7 @@ partial void ProcessCallsCreateResponseContent(
global::Ultravox.UltravoxV1StartCallRequestInitialOutputMedium? initialOutputMedium = default,
global::Ultravox.UltravoxV1VadSettings? vadSettings = default,
global::Ultravox.UltravoxV1FirstSpeakerSettings? firstSpeakerSettings = default,
object? experimentalSettings = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Ultravox.UltravoxV1StartCallRequest
Expand All @@ -296,6 +300,7 @@ partial void ProcessCallsCreateResponseContent(
InitialOutputMedium = initialOutputMedium,
VadSettings = vadSettings,
FirstSpeakerSettings = firstSpeakerSettings,
ExperimentalSettings = experimentalSettings,
};

return await CallsCreateAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ public partial interface ICallsClient
/// (interruptible) greeting generated based on the system prompt and any initial messages.<br/>
/// (If first_speaker is set and this is not, first_speaker will be used instead.)
/// </param>
/// <param name="experimentalSettings">
/// Experimental settings for the call.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Ultravox.Call> CallsCreateAsync(
Expand All @@ -111,6 +114,7 @@ public partial interface ICallsClient
global::Ultravox.UltravoxV1StartCallRequestInitialOutputMedium? initialOutputMedium = default,
global::Ultravox.UltravoxV1VadSettings? vadSettings = default,
global::Ultravox.UltravoxV1FirstSpeakerSettings? firstSpeakerSettings = default,
object? experimentalSettings = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
12 changes: 12 additions & 0 deletions src/libs/Ultravox/Generated/Ultravox.Models.Call.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ public sealed partial class Call
[global::System.Text.Json.Serialization.JsonPropertyName("summary")]
public string? Summary { get; set; }

/// <summary>
/// Experimental settings for the call.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("experimentalSettings")]
[global::System.Text.Json.Serialization.JsonRequired]
public required object ExperimentalSettings { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -275,11 +282,15 @@ public sealed partial class Call
/// A summary of the call.<br/>
/// Included only in responses
/// </param>
/// <param name="experimentalSettings">
/// Experimental settings for the call.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public Call(
global::Ultravox.UltravoxV1FirstSpeakerSettings firstSpeakerSettings,
object experimentalSettings,
string? clientVersion,
global::System.DateTime? joined,
global::System.DateTime? ended,
Expand All @@ -305,6 +316,7 @@ public Call(
int errorCount = default!)
{
this.FirstSpeakerSettings = firstSpeakerSettings ?? throw new global::System.ArgumentNullException(nameof(firstSpeakerSettings));
this.ExperimentalSettings = experimentalSettings ?? throw new global::System.ArgumentNullException(nameof(experimentalSettings));
this.CallId = callId;
this.ClientVersion = clientVersion;
this.Created = created;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#nullable enable

namespace Ultravox
{
public sealed partial class CallExperimentalSettings
{
/// <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::Ultravox.CallExperimentalSettings? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Ultravox.CallExperimentalSettings),
jsonSerializerContext) as global::Ultravox.CallExperimentalSettings;
}

/// <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::Ultravox.CallExperimentalSettings? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Ultravox.CallExperimentalSettings>(
json,
jsonSerializerOptions);
}

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

/// <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::Ultravox.CallExperimentalSettings?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Ultravox.CallExperimentalSettings?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

#nullable enable

namespace Ultravox
{
/// <summary>
/// Experimental settings for the call.
/// </summary>
public sealed partial class CallExperimentalSettings
{

/// <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>();
}
}
13 changes: 13 additions & 0 deletions src/libs/Ultravox/Generated/Ultravox.Models.CallStage.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ public sealed partial class CallStage
[global::System.Text.Json.Serialization.JsonPropertyName("errorCount")]
public int ErrorCount { get; set; } = default!;

/// <summary>
/// Experimental settings for this call stage.<br/>
/// Included only in responses
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("experimentalSettings")]
public object? ExperimentalSettings { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -128,6 +135,10 @@ public sealed partial class CallStage
/// The number of errors in this call stage.<br/>
/// Included only in responses
/// </param>
/// <param name="experimentalSettings">
/// Experimental settings for this call stage.<br/>
/// Included only in responses
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -139,6 +150,7 @@ public CallStage(
string? systemPrompt,
string? timeExceededMessage,
string? voice,
object? experimentalSettings,
global::System.Guid callId = default!,
global::System.Guid callStageId = default!,
global::System.DateTime created = default!,
Expand All @@ -157,6 +169,7 @@ public CallStage(
this.TimeExceededMessage = timeExceededMessage;
this.Voice = voice;
this.ErrorCount = errorCount;
this.ExperimentalSettings = experimentalSettings;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#nullable enable

namespace Ultravox
{
public sealed partial class CallStageExperimentalSettings
{
/// <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::Ultravox.CallStageExperimentalSettings? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Ultravox.CallStageExperimentalSettings),
jsonSerializerContext) as global::Ultravox.CallStageExperimentalSettings;
}

/// <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::Ultravox.CallStageExperimentalSettings? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Ultravox.CallStageExperimentalSettings>(
json,
jsonSerializerOptions);
}

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

/// <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::Ultravox.CallStageExperimentalSettings?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Ultravox.CallStageExperimentalSettings?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#nullable enable

namespace Ultravox
{
/// <summary>
/// Experimental settings for this call stage.<br/>
/// Included only in responses
/// </summary>
public sealed partial class CallStageExperimentalSettings
{

/// <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>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ public sealed partial class UltravoxV1StartCallRequest
[global::System.Text.Json.Serialization.JsonPropertyName("firstSpeakerSettings")]
public global::Ultravox.UltravoxV1FirstSpeakerSettings? FirstSpeakerSettings { get; set; }

/// <summary>
/// Experimental settings for the call.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("experimentalSettings")]
public object? ExperimentalSettings { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -195,6 +201,9 @@ public sealed partial class UltravoxV1StartCallRequest
/// (interruptible) greeting generated based on the system prompt and any initial messages.<br/>
/// (If first_speaker is set and this is not, first_speaker will be used instead.)
/// </param>
/// <param name="experimentalSettings">
/// Experimental settings for the call.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -216,7 +225,8 @@ public UltravoxV1StartCallRequest(
bool? transcriptOptional,
global::Ultravox.UltravoxV1StartCallRequestInitialOutputMedium? initialOutputMedium,
global::Ultravox.UltravoxV1VadSettings? vadSettings,
global::Ultravox.UltravoxV1FirstSpeakerSettings? firstSpeakerSettings)
global::Ultravox.UltravoxV1FirstSpeakerSettings? firstSpeakerSettings,
object? experimentalSettings)
{
this.SystemPrompt = systemPrompt;
this.Temperature = temperature;
Expand All @@ -236,6 +246,7 @@ public UltravoxV1StartCallRequest(
this.InitialOutputMedium = initialOutputMedium;
this.VadSettings = vadSettings;
this.FirstSpeakerSettings = firstSpeakerSettings;
this.ExperimentalSettings = experimentalSettings;
}

/// <summary>
Expand Down
Loading

0 comments on commit 20ad87d

Please sign in to comment.