diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.AccountClient.AccountGet.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.AccountClient.AccountGet.g.cs
index 8152c7e..4490331 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.AccountClient.AccountGet.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.AccountClient.AccountGet.g.cs
@@ -171,7 +171,6 @@ partial void ProcessAccountGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsCreate.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsCreate.g.cs
index db15259..70bf16c 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsCreate.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsCreate.g.cs
@@ -262,7 +262,6 @@ partial void ProcessActionsCreateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsDelete.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsDelete.g.cs
index f93a672..8e044b8 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsDelete.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsDelete.g.cs
@@ -255,7 +255,6 @@ partial void ProcessActionsDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsExecute.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsExecute.g.cs
index 67ce2dc..37c825b 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsExecute.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsExecute.g.cs
@@ -262,7 +262,6 @@ partial void ProcessActionsExecuteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsGet.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsGet.g.cs
index cec0c74..40eb637 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsGet.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsGet.g.cs
@@ -255,7 +255,6 @@ partial void ProcessActionsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsList.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsList.g.cs
index ee82264..07f1daa 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsList.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsList.g.cs
@@ -332,7 +332,6 @@ partial void ProcessActionsListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsUpdate.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsUpdate.g.cs
index 5a85448..d9232fb 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsUpdate.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ActionsClient.ActionsUpdate.g.cs
@@ -308,7 +308,6 @@ partial void ProcessActionsUpdateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorDelete.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorDelete.g.cs
index fbdb146..d01b799 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorDelete.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorDelete.g.cs
@@ -329,7 +329,6 @@ partial void ProcessAuthorDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenCreate.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenCreate.g.cs
index 555ebe7..be62f03 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenCreate.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenCreate.g.cs
@@ -300,7 +300,6 @@ partial void ProcessAuthorOpenCreateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenGetAuthorDetails.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenGetAuthorDetails.g.cs
index f2a6c61..488d0c3 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenGetAuthorDetails.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenGetAuthorDetails.g.cs
@@ -331,7 +331,6 @@ partial void ProcessAuthorOpenGetAuthorDetailsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenListAuthors.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenListAuthors.g.cs
index 34a4e8f..e158f01 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenListAuthors.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenListAuthors.g.cs
@@ -383,7 +383,6 @@ partial void ProcessAuthorOpenListAuthorsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenUpdate.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenUpdate.g.cs
index e7428f8..c8c0645 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenUpdate.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.AuthorClient.AuthorOpenUpdate.g.cs
@@ -346,7 +346,6 @@ partial void ProcessAuthorOpenUpdateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ModerationAPIClient.NewModerateModerate.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ModerationAPIClient.NewModerateModerate.g.cs
index d366196..cebe3dc 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ModerationAPIClient.NewModerateModerate.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ModerationAPIClient.NewModerateModerate.g.cs
@@ -299,7 +299,6 @@ partial void ProcessNewModerateModerateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.Polyfills.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.Polyfills.g.cs
index 4c2d4cb..66383f5 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.Polyfills.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.Polyfills.g.cs
@@ -1,5 +1,4 @@
-#if !NET6_0_OR_GREATER
#nullable enable
namespace ModerationAPI
@@ -9,6 +8,7 @@ namespace ModerationAPI
///
public static partial class AutoSdkPolyfills
{
+#if !NET6_0_OR_GREATER
///
///
///
@@ -48,6 +48,128 @@ public static partial class AutoSdkPolyfills
content = content ?? throw new global::System.ArgumentNullException(nameof(content));
return content.ReadAsByteArrayAsync();
}
+#endif
+
+ ///
+ /// Creates a JSON request content instance.
+ ///
+ public static global::System.Net.Http.HttpContent CreateJsonContent(
+ T inputValue,
+ string mediaType,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions)
+ {
+ if (string.IsNullOrWhiteSpace(mediaType))
+ {
+ throw new global::System.ArgumentException("Media type is required.", nameof(mediaType));
+ }
+
+#if NET5_0_OR_GREATER
+ return global::System.Net.Http.Json.JsonContent.Create(
+ inputValue: inputValue,
+ mediaType: new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType),
+ options: jsonSerializerOptions);
+#else
+ var json = global::System.Text.Json.JsonSerializer.Serialize(inputValue, jsonSerializerOptions);
+ var stringContent = new global::System.Net.Http.StringContent(
+ content: json,
+ encoding: global::System.Text.Encoding.UTF8);
+ stringContent.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType)
+ {
+ CharSet = global::System.Text.Encoding.UTF8.WebName,
+ };
+ return stringContent;
+#endif
+ }
+
+ ///
+ /// Creates a JSON request content instance using a source-generated serializer context.
+ ///
+ public static global::System.Net.Http.HttpContent CreateJsonContent(
+ object? inputValue,
+ global::System.Type inputType,
+ string mediaType,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ inputType = inputType ?? throw new global::System.ArgumentNullException(nameof(inputType));
+ jsonSerializerContext = jsonSerializerContext ?? throw new global::System.ArgumentNullException(nameof(jsonSerializerContext));
+
+ if (string.IsNullOrWhiteSpace(mediaType))
+ {
+ throw new global::System.ArgumentException("Media type is required.", nameof(mediaType));
+ }
+
+#if NET5_0_OR_GREATER
+ var jsonTypeInfo = jsonSerializerContext.GetTypeInfo(inputType) ??
+ throw new global::System.InvalidOperationException($"No JsonTypeInfo registered for '{inputType}'.");
+ return global::System.Net.Http.Json.JsonContent.Create(
+ inputValue: inputValue,
+ jsonTypeInfo: jsonTypeInfo,
+ mediaType: new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType));
+#else
+ var json = global::System.Text.Json.JsonSerializer.Serialize(
+ value: inputValue,
+ inputType: inputType,
+ jsonSerializerContext);
+ var stringContent = new global::System.Net.Http.StringContent(
+ content: json,
+ encoding: global::System.Text.Encoding.UTF8);
+ stringContent.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType)
+ {
+ CharSet = global::System.Text.Encoding.UTF8.WebName,
+ };
+ return stringContent;
+#endif
+ }
+
+ ///
+ /// Reads JSON content into the specified type using serializer options.
+ ///
+ public static async global::System.Threading.Tasks.Task ReadFromJsonAsync(
+ this global::System.Net.Http.HttpContent content,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions,
+ global::System.Threading.CancellationToken cancellationToken)
+ {
+ content = content ?? throw new global::System.ArgumentNullException(nameof(content));
+
+#if NET5_0_OR_GREATER
+ return await global::System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync(
+ content,
+ jsonSerializerOptions,
+ cancellationToken).ConfigureAwait(false);
+#else
+ using var stream = await AutoSdkPolyfills.ReadAsStreamAsync(content, cancellationToken).ConfigureAwait(false);
+ return await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ utf8Json: stream,
+ options: jsonSerializerOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+#endif
+ }
+
+ ///
+ /// Reads JSON content into the specified type using a source-generated serializer context.
+ ///
+ public static async global::System.Threading.Tasks.Task ReadFromJsonAsync(
+ this global::System.Net.Http.HttpContent content,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext,
+ global::System.Threading.CancellationToken cancellationToken)
+ {
+ content = content ?? throw new global::System.ArgumentNullException(nameof(content));
+ jsonSerializerContext = jsonSerializerContext ?? throw new global::System.ArgumentNullException(nameof(jsonSerializerContext));
+
+#if NET5_0_OR_GREATER
+ return (T?)await global::System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync(
+ content,
+ typeof(T),
+ jsonSerializerContext,
+ cancellationToken).ConfigureAwait(false);
+#else
+ using var stream = await AutoSdkPolyfills.ReadAsStreamAsync(content, cancellationToken).ConfigureAwait(false);
+ return (T?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ utf8Json: stream,
+ returnType: typeof(T),
+ jsonSerializerContext,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+#endif
+ }
}
}
-#endif
\ No newline at end of file
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetItems.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetItems.g.cs
index 8544909..84eedba 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetItems.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetItems.g.cs
@@ -419,7 +419,6 @@ partial void ProcessQueueViewOpenGetItemsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetQueue.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetQueue.g.cs
index eccec32..a3310de 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetQueue.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetQueue.g.cs
@@ -331,7 +331,6 @@ partial void ProcessQueueViewOpenGetQueueResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetStats.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetStats.g.cs
index f6caebd..54d53d4 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetStats.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenGetStats.g.cs
@@ -343,7 +343,6 @@ partial void ProcessQueueViewOpenGetStatsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenResolveItem.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenResolveItem.g.cs
index c4cb142..00fd981 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenResolveItem.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenResolveItem.g.cs
@@ -316,7 +316,6 @@ partial void ProcessQueueViewOpenResolveItemResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenUnresolveItem.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenUnresolveItem.g.cs
index 454050d..0413eb9 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenUnresolveItem.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.ReviewQueuesClient.QueueViewOpenUnresolveItem.g.cs
@@ -316,7 +316,6 @@ partial void ProcessQueueViewOpenUnresolveItemResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistAddWords.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistAddWords.g.cs
index fb4b6bc..ef46170 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistAddWords.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistAddWords.g.cs
@@ -270,7 +270,6 @@ partial void ProcessWordlistAddWordsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistGetWordlistPublic.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistGetWordlistPublic.g.cs
index fe99acb..64ee849 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistGetWordlistPublic.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistGetWordlistPublic.g.cs
@@ -331,7 +331,6 @@ partial void ProcessWordlistGetWordlistPublicResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistList.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistList.g.cs
index a27608e..3ccca73 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistList.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistList.g.cs
@@ -247,7 +247,6 @@ partial void ProcessWordlistListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistRemoveWords.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistRemoveWords.g.cs
index 86a2f3a..38306dd 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistRemoveWords.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistRemoveWords.g.cs
@@ -266,7 +266,6 @@ partial void ProcessWordlistRemoveWordsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistUpdate.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistUpdate.g.cs
index c24f873..3f65e2d 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistUpdate.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistUpdate.g.cs
@@ -270,7 +270,6 @@ partial void ProcessWordlistUpdateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistWordlistEmbeddingStatus.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistWordlistEmbeddingStatus.g.cs
index 7921e66..6242396 100644
--- a/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistWordlistEmbeddingStatus.g.cs
+++ b/src/libs/ModerationAPI/Generated/ModerationAPI.WordlistClient.WordlistWordlistEmbeddingStatus.g.cs
@@ -331,7 +331,6 @@ partial void ProcessWordlistWordlistEmbeddingStatusResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken