From d90b7cc6ec238f8456c24e3732e5b2b498613378 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 28 Aug 2026 23:51:23 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../AssemblyAI.JsonConverters.OneOf2.g.cs | 161 ---------- ...ssemblyAI.JsonConverters.SpeechModel.g.cs} | 14 +- ...I.JsonConverters.SpeechModelNullable.g.cs} | 14 +- ...scriptOptionalParamsRemoveAudioTags2.g.cs} | 14 +- ...tionalParamsRemoveAudioTags2Nullable.g.cs} | 14 +- ...onverters.TranscriptRemoveAudioTags2.g.cs} | 14 +- ...s.TranscriptRemoveAudioTags2Nullable.g.cs} | 14 +- .../AssemblyAI.JsonSerializerContext.g.cs | 55 +--- ...AssemblyAI.JsonSerializerContextTypes.g.cs | 254 +++++++-------- ...yAI.Models.AutoHighlightsResult.Json.g.cs} | 26 +- ...semblyAI.Models.AutoHighlightsResult.g.cs} | 10 +- ....cs => AssemblyAI.Models.SpeechModel.g.cs} | 16 +- .../AssemblyAI.Models.Transcript.g.cs | 45 +-- ...blyAI.Models.TranscriptOptionalParams.g.cs | 23 +- ....TranscriptOptionalParamsRedactPiiSub.g.cs | 20 ++ ...anscriptOptionalParamsRemoveAudioTags.g.cs | 46 +-- ...nscriptOptionalParamsRemoveAudioTags2.g.cs | 51 +++ ...s.TranscriptOptionalParamsSpeechModel.g.cs | 20 ++ ...odels.TranscriptRedactPiiAudioQuality.g.cs | 20 ++ ...lyAI.Models.TranscriptRemoveAudioTags.g.cs | 45 +-- ...yAI.Models.TranscriptRemoveAudioTags2.g.cs | 51 +++ ...semblyAI.Models.TranscriptSpeechModel.g.cs | 20 ++ .../Generated/AssemblyAI.OneOf.2.Json.g.cs | 141 --------- .../Generated/AssemblyAI.OneOf.2.g.cs | 294 ------------------ .../Generated/AssemblyAI.PathBuilder.g.cs | 9 +- .../AssemblyAI.Realtime.PathBuilder.g.cs | 9 +- 26 files changed, 424 insertions(+), 976 deletions(-) delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf2.g.cs rename src/libs/AssemblyAI/Generated/{AssemblyAI.JsonConverters.SpeechModel2.g.cs => AssemblyAI.JsonConverters.SpeechModel.g.cs} (76%) rename src/libs/AssemblyAI/Generated/{AssemblyAI.JsonConverters.SpeechModel2Nullable.g.cs => AssemblyAI.JsonConverters.SpeechModelNullable.g.cs} (77%) rename src/libs/AssemblyAI/Generated/{AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags.g.cs => AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2.g.cs} (80%) rename src/libs/AssemblyAI/Generated/{AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsNullable.g.cs => AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2Nullable.g.cs} (80%) rename src/libs/AssemblyAI/Generated/{AssemblyAI.JsonConverters.TranscriptRemoveAudioTags.g.cs => AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2.g.cs} (81%) rename src/libs/AssemblyAI/Generated/{AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsNullable.g.cs => AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2Nullable.g.cs} (82%) rename src/libs/AssemblyAI/Generated/{AssemblyAI.Models.AutoHighlightsResult2.Json.g.cs => AssemblyAI.Models.AutoHighlightsResult.Json.g.cs} (88%) rename src/libs/AssemblyAI/Generated/{AssemblyAI.Models.AutoHighlightsResult2.g.cs => AssemblyAI.Models.AutoHighlightsResult.g.cs} (95%) rename src/libs/AssemblyAI/Generated/{AssemblyAI.Models.SpeechModel2.g.cs => AssemblyAI.Models.SpeechModel.g.cs} (69%) create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiSub.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags2.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechModel.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioQuality.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags2.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechModel.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.Json.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.g.cs diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf2.g.cs deleted file mode 100644 index aa80138..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf2.g.cs +++ /dev/null @@ -1,161 +0,0 @@ -#nullable enable - -namespace AssemblyAI.JsonConverters -{ - /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> - { - /// - public override global::AssemblyAI.OneOf Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - } - } - - var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - - T1? value1 = default; - T2? value2 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 1) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (value1 == null && value2 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (value1 == null && value2 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::AssemblyAI.OneOf( - value1, - - value2 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::AssemblyAI.OneOf value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsValue1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); - } - else if (value.IsValue2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel.g.cs similarity index 76% rename from src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel.g.cs index cd6c837..3a049dd 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel.g.cs @@ -3,10 +3,10 @@ namespace AssemblyAI.JsonConverters { /// - public sealed class SpeechModel2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class SpeechModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AssemblyAI.SpeechModel2 Read( + public override global::AssemblyAI.SpeechModel Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class SpeechModel2JsonConverter : global::System.Text.Json.Seriali var stringValue = reader.GetString(); if (stringValue != null) { - return global::AssemblyAI.SpeechModel2Extensions.ToEnum(stringValue) ?? default; + return global::AssemblyAI.SpeechModelExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class SpeechModel2JsonConverter : global::System.Text.Json.Seriali case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AssemblyAI.SpeechModel2)numValue; + return (global::AssemblyAI.SpeechModel)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AssemblyAI.SpeechModel2); + return default(global::AssemblyAI.SpeechModel); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class SpeechModel2JsonConverter : global::System.Text.Json.Seriali /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AssemblyAI.SpeechModel2 value, + global::AssemblyAI.SpeechModel value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::AssemblyAI.SpeechModel2Extensions.ToValueString(value)); + writer.WriteStringValue(global::AssemblyAI.SpeechModelExtensions.ToValueString(value)); } } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2Nullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModelNullable.g.cs similarity index 77% rename from src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2Nullable.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModelNullable.g.cs index 682c38c..16a60ad 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2Nullable.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModelNullable.g.cs @@ -3,10 +3,10 @@ namespace AssemblyAI.JsonConverters { /// - public sealed class SpeechModel2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class SpeechModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AssemblyAI.SpeechModel2? Read( + public override global::AssemblyAI.SpeechModel? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class SpeechModel2NullableJsonConverter : global::System.Text.Json var stringValue = reader.GetString(); if (stringValue != null) { - return global::AssemblyAI.SpeechModel2Extensions.ToEnum(stringValue); + return global::AssemblyAI.SpeechModelExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class SpeechModel2NullableJsonConverter : global::System.Text.Json case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AssemblyAI.SpeechModel2)numValue; + return (global::AssemblyAI.SpeechModel)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AssemblyAI.SpeechModel2?); + return default(global::AssemblyAI.SpeechModel?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class SpeechModel2NullableJsonConverter : global::System.Text.Json /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AssemblyAI.SpeechModel2? value, + global::AssemblyAI.SpeechModel? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::AssemblyAI.SpeechModel2Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::AssemblyAI.SpeechModelExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2.g.cs similarity index 80% rename from src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2.g.cs index 83e0313..de609a5 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2.g.cs @@ -3,10 +3,10 @@ namespace AssemblyAI.JsonConverters { /// - public sealed class TranscriptOptionalParamsRemoveAudioTagsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class TranscriptOptionalParamsRemoveAudioTags2JsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags Read( + public override global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2 Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class TranscriptOptionalParamsRemoveAudioTagsJsonConverter : globa var stringValue = reader.GetString(); if (stringValue != null) { - return global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToEnum(stringValue) ?? default; + return global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2Extensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class TranscriptOptionalParamsRemoveAudioTagsJsonConverter : globa case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags)numValue; + return (global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags); + return default(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class TranscriptOptionalParamsRemoveAudioTagsJsonConverter : globa /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags value, + global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2 value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToValueString(value)); + writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2Extensions.ToValueString(value)); } } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2Nullable.g.cs similarity index 80% rename from src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsNullable.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2Nullable.g.cs index 29b3f7a..b80528a 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsNullable.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2Nullable.g.cs @@ -3,10 +3,10 @@ namespace AssemblyAI.JsonConverters { /// - public sealed class TranscriptOptionalParamsRemoveAudioTagsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class TranscriptOptionalParamsRemoveAudioTags2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Read( + public override global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class TranscriptOptionalParamsRemoveAudioTagsNullableJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToEnum(stringValue); + return global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2Extensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class TranscriptOptionalParamsRemoveAudioTagsNullableJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags)numValue; + return (global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags?); + return default(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class TranscriptOptionalParamsRemoveAudioTagsNullableJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? value, + global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2Extensions.ToValueString(value.Value)); } } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2.g.cs similarity index 81% rename from src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2.g.cs index 66014f9..361aa27 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2.g.cs @@ -3,10 +3,10 @@ namespace AssemblyAI.JsonConverters { /// - public sealed class TranscriptRemoveAudioTagsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class TranscriptRemoveAudioTags2JsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AssemblyAI.TranscriptRemoveAudioTags Read( + public override global::AssemblyAI.TranscriptRemoveAudioTags2 Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class TranscriptRemoveAudioTagsJsonConverter : global::System.Text var stringValue = reader.GetString(); if (stringValue != null) { - return global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToEnum(stringValue) ?? default; + return global::AssemblyAI.TranscriptRemoveAudioTags2Extensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class TranscriptRemoveAudioTagsJsonConverter : global::System.Text case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AssemblyAI.TranscriptRemoveAudioTags)numValue; + return (global::AssemblyAI.TranscriptRemoveAudioTags2)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AssemblyAI.TranscriptRemoveAudioTags); + return default(global::AssemblyAI.TranscriptRemoveAudioTags2); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class TranscriptRemoveAudioTagsJsonConverter : global::System.Text /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AssemblyAI.TranscriptRemoveAudioTags value, + global::AssemblyAI.TranscriptRemoveAudioTags2 value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToValueString(value)); + writer.WriteStringValue(global::AssemblyAI.TranscriptRemoveAudioTags2Extensions.ToValueString(value)); } } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2Nullable.g.cs similarity index 82% rename from src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsNullable.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2Nullable.g.cs index 5132e06..4571662 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsNullable.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2Nullable.g.cs @@ -3,10 +3,10 @@ namespace AssemblyAI.JsonConverters { /// - public sealed class TranscriptRemoveAudioTagsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class TranscriptRemoveAudioTags2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AssemblyAI.TranscriptRemoveAudioTags? Read( + public override global::AssemblyAI.TranscriptRemoveAudioTags2? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class TranscriptRemoveAudioTagsNullableJsonConverter : global::Sys var stringValue = reader.GetString(); if (stringValue != null) { - return global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToEnum(stringValue); + return global::AssemblyAI.TranscriptRemoveAudioTags2Extensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class TranscriptRemoveAudioTagsNullableJsonConverter : global::Sys case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AssemblyAI.TranscriptRemoveAudioTags)numValue; + return (global::AssemblyAI.TranscriptRemoveAudioTags2)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AssemblyAI.TranscriptRemoveAudioTags?); + return default(global::AssemblyAI.TranscriptRemoveAudioTags2?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class TranscriptRemoveAudioTagsNullableJsonConverter : global::Sys /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AssemblyAI.TranscriptRemoveAudioTags? value, + global::AssemblyAI.TranscriptRemoveAudioTags2? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::AssemblyAI.TranscriptRemoveAudioTags2Extensions.ToValueString(value.Value)); } } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs index d34ff3f..949c4a3 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs @@ -33,9 +33,9 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter), - typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2JsonConverter), - typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2NullableJsonConverter), typeof(global::AssemblyAI.JsonConverters.SummaryModelJsonConverter), @@ -57,9 +57,9 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.PiiPolicyNullableJsonConverter), - typeof(global::AssemblyAI.JsonConverters.SpeechModel2JsonConverter), + typeof(global::AssemblyAI.JsonConverters.SpeechModelJsonConverter), - typeof(global::AssemblyAI.JsonConverters.SpeechModel2NullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.SpeechModelNullableJsonConverter), typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeJsonConverter), @@ -81,9 +81,9 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter), - typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2JsonConverter), - typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2NullableJsonConverter), typeof(global::AssemblyAI.JsonConverters.EntityTypeJsonConverter), @@ -117,36 +117,16 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.TranscriptParamsJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter?, object>), - typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.UnixTimestampJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.JsonSerializerContextTypes))] @@ -171,8 +151,7 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptCustomSpelling))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsDomain), TypeInfoPropertyName = "TranscriptOptionalParamsDomain2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf?, object>), TypeInfoPropertyName = "OneOfAnyOfTranscriptLanguageCodeStringObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.AnyOf), TypeInfoPropertyName = "AnyOfTranscriptLanguageCodeString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.AnyOf))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptLanguageCode), TypeInfoPropertyName = "TranscriptLanguageCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -185,12 +164,11 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.RedactPiiAudioQuality), TypeInfoPropertyName = "RedactPiiAudioQuality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.PiiPolicy), TypeInfoPropertyName = "PiiPolicy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfSubstitutionPolicyObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SubstitutionPolicy), TypeInfoPropertyName = "SubstitutionPolicy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeechModel2), TypeInfoPropertyName = "SpeechModel22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeechModel), TypeInfoPropertyName = "SpeechModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "ActionItemsRequestBody_96ae176b810c4f16")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranslationRequestBody))] @@ -200,9 +178,7 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ActionItemsRequestBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummaryModel), TypeInfoPropertyName = "SummaryModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummaryType), TypeInfoPropertyName = "SummaryType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranscriptOptionalParamsRemoveAudioTagsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags), TypeInfoPropertyName = "TranscriptOptionalParamsRemoveAudioTags2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfSpeechModel2Object2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2), TypeInfoPropertyName = "TranscriptOptionalParamsRemoveAudioTags22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptParams), TypeInfoPropertyName = "TranscriptParams2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptParamsVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptUtterance))] @@ -211,15 +187,12 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptStatus), TypeInfoPropertyName = "TranscriptStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Transcript))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfAutoHighlightsResult2Object2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.AutoHighlightsResult2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.AutoHighlightsResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Chapter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfContentSafetyLabelsResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ContentSafetyLabelsResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Entity))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTopicDetectionModelResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TopicDetectionModelResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptLanguageDetectionOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected), TypeInfoPropertyName = "TranscriptLanguageDetectionOptionsOnNoSpeechDetected2")] @@ -228,7 +201,6 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptMetadataWarning))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRedactPiiAudioOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod), TypeInfoPropertyName = "TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfRedactPiiAudioQualityObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SentimentAnalysisResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptSpeechUnderstanding))] @@ -238,8 +210,7 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.CustomFormattingResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummarizationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ActionItemsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranscriptRemoveAudioTagsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRemoveAudioTags), TypeInfoPropertyName = "TranscriptRemoveAudioTags2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRemoveAudioTags2), TypeInfoPropertyName = "TranscriptRemoveAudioTags22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptTranslatedTexts))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.AudioIntelligenceModelStatus), TypeInfoPropertyName = "AudioIntelligenceModelStatus2")] @@ -300,7 +271,7 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs index 7a1f433..d8cc6cf 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs @@ -112,471 +112,435 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.OneOf?, object>? Type21 { get; set; } + public global::AssemblyAI.AnyOf? Type21 { get; set; } /// /// /// - public global::AssemblyAI.AnyOf? Type22 { get; set; } + public global::AssemblyAI.TranscriptLanguageCode? Type22 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptLanguageCode? Type23 { get; set; } + public object? Type23 { get; set; } /// /// /// - public object? Type24 { get; set; } + public global::System.Collections.Generic.IList? Type24 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type25 { get; set; } + public float? Type25 { get; set; } /// /// /// - public float? Type26 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? Type26 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? Type27 { get; set; } + public double? Type27 { get; set; } /// /// /// - public double? Type28 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected? Type28 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected? Type29 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type29 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type30 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type30 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type31 { get; set; } + public global::AssemblyAI.RedactPiiAudioQuality? Type31 { get; set; } /// /// /// - public global::AssemblyAI.RedactPiiAudioQuality? Type32 { get; set; } + public global::System.Collections.Generic.IList? Type32 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type33 { get; set; } + public global::AssemblyAI.PiiPolicy? Type33 { get; set; } /// /// /// - public global::AssemblyAI.PiiPolicy? Type34 { get; set; } + public global::AssemblyAI.SubstitutionPolicy? Type34 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type35 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type35 { get; set; } /// /// /// - public global::AssemblyAI.SubstitutionPolicy? Type36 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type36 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type37 { get; set; } + public global::System.Collections.Generic.IList? Type37 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type38 { get; set; } + public global::AssemblyAI.SpeechModel? Type38 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type39 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? Type39 { get; set; } /// /// /// - public global::AssemblyAI.SpeechModel2? Type40 { get; set; } + public global::AssemblyAI.TranslationRequestBody? Type40 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? Type41 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBody? Type41 { get; set; } /// /// /// - public global::AssemblyAI.TranslationRequestBody? Type42 { get; set; } + public global::AssemblyAI.CustomFormattingRequestBody? Type42 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBody? Type43 { get; set; } + public global::AssemblyAI.SummarizationRequestBody? Type43 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingRequestBody? Type44 { get; set; } + public global::AssemblyAI.ActionItemsRequestBody? Type44 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBody? Type45 { get; set; } + public global::AssemblyAI.SummaryModel? Type45 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsRequestBody? Type46 { get; set; } + public global::AssemblyAI.SummaryType? Type46 { get; set; } /// /// /// - public global::AssemblyAI.SummaryModel? Type47 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2? Type47 { get; set; } /// /// /// - public global::AssemblyAI.SummaryType? Type48 { get; set; } + public global::AssemblyAI.TranscriptParams? Type48 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type49 { get; set; } + public global::AssemblyAI.TranscriptParamsVariant1? Type49 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type50 { get; set; } + public global::AssemblyAI.TranscriptUtterance? Type50 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type51 { get; set; } + public global::System.Collections.Generic.IList? Type51 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParams? Type52 { get; set; } + public global::AssemblyAI.TranscriptWord? Type52 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParamsVariant1? Type53 { get; set; } + public global::System.Collections.Generic.Dictionary? Type53 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptUtterance? Type54 { get; set; } + public global::AssemblyAI.TranscriptStatus? Type54 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type55 { get; set; } + public global::AssemblyAI.Transcript? Type55 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptWord? Type56 { get; set; } + public global::AssemblyAI.AutoHighlightsResult? Type56 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type57 { get; set; } + public global::System.Collections.Generic.IList? Type57 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptStatus? Type58 { get; set; } + public global::AssemblyAI.Chapter? Type58 { get; set; } /// /// /// - public global::AssemblyAI.Transcript? Type59 { get; set; } + public global::AssemblyAI.ContentSafetyLabelsResult? Type59 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type60 { get; set; } + public global::System.Collections.Generic.IList? Type60 { get; set; } /// /// /// - public global::AssemblyAI.AutoHighlightsResult2? Type61 { get; set; } + public global::AssemblyAI.Entity? Type61 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type62 { get; set; } + public global::AssemblyAI.TopicDetectionModelResult? Type62 { get; set; } /// /// /// - public global::AssemblyAI.Chapter? Type63 { get; set; } + public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type63 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type64 { get; set; } + public global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected? Type64 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabelsResult? Type65 { get; set; } + public global::AssemblyAI.TranscriptMetadata? Type65 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type66 { get; set; } + public global::System.Collections.Generic.IList? Type66 { get; set; } /// /// /// - public global::AssemblyAI.Entity? Type67 { get; set; } + public global::AssemblyAI.TranscriptMetadataWarning? Type67 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type68 { get; set; } + public global::AssemblyAI.TranscriptRedactPiiAudioOptions? Type68 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionModelResult? Type69 { get; set; } + public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type69 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type70 { get; set; } + public global::System.Collections.Generic.IList? Type70 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected? Type71 { get; set; } + public global::AssemblyAI.SentimentAnalysisResult? Type71 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptMetadata? Type72 { get; set; } + public global::AssemblyAI.TranscriptSpeechUnderstanding? Type72 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type73 { get; set; } + public global::AssemblyAI.TranslationResponse? Type73 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptMetadataWarning? Type74 { get; set; } + public global::AssemblyAI.SpeakerIdentificationResponse? Type74 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRedactPiiAudioOptions? Type75 { get; set; } + public global::AssemblyAI.CustomFormattingResponse? Type75 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type76 { get; set; } + public global::AssemblyAI.SummarizationResponse? Type76 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type77 { get; set; } + public global::AssemblyAI.ActionItemsResponse? Type77 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type78 { get; set; } + public global::AssemblyAI.TranscriptRemoveAudioTags2? Type78 { get; set; } /// /// /// - public global::AssemblyAI.SentimentAnalysisResult? Type79 { get; set; } + public global::System.Collections.Generic.IList? Type79 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptSpeechUnderstanding? Type80 { get; set; } + public global::AssemblyAI.TranscriptTranslatedTexts? Type80 { get; set; } /// /// /// - public global::AssemblyAI.TranslationResponse? Type81 { get; set; } + public global::AssemblyAI.AudioIntelligenceModelStatus? Type81 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationResponse? Type82 { get; set; } + public global::System.Collections.Generic.IList? Type82 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingResponse? Type83 { get; set; } + public global::AssemblyAI.TopicDetectionResult? Type83 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationResponse? Type84 { get; set; } + public global::System.Collections.Generic.Dictionary? Type84 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsResponse? Type85 { get; set; } + public global::System.Collections.Generic.IList? Type85 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type86 { get; set; } + public global::AssemblyAI.ContentSafetyLabelResult? Type86 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRemoveAudioTags? Type87 { get; set; } + public global::System.Collections.Generic.Dictionary? Type87 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type88 { get; set; } + public global::AssemblyAI.SeverityScoreSummary? Type88 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptTranslatedTexts? Type89 { get; set; } + public global::AssemblyAI.EntityType? Type89 { get; set; } /// /// /// - public global::AssemblyAI.AudioIntelligenceModelStatus? Type90 { get; set; } + public global::AssemblyAI.Sentiment? Type90 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type91 { get; set; } + public global::System.Collections.Generic.IList? Type91 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionResult? Type92 { get; set; } + public global::AssemblyAI.TopicDetectionResultLabel? Type92 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type93 { get; set; } + public global::AssemblyAI.ContentSafetyLabel? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type94 { get; set; } + public global::System.Collections.Generic.IList? Type94 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabelResult? Type95 { get; set; } + public global::System.Collections.Generic.IList? Type95 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type96 { get; set; } + public global::AssemblyAI.AutoHighlightResult? Type96 { get; set; } /// /// /// - public global::AssemblyAI.SeverityScoreSummary? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::AssemblyAI.EntityType? Type98 { get; set; } + public global::AssemblyAI.TranscriptSentence? Type98 { get; set; } /// /// /// - public global::AssemblyAI.Sentiment? Type99 { get; set; } + public global::AssemblyAI.SentencesResponse? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type100 { get; set; } + public global::System.Collections.Generic.IList? Type100 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionResultLabel? Type101 { get; set; } + public global::AssemblyAI.TranscriptParagraph? Type101 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabel? Type102 { get; set; } + public global::AssemblyAI.ParagraphsResponse? Type102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type104 { get; set; } + public global::AssemblyAI.PageDetails? Type104 { get; set; } /// /// /// - public global::AssemblyAI.AutoHighlightResult? Type105 { get; set; } + public global::AssemblyAI.TranscriptListItem? Type105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type106 { get; set; } + public global::System.DateTime? Type106 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptSentence? Type107 { get; set; } + public global::AssemblyAI.TranscriptList? Type107 { get; set; } /// /// /// - public global::AssemblyAI.SentencesResponse? Type108 { get; set; } + public global::System.Collections.Generic.IList? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::AssemblyAI.UploadedFile? Type109 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParagraph? Type110 { get; set; } + public global::AssemblyAI.Error? Type110 { get; set; } /// /// /// - public global::AssemblyAI.ParagraphsResponse? Type111 { get; set; } + public global::AssemblyAI.TranslationRequestBodyTranslation? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type112 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type112 { get; set; } /// /// /// - public global::AssemblyAI.PageDetails? Type113 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type113 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptListItem? Type114 { get; set; } + public global::System.Collections.Generic.IList? Type114 { get; set; } /// /// /// - public global::System.DateTime? Type115 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker? Type115 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptList? Type116 { get; set; } + public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type117 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarization? Type117 { get; set; } /// /// /// - public global::AssemblyAI.UploadedFile? Type118 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType? Type118 { get; set; } /// /// /// - public global::AssemblyAI.Error? Type119 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarizationEffort? Type119 { get; set; } /// /// /// - public global::AssemblyAI.TranslationRequestBodyTranslation? Type120 { get; set; } + public global::AssemblyAI.ActionItemsRequestBodyActionItems? Type120 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type121 { get; set; } + public global::AssemblyAI.ActionItemsRequestBodyActionItemsEffort? Type121 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type122 { get; set; } + public global::AssemblyAI.TranslationResponseTranslation? Type122 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type123 { get; set; } + public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type123 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker? Type124 { get; set; } + public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type124 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type125 { get; set; } + public global::AssemblyAI.SummarizationResponseSummarization? Type125 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBodySummarization? Type126 { get; set; } + public global::System.Collections.Generic.IList? Type126 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType? Type127 { get; set; } + public global::AssemblyAI.ActionItemsResponseActionItems? Type127 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBodySummarizationEffort? Type128 { get; set; } - /// - /// - /// - public global::AssemblyAI.ActionItemsRequestBodyActionItems? Type129 { get; set; } - /// - /// - /// - public global::AssemblyAI.ActionItemsRequestBodyActionItemsEffort? Type130 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranslationResponseTranslation? Type131 { get; set; } - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type132 { get; set; } - /// - /// - /// - public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type133 { get; set; } - /// - /// - /// - public global::AssemblyAI.SummarizationResponseSummarization? Type134 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type135 { get; set; } - /// - /// - /// - public global::AssemblyAI.ActionItemsResponseActionItems? Type136 { get; set; } - /// - /// - /// - public byte[]? Type137 { get; set; } + public byte[]? Type128 { get; set; } /// /// @@ -613,7 +577,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.Json.g.cs similarity index 88% rename from src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.Json.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.Json.g.cs index 7f343ad..48354fa 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.Json.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.Json.g.cs @@ -2,7 +2,7 @@ namespace AssemblyAI { - public sealed partial class AutoHighlightsResult2 + public sealed partial class AutoHighlightsResult { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AssemblyAI.AutoHighlightsResult2? FromJson( + public static global::AssemblyAI.AutoHighlightsResult? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AssemblyAI.AutoHighlightsResult2), - jsonSerializerContext) as global::AssemblyAI.AutoHighlightsResult2; + typeof(global::AssemblyAI.AutoHighlightsResult), + jsonSerializerContext) as global::AssemblyAI.AutoHighlightsResult; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::AssemblyAI.AutoHighlightsResult2? FromJson( + public static global::AssemblyAI.AutoHighlightsResult? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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::AssemblyAI.AutoHighlightsResult2? FromJson( + public static global::AssemblyAI.AutoHighlightsResult? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::AssemblyAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::AssemblyAI.AutoHighlightsResult2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.AutoHighlightsResult2; + typeof(global::AssemblyAI.AutoHighlightsResult), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.AutoHighlightsResult; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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 FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::AssemblyAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.g.cs similarity index 95% rename from src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.g.cs index cf45a27..8423e59 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.g.cs @@ -8,7 +8,7 @@ namespace AssemblyAI /// See [Key phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases) for more information.
/// Example: {"status":"success","results":[{"count":1,"rank":0.08,"text":"air quality alerts","timestamps":[{"start":3978,"end":5114}]},{"count":1,"rank":0.08,"text":"wide ranging air quality consequences","timestamps":[{"start":235388,"end":238694}]},{"count":1,"rank":0.07,"text":"more wildfires","timestamps":[{"start":230972,"end":232354}]},{"count":1,"rank":0.07,"text":"air pollution","timestamps":[{"start":156004,"end":156910}]},{"count":3,"rank":0.07,"text":"weather systems","timestamps":[{"start":47344,"end":47958},{"start":205268,"end":205818},{"start":211588,"end":213434}]},{"count":2,"rank":0.06,"text":"high levels","timestamps":[{"start":121128,"end":121646},{"start":155412,"end":155866}]},{"count":1,"rank":0.06,"text":"health conditions","timestamps":[{"start":152138,"end":152666}]},{"count":2,"rank":0.06,"text":"Peter de Carlo","timestamps":[{"start":18948,"end":19930},{"start":268298,"end":269194}]},{"count":1,"rank":0.06,"text":"New York City","timestamps":[{"start":125768,"end":126274}]},{"count":1,"rank":0.05,"text":"respiratory conditions","timestamps":[{"start":152964,"end":153786}]},{"count":3,"rank":0.05,"text":"New York","timestamps":[{"start":125768,"end":126034},{"start":171448,"end":171938},{"start":176008,"end":176322}]},{"count":3,"rank":0.05,"text":"climate change","timestamps":[{"start":229548,"end":230230},{"start":244576,"end":245162},{"start":263348,"end":263950}]},{"count":1,"rank":0.05,"text":"Johns Hopkins University Varsity","timestamps":[{"start":23972,"end":25490}]},{"count":1,"rank":0.05,"text":"heart conditions","timestamps":[{"start":153988,"end":154506}]},{"count":1,"rank":0.05,"text":"air quality warnings","timestamps":[{"start":12308,"end":13434}]}]} ///
- public sealed partial class AutoHighlightsResult2 + public sealed partial class AutoHighlightsResult { /// /// The status of the Key Phrases model. Either success, or unavailable in the rare case that the model failed. @@ -32,7 +32,7 @@ public sealed partial class AutoHighlightsResult2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The status of the Key Phrases model. Either success, or unavailable in the rare case that the model failed. @@ -43,7 +43,7 @@ public sealed partial class AutoHighlightsResult2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public AutoHighlightsResult2( + public AutoHighlightsResult( global::AssemblyAI.AudioIntelligenceModelStatus status, global::System.Collections.Generic.IList results) { @@ -52,9 +52,9 @@ public AutoHighlightsResult2( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public AutoHighlightsResult2() + public AutoHighlightsResult() { } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs similarity index 69% rename from src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel2.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs index 9240e72..901b0b1 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel2.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs @@ -6,7 +6,7 @@ namespace AssemblyAI /// /// The speech model to use for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models. /// - public enum SpeechModel2 + public enum SpeechModel { /// /// @@ -21,29 +21,29 @@ public enum SpeechModel2 /// /// Enum extensions to do fast conversions without the reflection. /// - public static class SpeechModel2Extensions + public static class SpeechModelExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this SpeechModel2 value) + public static string ToValueString(this SpeechModel value) { return value switch { - SpeechModel2.Universal2 => "universal-2", - SpeechModel2.Universal35Pro => "universal-3-5-pro", + SpeechModel.Universal2 => "universal-2", + SpeechModel.Universal35Pro => "universal-3-5-pro", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static SpeechModel2? ToEnum(string value) + public static SpeechModel? ToEnum(string value) { return value switch { - "universal-2" => SpeechModel2.Universal2, - "universal-3-5-pro" => SpeechModel2.Universal35Pro, + "universal-2" => SpeechModel.Universal2, + "universal-3-5-pro" => SpeechModel.Universal35Pro, _ => null, }; } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs index f6beed8..b873037 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs @@ -62,8 +62,7 @@ public sealed partial class Transcript /// See [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("auto_highlights_result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? AutoHighlightsResult { get; set; } + public global::AssemblyAI.AutoHighlightsResult? AutoHighlightsResult { get; set; } /// /// An array of temporally sequential chapters for the audio file. See [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) for more information. @@ -88,8 +87,7 @@ public sealed partial class Transcript /// See [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("content_safety_labels")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? ContentSafetyLabels { get; set; } + public global::AssemblyAI.ContentSafetyLabelsResult? ContentSafetyLabels { get; set; } /// /// Customize how words are spelled and formatted using to and from values. Each `to` value must be a single word, and each `from` phrase can contain at most 5 words. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. @@ -151,8 +149,7 @@ public sealed partial class Transcript /// See [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("iab_categories_result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? IabCategoriesResult { get; set; } + public global::AssemblyAI.TopicDetectionModelResult? IabCategoriesResult { get; set; } /// /// The unique identifier of your transcript @@ -259,8 +256,7 @@ public sealed partial class Transcript /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio_quality")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? RedactPiiAudioQuality { get; set; } + public global::AssemblyAI.RedactPiiAudioQuality? RedactPiiAudioQuality { get; set; } /// /// The list of PII Redaction policies that were enabled, if PII Redaction is enabled.
@@ -311,14 +307,14 @@ public sealed partial class Transcript /// The speech model that was actually used for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models. ///
[global::System.Text.Json.Serialization.JsonPropertyName("speech_model_used")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SpeechModel2JsonConverter))] - public global::AssemblyAI.SpeechModel2? SpeechModelUsed { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SpeechModelJsonConverter))] + public global::AssemblyAI.SpeechModel? SpeechModelUsed { get; set; } /// /// List of speech models that were used (in priority order) to transcribe the audio. If not specified in the request, this defaults to `["universal-3-5-pro", "universal-2"]`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. /// [global::System.Text.Json.Serialization.JsonPropertyName("speech_models")] - public global::System.Collections.Generic.IList? SpeechModels { get; set; } + public global::System.Collections.Generic.IList? SpeechModels { get; set; } /// /// Defaults to null. Reject audio files that contain less than this fraction of speech.
@@ -376,8 +372,7 @@ public sealed partial class Transcript /// Note: This parameter is only supported for the Universal-3.5 Pro model. ///
[global::System.Text.Json.Serialization.JsonPropertyName("remove_audio_tags")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? RemoveAudioTags { get; set; } + public global::AssemblyAI.TranscriptRemoveAudioTags2? RemoveAudioTags { get; set; } /// /// The temperature that was used for the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
@@ -479,9 +474,8 @@ public sealed partial class Transcript /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). ///
[global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.OneOf SpeechModel { get; set; } + [global::System.Obsolete("This property marked as deprecated.")] + public global::AssemblyAI.SpeechModel? SpeechModel { get; set; } /// /// This parameter does not currently have any functionality attached to it. @@ -540,9 +534,6 @@ public sealed partial class Transcript /// /// This parameter does not currently have any functionality attached to it. /// - /// - /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). - /// /// /// The number of audio channels in the audio file. This is only present when [multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) is enabled. /// @@ -745,16 +736,15 @@ public Transcript( bool webhookAuth, string acousticModel, string languageModel, - global::AssemblyAI.OneOf speechModel, int? audioChannels, int? audioDuration, int? audioEndAt, int? audioStartFrom, - global::AssemblyAI.OneOf? autoHighlightsResult, + global::AssemblyAI.AutoHighlightsResult? autoHighlightsResult, global::System.Collections.Generic.IList? chapters, double? confidence, bool? contentSafety, - global::AssemblyAI.OneOf? contentSafetyLabels, + global::AssemblyAI.ContentSafetyLabelsResult? contentSafetyLabels, global::System.Collections.Generic.IList? customSpelling, bool? disfluencies, string? domain, @@ -764,7 +754,7 @@ public Transcript( bool? filterProfanity, bool? formatText, bool? iabCategories, - global::AssemblyAI.OneOf? iabCategoriesResult, + global::AssemblyAI.TopicDetectionModelResult? iabCategoriesResult, global::System.Collections.Generic.IList? keytermsPrompt, global::AssemblyAI.AnyOf? languageCode, global::System.Collections.Generic.IList? languageCodes, @@ -778,7 +768,7 @@ public Transcript( bool? punctuate, bool? redactPiiAudio, global::AssemblyAI.TranscriptRedactPiiAudioOptions? redactPiiAudioOptions, - global::AssemblyAI.OneOf? redactPiiAudioQuality, + global::AssemblyAI.RedactPiiAudioQuality? redactPiiAudioQuality, global::System.Collections.Generic.IList? redactPiiPolicies, global::AssemblyAI.SubstitutionPolicy? redactPiiSub, bool? redactPiiReturnUnredacted, @@ -786,11 +776,11 @@ public Transcript( global::System.Collections.Generic.IList? sentimentAnalysisResults, bool? speakerLabels, int? speakersExpected, - global::AssemblyAI.SpeechModel2? speechModelUsed, - global::System.Collections.Generic.IList? speechModels, + global::AssemblyAI.SpeechModel? speechModelUsed, + global::System.Collections.Generic.IList? speechModels, float? speechThreshold, global::AssemblyAI.TranscriptSpeechUnderstanding? speechUnderstanding, - global::AssemblyAI.OneOf? removeAudioTags, + global::AssemblyAI.TranscriptRemoveAudioTags2? removeAudioTags, double? temperature, string? text, string? unredactedText, @@ -869,7 +859,6 @@ public Transcript( this.UnredactedWords = unredactedWords; this.AcousticModel = acousticModel ?? throw new global::System.ArgumentNullException(nameof(acousticModel)); this.LanguageModel = languageModel ?? throw new global::System.ArgumentNullException(nameof(languageModel)); - this.SpeechModel = speechModel; this.TranslatedTexts = translatedTexts; } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs index 19b6a35..0d96e0f 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs @@ -114,8 +114,7 @@ public sealed partial class TranscriptOptionalParams /// If you don't specify a language, it's detected automatically. Cannot be used together with `language_detection`. /// [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter?, object>))] - public global::AssemblyAI.OneOf?, object>? LanguageCode { get; set; } + public global::AssemblyAI.AnyOf? LanguageCode { get; set; } /// /// The language codes of your audio file. Used for [Code switching](/speech-to-text/pre-recorded-audio/code-switching)
@@ -207,8 +206,7 @@ public sealed partial class TranscriptOptionalParams /// Default Value: hash ///
[global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_sub")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? RedactPiiSub { get; set; } + public global::AssemblyAI.SubstitutionPolicy? RedactPiiSub { get; set; } /// /// When set to `true`, returns the original unredacted transcript alongside the redacted one in the same response. Requires `redact_pii` to be `true`, otherwise a 400 error is returned.
@@ -257,7 +255,7 @@ public sealed partial class TranscriptOptionalParams /// Default Value: [universal-3-5-pro, universal-2] ///
[global::System.Text.Json.Serialization.JsonPropertyName("speech_models")] - public global::System.Collections.Generic.IList? SpeechModels { get; set; } + public global::System.Collections.Generic.IList? SpeechModels { get; set; } /// /// Reject audio files that contain less than this fraction of speech.
@@ -304,8 +302,7 @@ public sealed partial class TranscriptOptionalParams /// Default Value: all ///
[global::System.Text.Json.Serialization.JsonPropertyName("remove_audio_tags")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? RemoveAudioTags { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2? RemoveAudioTags { get; set; } /// /// Control the amount of randomness injected into the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
@@ -347,8 +344,8 @@ public sealed partial class TranscriptOptionalParams /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). ///
[global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? SpeechModel { get; set; } + [global::System.Obsolete("This property marked as deprecated.")] + public global::AssemblyAI.SpeechModel? SpeechModel { get; set; } /// /// This parameter does not currently have any functionality attached to it. @@ -544,7 +541,7 @@ public TranscriptOptionalParams( bool? formatText, bool? iabCategories, global::System.Collections.Generic.IList? keytermsPrompt, - global::AssemblyAI.OneOf?, object>? languageCode, + global::AssemblyAI.AnyOf? languageCode, global::System.Collections.Generic.IList? languageCodes, float? languageConfidenceThreshold, bool? languageDetection, @@ -557,17 +554,17 @@ public TranscriptOptionalParams( global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? redactPiiAudioOptions, global::AssemblyAI.RedactPiiAudioQuality? redactPiiAudioQuality, global::System.Collections.Generic.IList? redactPiiPolicies, - global::AssemblyAI.OneOf? redactPiiSub, + global::AssemblyAI.SubstitutionPolicy? redactPiiSub, bool? redactPiiReturnUnredacted, global::System.Collections.Generic.Dictionary>? redactStaticEntities, bool? sentimentAnalysis, bool? speakerLabels, global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? speakerOptions, int? speakersExpected, - global::System.Collections.Generic.IList? speechModels, + global::System.Collections.Generic.IList? speechModels, float? speechThreshold, global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? speechUnderstanding, - global::AssemblyAI.OneOf? removeAudioTags, + global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2? removeAudioTags, double? temperature, string? webhookAuthHeaderName, string? webhookAuthHeaderValue, diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiSub.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiSub.g.cs new file mode 100644 index 0000000..8f40247 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiSub.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
+ /// Default Value: hash + ///
+ public sealed partial class TranscriptOptionalParamsRedactPiiSub + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags.g.cs index 08f4423..cf42b63 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags.g.cs @@ -4,48 +4,18 @@ namespace AssemblyAI { /// - /// + /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. By default, all inline annotations are removed.
+ /// Note: This parameter is only supported for the Universal-3.5 Pro model.
+ /// Default Value: all ///
- public enum TranscriptOptionalParamsRemoveAudioTags + public sealed partial class TranscriptOptionalParamsRemoveAudioTags { - /// - /// - /// - All, - /// - /// - /// - Speaker, - } - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class TranscriptOptionalParamsRemoveAudioTagsExtensions - { /// - /// Converts an enum to a string. + /// Additional properties that are not explicitly defined in the schema /// - public static string ToValueString(this TranscriptOptionalParamsRemoveAudioTags value) - { - return value switch - { - TranscriptOptionalParamsRemoveAudioTags.All => "all", - TranscriptOptionalParamsRemoveAudioTags.Speaker => "speaker", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static TranscriptOptionalParamsRemoveAudioTags? ToEnum(string value) - { - return value switch - { - "all" => TranscriptOptionalParamsRemoveAudioTags.All, - "speaker" => TranscriptOptionalParamsRemoveAudioTags.Speaker, - _ => null, - }; - } + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } } \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags2.g.cs new file mode 100644 index 0000000..974835a --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags2.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public enum TranscriptOptionalParamsRemoveAudioTags2 + { + /// + /// + /// + All, + /// + /// + /// + Speaker, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TranscriptOptionalParamsRemoveAudioTags2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TranscriptOptionalParamsRemoveAudioTags2 value) + { + return value switch + { + TranscriptOptionalParamsRemoveAudioTags2.All => "all", + TranscriptOptionalParamsRemoveAudioTags2.Speaker => "speaker", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TranscriptOptionalParamsRemoveAudioTags2? ToEnum(string value) + { + return value switch + { + "all" => TranscriptOptionalParamsRemoveAudioTags2.All, + "speaker" => TranscriptOptionalParamsRemoveAudioTags2.Speaker, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechModel.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechModel.g.cs new file mode 100644 index 0000000..51f8f92 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechModel.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). + /// + [global::System.Obsolete("This model marked as deprecated.")] + public sealed partial class TranscriptOptionalParamsSpeechModel + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioQuality.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioQuality.g.cs new file mode 100644 index 0000000..4093964 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioQuality.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled.
+ /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. + ///
+ public sealed partial class TranscriptRedactPiiAudioQuality + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags.g.cs index 389e7cb..d9f1b6e 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags.g.cs @@ -4,48 +4,17 @@ namespace AssemblyAI { /// - /// + /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. By default, all inline annotations are removed.
+ /// Note: This parameter is only supported for the Universal-3.5 Pro model. ///
- public enum TranscriptRemoveAudioTags + public sealed partial class TranscriptRemoveAudioTags { - /// - /// - /// - All, - /// - /// - /// - Speaker, - } - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class TranscriptRemoveAudioTagsExtensions - { /// - /// Converts an enum to a string. + /// Additional properties that are not explicitly defined in the schema /// - public static string ToValueString(this TranscriptRemoveAudioTags value) - { - return value switch - { - TranscriptRemoveAudioTags.All => "all", - TranscriptRemoveAudioTags.Speaker => "speaker", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static TranscriptRemoveAudioTags? ToEnum(string value) - { - return value switch - { - "all" => TranscriptRemoveAudioTags.All, - "speaker" => TranscriptRemoveAudioTags.Speaker, - _ => null, - }; - } + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } } \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags2.g.cs new file mode 100644 index 0000000..e748c6a --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags2.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public enum TranscriptRemoveAudioTags2 + { + /// + /// + /// + All, + /// + /// + /// + Speaker, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TranscriptRemoveAudioTags2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TranscriptRemoveAudioTags2 value) + { + return value switch + { + TranscriptRemoveAudioTags2.All => "all", + TranscriptRemoveAudioTags2.Speaker => "speaker", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TranscriptRemoveAudioTags2? ToEnum(string value) + { + return value switch + { + "all" => TranscriptRemoveAudioTags2.All, + "speaker" => TranscriptRemoveAudioTags2.Speaker, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechModel.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechModel.g.cs new file mode 100644 index 0000000..764800e --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechModel.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). + /// + [global::System.Obsolete("This model marked as deprecated.")] + public sealed partial class TranscriptSpeechModel + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.Json.g.cs deleted file mode 100644 index 4610f14..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public readonly partial struct OneOf - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::AssemblyAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::AssemblyAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.OneOf? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.OneOf), - jsonSerializerContext) as global::AssemblyAI.OneOf?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::AssemblyAI.OneOf? FromJson( - string json) - { - return FromJson( - json, - global::AssemblyAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#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::AssemblyAI.OneOf? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::AssemblyAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize>( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.OneOf), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.OneOf?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::AssemblyAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#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?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::AssemblyAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.g.cs deleted file mode 100644 index ca5eac4..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.g.cs +++ /dev/null @@ -1,294 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public readonly partial struct OneOf : global::System.IEquatable> - { - /// - /// - /// -#if NET6_0_OR_GREATER - public T1? Value1 { get; init; } -#else - public T1? Value1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] -#endif - public bool IsValue1 => Value1 != null; - - /// - /// - /// - public bool TryPickValue1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T1? value) - { - value = Value1; - return IsValue1; - } - - /// - /// - /// - public T1 PickValue1() => IsValue1 - ? Value1! - : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T2? Value2 { get; init; } -#else - public T2? Value2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] -#endif - public bool IsValue2 => Value2 != null; - - /// - /// - /// - public bool TryPickValue2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T2? value) - { - value = Value2; - return IsValue2; - } - - /// - /// - /// - public T2 PickValue2() => IsValue2 - ? Value2! - : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); - - /// - /// - /// - public static implicit operator T1?(OneOf @this) => @this.Value1; - - /// - /// - /// - public OneOf(T1? value) - { - Value1 = value; - } - - /// - /// - /// - public static OneOf FromValue1(T1? value) => new OneOf(value); - - /// - /// - /// - public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); - - /// - /// - /// - public static implicit operator T2?(OneOf @this) => @this.Value2; - - /// - /// - /// - public OneOf(T2? value) - { - Value2 = value; - } - - /// - /// - /// - public static OneOf FromValue2(T2? value) => new OneOf(value); - - /// - /// - /// - public OneOf( - T1? value1, - T2? value2 - ) - { - Value1 = value1; - Value2 = value2; - } - - /// - /// - /// - public object? Object => - Value2 as object ?? - Value1 as object - ; - - /// - /// - /// - public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1 && value1 != null) - { - return value1(Value1!); - } - else if (IsValue2 && value2 != null) - { - return value2(Value2!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? value1 = null, - - global::System.Action? value2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1) - { - value1?.Invoke(Value1!); - } - else if (IsValue2) - { - value2?.Invoke(Value2!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1) - { - value1?.Invoke(Value1!); - } - else if (IsValue2) - { - value2?.Invoke(Value2!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Value1, - typeof(T1), - Value2, - typeof(T2), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(OneOf other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) - ; - } - - /// - /// - /// - public static bool operator ==(OneOf obj1, OneOf obj2) - { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(OneOf obj1, OneOf obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is OneOf o && Equals(o); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.PathBuilder.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.PathBuilder.g.cs index 97b7d41..fdeb648 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.PathBuilder.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.PathBuilder.g.cs @@ -65,13 +65,14 @@ public PathBuilder AddRequiredParameter( /// The current instance. public PathBuilder AddRequiredParameter( string name, - global::System.Collections.Generic.IEnumerable value, + global::System.Collections.Generic.IEnumerable value, string delimiter = ",", bool explode = false) { + var nonNullValues = global::System.Linq.Enumerable.OfType(value); if (explode) { - foreach (var item in value) + foreach (var item in nonNullValues) { AddRequiredParameter($"{name}", item); } @@ -79,7 +80,7 @@ public PathBuilder AddRequiredParameter( return this; } - AddRequiredParameter(name, string.Join(delimiter, value)); + AddRequiredParameter(name, string.Join(delimiter, nonNullValues)); return this; } @@ -138,7 +139,7 @@ public PathBuilder AddOptionalParameter( /// The current instance. public PathBuilder AddOptionalParameter( string name, - global::System.Collections.Generic.IEnumerable? value, + global::System.Collections.Generic.IEnumerable? value, string delimiter = ",", bool explode = false) { diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.PathBuilder.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.PathBuilder.g.cs index a4cdb37..abd51dd 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.PathBuilder.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.PathBuilder.g.cs @@ -65,13 +65,14 @@ public PathBuilder AddRequiredParameter( /// The current instance. public PathBuilder AddRequiredParameter( string name, - global::System.Collections.Generic.IEnumerable value, + global::System.Collections.Generic.IEnumerable value, string delimiter = ",", bool explode = false) { + var nonNullValues = global::System.Linq.Enumerable.OfType(value); if (explode) { - foreach (var item in value) + foreach (var item in nonNullValues) { AddRequiredParameter($"{name}", item); } @@ -79,7 +80,7 @@ public PathBuilder AddRequiredParameter( return this; } - AddRequiredParameter(name, string.Join(delimiter, value)); + AddRequiredParameter(name, string.Join(delimiter, nonNullValues)); return this; } @@ -138,7 +139,7 @@ public PathBuilder AddOptionalParameter( /// The current instance. public PathBuilder AddOptionalParameter( string name, - global::System.Collections.Generic.IEnumerable? value, + global::System.Collections.Generic.IEnumerable? value, string delimiter = ",", bool explode = false) {