diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Exceptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Exceptions.g.cs
index 90c79a5..ff995ce 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Exceptions.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Exceptions.g.cs
@@ -13,7 +13,9 @@ public partial class ApiException : global::System.Exception
///
public global::System.Net.HttpStatusCode StatusCode { get; }
///
- /// The response body.
+ /// The response body as a string, or null if the body could not be read.
+ /// This is always populated for error responses regardless of the ReadResponseAsString setting.
+ /// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read.
///
public string? ResponseBody { get; set; }
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs
index 00e92c7..1f6febd 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs
@@ -28,6 +28,9 @@ public partial interface IAssemblyAIClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IStreamingClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IStreamingClient.g.cs
index 7a4fbff..b36bb9b 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.IStreamingClient.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.IStreamingClient.g.cs
@@ -28,6 +28,9 @@ public partial interface IStreamingClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.g.cs
index 413136d..f545d77 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.g.cs
@@ -28,6 +28,9 @@ public partial interface ITranscriptClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.CreateTranscript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.CreateTranscript.g.cs
index 919870f..f549bf2 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.CreateTranscript.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.CreateTranscript.g.cs
@@ -108,8 +108,9 @@ partial void ProcessCreateTranscriptResponseContent(
}
else
{
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -145,8 +146,9 @@ partial void ProcessCreateTranscriptResponseContent(
}
else
{
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -182,8 +184,9 @@ partial void ProcessCreateTranscriptResponseContent(
}
else
{
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -219,8 +222,9 @@ partial void ProcessCreateTranscriptResponseContent(
}
else
{
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -256,8 +260,9 @@ partial void ProcessCreateTranscriptResponseContent(
}
else
{
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
+ __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -291,7 +296,7 @@ partial void ProcessCreateTranscriptResponseContent(
}
else
{
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -324,7 +329,7 @@ partial void ProcessCreateTranscriptResponseContent(
}
else
{
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -403,11 +408,25 @@ partial void ProcessCreateTranscriptResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs
index b52a41d..9346c84 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs
@@ -102,8 +102,9 @@ partial void ProcessDeleteTranscriptResponseContent(
}
else
{
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -139,8 +140,9 @@ partial void ProcessDeleteTranscriptResponseContent(
}
else
{
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,8 +178,9 @@ partial void ProcessDeleteTranscriptResponseContent(
}
else
{
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -213,8 +216,9 @@ partial void ProcessDeleteTranscriptResponseContent(
}
else
{
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -250,8 +254,9 @@ partial void ProcessDeleteTranscriptResponseContent(
}
else
{
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
+ __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -285,7 +290,7 @@ partial void ProcessDeleteTranscriptResponseContent(
}
else
{
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -318,7 +323,7 @@ partial void ProcessDeleteTranscriptResponseContent(
}
else
{
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -397,11 +402,25 @@ partial void ProcessDeleteTranscriptResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs
index 69d7430..bde172c 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs
@@ -102,8 +102,9 @@ partial void ProcessGetRedactedAudioResponseContent(
}
else
{
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -139,8 +140,9 @@ partial void ProcessGetRedactedAudioResponseContent(
}
else
{
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,8 +178,9 @@ partial void ProcessGetRedactedAudioResponseContent(
}
else
{
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -213,8 +216,9 @@ partial void ProcessGetRedactedAudioResponseContent(
}
else
{
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -250,8 +254,9 @@ partial void ProcessGetRedactedAudioResponseContent(
}
else
{
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
+ __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -285,7 +290,7 @@ partial void ProcessGetRedactedAudioResponseContent(
}
else
{
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -318,7 +323,7 @@ partial void ProcessGetRedactedAudioResponseContent(
}
else
{
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -397,11 +402,25 @@ partial void ProcessGetRedactedAudioResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs
index d72d909..0ef848f 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs
@@ -118,8 +118,9 @@ partial void ProcessGetSubtitlesResponseContent(
}
else
{
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -155,8 +156,9 @@ partial void ProcessGetSubtitlesResponseContent(
}
else
{
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -192,8 +194,9 @@ partial void ProcessGetSubtitlesResponseContent(
}
else
{
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -229,8 +232,9 @@ partial void ProcessGetSubtitlesResponseContent(
}
else
{
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -266,8 +270,9 @@ partial void ProcessGetSubtitlesResponseContent(
}
else
{
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
+ __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -301,7 +306,7 @@ partial void ProcessGetSubtitlesResponseContent(
}
else
{
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -334,7 +339,7 @@ partial void ProcessGetSubtitlesResponseContent(
}
else
{
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -409,11 +414,25 @@ partial void ProcessGetSubtitlesResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscript.g.cs
index c901b67..077a612 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscript.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscript.g.cs
@@ -101,8 +101,9 @@ partial void ProcessGetTranscriptResponseContent(
}
else
{
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -138,8 +139,9 @@ partial void ProcessGetTranscriptResponseContent(
}
else
{
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -175,8 +177,9 @@ partial void ProcessGetTranscriptResponseContent(
}
else
{
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -212,8 +215,9 @@ partial void ProcessGetTranscriptResponseContent(
}
else
{
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -249,8 +253,9 @@ partial void ProcessGetTranscriptResponseContent(
}
else
{
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
+ __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -284,7 +289,7 @@ partial void ProcessGetTranscriptResponseContent(
}
else
{
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -317,7 +322,7 @@ partial void ProcessGetTranscriptResponseContent(
}
else
{
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -396,11 +401,25 @@ partial void ProcessGetTranscriptResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptParagraphs.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptParagraphs.g.cs
index 4f6320d..366849d 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptParagraphs.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptParagraphs.g.cs
@@ -101,8 +101,9 @@ partial void ProcessGetTranscriptParagraphsResponseContent(
}
else
{
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -138,8 +139,9 @@ partial void ProcessGetTranscriptParagraphsResponseContent(
}
else
{
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -175,8 +177,9 @@ partial void ProcessGetTranscriptParagraphsResponseContent(
}
else
{
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -212,8 +215,9 @@ partial void ProcessGetTranscriptParagraphsResponseContent(
}
else
{
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -249,8 +253,9 @@ partial void ProcessGetTranscriptParagraphsResponseContent(
}
else
{
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
+ __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -284,7 +289,7 @@ partial void ProcessGetTranscriptParagraphsResponseContent(
}
else
{
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -317,7 +322,7 @@ partial void ProcessGetTranscriptParagraphsResponseContent(
}
else
{
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -396,11 +401,25 @@ partial void ProcessGetTranscriptParagraphsResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptSentences.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptSentences.g.cs
index 06a244d..2e93367 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptSentences.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetTranscriptSentences.g.cs
@@ -101,8 +101,9 @@ partial void ProcessGetTranscriptSentencesResponseContent(
}
else
{
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -138,8 +139,9 @@ partial void ProcessGetTranscriptSentencesResponseContent(
}
else
{
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -175,8 +177,9 @@ partial void ProcessGetTranscriptSentencesResponseContent(
}
else
{
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -212,8 +215,9 @@ partial void ProcessGetTranscriptSentencesResponseContent(
}
else
{
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -249,8 +253,9 @@ partial void ProcessGetTranscriptSentencesResponseContent(
}
else
{
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
+ __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -284,7 +289,7 @@ partial void ProcessGetTranscriptSentencesResponseContent(
}
else
{
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -317,7 +322,7 @@ partial void ProcessGetTranscriptSentencesResponseContent(
}
else
{
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -396,11 +401,25 @@ partial void ProcessGetTranscriptSentencesResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs
index 8193aa8..135f959 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs
@@ -154,8 +154,9 @@ partial void ProcessListTranscriptsResponseContent(
}
else
{
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -191,8 +192,9 @@ partial void ProcessListTranscriptsResponseContent(
}
else
{
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -228,8 +230,9 @@ partial void ProcessListTranscriptsResponseContent(
}
else
{
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -265,8 +268,9 @@ partial void ProcessListTranscriptsResponseContent(
}
else
{
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -302,8 +306,9 @@ partial void ProcessListTranscriptsResponseContent(
}
else
{
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
+ __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -337,7 +342,7 @@ partial void ProcessListTranscriptsResponseContent(
}
else
{
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -370,7 +375,7 @@ partial void ProcessListTranscriptsResponseContent(
}
else
{
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -449,11 +454,25 @@ partial void ProcessListTranscriptsResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs
index 36c2e80..166b45c 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs
@@ -109,8 +109,9 @@ partial void ProcessUploadFileResponseContent(
}
else
{
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -146,8 +147,9 @@ partial void ProcessUploadFileResponseContent(
}
else
{
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -183,8 +185,9 @@ partial void ProcessUploadFileResponseContent(
}
else
{
- var __contentStream_403 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_403, JsonSerializerContext).ConfigureAwait(false);
+ __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_403 = global::AssemblyAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -220,8 +223,9 @@ partial void ProcessUploadFileResponseContent(
}
else
{
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -257,8 +261,9 @@ partial void ProcessUploadFileResponseContent(
}
else
{
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -294,8 +299,9 @@ partial void ProcessUploadFileResponseContent(
}
else
{
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
+ __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -329,7 +335,7 @@ partial void ProcessUploadFileResponseContent(
}
else
{
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -362,7 +368,7 @@ partial void ProcessUploadFileResponseContent(
}
else
{
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -441,11 +447,25 @@ partial void ProcessUploadFileResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs
index 19dfc66..63ae296 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs
@@ -110,8 +110,9 @@ partial void ProcessWordSearchResponseContent(
}
else
{
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -147,8 +148,9 @@ partial void ProcessWordSearchResponseContent(
}
else
{
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -184,8 +186,9 @@ partial void ProcessWordSearchResponseContent(
}
else
{
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -221,8 +224,9 @@ partial void ProcessWordSearchResponseContent(
}
else
{
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -258,8 +262,9 @@ partial void ProcessWordSearchResponseContent(
}
else
{
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
+ __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -293,7 +298,7 @@ partial void ProcessWordSearchResponseContent(
}
else
{
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -326,7 +331,7 @@ partial void ProcessWordSearchResponseContent(
}
else
{
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
@@ -405,11 +410,25 @@ partial void ProcessWordSearchResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml
index 96e76fe..911378c 100644
--- a/src/libs/AssemblyAI/openapi.yaml
+++ b/src/libs/AssemblyAI/openapi.yaml
@@ -415,6 +415,22 @@ paths:
$ref: "#/components/examples/SrtSubtitlesResponse"
vtt:
$ref: "#/components/examples/VttSubtitlesResponse"
+ text/html:
+ schema:
+ type: string
+ example: |
+ WEBVTT
+ 00:12.340 --> 00:16.220
+ Last year I showed these two slides said that demonstrate
+ 00:16.200 --> 00:20.040
+ that the Arctic ice cap which for most of the last 3,000,000 years has been the
+ 00:20.020 --> 00:25.040
+ size of the lower 48 States has shrunk by 40% but this understates
+ examples:
+ srt:
+ $ref: "#/components/examples/SrtSubtitlesResponse"
+ vtt:
+ $ref: "#/components/examples/VttSubtitlesResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":