diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf3.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf4.g.cs similarity index 76% rename from src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf3.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf4.g.cs index f88ea34..3bb45df 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf3.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf4.g.cs @@ -3,10 +3,10 @@ namespace AssemblyAI.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> { /// - public override global::AssemblyAI.OneOf Read( + public override global::AssemblyAI.OneOf Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -59,15 +59,28 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa } } } + var __score3 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), 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)) __score3++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } T1? value1 = default; T2? value2 = default; T3? value3 = default; + T4? value4 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -120,9 +133,26 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa { } } + + else if (__bestIndex == 3) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } } - if (value1 == null && value2 == null && value3 == null) + if (value1 == null && value2 == null && value3 == null && value4 == null) { try { @@ -139,7 +169,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa } } - if (value1 == null && value2 == null && value3 == null) + if (value1 == null && value2 == null && value3 == null && value4 == null) { try { @@ -156,7 +186,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa } } - if (value1 == null && value2 == null && value3 == null) + if (value1 == null && value2 == null && value3 == null && value4 == null) { try { @@ -173,12 +203,31 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa } } - var __value = new global::AssemblyAI.OneOf( + if (value1 == null && value2 == null && value3 == null && value4 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = 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, - value3 + value3, + + value4 ); return __value; @@ -187,7 +236,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AssemblyAI.OneOf value, + global::AssemblyAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); @@ -211,6 +260,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); } + else if (value.IsValue4) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationEffort.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationEffort.g.cs new file mode 100644 index 0000000..83a8131 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationEffort.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class SummarizationRequestBodySummarizationEffortJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.SummarizationRequestBodySummarizationEffort Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.SummarizationRequestBodySummarizationEffortExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.SummarizationRequestBodySummarizationEffort)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.SummarizationRequestBodySummarizationEffort); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.SummarizationRequestBodySummarizationEffort value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AssemblyAI.SummarizationRequestBodySummarizationEffortExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationEffortNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationEffortNullable.g.cs new file mode 100644 index 0000000..af92399 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationEffortNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class SummarizationRequestBodySummarizationEffortNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.SummarizationRequestBodySummarizationEffort? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.SummarizationRequestBodySummarizationEffortExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.SummarizationRequestBodySummarizationEffort)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.SummarizationRequestBodySummarizationEffort?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.SummarizationRequestBodySummarizationEffort? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::AssemblyAI.SummarizationRequestBodySummarizationEffortExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationSummaryType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationSummaryType.g.cs new file mode 100644 index 0000000..35e0fde --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationSummaryType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class SummarizationRequestBodySummarizationSummaryTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.SummarizationRequestBodySummarizationSummaryTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AssemblyAI.SummarizationRequestBodySummarizationSummaryTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationSummaryTypeNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationSummaryTypeNullable.g.cs new file mode 100644 index 0000000..961f609 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationSummaryTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class SummarizationRequestBodySummarizationSummaryTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.SummarizationRequestBodySummarizationSummaryTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::AssemblyAI.SummarizationRequestBodySummarizationSummaryTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs index 72212fc..ad398fe 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs @@ -85,6 +85,14 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationSummaryTypeJsonConverter), + + typeof(global::AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationSummaryTypeNullableJsonConverter), + + typeof(global::AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationEffortJsonConverter), + + typeof(global::AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationEffortNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.RedactedAudioNotificationJsonConverter), typeof(global::AssemblyAI.JsonConverters.TranscriptParamsJsonConverter), @@ -97,7 +105,7 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), @@ -113,9 +121,9 @@ namespace AssemblyAI 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), @@ -163,10 +171,11 @@ namespace AssemblyAI [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::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranslationRequestBodySpeakerIdentificationRequestBodyCustomFormattingRequestBody2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranslationRequestBodySpeakerIdentificationRequestBodyCustomFormattingRequestBodySummarizationRequestBody2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranslationRequestBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.CustomFormattingRequestBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummarizationRequestBody))] [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")] @@ -196,10 +205,11 @@ namespace AssemblyAI [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))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranslationResponseSpeakerIdentificationResponseCustomFormattingResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranslationResponseSpeakerIdentificationResponseCustomFormattingResponseSummarizationResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranslationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeakerIdentificationResponse))] [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.OneOf), TypeInfoPropertyName = "OneOfTranscriptRemoveAudioTagsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRemoveAudioTags), TypeInfoPropertyName = "TranscriptRemoveAudioTags2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -240,9 +250,15 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummarizationRequestBodySummarization))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType), TypeInfoPropertyName = "SummarizationRequestBodySummarizationSummaryType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummarizationRequestBodySummarizationEffort), TypeInfoPropertyName = "SummarizationRequestBodySummarizationEffort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranslationResponseTranslation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.CustomFormattingResponseCustomFormatting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummarizationResponseSummarization))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummarizationResponseSummarizationSummarization))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] @@ -267,6 +283,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.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs index 52b1c02..04ad97e 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs @@ -184,7 +184,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.OneOf? Type39 { get; set; } + public global::AssemblyAI.OneOf? Type39 { get; set; } /// /// /// @@ -200,311 +200,343 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.SummaryModel? Type43 { get; set; } + public global::AssemblyAI.SummarizationRequestBody? Type43 { get; set; } /// /// /// - public global::AssemblyAI.SummaryType? Type44 { get; set; } + public global::AssemblyAI.SummaryModel? Type44 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type45 { get; set; } + public global::AssemblyAI.SummaryType? Type45 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type46 { get; set; } + public global::AssemblyAI.OneOf? Type46 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParams? Type47 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type47 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParamsVariant1? Type48 { get; set; } + public global::AssemblyAI.TranscriptParams? Type48 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptUtterance? Type49 { get; set; } + public global::AssemblyAI.TranscriptParamsVariant1? Type49 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type50 { get; set; } + public global::AssemblyAI.TranscriptUtterance? Type50 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptWord? Type51 { get; set; } + public global::System.Collections.Generic.IList? Type51 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type52 { get; set; } + public global::AssemblyAI.TranscriptWord? Type52 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptStatus? Type53 { get; set; } + public global::System.Collections.Generic.Dictionary? Type53 { get; set; } /// /// /// - public global::AssemblyAI.Transcript? Type54 { get; set; } + public global::AssemblyAI.TranscriptStatus? Type54 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type55 { get; set; } + public global::AssemblyAI.Transcript? Type55 { get; set; } /// /// /// - public global::AssemblyAI.AutoHighlightsResult2? Type56 { get; set; } + public global::AssemblyAI.OneOf? Type56 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type57 { get; set; } + public global::AssemblyAI.AutoHighlightsResult2? Type57 { get; set; } /// /// /// - public global::AssemblyAI.Chapter? Type58 { get; set; } + public global::System.Collections.Generic.IList? Type58 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type59 { get; set; } + public global::AssemblyAI.Chapter? Type59 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabelsResult? Type60 { get; set; } + public global::AssemblyAI.OneOf? Type60 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type61 { get; set; } + public global::AssemblyAI.ContentSafetyLabelsResult? Type61 { get; set; } /// /// /// - public global::AssemblyAI.Entity? Type62 { get; set; } + public global::System.Collections.Generic.IList? Type62 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type63 { get; set; } + public global::AssemblyAI.Entity? Type63 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionModelResult? Type64 { get; set; } + public global::AssemblyAI.OneOf? Type64 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type65 { get; set; } + public global::AssemblyAI.TopicDetectionModelResult? Type65 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRedactPiiAudioOptions? Type66 { get; set; } + public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type66 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type67 { get; set; } + public global::AssemblyAI.TranscriptRedactPiiAudioOptions? Type67 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type68 { get; set; } + public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type68 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type69 { get; set; } + public global::AssemblyAI.OneOf? Type69 { get; set; } /// /// /// - public global::AssemblyAI.SentimentAnalysisResult? Type70 { get; set; } + public global::System.Collections.Generic.IList? Type70 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptSpeechUnderstanding? Type71 { get; set; } + public global::AssemblyAI.SentimentAnalysisResult? Type71 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type72 { get; set; } + public global::AssemblyAI.TranscriptSpeechUnderstanding? Type72 { get; set; } /// /// /// - public global::AssemblyAI.TranslationResponse? Type73 { get; set; } + public global::AssemblyAI.OneOf? Type73 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationResponse? Type74 { get; set; } + public global::AssemblyAI.TranslationResponse? Type74 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingResponse? Type75 { get; set; } + public global::AssemblyAI.SpeakerIdentificationResponse? Type75 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type76 { get; set; } + public global::AssemblyAI.CustomFormattingResponse? Type76 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRemoveAudioTags? Type77 { get; set; } + public global::AssemblyAI.SummarizationResponse? Type77 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type78 { get; set; } + public global::AssemblyAI.OneOf? Type78 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptTranslatedTexts? Type79 { get; set; } + public global::AssemblyAI.TranscriptRemoveAudioTags? Type79 { get; set; } /// /// /// - public global::AssemblyAI.AudioIntelligenceModelStatus? Type80 { get; set; } + public global::System.Collections.Generic.IList? Type80 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type81 { get; set; } + public global::AssemblyAI.TranscriptTranslatedTexts? Type81 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionResult? Type82 { get; set; } + public global::AssemblyAI.AudioIntelligenceModelStatus? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type83 { get; set; } + public global::System.Collections.Generic.IList? Type83 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type84 { get; set; } + public global::AssemblyAI.TopicDetectionResult? Type84 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabelResult? Type85 { get; set; } + public global::System.Collections.Generic.Dictionary? Type85 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type86 { get; set; } + public global::System.Collections.Generic.IList? Type86 { get; set; } /// /// /// - public global::AssemblyAI.SeverityScoreSummary? Type87 { get; set; } + public global::AssemblyAI.ContentSafetyLabelResult? Type87 { get; set; } /// /// /// - public global::AssemblyAI.EntityType? Type88 { get; set; } + public global::System.Collections.Generic.Dictionary? Type88 { get; set; } /// /// /// - public global::AssemblyAI.Sentiment? Type89 { get; set; } + public global::AssemblyAI.SeverityScoreSummary? Type89 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type90 { get; set; } + public global::AssemblyAI.EntityType? Type90 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionResultLabel? Type91 { get; set; } + public global::AssemblyAI.Sentiment? Type91 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabel? Type92 { get; set; } + public global::System.Collections.Generic.IList? Type92 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type93 { get; set; } + public global::AssemblyAI.TopicDetectionResultLabel? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type94 { get; set; } + public global::AssemblyAI.ContentSafetyLabel? Type94 { get; set; } /// /// /// - public global::AssemblyAI.AutoHighlightResult? Type95 { get; set; } + public global::System.Collections.Generic.IList? Type95 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type96 { get; set; } + public global::System.Collections.Generic.IList? Type96 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptSentence? Type97 { get; set; } + public global::AssemblyAI.AutoHighlightResult? Type97 { get; set; } /// /// /// - public global::AssemblyAI.SentencesResponse? Type98 { get; set; } + public global::System.Collections.Generic.IList? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::AssemblyAI.TranscriptSentence? Type99 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParagraph? Type100 { get; set; } + public global::AssemblyAI.SentencesResponse? Type100 { get; set; } /// /// /// - public global::AssemblyAI.ParagraphsResponse? Type101 { get; set; } + public global::System.Collections.Generic.IList? Type101 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type102 { get; set; } + public global::AssemblyAI.TranscriptParagraph? Type102 { get; set; } /// /// /// - public global::AssemblyAI.PageDetails? Type103 { get; set; } + public global::AssemblyAI.ParagraphsResponse? Type103 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptListItem? Type104 { get; set; } + public global::System.Collections.Generic.IList? Type104 { get; set; } /// /// /// - public global::System.DateTime? Type105 { get; set; } + public global::AssemblyAI.PageDetails? Type105 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptList? Type106 { get; set; } + public global::AssemblyAI.TranscriptListItem? Type106 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type107 { get; set; } + public global::System.DateTime? Type107 { get; set; } /// /// /// - public global::AssemblyAI.UploadedFile? Type108 { get; set; } + public global::AssemblyAI.TranscriptList? Type108 { get; set; } /// /// /// - public global::AssemblyAI.Error? Type109 { get; set; } + public global::System.Collections.Generic.IList? Type109 { get; set; } /// /// /// - public global::AssemblyAI.TranslationRequestBodyTranslation? Type110 { get; set; } + public global::AssemblyAI.UploadedFile? Type110 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type111 { get; set; } + public global::AssemblyAI.Error? Type111 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type112 { get; set; } + public global::AssemblyAI.TranslationRequestBodyTranslation? Type112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type113 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type113 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker? Type114 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type114 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type115 { get; set; } + public global::System.Collections.Generic.IList? Type115 { get; set; } /// /// /// - public global::AssemblyAI.TranslationResponseTranslation? Type116 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker? Type116 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type117 { get; set; } + public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type117 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type118 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarization? Type118 { get; set; } /// /// /// - public byte[]? Type119 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType? Type119 { get; set; } + /// + /// + /// + public global::AssemblyAI.SummarizationRequestBodySummarizationEffort? Type120 { get; set; } + /// + /// + /// + public global::AssemblyAI.TranslationResponseTranslation? Type121 { get; set; } + /// + /// + /// + public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type122 { get; set; } + /// + /// + /// + public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type123 { get; set; } + /// + /// + /// + public global::AssemblyAI.SummarizationResponseSummarization? Type124 { get; set; } + /// + /// + /// + public global::AssemblyAI.SummarizationResponseSummarizationSummarization? Type125 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type126 { get; set; } + /// + /// + /// + public byte[]? Type127 { get; set; } /// /// @@ -598,5 +630,9 @@ public sealed partial class JsonSerializerContextTypes /// /// public global::System.Collections.Generic.List? ListType22 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType23 { get; set; } } } \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBody.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBody.Json.g.cs new file mode 100644 index 0000000..895e795 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBody.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class SummarizationRequestBody + { + /// + /// 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.SummarizationRequestBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.SummarizationRequestBody), + jsonSerializerContext) as global::AssemblyAI.SummarizationRequestBody; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::AssemblyAI.SummarizationRequestBody? 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.SummarizationRequestBody? 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.SummarizationRequestBody), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SummarizationRequestBody; + } + + /// + /// 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.Models.SummarizationRequestBody.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBody.g.cs new file mode 100644 index 0000000..acbeb6c --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBody.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Request body for [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization). + /// + public sealed partial class SummarizationRequestBody + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summarization")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AssemblyAI.SummarizationRequestBodySummarization Summarization { get; set; } + + /// + /// 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(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SummarizationRequestBody( + global::AssemblyAI.SummarizationRequestBodySummarization summarization) + { + this.Summarization = summarization ?? throw new global::System.ArgumentNullException(nameof(summarization)); + } + + /// + /// Initializes a new instance of the class. + /// + public SummarizationRequestBody() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarization.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarization.Json.g.cs new file mode 100644 index 0000000..7ee37b0 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarization.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class SummarizationRequestBodySummarization + { + /// + /// 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.SummarizationRequestBodySummarization? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.SummarizationRequestBodySummarization), + jsonSerializerContext) as global::AssemblyAI.SummarizationRequestBodySummarization; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::AssemblyAI.SummarizationRequestBodySummarization? 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.SummarizationRequestBodySummarization? 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.SummarizationRequestBodySummarization), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SummarizationRequestBodySummarization; + } + + /// + /// 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.Models.SummarizationRequestBodySummarization.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarization.g.cs new file mode 100644 index 0000000..115a3cf --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarization.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class SummarizationRequestBodySummarization + { + /// + /// Type of summary. Bullets returns short bullet point style summaries, paragraph is generally more verbose and detailed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summary_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationSummaryTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType SummaryType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("effort")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SummarizationRequestBodySummarizationEffortJsonConverter))] + public global::AssemblyAI.SummarizationRequestBodySummarizationEffort? Effort { get; set; } + + /// + /// 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(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Type of summary. Bullets returns short bullet point style summaries, paragraph is generally more verbose and detailed. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SummarizationRequestBodySummarization( + global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType summaryType, + global::AssemblyAI.SummarizationRequestBodySummarizationEffort? effort) + { + this.SummaryType = summaryType; + this.Effort = effort; + } + + /// + /// Initializes a new instance of the class. + /// + public SummarizationRequestBodySummarization() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarizationEffort.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarizationEffort.g.cs new file mode 100644 index 0000000..c506c53 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarizationEffort.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public enum SummarizationRequestBodySummarizationEffort + { + /// + /// + /// + Low, + /// + /// + /// + Medium, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SummarizationRequestBodySummarizationEffortExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SummarizationRequestBodySummarizationEffort value) + { + return value switch + { + SummarizationRequestBodySummarizationEffort.Low => "low", + SummarizationRequestBodySummarizationEffort.Medium => "medium", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SummarizationRequestBodySummarizationEffort? ToEnum(string value) + { + return value switch + { + "low" => SummarizationRequestBodySummarizationEffort.Low, + "medium" => SummarizationRequestBodySummarizationEffort.Medium, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarizationSummaryType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarizationSummaryType.g.cs new file mode 100644 index 0000000..4bd0324 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationRequestBodySummarizationSummaryType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Type of summary. Bullets returns short bullet point style summaries, paragraph is generally more verbose and detailed. + /// + public enum SummarizationRequestBodySummarizationSummaryType + { + /// + /// + /// + Bullets, + /// + /// + /// + Paragraph, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SummarizationRequestBodySummarizationSummaryTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SummarizationRequestBodySummarizationSummaryType value) + { + return value switch + { + SummarizationRequestBodySummarizationSummaryType.Bullets => "bullets", + SummarizationRequestBodySummarizationSummaryType.Paragraph => "paragraph", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SummarizationRequestBodySummarizationSummaryType? ToEnum(string value) + { + return value switch + { + "bullets" => SummarizationRequestBodySummarizationSummaryType.Bullets, + "paragraph" => SummarizationRequestBodySummarizationSummaryType.Paragraph, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponse.Json.g.cs new file mode 100644 index 0000000..3bdcf0c --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class SummarizationResponse + { + /// + /// 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.SummarizationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.SummarizationResponse), + jsonSerializerContext) as global::AssemblyAI.SummarizationResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::AssemblyAI.SummarizationResponse? 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.SummarizationResponse? 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.SummarizationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SummarizationResponse; + } + + /// + /// 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.Models.SummarizationResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponse.g.cs new file mode 100644 index 0000000..e969739 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponse.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class SummarizationResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summarization")] + public global::AssemblyAI.SummarizationResponseSummarization? Summarization { get; set; } + + /// + /// 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(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SummarizationResponse( + global::AssemblyAI.SummarizationResponseSummarization? summarization) + { + this.Summarization = summarization; + } + + /// + /// Initializes a new instance of the class. + /// + public SummarizationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarization.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarization.Json.g.cs new file mode 100644 index 0000000..d7b37b9 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarization.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class SummarizationResponseSummarization + { + /// + /// 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.SummarizationResponseSummarization? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.SummarizationResponseSummarization), + jsonSerializerContext) as global::AssemblyAI.SummarizationResponseSummarization; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::AssemblyAI.SummarizationResponseSummarization? 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.SummarizationResponseSummarization? 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.SummarizationResponseSummarization), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SummarizationResponseSummarization; + } + + /// + /// 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.Models.SummarizationResponseSummarization.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarization.g.cs new file mode 100644 index 0000000..9d53f9f --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarization.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class SummarizationResponseSummarization + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summarization")] + public global::AssemblyAI.SummarizationResponseSummarizationSummarization? Summarization { get; set; } + + /// + /// 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(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SummarizationResponseSummarization( + global::AssemblyAI.SummarizationResponseSummarizationSummarization? summarization) + { + this.Summarization = summarization; + } + + /// + /// Initializes a new instance of the class. + /// + public SummarizationResponseSummarization() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarizationSummarization.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarizationSummarization.Json.g.cs new file mode 100644 index 0000000..f275c35 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarizationSummarization.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class SummarizationResponseSummarizationSummarization + { + /// + /// 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.SummarizationResponseSummarizationSummarization? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.SummarizationResponseSummarizationSummarization), + jsonSerializerContext) as global::AssemblyAI.SummarizationResponseSummarizationSummarization; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::AssemblyAI.SummarizationResponseSummarizationSummarization? 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.SummarizationResponseSummarizationSummarization? 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.SummarizationResponseSummarizationSummarization), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SummarizationResponseSummarizationSummarization; + } + + /// + /// 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.Models.SummarizationResponseSummarizationSummarization.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarizationSummarization.g.cs new file mode 100644 index 0000000..a3d9fb4 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarizationSummarization.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class SummarizationResponseSummarizationSummarization + { + /// + /// Array of summaries. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Summary { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Status { get; set; } + + /// + /// 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(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Array of summaries. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SummarizationResponseSummarizationSummarization( + global::System.Collections.Generic.IList summary, + string status) + { + this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); + this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); + } + + /// + /// Initializes a new instance of the class. + /// + public SummarizationResponseSummarizationSummarization() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarizationSummarizationSummaryItem.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarizationSummarizationSummaryItem.Json.g.cs new file mode 100644 index 0000000..4e0f0fd --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarizationSummarizationSummaryItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class SummarizationResponseSummarizationSummarizationSummaryItem + { + /// + /// 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.SummarizationResponseSummarizationSummarizationSummaryItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.SummarizationResponseSummarizationSummarizationSummaryItem), + jsonSerializerContext) as global::AssemblyAI.SummarizationResponseSummarizationSummarizationSummaryItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::AssemblyAI.SummarizationResponseSummarizationSummarizationSummaryItem? 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.SummarizationResponseSummarizationSummarizationSummaryItem? 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.SummarizationResponseSummarizationSummarizationSummaryItem), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SummarizationResponseSummarizationSummarizationSummaryItem; + } + + /// + /// 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.Models.SummarizationResponseSummarizationSummarizationSummaryItem.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarizationSummarizationSummaryItem.g.cs new file mode 100644 index 0000000..7306f28 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummarizationResponseSummarizationSummarizationSummaryItem.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class SummarizationResponseSummarizationSummarizationSummaryItem + { + + /// + /// 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.TranscriptOptionalParamsSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.g.cs index a6f71d4..c5f9f11 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.g.cs @@ -12,9 +12,9 @@ public sealed partial class TranscriptOptionalParamsSpeechUnderstanding /// /// [global::System.Text.Json.Serialization.JsonPropertyName("request")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.OneOf Request { get; set; } + public required global::AssemblyAI.OneOf Request { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -30,7 +30,7 @@ public sealed partial class TranscriptOptionalParamsSpeechUnderstanding [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptOptionalParamsSpeechUnderstanding( - global::AssemblyAI.OneOf request) + global::AssemblyAI.OneOf request) { this.Request = request; } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs index 558663e..2110cc7 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs @@ -12,15 +12,15 @@ public sealed partial class TranscriptSpeechUnderstanding /// /// [global::System.Text.Json.Serialization.JsonPropertyName("request")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? Request { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? Request { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("response")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? Response { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? Response { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -37,8 +37,8 @@ public sealed partial class TranscriptSpeechUnderstanding [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptSpeechUnderstanding( - global::AssemblyAI.OneOf? request, - global::AssemblyAI.OneOf? response) + global::AssemblyAI.OneOf? request, + global::AssemblyAI.OneOf? response) { this.Request = request; this.Response = response; diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.3.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.4.Json.g.cs similarity index 88% rename from src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.3.Json.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.4.Json.g.cs index c35573c..617aeca 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.3.Json.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.4.Json.g.cs @@ -2,7 +2,7 @@ namespace AssemblyAI { - public readonly partial struct OneOf + public readonly partial struct OneOf { /// /// 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.OneOf? FromJson( + 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?; + typeof(global::AssemblyAI.OneOf), + jsonSerializerContext) as global::AssemblyAI.OneOf?; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::AssemblyAI.OneOf? FromJson( + public static global::AssemblyAI.OneOf? 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.OneOf? FromJson( + public static global::AssemblyAI.OneOf? 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.OneOf), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.OneOf?; + 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( + 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.OneOf.3.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.4.g.cs similarity index 67% rename from src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.3.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.4.g.cs index c5c57e5..a795710 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.3.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.4.g.cs @@ -6,7 +6,7 @@ namespace AssemblyAI /// /// /// - public readonly partial struct OneOf : global::System.IEquatable> + public readonly partial struct OneOf : global::System.IEquatable> { /// /// @@ -118,15 +118,52 @@ public bool TryPickValue3( public T3 PickValue3() => IsValue3 ? Value3! : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T4? Value4 { get; init; } +#else + public T4? Value4 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] +#endif + public bool IsValue4 => Value4 != null; + + /// + /// + /// + public bool TryPickValue4( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T4? value) + { + value = Value4; + return IsValue4; + } + + /// + /// + /// + public T4 PickValue4() => IsValue4 + ? Value4! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// /// /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); + public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); /// /// /// - public static implicit operator T1?(OneOf @this) => @this.Value1; + public static implicit operator T1?(OneOf @this) => @this.Value1; /// /// @@ -139,17 +176,17 @@ public OneOf(T1? value) /// /// /// - public static OneOf FromValue1(T1? value) => new OneOf(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 OneOf(T2 value) => new OneOf((T2?)value); /// /// /// - public static implicit operator T2?(OneOf @this) => @this.Value2; + public static implicit operator T2?(OneOf @this) => @this.Value2; /// /// @@ -162,17 +199,17 @@ public OneOf(T2? value) /// /// /// - public static OneOf FromValue2(T2? value) => new OneOf(value); + public static OneOf FromValue2(T2? value) => new OneOf(value); /// /// /// - public static implicit operator OneOf(T3 value) => new OneOf((T3?)value); + public static implicit operator OneOf(T3 value) => new OneOf((T3?)value); /// /// /// - public static implicit operator T3?(OneOf @this) => @this.Value3; + public static implicit operator T3?(OneOf @this) => @this.Value3; /// /// @@ -185,7 +222,30 @@ public OneOf(T3? value) /// /// /// - public static OneOf FromValue3(T3? value) => new OneOf(value); + public static OneOf FromValue3(T3? value) => new OneOf(value); + + /// + /// + /// + public static implicit operator OneOf(T4 value) => new OneOf((T4?)value); + + /// + /// + /// + public static implicit operator T4?(OneOf @this) => @this.Value4; + + /// + /// + /// + public OneOf(T4? value) + { + Value4 = value; + } + + /// + /// + /// + public static OneOf FromValue4(T4? value) => new OneOf(value); /// /// @@ -193,18 +253,21 @@ public OneOf(T3? value) public OneOf( T1? value1, T2? value2, - T3? value3 + T3? value3, + T4? value4 ) { Value1 = value1; Value2 = value2; Value3 = value3; + Value4 = value4; } /// /// /// public object? Object => + Value4 as object ?? Value3 as object ?? Value2 as object ?? Value1 as object @@ -216,7 +279,8 @@ Value1 as object public override string? ToString() => Value1?.ToString() ?? Value2?.ToString() ?? - Value3?.ToString() + Value3?.ToString() ?? + Value4?.ToString() ; /// @@ -224,7 +288,7 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 || !IsValue1 && IsValue2 && !IsValue3 || !IsValue1 && !IsValue2 && IsValue3; + return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4; } /// @@ -234,6 +298,7 @@ public bool Validate() global::System.Func? value1 = null, global::System.Func? value2 = null, global::System.Func? value3 = null, + global::System.Func? value4 = null, bool validate = true) { if (validate) @@ -253,6 +318,10 @@ public bool Validate() { return value3(Value3!); } + else if (IsValue4 && value4 != null) + { + return value4(Value4!); + } return default(TResult); } @@ -266,6 +335,8 @@ public void Match( global::System.Action? value2 = null, global::System.Action? value3 = null, + + global::System.Action? value4 = null, bool validate = true) { if (validate) @@ -285,6 +356,10 @@ public void Match( { value3?.Invoke(Value3!); } + else if (IsValue4) + { + value4?.Invoke(Value4!); + } } /// @@ -294,6 +369,7 @@ public void Switch( global::System.Action? value1 = null, global::System.Action? value2 = null, global::System.Action? value3 = null, + global::System.Action? value4 = null, bool validate = true) { if (validate) @@ -313,6 +389,10 @@ public void Switch( { value3?.Invoke(Value3!); } + else if (IsValue4) + { + value4?.Invoke(Value4!); + } } /// @@ -328,6 +408,8 @@ public override int GetHashCode() typeof(T2), Value3, typeof(T3), + Value4, + typeof(T4), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -341,27 +423,28 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(OneOf other) + 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) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) ; } /// /// /// - public static bool operator ==(OneOf obj1, OneOf obj2) + public static bool operator ==(OneOf obj1, OneOf obj2) { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(OneOf obj1, OneOf obj2) + public static bool operator !=(OneOf obj1, OneOf obj2) { return !(obj1 == obj2); } @@ -371,7 +454,7 @@ public bool Equals(OneOf other) /// public override bool Equals(object? obj) { - return obj is OneOf o && Equals(o); + return obj is OneOf o && Equals(o); } } } diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml index f22c043..aacddac 100644 --- a/src/libs/AssemblyAI/openapi.yaml +++ b/src/libs/AssemblyAI/openapi.yaml @@ -1495,6 +1495,7 @@ components: - $ref: '#/components/schemas/TranslationRequestBody' - $ref: '#/components/schemas/SpeakerIdentificationRequestBody' - $ref: '#/components/schemas/CustomFormattingRequestBody' + - $ref: '#/components/schemas/SummarizationRequestBody' required: - request summarization: @@ -3284,11 +3285,13 @@ components: - $ref: '#/components/schemas/TranslationRequestBody' - $ref: '#/components/schemas/SpeakerIdentificationRequestBody' - $ref: '#/components/schemas/CustomFormattingRequestBody' + - $ref: '#/components/schemas/SummarizationRequestBody' response: oneOf: - $ref: '#/components/schemas/TranslationResponse' - $ref: '#/components/schemas/SpeakerIdentificationResponse' - $ref: '#/components/schemas/CustomFormattingResponse' + - $ref: '#/components/schemas/SummarizationResponse' status: x-label: Status description: >- @@ -5937,6 +5940,32 @@ components: for more details. required: - custom_formatting + SummarizationRequestBody: + type: object + description: >- + Request body for + [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization). + properties: + summarization: + type: object + properties: + summary_type: + type: string + enum: + - paragraph + - bullets + description: >- + Type of summary. Bullets returns short bullet point style + summaries, paragraph is generally more verbose and detailed. + effort: + type: string + enum: + - low + - medium + required: + - summary_type + required: + - summarization TranslationResponse: type: object properties: @@ -5972,6 +6001,25 @@ components: type: string formatted_text: type: string + SummarizationResponse: + type: object + properties: + summarization: + type: object + properties: + summarization: + type: object + properties: + summary: + type: array + description: Array of summaries. + items: + type: object + status: + type: string + required: + - summary + - status examples: VttSubtitlesResponse: value: >