Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:@coderabbitai #69

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/libs/DeepInfra/Generated/AnyOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,51 @@
{
return obj is AnyOf<T1, T2> o && Equals(o);
}


public string ToJson(

Check warning on line 214 in src/libs/DeepInfra/Generated/AnyOf.2.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'AnyOf<T1, T2>.ToJson(JsonSerializerContext)'
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]

Check failure on line 225 in src/libs/DeepInfra/Generated/AnyOf.2.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public string ToJson(

Check warning on line 227 in src/libs/DeepInfra/Generated/AnyOf.2.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'AnyOf<T1, T2>.ToJson(JsonSerializerOptions?)'
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::DeepInfra.AnyOf<T1, T2>? FromJson(

Check warning on line 235 in src/libs/DeepInfra/Generated/AnyOf.2.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'AnyOf<T1, T2>.FromJson(string, JsonSerializerContext)'
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::DeepInfra.AnyOf<T1, T2>),
jsonSerializerContext) as global::DeepInfra.AnyOf<T1, T2>?;
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]

Check failure on line 247 in src/libs/DeepInfra/Generated/AnyOf.2.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public static global::DeepInfra.AnyOf<T1, T2>? FromJson(

Check warning on line 249 in src/libs/DeepInfra/Generated/AnyOf.2.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'AnyOf<T1, T2>.FromJson(string, JsonSerializerOptions?)'
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::DeepInfra.AnyOf<T1, T2>>(
json,
jsonSerializerOptions);
}

}
}
46 changes: 46 additions & 0 deletions src/libs/DeepInfra/Generated/AnyOf.4.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,5 +311,51 @@
{
return obj is AnyOf<T1, T2, T3, T4> o && Equals(o);
}


public string ToJson(

Check warning on line 316 in src/libs/DeepInfra/Generated/AnyOf.4.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'AnyOf<T1, T2, T3, T4>.ToJson(JsonSerializerContext)'
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]

Check failure on line 327 in src/libs/DeepInfra/Generated/AnyOf.4.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public string ToJson(

Check warning on line 329 in src/libs/DeepInfra/Generated/AnyOf.4.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'AnyOf<T1, T2, T3, T4>.ToJson(JsonSerializerOptions?)'
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::DeepInfra.AnyOf<T1, T2, T3, T4>? FromJson(

Check warning on line 337 in src/libs/DeepInfra/Generated/AnyOf.4.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'AnyOf<T1, T2, T3, T4>.FromJson(string, JsonSerializerContext)'
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::DeepInfra.AnyOf<T1, T2, T3, T4>),
jsonSerializerContext) as global::DeepInfra.AnyOf<T1, T2, T3, T4>?;
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]

Check failure on line 349 in src/libs/DeepInfra/Generated/AnyOf.4.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public static global::DeepInfra.AnyOf<T1, T2, T3, T4>? FromJson(

Check warning on line 351 in src/libs/DeepInfra/Generated/AnyOf.4.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'AnyOf<T1, T2, T3, T4>.FromJson(string, JsonSerializerOptions?)'
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::DeepInfra.AnyOf<T1, T2, T3, T4>>(
json,
jsonSerializerOptions);
}

}
}
46 changes: 46 additions & 0 deletions src/libs/DeepInfra/Generated/AnyOf.7.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,5 +464,51 @@
{
return obj is AnyOf<T1, T2, T3, T4, T5, T6, T7> o && Equals(o);
}


public string ToJson(

Check warning on line 469 in src/libs/DeepInfra/Generated/AnyOf.7.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'AnyOf<T1, T2, T3, T4, T5, T6, T7>.ToJson(JsonSerializerContext)'
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]

Check failure on line 480 in src/libs/DeepInfra/Generated/AnyOf.7.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public string ToJson(

Check warning on line 482 in src/libs/DeepInfra/Generated/AnyOf.7.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'AnyOf<T1, T2, T3, T4, T5, T6, T7>.ToJson(JsonSerializerOptions?)'
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::DeepInfra.AnyOf<T1, T2, T3, T4, T5, T6, T7>? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::DeepInfra.AnyOf<T1, T2, T3, T4, T5, T6, T7>),
jsonSerializerContext) as global::DeepInfra.AnyOf<T1, T2, T3, T4, T5, T6, T7>?;
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]

