diff --git a/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.ImageImageAiDetectionCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.ImageImageAiDetectionCreate.g.cs
index fc632e3..a881f59 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.ImageImageAiDetectionCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.ImageImageAiDetectionCreate.g.cs
@@ -72,7 +72,7 @@ partial void ProcessImageImageAiDetectionCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessImageImageAiDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -147,13 +147,13 @@ partial void ProcessImageImageAiDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,13 +185,13 @@ partial void ProcessImageImageAiDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -223,13 +223,13 @@ partial void ProcessImageImageAiDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -273,7 +273,7 @@ partial void ProcessImageImageAiDetectionCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImageaiDetectionResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImageaiDetectionResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -303,7 +303,7 @@ partial void ProcessImageImageAiDetectionCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImageaiDetectionResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImageaiDetectionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.TextTextAiDetectionCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.TextTextAiDetectionCreate.g.cs
index 7ad4e51..7340794 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.TextTextAiDetectionCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.TextTextAiDetectionCreate.g.cs
@@ -88,7 +88,7 @@ partial void ProcessTextTextAiDetectionCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -125,13 +125,13 @@ partial void ProcessTextTextAiDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -163,13 +163,13 @@ partial void ProcessTextTextAiDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,13 +201,13 @@ partial void ProcessTextTextAiDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -239,13 +239,13 @@ partial void ProcessTextTextAiDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -289,7 +289,7 @@ partial void ProcessTextTextAiDetectionCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.TextaiDetectionResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.TextaiDetectionResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -319,7 +319,7 @@ partial void ProcessTextTextAiDetectionCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.TextaiDetectionResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.TextaiDetectionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.g.cs
index 53d1584..013234d 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AiDetectionClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class AiDetectionClient : global::EdenAI.IAiDetectionClien
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncCreate.g.cs
index fe80b8f..06983e3 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncCreate.g.cs
@@ -205,7 +205,7 @@ partial void ProcessOcrOcrAnonymizationAsyncCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -235,7 +235,7 @@ partial void ProcessOcrOcrAnonymizationAsyncCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncRetrieve.g.cs
index e04517a..1b05764 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncRetrieve.g.cs
@@ -103,7 +103,7 @@ partial void ProcessOcrOcrAnonymizationAsyncRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -133,7 +133,7 @@ partial void ProcessOcrOcrAnonymizationAsyncRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncRetrieve2.g.cs b/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncRetrieve2.g.cs
index e035020..864f50f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncRetrieve2.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.OcrOcrAnonymizationAsyncRetrieve2.g.cs
@@ -125,13 +125,13 @@ partial void ProcessOcrOcrAnonymizationAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -163,13 +163,13 @@ partial void ProcessOcrOcrAnonymizationAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,13 +201,13 @@ partial void ProcessOcrOcrAnonymizationAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -239,13 +239,13 @@ partial void ProcessOcrOcrAnonymizationAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -289,7 +289,7 @@ partial void ProcessOcrOcrAnonymizationAsyncRetrieve2ResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.AsyncocranonymizationAsyncResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.AsyncocranonymizationAsyncResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -319,7 +319,7 @@ partial void ProcessOcrOcrAnonymizationAsyncRetrieve2ResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.AsyncocranonymizationAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.AsyncocranonymizationAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.g.cs
index 1ea1e69..7681c5c 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AnonymizationAsyncClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class AnonymizationAsyncClient : global::EdenAI.IAnonymiza
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.ImageImageAnonymizationCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.ImageImageAnonymizationCreate.g.cs
index 4eaa61b..0efc738 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.ImageImageAnonymizationCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.ImageImageAnonymizationCreate.g.cs
@@ -72,7 +72,7 @@ partial void ProcessImageImageAnonymizationCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessImageImageAnonymizationCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -147,13 +147,13 @@ partial void ProcessImageImageAnonymizationCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,13 +185,13 @@ partial void ProcessImageImageAnonymizationCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -223,13 +223,13 @@ partial void ProcessImageImageAnonymizationCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -273,7 +273,7 @@ partial void ProcessImageImageAnonymizationCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImageanonymizationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImageanonymizationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -303,7 +303,7 @@ partial void ProcessImageImageAnonymizationCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImageanonymizationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImageanonymizationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.TextTextAnonymizationCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.TextTextAnonymizationCreate.g.cs
index 6744e8b..18b1115 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.TextTextAnonymizationCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.TextTextAnonymizationCreate.g.cs
@@ -258,7 +258,7 @@ partial void ProcessTextTextAnonymizationCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -295,13 +295,13 @@ partial void ProcessTextTextAnonymizationCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -333,13 +333,13 @@ partial void ProcessTextTextAnonymizationCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -371,13 +371,13 @@ partial void ProcessTextTextAnonymizationCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -409,13 +409,13 @@ partial void ProcessTextTextAnonymizationCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -459,7 +459,7 @@ partial void ProcessTextTextAnonymizationCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.TextanonymizationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.TextanonymizationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -489,7 +489,7 @@ partial void ProcessTextTextAnonymizationCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.TextanonymizationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.TextanonymizationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.g.cs
index 597f627..5646b51 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AnonymizationClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class AnonymizationClient : global::EdenAI.IAnonymizationC
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomaticTranslationClient.TranslationTranslationAutomaticTranslationCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomaticTranslationClient.TranslationTranslationAutomaticTranslationCreate.g.cs
index e83af84..eb4d435 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomaticTranslationClient.TranslationTranslationAutomaticTranslationCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomaticTranslationClient.TranslationTranslationAutomaticTranslationCreate.g.cs
@@ -242,7 +242,7 @@ partial void ProcessTranslationTranslationAutomaticTranslationCreateResponseCont
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -279,13 +279,13 @@ partial void ProcessTranslationTranslationAutomaticTranslationCreateResponseCont
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -317,13 +317,13 @@ partial void ProcessTranslationTranslationAutomaticTranslationCreateResponseCont
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -355,13 +355,13 @@ partial void ProcessTranslationTranslationAutomaticTranslationCreateResponseCont
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -393,13 +393,13 @@ partial void ProcessTranslationTranslationAutomaticTranslationCreateResponseCont
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -443,7 +443,7 @@ partial void ProcessTranslationTranslationAutomaticTranslationCreateResponseCont
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.TranslationautomaticTranslationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.TranslationautomaticTranslationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -473,7 +473,7 @@ partial void ProcessTranslationTranslationAutomaticTranslationCreateResponseCont
).ConfigureAwait(false);
return
- await global::EdenAI.TranslationautomaticTranslationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.TranslationautomaticTranslationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomaticTranslationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomaticTranslationClient.g.cs
index 9bba93c..affd6ee 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomaticTranslationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomaticTranslationClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class AutomaticTranslationClient : global::EdenAI.IAutomat
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationCreateProjectCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationCreateProjectCreate.g.cs
index 6c23942..4cea6c7 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationCreateProjectCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationCreateProjectCreate.g.cs
@@ -72,7 +72,7 @@ partial void ProcessImageImageAutomlClassificationCreateProjectCreateResponseCon
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessImageImageAutomlClassificationCreateProjectCreateResponseCon
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -147,13 +147,13 @@ partial void ProcessImageImageAutomlClassificationCreateProjectCreateResponseCon
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,13 +185,13 @@ partial void ProcessImageImageAutomlClassificationCreateProjectCreateResponseCon
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -223,13 +223,13 @@ partial void ProcessImageImageAutomlClassificationCreateProjectCreateResponseCon
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -273,7 +273,7 @@ partial void ProcessImageImageAutomlClassificationCreateProjectCreateResponseCon
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImageautomlClassificationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImageautomlClassificationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -303,7 +303,7 @@ partial void ProcessImageImageAutomlClassificationCreateProjectCreateResponseCon
).ConfigureAwait(false);
return
- await global::EdenAI.ImageautomlClassificationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImageautomlClassificationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationDeleteProjectCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationDeleteProjectCreate.g.cs
index 281ecf3..56f9154 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationDeleteProjectCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationDeleteProjectCreate.g.cs
@@ -72,7 +72,7 @@ partial void ProcessImageImageAutomlClassificationDeleteProjectCreateResponseCon
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessImageImageAutomlClassificationDeleteProjectCreateResponseCon
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -147,13 +147,13 @@ partial void ProcessImageImageAutomlClassificationDeleteProjectCreateResponseCon
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,13 +185,13 @@ partial void ProcessImageImageAutomlClassificationDeleteProjectCreateResponseCon
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -223,13 +223,13 @@ partial void ProcessImageImageAutomlClassificationDeleteProjectCreateResponseCon
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -273,7 +273,7 @@ partial void ProcessImageImageAutomlClassificationDeleteProjectCreateResponseCon
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImageautomlClassificationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImageautomlClassificationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -303,7 +303,7 @@ partial void ProcessImageImageAutomlClassificationDeleteProjectCreateResponseCon
).ConfigureAwait(false);
return
- await global::EdenAI.ImageautomlClassificationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImageautomlClassificationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationListProjectsRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationListProjectsRetrieve.g.cs
index ffd055c..8100898 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationListProjectsRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationListProjectsRetrieve.g.cs
@@ -90,13 +90,13 @@ partial void ProcessImageImageAutomlClassificationListProjectsRetrieveResponseCo
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -128,13 +128,13 @@ partial void ProcessImageImageAutomlClassificationListProjectsRetrieveResponseCo
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -166,13 +166,13 @@ partial void ProcessImageImageAutomlClassificationListProjectsRetrieveResponseCo
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -204,13 +204,13 @@ partial void ProcessImageImageAutomlClassificationListProjectsRetrieveResponseCo
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -254,7 +254,7 @@ partial void ProcessImageImageAutomlClassificationListProjectsRetrieveResponseCo
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.AutomlClassificationListProjectsResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.AutomlClassificationListProjectsResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -284,7 +284,7 @@ partial void ProcessImageImageAutomlClassificationListProjectsRetrieveResponseCo
).ConfigureAwait(false);
return
- await global::EdenAI.AutomlClassificationListProjectsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.AutomlClassificationListProjectsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncCreate.g.cs
index 51345d1..bb7ce22 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncCreate.g.cs
@@ -192,7 +192,7 @@ partial void ProcessImageImageAutomlClassificationPredictAsyncCreateResponseCont
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -222,7 +222,7 @@ partial void ProcessImageImageAutomlClassificationPredictAsyncCreateResponseCont
).ConfigureAwait(false);
return
- await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncRetrieve.g.cs
index ce79de8..29351d4 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncRetrieve.g.cs
@@ -103,7 +103,7 @@ partial void ProcessImageImageAutomlClassificationPredictAsyncRetrieveResponseCo
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -133,7 +133,7 @@ partial void ProcessImageImageAutomlClassificationPredictAsyncRetrieveResponseCo
).ConfigureAwait(false);
return
- await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncRetrieve2.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncRetrieve2.g.cs
index f261a12..3be0ec7 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncRetrieve2.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationPredictAsyncRetrieve2.g.cs
@@ -125,13 +125,13 @@ partial void ProcessImageImageAutomlClassificationPredictAsyncRetrieve2ResponseC
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -163,13 +163,13 @@ partial void ProcessImageImageAutomlClassificationPredictAsyncRetrieve2ResponseC
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,13 +201,13 @@ partial void ProcessImageImageAutomlClassificationPredictAsyncRetrieve2ResponseC
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -239,13 +239,13 @@ partial void ProcessImageImageAutomlClassificationPredictAsyncRetrieve2ResponseC
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -289,7 +289,7 @@ partial void ProcessImageImageAutomlClassificationPredictAsyncRetrieve2ResponseC
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImageautomlClassificationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImageautomlClassificationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -319,7 +319,7 @@ partial void ProcessImageImageAutomlClassificationPredictAsyncRetrieve2ResponseC
).ConfigureAwait(false);
return
- await global::EdenAI.ImageautomlClassificationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImageautomlClassificationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncCreate.g.cs
index acf5644..7d475fb 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncCreate.g.cs
@@ -172,7 +172,7 @@ partial void ProcessImageImageAutomlClassificationTrainAsyncCreateResponseConten
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -202,7 +202,7 @@ partial void ProcessImageImageAutomlClassificationTrainAsyncCreateResponseConten
).ConfigureAwait(false);
return
- await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncRetrieve.g.cs
index 5643e31..312a42a 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncRetrieve.g.cs
@@ -103,7 +103,7 @@ partial void ProcessImageImageAutomlClassificationTrainAsyncRetrieveResponseCont
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -133,7 +133,7 @@ partial void ProcessImageImageAutomlClassificationTrainAsyncRetrieveResponseCont
).ConfigureAwait(false);
return
- await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncRetrieve2.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncRetrieve2.g.cs
index 32f4807..75c5007 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncRetrieve2.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationTrainAsyncRetrieve2.g.cs
@@ -125,13 +125,13 @@ partial void ProcessImageImageAutomlClassificationTrainAsyncRetrieve2ResponseCon
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -163,13 +163,13 @@ partial void ProcessImageImageAutomlClassificationTrainAsyncRetrieve2ResponseCon
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,13 +201,13 @@ partial void ProcessImageImageAutomlClassificationTrainAsyncRetrieve2ResponseCon
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -239,13 +239,13 @@ partial void ProcessImageImageAutomlClassificationTrainAsyncRetrieve2ResponseCon
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -289,7 +289,7 @@ partial void ProcessImageImageAutomlClassificationTrainAsyncRetrieve2ResponseCon
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImageautomlClassificationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImageautomlClassificationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -319,7 +319,7 @@ partial void ProcessImageImageAutomlClassificationTrainAsyncRetrieve2ResponseCon
).ConfigureAwait(false);
return
- await global::EdenAI.ImageautomlClassificationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImageautomlClassificationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncCreate.g.cs
index 2d543de..16bc665 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncCreate.g.cs
@@ -198,7 +198,7 @@ partial void ProcessImageImageAutomlClassificationUploadDataAsyncCreateResponseC
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -228,7 +228,7 @@ partial void ProcessImageImageAutomlClassificationUploadDataAsyncCreateResponseC
).ConfigureAwait(false);
return
- await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncRetrieve.g.cs
index fe3d037..ac8253f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncRetrieve.g.cs
@@ -103,7 +103,7 @@ partial void ProcessImageImageAutomlClassificationUploadDataAsyncRetrieveRespons
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -133,7 +133,7 @@ partial void ProcessImageImageAutomlClassificationUploadDataAsyncRetrieveRespons
).ConfigureAwait(false);
return
- await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncRetrieve2.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncRetrieve2.g.cs
index df726ab..3b0bf2f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncRetrieve2.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.ImageImageAutomlClassificationUploadDataAsyncRetrieve2.g.cs
@@ -125,13 +125,13 @@ partial void ProcessImageImageAutomlClassificationUploadDataAsyncRetrieve2Respon
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -163,13 +163,13 @@ partial void ProcessImageImageAutomlClassificationUploadDataAsyncRetrieve2Respon
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,13 +201,13 @@ partial void ProcessImageImageAutomlClassificationUploadDataAsyncRetrieve2Respon
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -239,13 +239,13 @@ partial void ProcessImageImageAutomlClassificationUploadDataAsyncRetrieve2Respon
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -289,7 +289,7 @@ partial void ProcessImageImageAutomlClassificationUploadDataAsyncRetrieve2Respon
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImageautomlClassificationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImageautomlClassificationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -319,7 +319,7 @@ partial void ProcessImageImageAutomlClassificationUploadDataAsyncRetrieve2Respon
).ConfigureAwait(false);
return
- await global::EdenAI.ImageautomlClassificationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImageautomlClassificationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.g.cs
index f77fc97..435f17a 100644
--- a/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.AutomlClassificationClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class AutomlClassificationClient : global::EdenAI.IAutomlC
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.BackgroundRemovalClient.ImageImageBackgroundRemovalCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.BackgroundRemovalClient.ImageImageBackgroundRemovalCreate.g.cs
index e0fe5a6..feb8233 100644
--- a/src/libs/EdenAI/Generated/EdenAI.BackgroundRemovalClient.ImageImageBackgroundRemovalCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.BackgroundRemovalClient.ImageImageBackgroundRemovalCreate.g.cs
@@ -77,7 +77,7 @@ partial void ProcessImageImageBackgroundRemovalCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -114,13 +114,13 @@ partial void ProcessImageImageBackgroundRemovalCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -152,13 +152,13 @@ partial void ProcessImageImageBackgroundRemovalCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -190,13 +190,13 @@ partial void ProcessImageImageBackgroundRemovalCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -228,13 +228,13 @@ partial void ProcessImageImageBackgroundRemovalCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -278,7 +278,7 @@ partial void ProcessImageImageBackgroundRemovalCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImagebackgroundRemovalResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImagebackgroundRemovalResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -308,7 +308,7 @@ partial void ProcessImageImageBackgroundRemovalCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImagebackgroundRemovalResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImagebackgroundRemovalResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.BackgroundRemovalClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.BackgroundRemovalClient.g.cs
index 2828c88..239a439 100644
--- a/src/libs/EdenAI/Generated/EdenAI.BackgroundRemovalClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.BackgroundRemovalClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class BackgroundRemovalClient : global::EdenAI.IBackground
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.BankCheckParsingClient.OcrOcrBankCheckParsingCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.BankCheckParsingClient.OcrOcrBankCheckParsingCreate.g.cs
index f6807d9..b4de7fb 100644
--- a/src/libs/EdenAI/Generated/EdenAI.BankCheckParsingClient.OcrOcrBankCheckParsingCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.BankCheckParsingClient.OcrOcrBankCheckParsingCreate.g.cs
@@ -75,7 +75,7 @@ partial void ProcessOcrOcrBankCheckParsingCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -112,13 +112,13 @@ partial void ProcessOcrOcrBankCheckParsingCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -150,13 +150,13 @@ partial void ProcessOcrOcrBankCheckParsingCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -188,13 +188,13 @@ partial void ProcessOcrOcrBankCheckParsingCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -226,13 +226,13 @@ partial void ProcessOcrOcrBankCheckParsingCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -276,7 +276,7 @@ partial void ProcessOcrOcrBankCheckParsingCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.OcrbankCheckParsingResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.OcrbankCheckParsingResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -306,7 +306,7 @@ partial void ProcessOcrOcrBankCheckParsingCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.OcrbankCheckParsingResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.OcrbankCheckParsingResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.BankCheckParsingClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.BankCheckParsingClient.g.cs
index 94fd4d7..b30d870 100644
--- a/src/libs/EdenAI/Generated/EdenAI.BankCheckParsingClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.BankCheckParsingClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class BankCheckParsingClient : global::EdenAI.IBankCheckPa
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.BatchClient.BatchBatchList.g.cs b/src/libs/EdenAI/Generated/EdenAI.BatchClient.BatchBatchList.g.cs
index 358d56b..f2e0841 100644
--- a/src/libs/EdenAI/Generated/EdenAI.BatchClient.BatchBatchList.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.BatchClient.BatchBatchList.g.cs
@@ -101,7 +101,7 @@ partial void ProcessBatchBatchListResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ??
+ (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -131,7 +131,7 @@ partial void ProcessBatchBatchListResponseContent(
).ConfigureAwait(false);
return
- await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.BatchClient.FeatureBatchCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.BatchClient.FeatureBatchCreate.g.cs
index 1e9faa2..cb4068b 100644
--- a/src/libs/EdenAI/Generated/EdenAI.BatchClient.FeatureBatchCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.BatchClient.FeatureBatchCreate.g.cs
@@ -145,7 +145,7 @@ partial void ProcessFeatureBatchCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -185,13 +185,13 @@ partial void ProcessFeatureBatchCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -223,13 +223,13 @@ partial void ProcessFeatureBatchCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -261,13 +261,13 @@ partial void ProcessFeatureBatchCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -299,13 +299,13 @@ partial void ProcessFeatureBatchCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -349,7 +349,7 @@ partial void ProcessFeatureBatchCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.BatchLaunchResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.BatchLaunchResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -379,7 +379,7 @@ partial void ProcessFeatureBatchCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.BatchLaunchResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.BatchLaunchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.BatchClient.FeatureBatchRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.BatchClient.FeatureBatchRetrieve.g.cs
index c063632..a23fb73 100644
--- a/src/libs/EdenAI/Generated/EdenAI.BatchClient.FeatureBatchRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.BatchClient.FeatureBatchRetrieve.g.cs
@@ -139,13 +139,13 @@ partial void ProcessFeatureBatchRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -177,13 +177,13 @@ partial void ProcessFeatureBatchRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -215,13 +215,13 @@ partial void ProcessFeatureBatchRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -253,13 +253,13 @@ partial void ProcessFeatureBatchRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -303,7 +303,7 @@ partial void ProcessFeatureBatchRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.PaginatedBatchResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.PaginatedBatchResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -333,7 +333,7 @@ partial void ProcessFeatureBatchRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.PaginatedBatchResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.PaginatedBatchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.BatchClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.BatchClient.g.cs
index fde0613..d8d751a 100644
--- a/src/libs/EdenAI/Generated/EdenAI.BatchClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.BatchClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class BatchClient : global::EdenAI.IBatchClient, global::S
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.ChatClient.LlmLlmChatCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.ChatClient.LlmLlmChatCreate.g.cs
index f248c58..ab3455c 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ChatClient.LlmLlmChatCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ChatClient.LlmLlmChatCreate.g.cs
@@ -449,7 +449,7 @@ partial void ProcessLlmLlmChatCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -486,13 +486,13 @@ partial void ProcessLlmLlmChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -524,13 +524,13 @@ partial void ProcessLlmLlmChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -562,13 +562,13 @@ partial void ProcessLlmLlmChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -600,13 +600,13 @@ partial void ProcessLlmLlmChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -650,7 +650,7 @@ partial void ProcessLlmLlmChatCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.LlmchatResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.LlmchatResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -680,7 +680,7 @@ partial void ProcessLlmLlmChatCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.LlmchatResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.LlmchatResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.ChatClient.MultimodalMultimodalChatCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.ChatClient.MultimodalMultimodalChatCreate.g.cs
index 4a169c8..8a6f33a 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ChatClient.MultimodalMultimodalChatCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ChatClient.MultimodalMultimodalChatCreate.g.cs
@@ -123,7 +123,7 @@ partial void ProcessMultimodalMultimodalChatCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -160,13 +160,13 @@ partial void ProcessMultimodalMultimodalChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -198,13 +198,13 @@ partial void ProcessMultimodalMultimodalChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -236,13 +236,13 @@ partial void ProcessMultimodalMultimodalChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -274,13 +274,13 @@ partial void ProcessMultimodalMultimodalChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -324,7 +324,7 @@ partial void ProcessMultimodalMultimodalChatCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.MultimodalchatResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.MultimodalchatResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -354,7 +354,7 @@ partial void ProcessMultimodalMultimodalChatCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.MultimodalchatResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.MultimodalchatResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.ChatClient.TextTextChatCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.ChatClient.TextTextChatCreate.g.cs
index e55645d..20973ea 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ChatClient.TextTextChatCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ChatClient.TextTextChatCreate.g.cs
@@ -406,7 +406,7 @@ partial void ProcessTextTextChatCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -443,13 +443,13 @@ partial void ProcessTextTextChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -481,13 +481,13 @@ partial void ProcessTextTextChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -519,13 +519,13 @@ partial void ProcessTextTextChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -557,13 +557,13 @@ partial void ProcessTextTextChatCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -607,7 +607,7 @@ partial void ProcessTextTextChatCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.TextchatResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.TextchatResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -637,7 +637,7 @@ partial void ProcessTextTextChatCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.TextchatResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.TextchatResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.ChatClient.TextTextChatStreamCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.ChatClient.TextTextChatStreamCreate.g.cs
index 580640e..e28e439 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ChatClient.TextTextChatStreamCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ChatClient.TextTextChatStreamCreate.g.cs
@@ -69,7 +69,7 @@ partial void ProcessTextTextChatStreamCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
diff --git a/src/libs/EdenAI/Generated/EdenAI.ChatClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ChatClient.g.cs
index 226b897..9d8517d 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ChatClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ChatClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class ChatClient : global::EdenAI.IChatClient, global::Sys
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.CodeGenerationClient.TextTextCodeGenerationCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CodeGenerationClient.TextTextCodeGenerationCreate.g.cs
index 837d829..076ea32 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CodeGenerationClient.TextTextCodeGenerationCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CodeGenerationClient.TextTextCodeGenerationCreate.g.cs
@@ -248,7 +248,7 @@ partial void ProcessTextTextCodeGenerationCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -285,13 +285,13 @@ partial void ProcessTextTextCodeGenerationCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -323,13 +323,13 @@ partial void ProcessTextTextCodeGenerationCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -361,13 +361,13 @@ partial void ProcessTextTextCodeGenerationCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -399,13 +399,13 @@ partial void ProcessTextTextCodeGenerationCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -449,7 +449,7 @@ partial void ProcessTextTextCodeGenerationCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.TextcodeGenerationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.TextcodeGenerationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -479,7 +479,7 @@ partial void ProcessTextTextCodeGenerationCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.TextcodeGenerationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.TextcodeGenerationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CodeGenerationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.CodeGenerationClient.g.cs
index ab9a60e..ee5a691 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CodeGenerationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CodeGenerationClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class CodeGenerationClient : global::EdenAI.ICodeGeneratio
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.CostManagementCostManagementRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.CostManagementCostManagementRetrieve.g.cs
index 7d76820..52b02bb 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.CostManagementCostManagementRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.CostManagementCostManagementRetrieve.g.cs
@@ -147,13 +147,13 @@ partial void ProcessCostManagementCostManagementRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,13 +185,13 @@ partial void ProcessCostManagementCostManagementRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -223,13 +223,13 @@ partial void ProcessCostManagementCostManagementRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -261,13 +261,13 @@ partial void ProcessCostManagementCostManagementRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -311,7 +311,7 @@ partial void ProcessCostManagementCostManagementRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.CostMonitoringResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.CostMonitoringResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -341,7 +341,7 @@ partial void ProcessCostManagementCostManagementRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.CostMonitoringResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.CostMonitoringResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.CostManagementDisplayNameOfYourSubfeature.g.cs b/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.CostManagementDisplayNameOfYourSubfeature.g.cs
index 7440221..3668e15 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.CostManagementDisplayNameOfYourSubfeature.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.CostManagementDisplayNameOfYourSubfeature.g.cs
@@ -102,7 +102,7 @@ partial void ProcessCostManagementDisplayNameOfYourSubfeatureResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.CreditsSerializer.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.CreditsSerializer.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -132,7 +132,7 @@ partial void ProcessCostManagementDisplayNameOfYourSubfeatureResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.CreditsSerializer.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.CreditsSerializer.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.g.cs
index a8c4af4..c488e4f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CostMonitoringClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class CostMonitoringClient : global::EdenAI.ICostMonitorin
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsCreate.g.cs
index 95f41ad..c0e59c1 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsCreate.g.cs
@@ -72,7 +72,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsCreateResponseCont
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -122,7 +122,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsCreateResponseCont
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.Conversation.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.Conversation.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -152,7 +152,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsCreateResponseCont
).ConfigureAwait(false);
return
- await global::EdenAI.Conversation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.Conversation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.AiproductsAiproductsAskyodaV2Create.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.AiproductsAiproductsAskyodaV2Create.g.cs
index ffdda41..c43d563 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.AiproductsAiproductsAskyodaV2Create.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.AiproductsAiproductsAskyodaV2Create.g.cs
@@ -77,7 +77,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2CreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -114,13 +114,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2CreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -152,13 +152,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2CreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -190,13 +190,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2CreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -228,13 +228,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2CreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -278,7 +278,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2CreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.YodaCreateProjectResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.YodaCreateProjectResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -308,7 +308,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2CreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.YodaCreateProjectResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.YodaCreateProjectResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.g.cs
index 5de6a20..69cde03 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotCreateOperationsClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class CustomChatbotCreateOperationsClient : global::EdenAI
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.AiproductsAiproductsAskyodaV2DeleteAllChunksDestroy.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.AiproductsAiproductsAskyodaV2DeleteAllChunksDestroy.g.cs
index 6429862..d791fac 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.AiproductsAiproductsAskyodaV2DeleteAllChunksDestroy.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.AiproductsAiproductsAskyodaV2DeleteAllChunksDestroy.g.cs
@@ -97,13 +97,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteAllChunksDestroyResponseC
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -135,13 +135,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteAllChunksDestroyResponseC
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -173,13 +173,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteAllChunksDestroyResponseC
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -211,13 +211,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteAllChunksDestroyResponseC
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -261,7 +261,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteAllChunksDestroyResponseC
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.YodaDeleteResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.YodaDeleteResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -291,7 +291,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteAllChunksDestroyResponseC
).ConfigureAwait(false);
return
- await global::EdenAI.YodaDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.YodaDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.AiproductsAiproductsAskyodaV2DeleteChunkDestroy.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.AiproductsAiproductsAskyodaV2DeleteChunkDestroy.g.cs
index 0ac5464..1dc7341 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.AiproductsAiproductsAskyodaV2DeleteChunkDestroy.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.AiproductsAiproductsAskyodaV2DeleteChunkDestroy.g.cs
@@ -118,13 +118,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteChunkDestroyResponseConte
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -156,13 +156,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteChunkDestroyResponseConte
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -194,13 +194,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteChunkDestroyResponseConte
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -232,13 +232,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteChunkDestroyResponseConte
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -282,7 +282,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteChunkDestroyResponseConte
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.YodaDeleteResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.YodaDeleteResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -312,7 +312,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2DeleteChunkDestroyResponseConte
).ConfigureAwait(false);
return
- await global::EdenAI.YodaDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.YodaDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.g.cs
index f767205..000b2fd 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotDeleteOperationsClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class CustomChatbotDeleteOperationsClient : global::EdenAI
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ConversationsList.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ConversationsList.g.cs
index 9c925c5..7e1c8be 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ConversationsList.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ConversationsList.g.cs
@@ -107,7 +107,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsListResponseConten
__response.EnsureSuccessStatusCode();
return
- global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ??
+ (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -137,7 +137,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsListResponseConten
).ConfigureAwait(false);
return
- await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ConversationsRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ConversationsRetrieve.g.cs
index 88f711e..897fc22 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ConversationsRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ConversationsRetrieve.g.cs
@@ -113,7 +113,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsRetrieveResponseCo
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ConversationDetail.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ConversationDetail.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -143,7 +143,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsRetrieveResponseCo
).ConfigureAwait(false);
return
- await global::EdenAI.ConversationDetail.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ConversationDetail.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2FilesList.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2FilesList.g.cs
index e2da383..f57eecc 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2FilesList.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2FilesList.g.cs
@@ -107,7 +107,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2FilesListResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ??
+ (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -137,7 +137,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2FilesListResponseContent(
).ConfigureAwait(false);
return
- await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2FilesRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2FilesRetrieve.g.cs
index 27d830a..d40972a 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2FilesRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2FilesRetrieve.g.cs
@@ -113,7 +113,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2FilesRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.AiProductFile.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.AiProductFile.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -143,7 +143,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2FilesRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.AiProductFile.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.AiProductFile.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2InfoRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2InfoRetrieve.g.cs
index f502747..09b3124 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2InfoRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2InfoRetrieve.g.cs
@@ -97,13 +97,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2InfoRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -135,13 +135,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2InfoRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -173,13 +173,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2InfoRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -211,13 +211,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2InfoRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -261,7 +261,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2InfoRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.YodaInfoResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.YodaInfoResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -291,7 +291,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2InfoRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.YodaInfoResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.YodaInfoResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ListChunksIdsCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ListChunksIdsCreate.g.cs
index 30af707..50e384f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ListChunksIdsCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsAskyodaV2ListChunksIdsCreate.g.cs
@@ -73,7 +73,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ListChunksIdsCreateResponseCont
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -111,13 +111,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2ListChunksIdsCreateResponseCont
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -149,13 +149,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2ListChunksIdsCreateResponseCont
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -187,13 +187,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2ListChunksIdsCreateResponseCont
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -225,13 +225,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2ListChunksIdsCreateResponseCont
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -275,7 +275,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ListChunksIdsCreateResponseCont
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.YodaListChunksIdsResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.YodaListChunksIdsResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -305,7 +305,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ListChunksIdsCreateResponseCont
).ConfigureAwait(false);
return
- await global::EdenAI.YodaListChunksIdsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.YodaListChunksIdsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsList.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsList.g.cs
index 9db79cd..49949de 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsList.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsList.g.cs
@@ -110,7 +110,7 @@ partial void ProcessAiproductsAiproductsListResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ??
+ (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -140,7 +140,7 @@ partial void ProcessAiproductsAiproductsListResponseContent(
).ConfigureAwait(false);
return
- await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsRetrieve.g.cs
index f5352e2..93601c3 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.AiproductsAiproductsRetrieve.g.cs
@@ -140,7 +140,7 @@ partial void ProcessAiproductsAiproductsRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.AIProject.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.AIProject.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -170,7 +170,7 @@ partial void ProcessAiproductsAiproductsRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.AIProject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.AIProject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.g.cs
index f86618b..df016ed 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotInfoOperationsClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class CustomChatbotInfoOperationsClient : global::EdenAI.I
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2AskLlmCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2AskLlmCreate.g.cs
index 2922f65..7eff044 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2AskLlmCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2AskLlmCreate.g.cs
@@ -75,7 +75,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2AskLlmCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -113,13 +113,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2AskLlmCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -151,13 +151,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2AskLlmCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,13 +189,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2AskLlmCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -227,13 +227,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2AskLlmCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -277,7 +277,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2AskLlmCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.YodaQueryResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.YodaQueryResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -307,7 +307,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2AskLlmCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.YodaQueryResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.YodaQueryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2GenerateCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2GenerateCreate.g.cs
index 4f18980..09ea1d4 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2GenerateCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2GenerateCreate.g.cs
@@ -74,7 +74,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2GenerateCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -112,13 +112,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2GenerateCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -150,13 +150,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2GenerateCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -188,13 +188,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2GenerateCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -226,13 +226,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2GenerateCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -276,7 +276,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2GenerateCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.YodaQueryResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.YodaQueryResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -306,7 +306,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2GenerateCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.YodaQueryResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.YodaQueryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2QueryCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2QueryCreate.g.cs
index a11c15a..0a971ac 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2QueryCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.AiproductsAiproductsAskyodaV2QueryCreate.g.cs
@@ -75,7 +75,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2QueryCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -113,13 +113,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2QueryCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -151,13 +151,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2QueryCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,13 +189,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2QueryCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -227,13 +227,13 @@ partial void ProcessAiproductsAiproductsAskyodaV2QueryCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -277,7 +277,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2QueryCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.YodaAskLlmResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.YodaAskLlmResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -307,7 +307,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2QueryCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.YodaAskLlmResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.YodaAskLlmResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.g.cs
index a8fd6d0..bd44975 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotQueryOperationsClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class CustomChatbotQueryOperationsClient : global::EdenAI.
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsPartialUpdate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsPartialUpdate.g.cs
index d6d7b62..3802492 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsPartialUpdate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsPartialUpdate.g.cs
@@ -77,7 +77,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsPartialUpdateRespo
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -128,7 +128,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsPartialUpdateRespo
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ConversationDetail.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ConversationDetail.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -158,7 +158,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsPartialUpdateRespo
).ConfigureAwait(false);
return
- await global::EdenAI.ConversationDetail.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ConversationDetail.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsUpdate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsUpdate.g.cs
index 4dcd6f1..a0315bb 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsUpdate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2ConversationsUpdate.g.cs
@@ -77,7 +77,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsUpdateResponseCont
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -128,7 +128,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsUpdateResponseCont
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ConversationDetail.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ConversationDetail.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -158,7 +158,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2ConversationsUpdateResponseCont
).ConfigureAwait(false);
return
- await global::EdenAI.ConversationDetail.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ConversationDetail.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2UpdateProjectPartialUpdate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2UpdateProjectPartialUpdate.g.cs
index 4c8898b..826ac9c 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2UpdateProjectPartialUpdate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.AiproductsAiproductsAskyodaV2UpdateProjectPartialUpdate.g.cs
@@ -77,7 +77,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2UpdateProjectPartialUpdateRespo
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -127,7 +127,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2UpdateProjectPartialUpdateRespo
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.AskYodaProjectUpdate.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.AskYodaProjectUpdate.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -157,7 +157,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2UpdateProjectPartialUpdateRespo
).ConfigureAwait(false);
return
- await global::EdenAI.AskYodaProjectUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.AskYodaProjectUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.g.cs
index 036d6ce..2521fcc 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUpdateOperationsClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class CustomChatbotUpdateOperationsClient : global::EdenAI
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddFileCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddFileCreate.g.cs
index 3428222..f3e2d00 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddFileCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddFileCreate.g.cs
@@ -87,7 +87,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2AddFileCreateResponse(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddImageCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddImageCreate.g.cs
index 444e25b..57eaf42 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddImageCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddImageCreate.g.cs
@@ -68,7 +68,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2AddImageCreateResponse(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddTextCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddTextCreate.g.cs
index 8999d24..6e6e901 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddTextCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddTextCreate.g.cs
@@ -69,7 +69,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2AddTextCreateResponse(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddUrlCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddUrlCreate.g.cs
index f36d681..571bc93 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddUrlCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddUrlCreate.g.cs
@@ -69,7 +69,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2AddUrlCreateResponse(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddVideoCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddVideoCreate.g.cs
index dc2f7ea..0808fc1 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddVideoCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.AiproductsAiproductsAskyodaV2AddVideoCreate.g.cs
@@ -68,7 +68,7 @@ partial void ProcessAiproductsAiproductsAskyodaV2AddVideoCreateResponse(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.g.cs
index a67faeb..60558f2 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomChatbotUploadOperationsClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class CustomChatbotUploadOperationsClient : global::EdenAI
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncCreate.g.cs
index 05d27ef..cbb7b3a 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncCreate.g.cs
@@ -217,7 +217,7 @@ partial void ProcessOcrOcrCustomDocumentParsingAsyncCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -247,7 +247,7 @@ partial void ProcessOcrOcrCustomDocumentParsingAsyncCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncRetrieve.g.cs
index b383a0f..94e4733 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncRetrieve.g.cs
@@ -103,7 +103,7 @@ partial void ProcessOcrOcrCustomDocumentParsingAsyncRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -133,7 +133,7 @@ partial void ProcessOcrOcrCustomDocumentParsingAsyncRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncRetrieve2.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncRetrieve2.g.cs
index 76e4eae..6ce84f8 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncRetrieve2.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.OcrOcrCustomDocumentParsingAsyncRetrieve2.g.cs
@@ -125,13 +125,13 @@ partial void ProcessOcrOcrCustomDocumentParsingAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -163,13 +163,13 @@ partial void ProcessOcrOcrCustomDocumentParsingAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,13 +201,13 @@ partial void ProcessOcrOcrCustomDocumentParsingAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -239,13 +239,13 @@ partial void ProcessOcrOcrCustomDocumentParsingAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -289,7 +289,7 @@ partial void ProcessOcrOcrCustomDocumentParsingAsyncRetrieve2ResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.AsyncocrcustomDocumentParsingAsyncResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.AsyncocrcustomDocumentParsingAsyncResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -319,7 +319,7 @@ partial void ProcessOcrOcrCustomDocumentParsingAsyncRetrieve2ResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.AsyncocrcustomDocumentParsingAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.AsyncocrcustomDocumentParsingAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.g.cs
index 124cb20..47ab370 100644
--- a/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.CustomDocumentParsingAsyncClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class CustomDocumentParsingAsyncClient : global::EdenAI.IC
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.DataExtractionClient.OcrOcrDataExtractionCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.DataExtractionClient.OcrOcrDataExtractionCreate.g.cs
index c505532..334bd1e 100644
--- a/src/libs/EdenAI/Generated/EdenAI.DataExtractionClient.OcrOcrDataExtractionCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.DataExtractionClient.OcrOcrDataExtractionCreate.g.cs
@@ -73,7 +73,7 @@ partial void ProcessOcrOcrDataExtractionCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -110,13 +110,13 @@ partial void ProcessOcrOcrDataExtractionCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -148,13 +148,13 @@ partial void ProcessOcrOcrDataExtractionCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -186,13 +186,13 @@ partial void ProcessOcrOcrDataExtractionCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -224,13 +224,13 @@ partial void ProcessOcrOcrDataExtractionCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -274,7 +274,7 @@ partial void ProcessOcrOcrDataExtractionCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.OcrdataExtractionResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.OcrdataExtractionResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -304,7 +304,7 @@ partial void ProcessOcrOcrDataExtractionCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.OcrdataExtractionResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.OcrdataExtractionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.DataExtractionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.DataExtractionClient.g.cs
index 63fc751..af11932 100644
--- a/src/libs/EdenAI/Generated/EdenAI.DataExtractionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.DataExtractionClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class DataExtractionClient : global::EdenAI.IDataExtractio
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncCreate.g.cs
index c2302ca..4ada9c8 100644
--- a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncCreate.g.cs
@@ -185,7 +185,7 @@ partial void ProcessVideoVideoDeepfakeDetectionAsyncCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -215,7 +215,7 @@ partial void ProcessVideoVideoDeepfakeDetectionAsyncCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncRetrieve.g.cs
index 4a93b49..4515136 100644
--- a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncRetrieve.g.cs
@@ -103,7 +103,7 @@ partial void ProcessVideoVideoDeepfakeDetectionAsyncRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -133,7 +133,7 @@ partial void ProcessVideoVideoDeepfakeDetectionAsyncRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncRetrieve2.g.cs b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncRetrieve2.g.cs
index 7d92a01..01829b6 100644
--- a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncRetrieve2.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.VideoVideoDeepfakeDetectionAsyncRetrieve2.g.cs
@@ -125,13 +125,13 @@ partial void ProcessVideoVideoDeepfakeDetectionAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -163,13 +163,13 @@ partial void ProcessVideoVideoDeepfakeDetectionAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,13 +201,13 @@ partial void ProcessVideoVideoDeepfakeDetectionAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -239,13 +239,13 @@ partial void ProcessVideoVideoDeepfakeDetectionAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -289,7 +289,7 @@ partial void ProcessVideoVideoDeepfakeDetectionAsyncRetrieve2ResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.AsyncvideodeepfakeDetectionAsyncResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.AsyncvideodeepfakeDetectionAsyncResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -319,7 +319,7 @@ partial void ProcessVideoVideoDeepfakeDetectionAsyncRetrieve2ResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.AsyncvideodeepfakeDetectionAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.AsyncvideodeepfakeDetectionAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.g.cs
index 33e907e..cafebe9 100644
--- a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionAsyncClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class DeepfakeDetectionAsyncClient : global::EdenAI.IDeepf
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionClient.ImageImageDeepfakeDetectionCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionClient.ImageImageDeepfakeDetectionCreate.g.cs
index 55fed66..b53356f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionClient.ImageImageDeepfakeDetectionCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionClient.ImageImageDeepfakeDetectionCreate.g.cs
@@ -72,7 +72,7 @@ partial void ProcessImageImageDeepfakeDetectionCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessImageImageDeepfakeDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -147,13 +147,13 @@ partial void ProcessImageImageDeepfakeDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,13 +185,13 @@ partial void ProcessImageImageDeepfakeDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -223,13 +223,13 @@ partial void ProcessImageImageDeepfakeDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -273,7 +273,7 @@ partial void ProcessImageImageDeepfakeDetectionCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImagedeepfakeDetectionResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImagedeepfakeDetectionResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -303,7 +303,7 @@ partial void ProcessImageImageDeepfakeDetectionCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImagedeepfakeDetectionResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImagedeepfakeDetectionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionClient.g.cs
index b9e1fb1..30a0644 100644
--- a/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.DeepfakeDetectionClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class DeepfakeDetectionClient : global::EdenAI.IDeepfakeDe
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.DocumentTranslationClient.TranslationTranslationDocumentTranslationCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.DocumentTranslationClient.TranslationTranslationDocumentTranslationCreate.g.cs
index 87ad9bc..662b982 100644
--- a/src/libs/EdenAI/Generated/EdenAI.DocumentTranslationClient.TranslationTranslationDocumentTranslationCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.DocumentTranslationClient.TranslationTranslationDocumentTranslationCreate.g.cs
@@ -191,7 +191,7 @@ partial void ProcessTranslationTranslationDocumentTranslationCreateResponseConte
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -228,13 +228,13 @@ partial void ProcessTranslationTranslationDocumentTranslationCreateResponseConte
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -266,13 +266,13 @@ partial void ProcessTranslationTranslationDocumentTranslationCreateResponseConte
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -304,13 +304,13 @@ partial void ProcessTranslationTranslationDocumentTranslationCreateResponseConte
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -342,13 +342,13 @@ partial void ProcessTranslationTranslationDocumentTranslationCreateResponseConte
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -392,7 +392,7 @@ partial void ProcessTranslationTranslationDocumentTranslationCreateResponseConte
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.TranslationdocumentTranslationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.TranslationdocumentTranslationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -422,7 +422,7 @@ partial void ProcessTranslationTranslationDocumentTranslationCreateResponseConte
).ConfigureAwait(false);
return
- await global::EdenAI.TranslationdocumentTranslationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.TranslationdocumentTranslationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.DocumentTranslationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.DocumentTranslationClient.g.cs
index 50afac7..475a101 100644
--- a/src/libs/EdenAI/Generated/EdenAI.DocumentTranslationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.DocumentTranslationClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class DocumentTranslationClient : global::EdenAI.IDocument
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.EdenAIClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.EdenAIClient.g.cs
index c2f7f3a..5c4326b 100644
--- a/src/libs/EdenAI/Generated/EdenAI.EdenAIClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.EdenAIClient.g.cs
@@ -34,85 +34,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
///
///
///
- #pragma warning disable CS0618 // Type or member is obsolete
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions
- {
- PropertyNameCaseInsensitive = true,
- DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
- Converters =
- {
- new global::EdenAI.JsonConverters.BlankEnumJsonConverter(),
- new global::EdenAI.JsonConverters.BlankEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.CategoryTypeJsonConverter(),
- new global::EdenAI.JsonConverters.CategoryTypeNullableJsonConverter(),
- new global::EdenAI.JsonConverters.ChatRoleJsonConverter(),
- new global::EdenAI.JsonConverters.ChatRoleNullableJsonConverter(),
- new global::EdenAI.JsonConverters.DataTypeEnumJsonConverter(),
- new global::EdenAI.JsonConverters.DataTypeEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.DbProviderEnumJsonConverter(),
- new global::EdenAI.JsonConverters.DbProviderEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.DetailTypeEnumJsonConverter(),
- new global::EdenAI.JsonConverters.DetailTypeEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.DocumentTypeEnumJsonConverter(),
- new global::EdenAI.JsonConverters.DocumentTypeEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.EmbeddingsProviderEnumJsonConverter(),
- new global::EdenAI.JsonConverters.EmbeddingsProviderEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.EntitySentimentEnumJsonConverter(),
- new global::EdenAI.JsonConverters.EntitySentimentEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.ExecutionContentCreateStatusEnumJsonConverter(),
- new global::EdenAI.JsonConverters.ExecutionContentCreateStatusEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.FallbackTypeEnumJsonConverter(),
- new global::EdenAI.JsonConverters.FallbackTypeEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.FinalStatusEnumJsonConverter(),
- new global::EdenAI.JsonConverters.FinalStatusEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.GeneralSentimentEnumJsonConverter(),
- new global::EdenAI.JsonConverters.GeneralSentimentEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.ImageaiDetectionAiDetectionDataClassPredictionEnumJsonConverter(),
- new global::EdenAI.JsonConverters.ImageaiDetectionAiDetectionDataClassPredictionEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.OptionEnumJsonConverter(),
- new global::EdenAI.JsonConverters.OptionEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.PredictionB20EnumJsonConverter(),
- new global::EdenAI.JsonConverters.PredictionB20EnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.PriceUnitTypeEnumJsonConverter(),
- new global::EdenAI.JsonConverters.PriceUnitTypeEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.ProjectTypeEnumJsonConverter(),
- new global::EdenAI.JsonConverters.ProjectTypeEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.ReasoningEffortEnumJsonConverter(),
- new global::EdenAI.JsonConverters.ReasoningEffortEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.RepresentationEnumJsonConverter(),
- new global::EdenAI.JsonConverters.RepresentationEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.SentimentEbfEnumJsonConverter(),
- new global::EdenAI.JsonConverters.SentimentEbfEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.ServiceTierEnumJsonConverter(),
- new global::EdenAI.JsonConverters.ServiceTierEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.StateEnumJsonConverter(),
- new global::EdenAI.JsonConverters.StateEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.Status549EnumJsonConverter(),
- new global::EdenAI.JsonConverters.Status549EnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.Status889EnumJsonConverter(),
- new global::EdenAI.JsonConverters.Status889EnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.SubCategoryTypeJsonConverter(),
- new global::EdenAI.JsonConverters.SubCategoryTypeNullableJsonConverter(),
- new global::EdenAI.JsonConverters.ThinkingTypeEnumJsonConverter(),
- new global::EdenAI.JsonConverters.ThinkingTypeEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.TokenTypeEnumJsonConverter(),
- new global::EdenAI.JsonConverters.TokenTypeEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.ToolChoiceEnumJsonConverter(),
- new global::EdenAI.JsonConverters.ToolChoiceEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.TypeDe8EnumJsonConverter(),
- new global::EdenAI.JsonConverters.TypeDe8EnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.TypeOfDataEnumJsonConverter(),
- new global::EdenAI.JsonConverters.TypeOfDataEnumNullableJsonConverter(),
- new global::EdenAI.JsonConverters.FeatureBatchRetrieveStatusJsonConverter(),
- new global::EdenAI.JsonConverters.FeatureBatchRetrieveStatusNullableJsonConverter(),
- new global::EdenAI.JsonConverters.OneOfJsonConverter(),
- new global::EdenAI.JsonConverters.OneOfJsonConverter(),
- new global::EdenAI.JsonConverters.OneOfJsonConverter(),
- new global::EdenAI.JsonConverters.OneOfJsonConverter(),
- new global::EdenAI.JsonConverters.UnixTimestampJsonConverter(),
- }
- };
- #pragma warning restore CS0618 // Type or member is obsolete
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
@@ -121,7 +43,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public AiDetectionClient AiDetection => new AiDetectionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -130,7 +52,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public AnonymizationClient Anonymization => new AnonymizationClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -139,7 +61,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public AnonymizationAsyncClient AnonymizationAsync => new AnonymizationAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -148,7 +70,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public AutomaticTranslationClient AutomaticTranslation => new AutomaticTranslationClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -157,7 +79,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public AutomlClassificationClient AutomlClassification => new AutomlClassificationClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -166,7 +88,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public BackgroundRemovalClient BackgroundRemoval => new BackgroundRemovalClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -175,7 +97,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public BankCheckParsingClient BankCheckParsing => new BankCheckParsingClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -184,7 +106,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public BatchClient Batch => new BatchClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -193,7 +115,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public ChatClient Chat => new ChatClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -202,7 +124,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public CodeGenerationClient CodeGeneration => new CodeGenerationClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -211,7 +133,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public CostMonitoringClient CostMonitoring => new CostMonitoringClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -220,7 +142,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public CustomChatbotCreateOperationsClient CustomChatbotCreateOperations => new CustomChatbotCreateOperationsClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -229,7 +151,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public CustomChatbotDeleteOperationsClient CustomChatbotDeleteOperations => new CustomChatbotDeleteOperationsClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -238,7 +160,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public CustomChatbotInfoOperationsClient CustomChatbotInfoOperations => new CustomChatbotInfoOperationsClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -247,7 +169,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public CustomChatbotQueryOperationsClient CustomChatbotQueryOperations => new CustomChatbotQueryOperationsClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -256,7 +178,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public CustomChatbotUpdateOperationsClient CustomChatbotUpdateOperations => new CustomChatbotUpdateOperationsClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -265,7 +187,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public CustomChatbotUploadOperationsClient CustomChatbotUploadOperations => new CustomChatbotUploadOperationsClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -274,7 +196,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public CustomDocumentParsingAsyncClient CustomDocumentParsingAsync => new CustomDocumentParsingAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -283,7 +205,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public DataExtractionClient DataExtraction => new DataExtractionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -292,7 +214,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public DeepfakeDetectionClient DeepfakeDetection => new DeepfakeDetectionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -301,7 +223,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public DeepfakeDetectionAsyncClient DeepfakeDetectionAsync => new DeepfakeDetectionAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -310,7 +232,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public DocumentTranslationClient DocumentTranslation => new DocumentTranslationClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -319,7 +241,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public EmbeddingsClient Embeddings => new EmbeddingsClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -328,7 +250,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public EmotionDetectionClient EmotionDetection => new EmotionDetectionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -337,7 +259,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public EnabledFeaturesClient EnabledFeatures => new EnabledFeaturesClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -346,7 +268,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public EntitySentimentClient EntitySentiment => new EntitySentimentClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -355,7 +277,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public ExecutionsClient Executions => new ExecutionsClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -364,7 +286,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public ExplicitContentClient ExplicitContent => new ExplicitContentClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -373,7 +295,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public ExplicitContentDetectionAsyncClient ExplicitContentDetectionAsync => new ExplicitContentDetectionAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -382,7 +304,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public FaceCompareClient FaceCompare => new FaceCompareClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -391,7 +313,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public FaceDetectionClient FaceDetection => new FaceDetectionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -400,7 +322,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public FaceDetectionAsyncClient FaceDetectionAsync => new FaceDetectionAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -409,7 +331,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public FaceRecognitionClient FaceRecognition => new FaceRecognitionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -418,7 +340,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public FinancialParserClient FinancialParser => new FinancialParserClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -427,7 +349,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public GenerationClient Generation => new GenerationClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -436,7 +358,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public GenerationAsyncClient GenerationAsync => new GenerationAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -445,7 +367,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public IdentityParserClient IdentityParser => new IdentityParserClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -454,7 +376,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public InfosClient Infos => new InfosClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -463,7 +385,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public KeywordExtractionClient KeywordExtraction => new KeywordExtractionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -472,7 +394,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public LabelDetectionAsyncClient LabelDetectionAsync => new LabelDetectionAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -481,7 +403,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public LandmarkDetectionClient LandmarkDetection => new LandmarkDetectionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -490,7 +412,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public LanguageDetectionClient LanguageDetection => new LanguageDetectionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -499,7 +421,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public LogoDetectionClient LogoDetection => new LogoDetectionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -508,7 +430,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public LogoDetectionAsyncClient LogoDetectionAsync => new LogoDetectionAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -517,7 +439,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public ModerationClient Moderation => new ModerationClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -526,7 +448,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public NamedEntityRecognitionClient NamedEntityRecognition => new NamedEntityRecognitionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -535,7 +457,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public ObjectDetectionClient ObjectDetection => new ObjectDetectionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -544,7 +466,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public ObjectTrackingAsyncClient ObjectTrackingAsync => new ObjectTrackingAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -553,7 +475,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public OcrClient Ocr => new OcrClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -562,7 +484,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public OcrAsyncClient OcrAsync => new OcrAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -571,7 +493,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public OcrTablesAsyncClient OcrTablesAsync => new OcrTablesAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -580,7 +502,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public PersonTrackingAsyncClient PersonTrackingAsync => new PersonTrackingAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -589,7 +511,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public PlagiaDetectionClient PlagiaDetection => new PlagiaDetectionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -598,7 +520,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public PromptOptimizationClient PromptOptimization => new PromptOptimizationClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -607,7 +529,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public PromptsClient Prompts => new PromptsClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -616,7 +538,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public QuestionAnswerClient QuestionAnswer => new QuestionAnswerClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -625,7 +547,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public QuestionAnswerAsyncClient QuestionAnswerAsync => new QuestionAnswerAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -634,7 +556,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public ResourcesClient Resources => new ResourcesClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -643,7 +565,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public ResumeParserClient ResumeParser => new ResumeParserClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -652,7 +574,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public SearchClient Search => new SearchClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -661,7 +583,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public SentimentAnalysisClient SentimentAnalysis => new SentimentAnalysisClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -670,7 +592,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public ShotChangeDetectionAsyncClient ShotChangeDetectionAsync => new ShotChangeDetectionAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -679,7 +601,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public SpeechToTextAsyncClient SpeechToTextAsync => new SpeechToTextAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -688,7 +610,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public SpellCheckClient SpellCheck => new SpellCheckClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -697,7 +619,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public SummarizeClient Summarize => new SummarizeClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -706,7 +628,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public TextDetectionAsyncClient TextDetectionAsync => new TextDetectionAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -715,7 +637,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public TextToSpeechClient TextToSpeech => new TextToSpeechClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -724,7 +646,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public TextToSpeechAsyncClient TextToSpeechAsync => new TextToSpeechAsyncClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -733,7 +655,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public TopicExtractionClient TopicExtraction => new TopicExtractionClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -742,7 +664,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public UserManagementClient UserManagement => new UserManagementClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -751,7 +673,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public WebhookClient Webhook => new WebhookClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
@@ -760,7 +682,7 @@ public sealed partial class EdenAIClient : global::EdenAI.IEdenAIClient, global:
public WorkflowsClient Workflows => new WorkflowsClient(HttpClient, authorizations: Authorizations)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerOptions = JsonSerializerOptions,
+ JsonSerializerContext = JsonSerializerContext,
};
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.ImageImageEmbeddingsCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.ImageImageEmbeddingsCreate.g.cs
index ab6a623..6cc2921 100644
--- a/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.ImageImageEmbeddingsCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.ImageImageEmbeddingsCreate.g.cs
@@ -82,7 +82,7 @@ partial void ProcessImageImageEmbeddingsCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -119,13 +119,13 @@ partial void ProcessImageImageEmbeddingsCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -157,13 +157,13 @@ partial void ProcessImageImageEmbeddingsCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,13 +195,13 @@ partial void ProcessImageImageEmbeddingsCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -233,13 +233,13 @@ partial void ProcessImageImageEmbeddingsCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -283,7 +283,7 @@ partial void ProcessImageImageEmbeddingsCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImageembeddingsResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImageembeddingsResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -313,7 +313,7 @@ partial void ProcessImageImageEmbeddingsCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImageembeddingsResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImageembeddingsResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.TextTextEmbeddingsCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.TextTextEmbeddingsCreate.g.cs
index 4438bce..52c7284 100644
--- a/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.TextTextEmbeddingsCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.TextTextEmbeddingsCreate.g.cs
@@ -105,7 +105,7 @@ partial void ProcessTextTextEmbeddingsCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -142,13 +142,13 @@ partial void ProcessTextTextEmbeddingsCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,13 +180,13 @@ partial void ProcessTextTextEmbeddingsCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -218,13 +218,13 @@ partial void ProcessTextTextEmbeddingsCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -256,13 +256,13 @@ partial void ProcessTextTextEmbeddingsCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -306,7 +306,7 @@ partial void ProcessTextTextEmbeddingsCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.TextembeddingsResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.TextembeddingsResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -336,7 +336,7 @@ partial void ProcessTextTextEmbeddingsCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.TextembeddingsResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.TextembeddingsResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.g.cs
index a38b7f2..31761bc 100644
--- a/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.EmbeddingsClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class EmbeddingsClient : global::EdenAI.IEmbeddingsClient,
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.EmotionDetectionClient.TextTextEmotionDetectionCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.EmotionDetectionClient.TextTextEmotionDetectionCreate.g.cs
index 2ff83b6..ccf512e 100644
--- a/src/libs/EdenAI/Generated/EdenAI.EmotionDetectionClient.TextTextEmotionDetectionCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.EmotionDetectionClient.TextTextEmotionDetectionCreate.g.cs
@@ -72,7 +72,7 @@ partial void ProcessTextTextEmotionDetectionCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessTextTextEmotionDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -147,13 +147,13 @@ partial void ProcessTextTextEmotionDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,13 +185,13 @@ partial void ProcessTextTextEmotionDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -223,13 +223,13 @@ partial void ProcessTextTextEmotionDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -273,7 +273,7 @@ partial void ProcessTextTextEmotionDetectionCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.TextemotionDetectionResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.TextemotionDetectionResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -303,7 +303,7 @@ partial void ProcessTextTextEmotionDetectionCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.TextemotionDetectionResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.TextemotionDetectionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.EmotionDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.EmotionDetectionClient.g.cs
index fe1ed7e..54f110a 100644
--- a/src/libs/EdenAI/Generated/EdenAI.EmotionDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.EmotionDetectionClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class EmotionDetectionClient : global::EdenAI.IEmotionDete
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.EnabledFeaturesClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.EnabledFeaturesClient.g.cs
index 8ba0ba3..2d2d268 100644
--- a/src/libs/EdenAI/Generated/EdenAI.EnabledFeaturesClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.EnabledFeaturesClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class EnabledFeaturesClient : global::EdenAI.IEnabledFeatu
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.EntitySentimentClient.TextTextEntitySentimentCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.EntitySentimentClient.TextTextEntitySentimentCreate.g.cs
index 5d2c05c..8bd3253 100644
--- a/src/libs/EdenAI/Generated/EdenAI.EntitySentimentClient.TextTextEntitySentimentCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.EntitySentimentClient.TextTextEntitySentimentCreate.g.cs
@@ -136,7 +136,7 @@ partial void ProcessTextTextEntitySentimentCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -173,13 +173,13 @@ partial void ProcessTextTextEntitySentimentCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -211,13 +211,13 @@ partial void ProcessTextTextEntitySentimentCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -249,13 +249,13 @@ partial void ProcessTextTextEntitySentimentCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -287,13 +287,13 @@ partial void ProcessTextTextEntitySentimentCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -337,7 +337,7 @@ partial void ProcessTextTextEntitySentimentCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.TextentitySentimentResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.TextentitySentimentResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -367,7 +367,7 @@ partial void ProcessTextTextEntitySentimentCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.TextentitySentimentResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.TextentitySentimentResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.EntitySentimentClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.EntitySentimentClient.g.cs
index 278b7d8..d2e74bb 100644
--- a/src/libs/EdenAI/Generated/EdenAI.EntitySentimentClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.EntitySentimentClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class EntitySentimentClient : global::EdenAI.IEntitySentim
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionCreate.g.cs
index 3141aac..ec7f4a3 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionCreate.g.cs
@@ -77,7 +77,7 @@ partial void ProcessWorkflowWorkflowExecutionCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -127,7 +127,7 @@ partial void ProcessWorkflowWorkflowExecutionCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ExecutionExampleSuccessCreate.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ExecutionExampleSuccessCreate.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -157,7 +157,7 @@ partial void ProcessWorkflowWorkflowExecutionCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ExecutionExampleSuccessCreate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ExecutionExampleSuccessCreate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionList.g.cs b/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionList.g.cs
index fd7b4f7..bd5a09c 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionList.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionList.g.cs
@@ -123,7 +123,7 @@ partial void ProcessWorkflowWorkflowExecutionListResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.PaginatedExecutionListList.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.PaginatedExecutionListList.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -153,7 +153,7 @@ partial void ProcessWorkflowWorkflowExecutionListResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.PaginatedExecutionListList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.PaginatedExecutionListList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionRetrieve.g.cs
index 2a89355..d775200 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.WorkflowWorkflowExecutionRetrieve.g.cs
@@ -114,7 +114,7 @@ partial void ProcessWorkflowWorkflowExecutionRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ExecutionExampleSuccessCreate.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ExecutionExampleSuccessCreate.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -144,7 +144,7 @@ partial void ProcessWorkflowWorkflowExecutionRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ExecutionExampleSuccessCreate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ExecutionExampleSuccessCreate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.g.cs
index c79c4a4..8f6df1b 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ExecutionsClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class ExecutionsClient : global::EdenAI.IExecutionsClient,
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentClient.ImageImageExplicitContentCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentClient.ImageImageExplicitContentCreate.g.cs
index 6775c07..3f9e294 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentClient.ImageImageExplicitContentCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentClient.ImageImageExplicitContentCreate.g.cs
@@ -84,7 +84,7 @@ partial void ProcessImageImageExplicitContentCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -121,13 +121,13 @@ partial void ProcessImageImageExplicitContentCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -159,13 +159,13 @@ partial void ProcessImageImageExplicitContentCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -197,13 +197,13 @@ partial void ProcessImageImageExplicitContentCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -235,13 +235,13 @@ partial void ProcessImageImageExplicitContentCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -285,7 +285,7 @@ partial void ProcessImageImageExplicitContentCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImageexplicitContentResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImageexplicitContentResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -315,7 +315,7 @@ partial void ProcessImageImageExplicitContentCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImageexplicitContentResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImageexplicitContentResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentClient.g.cs
index e99b10c..e65f365 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class ExplicitContentClient : global::EdenAI.IExplicitCont
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncCreate.g.cs
index 56f89a0..3eafe6e 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncCreate.g.cs
@@ -190,7 +190,7 @@ partial void ProcessVideoVideoExplicitContentDetectionAsyncCreateResponseContent
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -220,7 +220,7 @@ partial void ProcessVideoVideoExplicitContentDetectionAsyncCreateResponseContent
).ConfigureAwait(false);
return
- await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncRetrieve.g.cs
index c68db7d..189b7f0 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncRetrieve.g.cs
@@ -103,7 +103,7 @@ partial void ProcessVideoVideoExplicitContentDetectionAsyncRetrieveResponseConte
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -133,7 +133,7 @@ partial void ProcessVideoVideoExplicitContentDetectionAsyncRetrieveResponseConte
).ConfigureAwait(false);
return
- await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncRetrieve2.g.cs b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncRetrieve2.g.cs
index 8431688..16ae818 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncRetrieve2.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.VideoVideoExplicitContentDetectionAsyncRetrieve2.g.cs
@@ -125,13 +125,13 @@ partial void ProcessVideoVideoExplicitContentDetectionAsyncRetrieve2ResponseCont
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -163,13 +163,13 @@ partial void ProcessVideoVideoExplicitContentDetectionAsyncRetrieve2ResponseCont
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,13 +201,13 @@ partial void ProcessVideoVideoExplicitContentDetectionAsyncRetrieve2ResponseCont
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -239,13 +239,13 @@ partial void ProcessVideoVideoExplicitContentDetectionAsyncRetrieve2ResponseCont
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -289,7 +289,7 @@ partial void ProcessVideoVideoExplicitContentDetectionAsyncRetrieve2ResponseCont
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.AsyncvideoexplicitContentDetectionAsyncResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.AsyncvideoexplicitContentDetectionAsyncResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -319,7 +319,7 @@ partial void ProcessVideoVideoExplicitContentDetectionAsyncRetrieve2ResponseCont
).ConfigureAwait(false);
return
- await global::EdenAI.AsyncvideoexplicitContentDetectionAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.AsyncvideoexplicitContentDetectionAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.g.cs
index 868ffb0..3c85cb6 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ExplicitContentDetectionAsyncClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class ExplicitContentDetectionAsyncClient : global::EdenAI
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceCompareClient.ImageImageFaceCompareCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceCompareClient.ImageImageFaceCompareCreate.g.cs
index bd4cdc8..5c1a94e 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceCompareClient.ImageImageFaceCompareCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceCompareClient.ImageImageFaceCompareCreate.g.cs
@@ -74,7 +74,7 @@ partial void ProcessImageImageFaceCompareCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -111,13 +111,13 @@ partial void ProcessImageImageFaceCompareCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -149,13 +149,13 @@ partial void ProcessImageImageFaceCompareCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -187,13 +187,13 @@ partial void ProcessImageImageFaceCompareCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -225,13 +225,13 @@ partial void ProcessImageImageFaceCompareCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -275,7 +275,7 @@ partial void ProcessImageImageFaceCompareCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImagefaceCompareResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImagefaceCompareResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -305,7 +305,7 @@ partial void ProcessImageImageFaceCompareCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImagefaceCompareResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImagefaceCompareResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceCompareClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceCompareClient.g.cs
index 09068de..4f85253 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceCompareClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceCompareClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class FaceCompareClient : global::EdenAI.IFaceCompareClien
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncCreate.g.cs
index 1d30876..e1fcf7c 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncCreate.g.cs
@@ -190,7 +190,7 @@ partial void ProcessVideoVideoFaceDetectionAsyncCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -220,7 +220,7 @@ partial void ProcessVideoVideoFaceDetectionAsyncCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncRetrieve.g.cs
index 5d3066a..061c48d 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncRetrieve.g.cs
@@ -103,7 +103,7 @@ partial void ProcessVideoVideoFaceDetectionAsyncRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -133,7 +133,7 @@ partial void ProcessVideoVideoFaceDetectionAsyncRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncRetrieve2.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncRetrieve2.g.cs
index c6e4a36..5fd6eb9 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncRetrieve2.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.VideoVideoFaceDetectionAsyncRetrieve2.g.cs
@@ -125,13 +125,13 @@ partial void ProcessVideoVideoFaceDetectionAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -163,13 +163,13 @@ partial void ProcessVideoVideoFaceDetectionAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,13 +201,13 @@ partial void ProcessVideoVideoFaceDetectionAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -239,13 +239,13 @@ partial void ProcessVideoVideoFaceDetectionAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -289,7 +289,7 @@ partial void ProcessVideoVideoFaceDetectionAsyncRetrieve2ResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.AsyncvideofaceDetectionAsyncResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.AsyncvideofaceDetectionAsyncResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -319,7 +319,7 @@ partial void ProcessVideoVideoFaceDetectionAsyncRetrieve2ResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.AsyncvideofaceDetectionAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.AsyncvideofaceDetectionAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.g.cs
index fc45eeb..27fbf0e 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionAsyncClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class FaceDetectionAsyncClient : global::EdenAI.IFaceDetec
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionClient.ImageImageFaceDetectionCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionClient.ImageImageFaceDetectionCreate.g.cs
index bc9bb05..915391f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionClient.ImageImageFaceDetectionCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionClient.ImageImageFaceDetectionCreate.g.cs
@@ -75,7 +75,7 @@ partial void ProcessImageImageFaceDetectionCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -112,13 +112,13 @@ partial void ProcessImageImageFaceDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -150,13 +150,13 @@ partial void ProcessImageImageFaceDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -188,13 +188,13 @@ partial void ProcessImageImageFaceDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -226,13 +226,13 @@ partial void ProcessImageImageFaceDetectionCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -276,7 +276,7 @@ partial void ProcessImageImageFaceDetectionCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImagefaceDetectionResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImagefaceDetectionResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -306,7 +306,7 @@ partial void ProcessImageImageFaceDetectionCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImagefaceDetectionResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImagefaceDetectionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionClient.g.cs
index 8d749d4..bdf9273 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceDetectionClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class FaceDetectionClient : global::EdenAI.IFaceDetectionC
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionAddFaceCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionAddFaceCreate.g.cs
index e9669a8..8065c52 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionAddFaceCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionAddFaceCreate.g.cs
@@ -73,7 +73,7 @@ partial void ProcessImageImageFaceRecognitionAddFaceCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -110,13 +110,13 @@ partial void ProcessImageImageFaceRecognitionAddFaceCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -148,13 +148,13 @@ partial void ProcessImageImageFaceRecognitionAddFaceCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -186,13 +186,13 @@ partial void ProcessImageImageFaceRecognitionAddFaceCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -224,13 +224,13 @@ partial void ProcessImageImageFaceRecognitionAddFaceCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -274,7 +274,7 @@ partial void ProcessImageImageFaceRecognitionAddFaceCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImagefaceRecognitionResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImagefaceRecognitionResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -304,7 +304,7 @@ partial void ProcessImageImageFaceRecognitionAddFaceCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImagefaceRecognitionResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImagefaceRecognitionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionDeleteFaceCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionDeleteFaceCreate.g.cs
index f8745ac..e021fa8 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionDeleteFaceCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionDeleteFaceCreate.g.cs
@@ -73,7 +73,7 @@ partial void ProcessImageImageFaceRecognitionDeleteFaceCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -110,13 +110,13 @@ partial void ProcessImageImageFaceRecognitionDeleteFaceCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -148,13 +148,13 @@ partial void ProcessImageImageFaceRecognitionDeleteFaceCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -186,13 +186,13 @@ partial void ProcessImageImageFaceRecognitionDeleteFaceCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -224,13 +224,13 @@ partial void ProcessImageImageFaceRecognitionDeleteFaceCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -274,7 +274,7 @@ partial void ProcessImageImageFaceRecognitionDeleteFaceCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImagefaceRecognitionResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImagefaceRecognitionResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -304,7 +304,7 @@ partial void ProcessImageImageFaceRecognitionDeleteFaceCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImagefaceRecognitionResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImagefaceRecognitionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionListFacesRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionListFacesRetrieve.g.cs
index e482908..a6408d1 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionListFacesRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionListFacesRetrieve.g.cs
@@ -158,13 +158,13 @@ partial void ProcessImageImageFaceRecognitionListFacesRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -196,13 +196,13 @@ partial void ProcessImageImageFaceRecognitionListFacesRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -234,13 +234,13 @@ partial void ProcessImageImageFaceRecognitionListFacesRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -272,13 +272,13 @@ partial void ProcessImageImageFaceRecognitionListFacesRetrieveResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -322,7 +322,7 @@ partial void ProcessImageImageFaceRecognitionListFacesRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImagefaceRecognitionResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImagefaceRecognitionResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -352,7 +352,7 @@ partial void ProcessImageImageFaceRecognitionListFacesRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImagefaceRecognitionResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImagefaceRecognitionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionRecognizeCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionRecognizeCreate.g.cs
index 7dc173a..4ec86c3 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionRecognizeCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.ImageImageFaceRecognitionRecognizeCreate.g.cs
@@ -73,7 +73,7 @@ partial void ProcessImageImageFaceRecognitionRecognizeCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -110,13 +110,13 @@ partial void ProcessImageImageFaceRecognitionRecognizeCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -148,13 +148,13 @@ partial void ProcessImageImageFaceRecognitionRecognizeCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -186,13 +186,13 @@ partial void ProcessImageImageFaceRecognitionRecognizeCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -224,13 +224,13 @@ partial void ProcessImageImageFaceRecognitionRecognizeCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -274,7 +274,7 @@ partial void ProcessImageImageFaceRecognitionRecognizeCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImagefaceRecognitionResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImagefaceRecognitionResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -304,7 +304,7 @@ partial void ProcessImageImageFaceRecognitionRecognizeCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImagefaceRecognitionResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImagefaceRecognitionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.g.cs
index f26e1e9..9e0db78 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FaceRecognitionClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class FaceRecognitionClient : global::EdenAI.IFaceRecognit
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.FinancialParserClient.OcrOcrFinancialParserCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.FinancialParserClient.OcrOcrFinancialParserCreate.g.cs
index 60a2654..030d7c6 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FinancialParserClient.OcrOcrFinancialParserCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FinancialParserClient.OcrOcrFinancialParserCreate.g.cs
@@ -225,7 +225,7 @@ partial void ProcessOcrOcrFinancialParserCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -262,13 +262,13 @@ partial void ProcessOcrOcrFinancialParserCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -300,13 +300,13 @@ partial void ProcessOcrOcrFinancialParserCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -338,13 +338,13 @@ partial void ProcessOcrOcrFinancialParserCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -376,13 +376,13 @@ partial void ProcessOcrOcrFinancialParserCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -426,7 +426,7 @@ partial void ProcessOcrOcrFinancialParserCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.OcrfinancialParserResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.OcrfinancialParserResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -456,7 +456,7 @@ partial void ProcessOcrOcrFinancialParserCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.OcrfinancialParserResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.OcrfinancialParserResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.FinancialParserClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.FinancialParserClient.g.cs
index 82e17a3..04b0317 100644
--- a/src/libs/EdenAI/Generated/EdenAI.FinancialParserClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.FinancialParserClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class FinancialParserClient : global::EdenAI.IFinancialPar
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncCreate.g.cs
index c4e2cae..b9dd1e3 100644
--- a/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncCreate.g.cs
@@ -239,7 +239,7 @@ partial void ProcessVideoVideoGenerationAsyncCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.LaunchAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -269,7 +269,7 @@ partial void ProcessVideoVideoGenerationAsyncCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.LaunchAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncRetrieve.g.cs b/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncRetrieve.g.cs
index ad9e1e8..7f69fbd 100644
--- a/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncRetrieve.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncRetrieve.g.cs
@@ -103,7 +103,7 @@ partial void ProcessVideoVideoGenerationAsyncRetrieveResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ListAsyncJobResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -133,7 +133,7 @@ partial void ProcessVideoVideoGenerationAsyncRetrieveResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ListAsyncJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncRetrieve2.g.cs b/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncRetrieve2.g.cs
index f001fa2..6e16bee 100644
--- a/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncRetrieve2.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.VideoVideoGenerationAsyncRetrieve2.g.cs
@@ -125,13 +125,13 @@ partial void ProcessVideoVideoGenerationAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -163,13 +163,13 @@ partial void ProcessVideoVideoGenerationAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,13 +201,13 @@ partial void ProcessVideoVideoGenerationAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -239,13 +239,13 @@ partial void ProcessVideoVideoGenerationAsyncRetrieve2ResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -289,7 +289,7 @@ partial void ProcessVideoVideoGenerationAsyncRetrieve2ResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.AsyncvideogenerationAsyncResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.AsyncvideogenerationAsyncResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -319,7 +319,7 @@ partial void ProcessVideoVideoGenerationAsyncRetrieve2ResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.AsyncvideogenerationAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.AsyncvideogenerationAsyncResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.g.cs
index 44265f0..d598301 100644
--- a/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.GenerationAsyncClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class GenerationAsyncClient : global::EdenAI.IGenerationAs
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.GenerationClient.ImageImageGenerationCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.GenerationClient.ImageImageGenerationCreate.g.cs
index 2f78e34..86fe858 100644
--- a/src/libs/EdenAI/Generated/EdenAI.GenerationClient.ImageImageGenerationCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.GenerationClient.ImageImageGenerationCreate.g.cs
@@ -137,7 +137,7 @@ partial void ProcessImageImageGenerationCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -174,13 +174,13 @@ partial void ProcessImageImageGenerationCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -212,13 +212,13 @@ partial void ProcessImageImageGenerationCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -250,13 +250,13 @@ partial void ProcessImageImageGenerationCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -288,13 +288,13 @@ partial void ProcessImageImageGenerationCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -338,7 +338,7 @@ partial void ProcessImageImageGenerationCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.ImagegenerationResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.ImagegenerationResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -368,7 +368,7 @@ partial void ProcessImageImageGenerationCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.ImagegenerationResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.ImagegenerationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.GenerationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.GenerationClient.g.cs
index edea3d3..1ce5af1 100644
--- a/src/libs/EdenAI/Generated/EdenAI.GenerationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.GenerationClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class GenerationClient : global::EdenAI.IGenerationClient,
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.IAiDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IAiDetectionClient.g.cs
index 143e20f..0548413 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IAiDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IAiDetectionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IAiDetectionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IAnonymizationAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IAnonymizationAsyncClient.g.cs
index d449a76..0ad4c7c 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IAnonymizationAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IAnonymizationAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IAnonymizationAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IAnonymizationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IAnonymizationClient.g.cs
index cdace75..91bcfe5 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IAnonymizationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IAnonymizationClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IAnonymizationClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IAutomaticTranslationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IAutomaticTranslationClient.g.cs
index 3384699..a6c9691 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IAutomaticTranslationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IAutomaticTranslationClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IAutomaticTranslationClient : global::System.IDisposabl
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IAutomlClassificationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IAutomlClassificationClient.g.cs
index 6637402..bca9102 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IAutomlClassificationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IAutomlClassificationClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IAutomlClassificationClient : global::System.IDisposabl
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IBackgroundRemovalClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IBackgroundRemovalClient.g.cs
index d39290e..b3988e1 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IBackgroundRemovalClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IBackgroundRemovalClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IBackgroundRemovalClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IBankCheckParsingClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IBankCheckParsingClient.g.cs
index 449b660..3fe6947 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IBankCheckParsingClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IBankCheckParsingClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IBankCheckParsingClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IBatchClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IBatchClient.g.cs
index 80c7e41..d0b9171 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IBatchClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IBatchClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IBatchClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IChatClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IChatClient.g.cs
index a8e503e..8a0bb5d 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IChatClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IChatClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IChatClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ICodeGenerationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ICodeGenerationClient.g.cs
index e79742f..7afeaf5 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ICodeGenerationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ICodeGenerationClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ICodeGenerationClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ICostMonitoringClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ICostMonitoringClient.g.cs
index 3362f16..fd94a97 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ICostMonitoringClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ICostMonitoringClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ICostMonitoringClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotCreateOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotCreateOperationsClient.g.cs
index 6da3e4d..e8fe0fa 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotCreateOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotCreateOperationsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ICustomChatbotCreateOperationsClient : global::System.I
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotDeleteOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotDeleteOperationsClient.g.cs
index ff781be..a83423d 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotDeleteOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotDeleteOperationsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ICustomChatbotDeleteOperationsClient : global::System.I
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotInfoOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotInfoOperationsClient.g.cs
index 5a02510..d73cb54 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotInfoOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotInfoOperationsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ICustomChatbotInfoOperationsClient : global::System.IDi
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotQueryOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotQueryOperationsClient.g.cs
index 966cf51..2553b88 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotQueryOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotQueryOperationsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ICustomChatbotQueryOperationsClient : global::System.ID
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotUpdateOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotUpdateOperationsClient.g.cs
index 50cbd8c..61d75c5 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotUpdateOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotUpdateOperationsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ICustomChatbotUpdateOperationsClient : global::System.I
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotUploadOperationsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotUploadOperationsClient.g.cs
index acd0fe4..05ad18d 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotUploadOperationsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ICustomChatbotUploadOperationsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ICustomChatbotUploadOperationsClient : global::System.I
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ICustomDocumentParsingAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ICustomDocumentParsingAsyncClient.g.cs
index ac9a79c..a1b02d6 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ICustomDocumentParsingAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ICustomDocumentParsingAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ICustomDocumentParsingAsyncClient : global::System.IDis
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IDataExtractionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IDataExtractionClient.g.cs
index 3d3044a..15b79e1 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IDataExtractionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IDataExtractionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IDataExtractionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IDeepfakeDetectionAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IDeepfakeDetectionAsyncClient.g.cs
index 5196b0a..ff5323f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IDeepfakeDetectionAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IDeepfakeDetectionAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IDeepfakeDetectionAsyncClient : global::System.IDisposa
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IDeepfakeDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IDeepfakeDetectionClient.g.cs
index 9f503b2..449ce9a 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IDeepfakeDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IDeepfakeDetectionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IDeepfakeDetectionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IDocumentTranslationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IDocumentTranslationClient.g.cs
index 70f917f..890a4ac 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IDocumentTranslationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IDocumentTranslationClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IDocumentTranslationClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IEdenAIClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IEdenAIClient.g.cs
index 04bbcff..02430cb 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IEdenAIClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IEdenAIClient.g.cs
@@ -37,7 +37,7 @@ public partial interface IEdenAIClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.IEmbeddingsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IEmbeddingsClient.g.cs
index 19a75ec..a9b6e87 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IEmbeddingsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IEmbeddingsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IEmbeddingsClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IEmotionDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IEmotionDetectionClient.g.cs
index 1a59505..a7f7535 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IEmotionDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IEmotionDetectionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IEmotionDetectionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IEnabledFeaturesClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IEnabledFeaturesClient.g.cs
index a395cd2..49c1fe2 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IEnabledFeaturesClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IEnabledFeaturesClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IEnabledFeaturesClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IEntitySentimentClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IEntitySentimentClient.g.cs
index 644beb8..f5e1dbb 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IEntitySentimentClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IEntitySentimentClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IEntitySentimentClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IExecutionsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IExecutionsClient.g.cs
index a408d07..e1b8d24 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IExecutionsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IExecutionsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IExecutionsClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IExplicitContentClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IExplicitContentClient.g.cs
index 742829c..15a3a1f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IExplicitContentClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IExplicitContentClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IExplicitContentClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IExplicitContentDetectionAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IExplicitContentDetectionAsyncClient.g.cs
index e4d1a8c..297cb85 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IExplicitContentDetectionAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IExplicitContentDetectionAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IExplicitContentDetectionAsyncClient : global::System.I
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IFaceCompareClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IFaceCompareClient.g.cs
index 5ec21d6..a71015f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IFaceCompareClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IFaceCompareClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IFaceCompareClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IFaceDetectionAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IFaceDetectionAsyncClient.g.cs
index d82295c..dcfb14c 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IFaceDetectionAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IFaceDetectionAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IFaceDetectionAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IFaceDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IFaceDetectionClient.g.cs
index 9b509ad..34900d7 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IFaceDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IFaceDetectionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IFaceDetectionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IFaceRecognitionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IFaceRecognitionClient.g.cs
index b797ecb..f6c7788 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IFaceRecognitionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IFaceRecognitionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IFaceRecognitionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IFinancialParserClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IFinancialParserClient.g.cs
index 629ee46..a8dd799 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IFinancialParserClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IFinancialParserClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IFinancialParserClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IGenerationAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IGenerationAsyncClient.g.cs
index 3c70659..07be081 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IGenerationAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IGenerationAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IGenerationAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IGenerationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IGenerationClient.g.cs
index fdb3329..d4cc3fa 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IGenerationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IGenerationClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IGenerationClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IIdentityParserClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IIdentityParserClient.g.cs
index 85e803c..01c6805 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IIdentityParserClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IIdentityParserClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IIdentityParserClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IInfosClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IInfosClient.g.cs
index e14116d..6dc537d 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IInfosClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IInfosClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IInfosClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IKeywordExtractionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IKeywordExtractionClient.g.cs
index 88905f0..59908c3 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IKeywordExtractionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IKeywordExtractionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IKeywordExtractionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ILabelDetectionAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ILabelDetectionAsyncClient.g.cs
index 6c357a5..084962b 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ILabelDetectionAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ILabelDetectionAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ILabelDetectionAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ILandmarkDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ILandmarkDetectionClient.g.cs
index 95c9a6d..ceab2bc 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ILandmarkDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ILandmarkDetectionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ILandmarkDetectionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ILanguageDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ILanguageDetectionClient.g.cs
index f1d06f2..b4c6123 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ILanguageDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ILanguageDetectionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ILanguageDetectionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ILogoDetectionAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ILogoDetectionAsyncClient.g.cs
index 1186e90..211806f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ILogoDetectionAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ILogoDetectionAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ILogoDetectionAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ILogoDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ILogoDetectionClient.g.cs
index c18e8ac..e755f97 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ILogoDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ILogoDetectionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ILogoDetectionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IModerationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IModerationClient.g.cs
index 1849bf7..81f699a 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IModerationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IModerationClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IModerationClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.INamedEntityRecognitionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.INamedEntityRecognitionClient.g.cs
index b89dd4c..c0ca4f5 100644
--- a/src/libs/EdenAI/Generated/EdenAI.INamedEntityRecognitionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.INamedEntityRecognitionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface INamedEntityRecognitionClient : global::System.IDisposa
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IObjectDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IObjectDetectionClient.g.cs
index 573f06d..90c0441 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IObjectDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IObjectDetectionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IObjectDetectionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IObjectTrackingAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IObjectTrackingAsyncClient.g.cs
index 27523ea..94e4235 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IObjectTrackingAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IObjectTrackingAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IObjectTrackingAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IOcrAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IOcrAsyncClient.g.cs
index deb834b..8b7ebe0 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IOcrAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IOcrAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IOcrAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IOcrClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IOcrClient.g.cs
index c5e0fb7..8412a4b 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IOcrClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IOcrClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IOcrClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IOcrTablesAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IOcrTablesAsyncClient.g.cs
index b705ca5..6f89c75 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IOcrTablesAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IOcrTablesAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IOcrTablesAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IPersonTrackingAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IPersonTrackingAsyncClient.g.cs
index f539638..013a282 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IPersonTrackingAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IPersonTrackingAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IPersonTrackingAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IPlagiaDetectionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IPlagiaDetectionClient.g.cs
index 6ceaffd..e2a59d2 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IPlagiaDetectionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IPlagiaDetectionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IPlagiaDetectionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IPromptOptimizationClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IPromptOptimizationClient.g.cs
index 02ebcff..4e15d6b 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IPromptOptimizationClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IPromptOptimizationClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IPromptOptimizationClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IPromptsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IPromptsClient.g.cs
index d3dc35d..4100c0c 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IPromptsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IPromptsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IPromptsClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IQuestionAnswerAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IQuestionAnswerAsyncClient.g.cs
index b131486..489586d 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IQuestionAnswerAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IQuestionAnswerAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IQuestionAnswerAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IQuestionAnswerClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IQuestionAnswerClient.g.cs
index d1cb19e..d88997e 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IQuestionAnswerClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IQuestionAnswerClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IQuestionAnswerClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IResourcesClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IResourcesClient.g.cs
index 4aea1bf..8af6e67 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IResourcesClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IResourcesClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IResourcesClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IResumeParserClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IResumeParserClient.g.cs
index 30167e5..808a4ce 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IResumeParserClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IResumeParserClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IResumeParserClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ISearchClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ISearchClient.g.cs
index 75ad486..90dd0c6 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ISearchClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ISearchClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ISearchClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ISentimentAnalysisClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ISentimentAnalysisClient.g.cs
index d19d64f..f188cdf 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ISentimentAnalysisClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ISentimentAnalysisClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ISentimentAnalysisClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IShotChangeDetectionAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IShotChangeDetectionAsyncClient.g.cs
index d6d668b..8df4222 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IShotChangeDetectionAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IShotChangeDetectionAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IShotChangeDetectionAsyncClient : global::System.IDispo
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ISpeechToTextAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ISpeechToTextAsyncClient.g.cs
index d450759..56ecdd1 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ISpeechToTextAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ISpeechToTextAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ISpeechToTextAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ISpellCheckClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ISpellCheckClient.g.cs
index 06216d3..6ed9d5f 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ISpellCheckClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ISpellCheckClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ISpellCheckClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ISummarizeClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ISummarizeClient.g.cs
index d462494..d23576d 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ISummarizeClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ISummarizeClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ISummarizeClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ITextDetectionAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ITextDetectionAsyncClient.g.cs
index c96940d..ee2c348 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ITextDetectionAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ITextDetectionAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ITextDetectionAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ITextToSpeechAsyncClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ITextToSpeechAsyncClient.g.cs
index 9d4394c..b151a5e 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ITextToSpeechAsyncClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ITextToSpeechAsyncClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ITextToSpeechAsyncClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ITextToSpeechClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ITextToSpeechClient.g.cs
index 61c7124..63d35d3 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ITextToSpeechClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ITextToSpeechClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ITextToSpeechClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.ITopicExtractionClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.ITopicExtractionClient.g.cs
index 5e381f9..ee217b8 100644
--- a/src/libs/EdenAI/Generated/EdenAI.ITopicExtractionClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.ITopicExtractionClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ITopicExtractionClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IUserManagementClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IUserManagementClient.g.cs
index 18028ed..472a006 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IUserManagementClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IUserManagementClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IUserManagementClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IWebhookClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IWebhookClient.g.cs
index 25e7748..eac8fda 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IWebhookClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IWebhookClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IWebhookClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IWorkflowsClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IWorkflowsClient.g.cs
index 3e77e99..97efe49 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IWorkflowsClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IWorkflowsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IWorkflowsClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.IdentityParserClient.OcrOcrIdentityParserCreate.g.cs b/src/libs/EdenAI/Generated/EdenAI.IdentityParserClient.OcrOcrIdentityParserCreate.g.cs
index ca1d54a..cfeeaac 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IdentityParserClient.OcrOcrIdentityParserCreate.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IdentityParserClient.OcrOcrIdentityParserCreate.g.cs
@@ -151,7 +151,7 @@ partial void ProcessOcrOcrIdentityParserCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -188,13 +188,13 @@ partial void ProcessOcrOcrIdentityParserCreateResponseContent(
if (ReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerOptions);
+ __value_400 = global::EdenAI.BadRequest.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -226,13 +226,13 @@ partial void ProcessOcrOcrIdentityParserCreateResponseContent(
if (ReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerOptions);
+ __value_500 = global::EdenAI.Error.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -264,13 +264,13 @@ partial void ProcessOcrOcrIdentityParserCreateResponseContent(
if (ReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerOptions);
+ __value_403 = global::EdenAI.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -302,13 +302,13 @@ partial void ProcessOcrOcrIdentityParserCreateResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerOptions);
+ __value_404 = global::EdenAI.NotFoundResponse.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -352,7 +352,7 @@ partial void ProcessOcrOcrIdentityParserCreateResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::EdenAI.OcridentityParserResponseModel.FromJson(__content, JsonSerializerOptions) ??
+ global::EdenAI.OcridentityParserResponseModel.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -382,7 +382,7 @@ partial void ProcessOcrOcrIdentityParserCreateResponseContent(
).ConfigureAwait(false);
return
- await global::EdenAI.OcridentityParserResponseModel.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ await global::EdenAI.OcridentityParserResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.IdentityParserClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.IdentityParserClient.g.cs
index 688e50d..264ba66 100644
--- a/src/libs/EdenAI/Generated/EdenAI.IdentityParserClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.IdentityParserClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class IdentityParserClient : global::EdenAI.IIdentityParse
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.InfosClient.InfoInfoProviderSubfeaturesList.g.cs b/src/libs/EdenAI/Generated/EdenAI.InfosClient.InfoInfoProviderSubfeaturesList.g.cs
index 5c0df86..a81fe0e 100644
--- a/src/libs/EdenAI/Generated/EdenAI.InfosClient.InfoInfoProviderSubfeaturesList.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.InfosClient.InfoInfoProviderSubfeaturesList.g.cs
@@ -159,7 +159,7 @@ partial void ProcessInfoInfoProviderSubfeaturesListResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ??
+ (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -189,7 +189,7 @@ partial void ProcessInfoInfoProviderSubfeaturesListResponseContent(
).ConfigureAwait(false);
return
- await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
+ (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/EdenAI/Generated/EdenAI.InfosClient.g.cs b/src/libs/EdenAI/Generated/EdenAI.InfosClient.g.cs
index b1ee07c..4d6b12d 100644
--- a/src/libs/EdenAI/Generated/EdenAI.InfosClient.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.InfosClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class InfosClient : global::EdenAI.IInfosClient, global::S
///
///
///
- public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::EdenAI.SourceGenerationContext.Default;
///
diff --git a/src/libs/EdenAI/Generated/EdenAI.JsonConverters.OneOf2.g.cs b/src/libs/EdenAI/Generated/EdenAI.JsonConverters.OneOf2.g.cs
index 3352e1c..539f652 100644
--- a/src/libs/EdenAI/Generated/EdenAI.JsonConverters.OneOf2.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.JsonConverters.OneOf2.g.cs
@@ -3,7 +3,7 @@
namespace EdenAI.JsonConverters
{
///
- public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter>
+ public class OneOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2> : global::System.Text.Json.Serialization.JsonConverter>
{
///
public override global::EdenAI.OneOf Read(
@@ -11,7 +11,8 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
@@ -26,7 +27,27 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization
}
var __score0 = 0;
+ {
+ var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options);
+ if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
+ {
+ foreach (var __prop in __ti.Properties)
+ {
+ if (__jsonProps.Contains(__prop.Name)) __score0++;
+ }
+ }
+ }
var __score1 = 0;
+ {
+ var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options);
+ if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
+ {
+ foreach (var __prop in __ti.Properties)
+ {
+ if (__jsonProps.Contains(__prop.Name)) __score1++;
+ }
+ }
+ }
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
@@ -41,7 +62,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization
try
{
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -56,7 +79,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization
try
{
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -72,7 +97,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization
try
{
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -84,7 +111,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization
try
{
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -109,15 +138,20 @@ public override void Write(
global::EdenAI.OneOf value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
if (value.IsValue1)
{
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
}
else if (value.IsValue2)
{
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
}
}
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.JsonConverters.OneOf3.g.cs b/src/libs/EdenAI/Generated/EdenAI.JsonConverters.OneOf3.g.cs
index 82a34c0..7b9aa17 100644
--- a/src/libs/EdenAI/Generated/EdenAI.JsonConverters.OneOf3.g.cs
+++ b/src/libs/EdenAI/Generated/EdenAI.JsonConverters.OneOf3.g.cs
@@ -3,7 +3,7 @@
namespace EdenAI.JsonConverters
{
///
- public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter>
+ public class OneOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T3> : global::System.Text.Json.Serialization.JsonConverter>
{
///
public override global::EdenAI.OneOf Read(
@@ -11,7 +11,8 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
@@ -26,8 +27,38 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa
}
var __score0 = 0;
+ {
+ var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options);
+ if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
+ {
+ foreach (var __prop in __ti.Properties)
+ {
+ if (__jsonProps.Contains(__prop.Name)) __score0++;
+ }
+ }
+ }
var __score1 = 0;
+ {
+ var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options);
+ if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
+ {
+ foreach (var __prop in __ti.Properties)
+ {
+ if (__jsonProps.Contains(__prop.Name)) __score1++;
+ }
+ }
+ }
var __score2 = 0;
+ {
+ var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options);
+ if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
+ {
+ foreach (var __prop in __ti.Properties)
+ {
+ if (__jsonProps.Contains(__prop.Name)) __score2++;
+ }
+ }
+ }
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
@@ -44,7 +75,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa
try
{
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -59,7 +92,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa
try
{
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -74,7 +109,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa
try
{
- value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
+ value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -90,7 +127,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa
try
{
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -102,7 +141,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa
try
{
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -114,7 +155,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa
try
{
- value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
+ value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -141,19 +184,26 @@ public override void Write(
global::EdenAI.OneOf value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
if (value.IsValue1)
{
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
}
else if (value.IsValue2)
{
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
}
else if (value.IsValue3)
{
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo);
}
}
}
diff --git a/src/libs/EdenAI/Generated/EdenAI.JsonSerializerContext.g.cs b/src/libs/EdenAI/Generated/EdenAI.JsonSerializerContext.g.cs
new file mode 100644
index 0000000..6973c28
--- /dev/null
+++ b/src/libs/EdenAI/Generated/EdenAI.JsonSerializerContext.g.cs
@@ -0,0 +1,814 @@
+
+#nullable enable
+
+#pragma warning disable CS0618 // Type or member is obsolete
+#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant
+
+namespace EdenAI
+{
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonSourceGenerationOptions(
+ DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
+ Converters = new global::System.Type[]
+ {
+ typeof(global::EdenAI.JsonConverters.BlankEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.BlankEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.CategoryTypeJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.CategoryTypeNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ChatRoleJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ChatRoleNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.DataTypeEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.DataTypeEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.DbProviderEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.DbProviderEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.DetailTypeEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.DetailTypeEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.DocumentTypeEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.DocumentTypeEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.EmbeddingsProviderEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.EmbeddingsProviderEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.EntitySentimentEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.EntitySentimentEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ExecutionContentCreateStatusEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ExecutionContentCreateStatusEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.FallbackTypeEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.FallbackTypeEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.FinalStatusEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.FinalStatusEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.GeneralSentimentEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.GeneralSentimentEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ImageaiDetectionAiDetectionDataClassPredictionEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ImageaiDetectionAiDetectionDataClassPredictionEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.OptionEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.OptionEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.PredictionB20EnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.PredictionB20EnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.PriceUnitTypeEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.PriceUnitTypeEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ProjectTypeEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ProjectTypeEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ReasoningEffortEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ReasoningEffortEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.RepresentationEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.RepresentationEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.SentimentEbfEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.SentimentEbfEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ServiceTierEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ServiceTierEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.StateEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.StateEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.Status549EnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.Status549EnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.Status889EnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.Status889EnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.SubCategoryTypeJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.SubCategoryTypeNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ThinkingTypeEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ThinkingTypeEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.TokenTypeEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.TokenTypeEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ToolChoiceEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.ToolChoiceEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.TypeDe8EnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.TypeDe8EnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.TypeOfDataEnumJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.TypeOfDataEnumNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.FeatureBatchRetrieveStatusJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.FeatureBatchRetrieveStatusNullableJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.OneOfJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.OneOfJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.OneOfJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.OneOfJsonConverter),
+
+ typeof(global::EdenAI.JsonConverters.UnixTimestampJsonConverter),
+ })]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::EdenAI.JsonSerializerContextTypes))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::EdenAI.AIProject))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::EdenAI.ProjectTypeEnum), TypeInfoPropertyName = "ProjectTypeEnum2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::EdenAI.AddFileRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::EdenAI.DataTypeEnum), TypeInfoPropertyName = "DataTypeEnum2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::EdenAI.AddImageRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::EdenAI.AddTextRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList