From 776e0a3b289ee485b252d4b09855d4873df1699c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 28 Jul 2026 19:38:25 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...rs.UltravoxV1InworldVoiceDeliveryMode.g.cs | 53 ++++++++++++ ...voxV1InworldVoiceDeliveryModeNullable.g.cs | 60 +++++++++++++ .../Ultravox.JsonSerializerContext.g.cs | 5 ++ .../Ultravox.JsonSerializerContextTypes.g.cs | 86 ++++++++++--------- ...ltravox.Models.UltravoxV1InworldVoice.g.cs | 18 +++- ...ls.UltravoxV1InworldVoiceDeliveryMode.g.cs | 65 ++++++++++++++ src/libs/Ultravox/openapi.yaml | 12 +++ 7 files changed, 257 insertions(+), 42 deletions(-) create mode 100644 src/libs/Ultravox/Generated/Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryMode.g.cs create mode 100644 src/libs/Ultravox/Generated/Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryModeNullable.g.cs create mode 100644 src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1InworldVoiceDeliveryMode.g.cs diff --git a/src/libs/Ultravox/Generated/Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryMode.g.cs b/src/libs/Ultravox/Generated/Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryMode.g.cs new file mode 100644 index 0000000..94a958b --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Ultravox.JsonConverters +{ + /// + public sealed class UltravoxV1InworldVoiceDeliveryModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Ultravox.UltravoxV1InworldVoiceDeliveryMode 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::Ultravox.UltravoxV1InworldVoiceDeliveryModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Ultravox.UltravoxV1InworldVoiceDeliveryMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Ultravox.UltravoxV1InworldVoiceDeliveryMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Ultravox.UltravoxV1InworldVoiceDeliveryMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Ultravox.UltravoxV1InworldVoiceDeliveryModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Ultravox/Generated/Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryModeNullable.g.cs b/src/libs/Ultravox/Generated/Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryModeNullable.g.cs new file mode 100644 index 0000000..79eecef --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Ultravox.JsonConverters +{ + /// + public sealed class UltravoxV1InworldVoiceDeliveryModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Ultravox.UltravoxV1InworldVoiceDeliveryMode? 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::Ultravox.UltravoxV1InworldVoiceDeliveryModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Ultravox.UltravoxV1InworldVoiceDeliveryMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Ultravox.UltravoxV1InworldVoiceDeliveryMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Ultravox.UltravoxV1InworldVoiceDeliveryMode? 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::Ultravox.UltravoxV1InworldVoiceDeliveryModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContext.g.cs b/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContext.g.cs index ea1f609..9576097 100644 --- a/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContext.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContext.g.cs @@ -125,6 +125,10 @@ namespace Ultravox typeof(global::Ultravox.JsonConverters.UltravoxV1GenericVoiceJsonByteEncodingNullableJsonConverter), + typeof(global::Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryModeJsonConverter), + + typeof(global::Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryModeNullableJsonConverter), + typeof(global::Ultravox.JsonConverters.UltravoxV1SourceStatsStatusJsonConverter), typeof(global::Ultravox.JsonConverters.UltravoxV1SourceStatsStatusNullableJsonConverter), @@ -439,6 +443,7 @@ namespace Ultravox [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1GenericVoiceJsonByteEncoding), TypeInfoPropertyName = "UltravoxV1GenericVoiceJsonByteEncoding2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1HeaderApiKeyRequirement))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1HttpAuthRequirement))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1InworldVoiceDeliveryMode), TypeInfoPropertyName = "UltravoxV1InworldVoiceDeliveryMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1MimeTypeSet))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1QueryApiKeyRequirement))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1QueryCorpusRequest))] diff --git a/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContextTypes.g.cs b/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContextTypes.g.cs index 7e16e08..09463a9 100644 --- a/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContextTypes.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContextTypes.g.cs @@ -936,167 +936,171 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Ultravox.UltravoxV1MimeTypeSet? Type227 { get; set; } + public global::Ultravox.UltravoxV1InworldVoiceDeliveryMode? Type227 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1QueryApiKeyRequirement? Type228 { get; set; } + public global::Ultravox.UltravoxV1MimeTypeSet? Type228 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1QueryCorpusRequest? Type229 { get; set; } + public global::Ultravox.UltravoxV1QueryApiKeyRequirement? Type229 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SecurityOptions? Type230 { get; set; } + public global::Ultravox.UltravoxV1QueryCorpusRequest? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::Ultravox.UltravoxV1SecurityOptions? Type231 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SecurityRequirements? Type232 { get; set; } + public global::System.Collections.Generic.IList? Type232 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SecurityRequirement? Type233 { get; set; } + public global::Ultravox.UltravoxV1SecurityRequirements? Type233 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type234 { get; set; } + public global::Ultravox.UltravoxV1SecurityRequirement? Type234 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1UltravoxCallTokenRequirement? Type235 { get; set; } + public global::System.Collections.Generic.Dictionary? Type235 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SipFallbackHandlerResponse? Type236 { get; set; } + public global::Ultravox.UltravoxV1UltravoxCallTokenRequirement? Type236 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartAgentCallRequest? Type237 { get; set; } + public global::Ultravox.UltravoxV1SipFallbackHandlerResponse? Type237 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequest? Type238 { get; set; } + public global::Ultravox.UltravoxV1StartAgentCallRequest? Type238 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SipRejection? Type239 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequest? Type239 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SourceStatsStatus? Type240 { get; set; } + public global::Ultravox.UltravoxV1SipRejection? Type240 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartAgentCallRequestInitialOutputMedium? Type241 { get; set; } + public global::Ultravox.UltravoxV1SourceStatsStatus? Type241 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1ToolOverrides? Type242 { get; set; } + public global::Ultravox.UltravoxV1StartAgentCallRequestInitialOutputMedium? Type242 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartAgentCallRequestRetentionPolicy? Type243 { get; set; } + public global::Ultravox.UltravoxV1ToolOverrides? Type243 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequestFirstSpeaker? Type244 { get; set; } + public global::Ultravox.UltravoxV1StartAgentCallRequestRetentionPolicy? Type244 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequestInitialOutputMedium? Type245 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequestFirstSpeaker? Type245 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequestRetentionPolicy? Type246 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequestInitialOutputMedium? Type246 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StaticParameterLocation? Type247 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequestRetentionPolicy? Type247 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1TimedMessageEndBehavior? Type248 { get; set; } + public global::Ultravox.UltravoxV1StaticParameterLocation? Type248 { get; set; } /// /// /// - public global::Ultravox.ToolsCreateRequest? Type249 { get; set; } + public global::Ultravox.UltravoxV1TimedMessageEndBehavior? Type249 { get; set; } /// /// /// - public byte[]? Type250 { get; set; } + public global::Ultravox.ToolsCreateRequest? Type250 { get; set; } /// /// /// - public global::Ultravox.VoicesCreateRequest? Type251 { get; set; } + public byte[]? Type251 { get; set; } /// /// /// - public global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket? Type252 { get; set; } + public global::Ultravox.VoicesCreateRequest? Type252 { get; set; } /// /// /// - public global::Ultravox.AgentsScheduledBatchesScheduledCallsListStatus? Type253 { get; set; } + public global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket? Type253 { get; set; } /// /// /// - public global::Ultravox.CallsEventsListMinimumSeverity? Type254 { get; set; } + public global::Ultravox.AgentsScheduledBatchesScheduledCallsListStatus? Type254 { get; set; } /// /// /// - public global::Ultravox.CallsMessagesListMode? Type255 { get; set; } + public global::Ultravox.CallsEventsListMinimumSeverity? Type255 { get; set; } /// /// /// - public global::Ultravox.SchemaRetrieveFormat? Type256 { get; set; } + public global::Ultravox.CallsMessagesListMode? Type256 { get; set; } /// /// /// - public global::Ultravox.SchemaRetrieveLang? Type257 { get; set; } + public global::Ultravox.SchemaRetrieveFormat? Type257 { get; set; } /// /// /// - public global::Ultravox.ToolsListOwnership? Type258 { get; set; } + public global::Ultravox.SchemaRetrieveLang? Type258 { get; set; } /// /// /// - public global::Ultravox.ToolsListSortOrder? Type259 { get; set; } + public global::Ultravox.ToolsListOwnership? Type259 { get; set; } /// /// /// - public global::Ultravox.VoicesListBillingStyle? Type260 { get; set; } + public global::Ultravox.ToolsListSortOrder? Type260 { get; set; } /// /// /// - public global::Ultravox.VoicesListOwnership? Type261 { get; set; } + public global::Ultravox.VoicesListBillingStyle? Type261 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type262 { get; set; } + public global::Ultravox.VoicesListOwnership? Type262 { get; set; } /// /// /// - public global::Ultravox.VoicesListProviderItem? Type263 { get; set; } + public global::System.Collections.Generic.IList? Type263 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type264 { get; set; } + public global::Ultravox.VoicesListProviderItem? Type264 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type265 { get; set; } + public global::System.Collections.Generic.IList? Type265 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type266 { get; set; } + public global::System.Collections.Generic.IList? Type266 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type267 { get; set; } + public global::System.Collections.Generic.IList? Type267 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type268 { get; set; } /// /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1InworldVoice.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1InworldVoice.g.cs index a43e351..7a89d57 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1InworldVoice.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1InworldVoice.g.cs @@ -43,6 +43,15 @@ public sealed partial class UltravoxV1InworldVoice [global::System.Text.Json.Serialization.JsonPropertyName("applyTextNormalization")] public bool? ApplyTextNormalization { get; set; } + /// + /// How to balance consistency and expressiveness in generated speech. Only used by
+ /// inworld-tts-2 models (ignored for other models).
+ /// See https://docs.inworld.ai/api-reference/ttsAPI/texttospeech/synthesize-speech-stream#body-delivery-mode + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("deliveryMode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ultravox.JsonConverters.UltravoxV1InworldVoiceDeliveryModeJsonConverter))] + public global::Ultravox.UltravoxV1InworldVoiceDeliveryMode? DeliveryMode { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -72,6 +81,11 @@ public sealed partial class UltravoxV1InworldVoice /// agent is instructed to normalize text directly.
/// See https://docs.inworld.ai/api-reference/ttsAPI/texttospeech/synthesize-speech-stream#body-apply-text-normalization. /// + /// + /// How to balance consistency and expressiveness in generated speech. Only used by
+ /// inworld-tts-2 models (ignored for other models).
+ /// See https://docs.inworld.ai/api-reference/ttsAPI/texttospeech/synthesize-speech-stream#body-delivery-mode + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -80,13 +94,15 @@ public UltravoxV1InworldVoice( string? modelId, float? speakingRate, float? temperature, - bool? applyTextNormalization) + bool? applyTextNormalization, + global::Ultravox.UltravoxV1InworldVoiceDeliveryMode? deliveryMode) { this.VoiceId = voiceId; this.ModelId = modelId; this.SpeakingRate = speakingRate; this.Temperature = temperature; this.ApplyTextNormalization = applyTextNormalization; + this.DeliveryMode = deliveryMode; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1InworldVoiceDeliveryMode.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1InworldVoiceDeliveryMode.g.cs new file mode 100644 index 0000000..4744c30 --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1InworldVoiceDeliveryMode.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace Ultravox +{ + /// + /// How to balance consistency and expressiveness in generated speech. Only used by
+ /// inworld-tts-2 models (ignored for other models).
+ /// See https://docs.inworld.ai/api-reference/ttsAPI/texttospeech/synthesize-speech-stream#body-delivery-mode + ///
+ public enum UltravoxV1InworldVoiceDeliveryMode + { + /// + /// + /// + DeliveryModeBalanced, + /// + /// + /// + DeliveryModeCreative, + /// + /// + /// + DeliveryModeStable, + /// + /// + /// + DeliveryModeUnspecified, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UltravoxV1InworldVoiceDeliveryModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UltravoxV1InworldVoiceDeliveryMode value) + { + return value switch + { + UltravoxV1InworldVoiceDeliveryMode.DeliveryModeBalanced => "DELIVERY_MODE_BALANCED", + UltravoxV1InworldVoiceDeliveryMode.DeliveryModeCreative => "DELIVERY_MODE_CREATIVE", + UltravoxV1InworldVoiceDeliveryMode.DeliveryModeStable => "DELIVERY_MODE_STABLE", + UltravoxV1InworldVoiceDeliveryMode.DeliveryModeUnspecified => "DELIVERY_MODE_UNSPECIFIED", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UltravoxV1InworldVoiceDeliveryMode? ToEnum(string value) + { + return value switch + { + "DELIVERY_MODE_BALANCED" => UltravoxV1InworldVoiceDeliveryMode.DeliveryModeBalanced, + "DELIVERY_MODE_CREATIVE" => UltravoxV1InworldVoiceDeliveryMode.DeliveryModeCreative, + "DELIVERY_MODE_STABLE" => UltravoxV1InworldVoiceDeliveryMode.DeliveryModeStable, + "DELIVERY_MODE_UNSPECIFIED" => UltravoxV1InworldVoiceDeliveryMode.DeliveryModeUnspecified, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Ultravox/openapi.yaml b/src/libs/Ultravox/openapi.yaml index ffac240..4f6a511 100644 --- a/src/libs/Ultravox/openapi.yaml +++ b/src/libs/Ultravox/openapi.yaml @@ -7427,6 +7427,18 @@ components: Whether or not to apply text normalization. This should typically only be disabled if the agent is instructed to normalize text directly. See https://docs.inworld.ai/api-reference/ttsAPI/texttospeech/synthesize-speech-stream#body-apply-text-normalization. + deliveryMode: + enum: + - DELIVERY_MODE_UNSPECIFIED + - DELIVERY_MODE_STABLE + - DELIVERY_MODE_BALANCED + - DELIVERY_MODE_CREATIVE + type: string + description: |- + How to balance consistency and expressiveness in generated speech. Only used by + inworld-tts-2 models (ignored for other models). + See https://docs.inworld.ai/api-reference/ttsAPI/texttospeech/synthesize-speech-stream#body-delivery-mode + format: enum description: Specification for a voice served by Inworld. ultravox.v1.LmntVoice: type: object