Check failure on line 502 in src/libs/DeepInfra/Generated/AnyOf.7.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public static global::DeepInfra.AnyOf<T1, T2, T3, T4, T5, T6, T7>? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::DeepInfra.AnyOf<T1, T2, T3, T4, T5, T6, T7>>(
json,
jsonSerializerOptions);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ partial void ProcessAccountEmailValuesResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.EmailsOut), JsonSerializerContext) as global::DeepInfra.EmailsOut ??
global::DeepInfra.EmailsOut.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ partial void ProcessAccountRateLimitResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.RateLimitOut), JsonSerializerContext) as global::DeepInfra.RateLimitOut ??
global::DeepInfra.RateLimitOut.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ partial void ProcessAccountSetUsernameResponseContent(
httpRequest.Headers.Add(_authorization.Name, _authorization.Value);
}
}
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ partial void ProcessAccountUpdateDetailsResponseContent(
httpRequest.Headers.Add(_authorization.Name, _authorization.Value);
}
}
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ partial void ProcessBillingPortalResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.BillingPortalOut), JsonSerializerContext) as global::DeepInfra.BillingPortalOut ??
global::DeepInfra.BillingPortalOut.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ partial void ProcessCreateApiTokenResponseContent(
httpRequest.Headers.Add(_authorization.Name, _authorization.Value);
}
}
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -110,7 +110,7 @@ partial void ProcessCreateApiTokenResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.ApiToken), JsonSerializerContext) as global::DeepInfra.ApiToken ??
global::DeepInfra.ApiToken.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ partial void ProcessCreateVoiceResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.Voice), JsonSerializerContext) as global::DeepInfra.Voice ??
global::DeepInfra.Voice.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ partial void ProcessDeepstartApplyResponseContent(
httpRequest.Headers.Add(_authorization.Name, _authorization.Value);
}
}
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -116,7 +116,7 @@ partial void ProcessDeepstartApplyResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.DeepStartApplicationOut), JsonSerializerContext) as global::DeepInfra.DeepStartApplicationOut ??
global::DeepInfra.DeepStartApplicationOut.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ partial void ProcessDeleteAccountResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.Me), JsonSerializerContext) as global::DeepInfra.Me ??
global::DeepInfra.Me.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ partial void ProcessDeployCreateResponseContent(
httpRequest.Headers.Add(_authorization.Name, _authorization.Value);
}
}
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -110,7 +110,7 @@ partial void ProcessDeployCreateResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.DeployResult), JsonSerializerContext) as global::DeepInfra.DeployResult ??
global::DeepInfra.DeployResult.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ partial void ProcessDeployCreateHfResponseContent(
httpRequest.Headers.Add(_authorization.Name, _authorization.Value);
}
}
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -110,7 +110,7 @@ partial void ProcessDeployCreateHfResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.DeployResult), JsonSerializerContext) as global::DeepInfra.DeployResult ??
global::DeepInfra.DeployResult.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ partial void ProcessDeployCreateLlmResponseContent(
httpRequest.Headers.Add(_authorization.Name, _authorization.Value);
}
}
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -110,7 +110,7 @@ partial void ProcessDeployCreateLlmResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.DeploymentOut), JsonSerializerContext) as global::DeepInfra.DeploymentOut ??
global::DeepInfra.DeploymentOut.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ partial void ProcessDeployDeleteResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.DeployDelete), JsonSerializerContext) as global::DeepInfra.DeployDelete ??
global::DeepInfra.DeployDelete.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ partial void ProcessDeployDetailedStatsResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.DetailedDeploymentStatsOut), JsonSerializerContext) as global::DeepInfra.DetailedDeploymentStatsOut ??
global::DeepInfra.DetailedDeploymentStatsOut.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ partial void ProcessDeployGpuAvailabilityResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.DeployGPUAvailability), JsonSerializerContext) as global::DeepInfra.DeployGPUAvailability ??
global::DeepInfra.DeployGPUAvailability.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ partial void ProcessDeployStatsResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::DeepInfra.DeploymentStatsOut), JsonSerializerContext) as global::DeepInfra.DeploymentStatsOut ??
global::DeepInfra.DeploymentStatsOut.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Loading