From df176c4713714523d4a731beec5f7e1c1ff0d4cb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 13 Nov 2024 18:22:31 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...semblyAI.LeMURClient.GetLemurResponse.g.cs | 6 ++--- ...semblyAI.LeMURClient.LemurActionItems.g.cs | 6 ++--- ...blyAI.LeMURClient.LemurQuestionAnswer.g.cs | 6 ++--- .../AssemblyAI.LeMURClient.LemurSummary.g.cs | 6 ++--- .../AssemblyAI.LeMURClient.LemurTask.g.cs | 6 ++--- ...yAI.LeMURClient.PurgeLemurRequestData.g.cs | 6 ++--- .../AssemblyAI.Models.LemurBaseParams.g.cs | 4 +-- .../AssemblyAI.Models.LemurQuestion.g.cs | 2 +- .../AssemblyAI.Models.Transcript.g.cs | 12 ++++----- ...blyAI.Models.TranscriptOptionalParams.g.cs | 6 ++--- ....StreamingClient.CreateTemporaryToken.g.cs | 6 ++--- ...yAI.TranscriptClient.CreateTranscript.g.cs | 6 ++--- ...yAI.TranscriptClient.DeleteTranscript.g.cs | 6 ++--- ...yAI.TranscriptClient.GetRedactedAudio.g.cs | 6 ++--- ...emblyAI.TranscriptClient.GetSubtitles.g.cs | 10 +++----- ...mblyAI.TranscriptClient.GetTranscript.g.cs | 6 ++--- ...nscriptClient.GetTranscriptParagraphs.g.cs | 6 ++--- ...anscriptClient.GetTranscriptSentences.g.cs | 6 ++--- ...lyAI.TranscriptClient.ListTranscripts.g.cs | 6 ++--- ...ssemblyAI.TranscriptClient.UploadFile.g.cs | 6 ++--- ...ssemblyAI.TranscriptClient.WordSearch.g.cs | 6 ++--- .../JsonConverters.AnyOfFactory2.g.cs | 25 ------------------- .../JsonConverters.OneOfFactory2.g.cs | 25 ------------------- .../Generated/JsonSerializerContext.g.cs | 15 +++++++++-- 24 files changed, 60 insertions(+), 135 deletions(-) delete mode 100644 src/libs/AssemblyAI/Generated/JsonConverters.AnyOfFactory2.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/JsonConverters.OneOfFactory2.g.cs diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.GetLemurResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.GetLemurResponse.g.cs index ac51885..125a11e 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.GetLemurResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.GetLemurResponse.g.cs @@ -326,12 +326,10 @@ partial void ProcessGetLemurResponseResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.LemurResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.LemurResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurActionItems.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurActionItems.g.cs index 9e79743..6516b4a 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurActionItems.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurActionItems.g.cs @@ -332,12 +332,10 @@ partial void ProcessLemurActionItemsResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.LemurActionItemsResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.LemurActionItemsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurQuestionAnswer.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurQuestionAnswer.g.cs index 0c1011a..bd2b61a 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurQuestionAnswer.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurQuestionAnswer.g.cs @@ -333,12 +333,10 @@ partial void ProcessLemurQuestionAnswerResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.LemurQuestionAnswerResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.LemurQuestionAnswerResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurSummary.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurSummary.g.cs index fc5a93d..e1e27a4 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurSummary.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurSummary.g.cs @@ -333,12 +333,10 @@ partial void ProcessLemurSummaryResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.LemurSummaryResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.LemurSummaryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurTask.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurTask.g.cs index e1e7f7c..f9dda14 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurTask.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurTask.g.cs @@ -332,12 +332,10 @@ partial void ProcessLemurTaskResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.LemurTaskResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.LemurTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.PurgeLemurRequestData.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.PurgeLemurRequestData.g.cs index 4ba04e0..9beecd5 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.PurgeLemurRequestData.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.PurgeLemurRequestData.g.cs @@ -327,12 +327,10 @@ partial void ProcessPurgeLemurRequestDataResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.PurgeLemurRequestDataResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.PurgeLemurRequestDataResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseParams.g.cs index 9936769..86d37eb 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseParams.g.cs @@ -28,7 +28,7 @@ public sealed partial class LemurBaseParams /// Context to provide the model. This can be a string or a free-form JSON value. /// [global::System.Text.Json.Serialization.JsonPropertyName("context")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] public global::AssemblyAI.OneOf? Context { get; set; } /// @@ -36,7 +36,7 @@ public sealed partial class LemurBaseParams /// Default Value: default /// [global::System.Text.Json.Serialization.JsonPropertyName("final_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter))] public global::AssemblyAI.AnyOf? FinalModel { get; set; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestion.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestion.g.cs index c2847fd..9e1225d 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestion.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestion.g.cs @@ -21,7 +21,7 @@ public sealed partial class LemurQuestion /// Any context about the transcripts you wish to provide. This can be a string or any object. /// [global::System.Text.Json.Serialization.JsonPropertyName("context")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] public global::AssemblyAI.OneOf? Context { get; set; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs index 09bae0f..6776cae 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs @@ -38,7 +38,7 @@ public sealed partial class Transcript /// The default value is 'en_us'. /// [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter))] public global::AssemblyAI.AnyOf? LanguageCode { get; set; } /// @@ -66,7 +66,7 @@ public sealed partial class Transcript /// The speech model used for the transcription. When `null`, the default model is used. /// [global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::AssemblyAI.OneOf SpeechModel { get; set; } @@ -185,7 +185,7 @@ public sealed partial class Transcript /// See [Key Phrases](https://www.assemblyai.com/docs/models/key-phrases) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("auto_highlights_result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] public global::AssemblyAI.OneOf? AutoHighlightsResult { get; set; } /// @@ -237,7 +237,7 @@ public sealed partial class Transcript /// See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio_quality")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] public global::AssemblyAI.OneOf? RedactPiiAudioQuality { get; set; } /// @@ -277,7 +277,7 @@ public sealed partial class Transcript /// See [Content moderation](https://www.assemblyai.com/docs/models/content-moderation) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("content_safety_labels")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] public global::AssemblyAI.OneOf? ContentSafetyLabels { get; set; } /// @@ -291,7 +291,7 @@ public sealed partial class Transcript /// See [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("iab_categories_result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] public global::AssemblyAI.OneOf? IabCategoriesResult { get; set; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs index e4af55d..6d5c69a 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs @@ -16,7 +16,7 @@ public sealed partial class TranscriptOptionalParams /// Default Value: en_us /// [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter?, object>))] public global::AssemblyAI.OneOf?, object>? LanguageCode { get; set; } /// @@ -40,7 +40,7 @@ public sealed partial class TranscriptOptionalParams /// Default Value: best /// [global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] public global::AssemblyAI.OneOf? SpeechModel { get; set; } /// @@ -172,7 +172,7 @@ public sealed partial class TranscriptOptionalParams /// Default Value: hash /// [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_sub")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] public global::AssemblyAI.OneOf? RedactPiiSub { get; set; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.StreamingClient.CreateTemporaryToken.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.StreamingClient.CreateTemporaryToken.g.cs index 2c60639..8549ea9 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.StreamingClient.CreateTemporaryToken.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.StreamingClient.CreateTemporaryToken.g.cs @@ -334,12 +334,10 @@ partial void ProcessCreateTemporaryTokenResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.RealtimeTemporaryTokenResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.RealtimeTemporaryTokenResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.CreateTranscript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.CreateTranscript.g.cs index 07c7384..3e39be5 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.CreateTranscript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.CreateTranscript.g.cs @@ -332,12 +332,10 @@ partial void ProcessCreateTranscriptResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.Transcript.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.Transcript.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs index f2fa677..45dede5 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs @@ -326,12 +326,10 @@ partial void ProcessDeleteTranscriptResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.Transcript.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.Transcript.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs index 4e897f1..eedd4d6 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs @@ -326,12 +326,10 @@ partial void ProcessGetRedactedAudioResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.RedactedAudioResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.RedactedAudioResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs index ae56a40..0d9c4aa 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs @@ -319,7 +319,7 @@ partial void ProcessGetSubtitlesResponseContent( }; } - return __content; + return __content; } else { @@ -341,13 +341,9 @@ partial void ProcessGetSubtitlesResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::System.Text.Json.JsonSerializer.DeserializeAsync(__responseStream, typeof(string), JsonSerializerContext).ConfigureAwait(false) as string; + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return - __responseValue ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); + return __content; } } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscript.g.cs index 0b4dcdd..fa1abbc 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscript.g.cs @@ -326,12 +326,10 @@ partial void ProcessGetTranscriptResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.Transcript.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.Transcript.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptParagraphs.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptParagraphs.g.cs index 591fcce..0da436f 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptParagraphs.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptParagraphs.g.cs @@ -326,12 +326,10 @@ partial void ProcessGetTranscriptParagraphsResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.ParagraphsResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.ParagraphsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptSentences.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptSentences.g.cs index 1367e0e..d9253ee 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptSentences.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptSentences.g.cs @@ -326,12 +326,10 @@ partial void ProcessGetTranscriptSentencesResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.SentencesResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.SentencesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs index 3175f27..a20d387 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs @@ -367,12 +367,10 @@ partial void ProcessListTranscriptsResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.TranscriptList.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.TranscriptList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs index eb0ac03..6d6146a 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs @@ -320,12 +320,10 @@ partial void ProcessUploadFileResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.UploadedFile.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.UploadedFile.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs index bbe1c48..b3c23b1 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs @@ -335,12 +335,10 @@ partial void ProcessWordSearchResponseContent( }; } - using var __responseStream = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - var __responseValue = await global::AssemblyAI.WordSearchResponse.FromJsonStreamAsync(__responseStream, JsonSerializerContext).ConfigureAwait(false); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); return - __responseValue ?? + await global::AssemblyAI.WordSearchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } } diff --git a/src/libs/AssemblyAI/Generated/JsonConverters.AnyOfFactory2.g.cs b/src/libs/AssemblyAI/Generated/JsonConverters.AnyOfFactory2.g.cs deleted file mode 100644 index 14df485..0000000 --- a/src/libs/AssemblyAI/Generated/JsonConverters.AnyOfFactory2.g.cs +++ /dev/null @@ -1,25 +0,0 @@ -#nullable enable - -namespace AssemblyAI.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::AssemblyAI.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/libs/AssemblyAI/Generated/JsonConverters.OneOfFactory2.g.cs b/src/libs/AssemblyAI/Generated/JsonConverters.OneOfFactory2.g.cs deleted file mode 100644 index 435e47a..0000000 --- a/src/libs/AssemblyAI/Generated/JsonConverters.OneOfFactory2.g.cs +++ /dev/null @@ -1,25 +0,0 @@ -#nullable enable - -namespace AssemblyAI.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::AssemblyAI.OneOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/libs/AssemblyAI/Generated/JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/JsonSerializerContext.g.cs index d7d0027..5fa9739 100644 --- a/src/libs/AssemblyAI/Generated/JsonSerializerContext.g.cs +++ b/src/libs/AssemblyAI/Generated/JsonSerializerContext.g.cs @@ -49,8 +49,6 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.ErrorStatusNullableJsonConverter), typeof(global::AssemblyAI.JsonConverters.TranscriptWebhookNotificationJsonConverter), typeof(global::AssemblyAI.JsonConverters.RedactedAudioNotificationJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverterFactory2), - typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverterFactory2), typeof(global::AssemblyAI.JsonConverters.TranscriptParamsJsonConverter), typeof(global::AssemblyAI.JsonConverters.LemurStringResponseJsonConverter), typeof(global::AssemblyAI.JsonConverters.LemurTaskResponseJsonConverter), @@ -62,6 +60,19 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.LemurSummaryParamsJsonConverter), typeof(global::AssemblyAI.JsonConverters.LemurQuestionAnswerParamsJsonConverter), typeof(global::AssemblyAI.JsonConverters.LemurActionItemsParamsJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter?, object>), + typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.JsonSerializerContextTypes))]