From dd38410cff5fd73c8b26ac4917db4393f52a7ec5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 20 Apr 2026 08:20:52 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ackageGenerationsClient.GetGeneration.g.cs | 2 +- ...nerationsClient.ListGenerationContent.g.cs | 19 + ...Converters.GenerationContentDataInput.g.cs | 136 +++ ...erters.GenerationResponseDataApiType.g.cs} | 14 +- ...enerationResponseDataApiTypeNullable.g.cs} | 14 +- .../OpenRouter.JsonSerializerContext.g.cs | 22 +- ...OpenRouter.JsonSerializerContextTypes.g.cs | 860 +++++++++--------- ...er.Models.GenerationContentData.Json.g.cs} | 22 +- ...enRouter.Models.GenerationContentData.g.cs | 59 ++ ...odels.GenerationContentDataInput.Json.g.cs | 92 ++ ...ter.Models.GenerationContentDataInput.g.cs | 221 +++++ ...dels.GenerationContentDataInput0.Json.g.cs | 92 ++ ...er.Models.GenerationContentDataInput0.g.cs | 44 + ...dels.GenerationContentDataInput1.Json.g.cs | 92 ++ ...er.Models.GenerationContentDataInput1.g.cs | 44 + ...nerationContentDataInput1Message.Json.g.cs | 92 ++ ...ls.GenerationContentDataInput1Message.g.cs | 18 + ...els.GenerationContentDataOutput.Json.g.cs} | 22 +- ...er.Models.GenerationContentDataOutput.g.cs | 56 ++ ...Models.GenerationContentResponse.Json.g.cs | 92 ++ ...uter.Models.GenerationContentResponse.g.cs | 46 + ...ntentApplicationJsonSchemaDataApiType.g.cs | 69 -- ...Router.Models.GenerationResponse.Json.g.cs | 92 ++ ...OpenRouter.Models.GenerationResponse.g.cs} | 14 +- ...er.Models.GenerationResponseData.Json.g.cs | 92 ++ ...Router.Models.GenerationResponseData.g.cs} | 16 +- ....Models.GenerationResponseDataApiType.g.cs | 69 ++ ...ackageGenerationsClient.GetGeneration.g.cs | 6 +- ...nerationsClient.ListGenerationContent.g.cs | 612 +++++++++++++ src/libs/OpenRouter/openapi.yaml | 206 ++++- 30 files changed, 2677 insertions(+), 558 deletions(-) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageGenerationsClient.ListGenerationContent.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationContentDataInput.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs => OpenRouter.JsonConverters.GenerationResponseDataApiType.g.cs} (63%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeNullable.g.cs => OpenRouter.JsonConverters.GenerationResponseDataApiTypeNullable.g.cs} (65%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.GenerationsGetGenerationResponse200.Json.g.cs => OpenRouter.Models.GenerationContentData.Json.g.cs} (85%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentData.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput0.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput0.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1Message.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1Message.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaData.Json.g.cs => OpenRouter.Models.GenerationContentDataOutput.Json.g.cs} (83%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataOutput.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentResponse.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentResponse.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponse.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.GenerationsGetGenerationResponse200.g.cs => OpenRouter.Models.GenerationResponse.g.cs} (72%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaData.g.cs => OpenRouter.Models.GenerationResponseData.g.cs} (96%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseDataApiType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageGenerationsClient.ListGenerationContent.g.cs diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageGenerationsClient.GetGeneration.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageGenerationsClient.GetGeneration.g.cs index 5637029a..5cf9ebcf 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageGenerationsClient.GetGeneration.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageGenerationsClient.GetGeneration.g.cs @@ -11,7 +11,7 @@ public partial interface ISubpackageGenerationsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetGenerationAsync( + global::System.Threading.Tasks.Task GetGenerationAsync( string id, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageGenerationsClient.ListGenerationContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageGenerationsClient.ListGenerationContent.g.cs new file mode 100644 index 00000000..88f2de79 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageGenerationsClient.ListGenerationContent.g.cs @@ -0,0 +1,19 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageGenerationsClient + { + /// + /// Get stored prompt and completion content for a generation + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListGenerationContentAsync( + string id, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationContentDataInput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationContentDataInput.g.cs new file mode 100644 index 00000000..3ba9ad0d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationContentDataInput.g.cs @@ -0,0 +1,136 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class GenerationContentDataInputJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GenerationContentDataInput Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions 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); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("prompt")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("messages")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::OpenRouter.GenerationContentDataInput0? generationContentDataInput0 = default; + global::OpenRouter.GenerationContentDataInput1? generationContentDataInput1 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GenerationContentDataInput0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GenerationContentDataInput0).Name}"); + generationContentDataInput0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GenerationContentDataInput1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GenerationContentDataInput1).Name}"); + generationContentDataInput1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (generationContentDataInput0 == null && generationContentDataInput1 == null) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GenerationContentDataInput0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GenerationContentDataInput0).Name}"); + generationContentDataInput0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GenerationContentDataInput1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GenerationContentDataInput1).Name}"); + generationContentDataInput1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.GenerationContentDataInput( + generationContentDataInput0, + + generationContentDataInput1 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GenerationContentDataInput value, + global::System.Text.Json.JsonSerializerOptions 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.IsGenerationContentDataInput0) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GenerationContentDataInput0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GenerationContentDataInput0).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.GenerationContentDataInput0!, typeInfo); + } + else if (value.IsGenerationContentDataInput1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GenerationContentDataInput1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GenerationContentDataInput1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.GenerationContentDataInput1!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationResponseDataApiType.g.cs similarity index 63% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationResponseDataApiType.g.cs index 238dccf3..cde04eca 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationResponseDataApiType.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GenerationResponseDataApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType Read( + public override global::OpenRouter.GenerationResponseDataApiType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class GenerationGetResponsesContentApplicationJsonSchemaDataApiTyp var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.GenerationResponseDataApiTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class GenerationGetResponsesContentApplicationJsonSchemaDataApiTyp case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType)numValue; + return (global::OpenRouter.GenerationResponseDataApiType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType); + return default(global::OpenRouter.GenerationResponseDataApiType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class GenerationGetResponsesContentApplicationJsonSchemaDataApiTyp /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType value, + global::OpenRouter.GenerationResponseDataApiType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.GenerationResponseDataApiTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationResponseDataApiTypeNullable.g.cs similarity index 65% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationResponseDataApiTypeNullable.g.cs index d2218f4b..6b81d05f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GenerationResponseDataApiTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GenerationResponseDataApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType? Read( + public override global::OpenRouter.GenerationResponseDataApiType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class GenerationGetResponsesContentApplicationJsonSchemaDataApiTyp var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeExtensions.ToEnum(stringValue); + return global::OpenRouter.GenerationResponseDataApiTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class GenerationGetResponsesContentApplicationJsonSchemaDataApiTyp case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType)numValue; + return (global::OpenRouter.GenerationResponseDataApiType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType?); + return default(global::OpenRouter.GenerationResponseDataApiType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class GenerationGetResponsesContentApplicationJsonSchemaDataApiTyp /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType? value, + global::OpenRouter.GenerationResponseDataApiType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.GenerationResponseDataApiTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index b82242e2..af96a68c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -893,9 +893,9 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.InstructType2NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.GenerationResponseDataApiTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GenerationResponseDataApiTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ProviderResponseProviderNameJsonConverter), @@ -1587,6 +1587,8 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbeddingJsonConverter), + typeof(global::OpenRouter.JsonConverters.GenerationContentDataInputJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0TriggerJsonConverter), @@ -1675,7 +1677,7 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), @@ -2358,13 +2360,19 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListEndpointsResponseArchitecture))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListEndpointsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EndpointsListEndpointsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType), TypeInfoPropertyName = "GenerationGetResponsesContentApplicationJsonSchemaDataApiType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataApiType), TypeInfoPropertyName = "GenerationResponseDataApiType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseProviderName), TypeInfoPropertyName = "ProviderResponseProviderName2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfGenerationGetResponsesContentApplicationJsonSchemaDataApiTypeObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfGenerationResponseDataApiTypeObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationsGetGenerationResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput0))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput), TypeInfoPropertyName = "GenerationContentDataInput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GuardrailInterval), TypeInfoPropertyName = "GuardrailInterval2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Guardrail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index 7eb61027..8b51fbe4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -2636,7 +2636,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType? Type652 { get; set; } + public global::OpenRouter.GenerationResponseDataApiType? Type652 { get; set; } /// /// /// @@ -2648,11 +2648,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData? Type655 { get; set; } + public global::OpenRouter.GenerationResponseData? Type655 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type656 { get; set; } + public global::OpenRouter.OneOf? Type656 { get; set; } /// /// /// @@ -2660,1663 +2660,1687 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.GenerationsGetGenerationResponse200? Type658 { get; set; } + public global::OpenRouter.GenerationResponse? Type658 { get; set; } /// /// /// - public global::OpenRouter.GuardrailInterval? Type659 { get; set; } + public global::OpenRouter.GenerationContentDataInput0? Type659 { get; set; } /// /// /// - public global::OpenRouter.Guardrail? Type660 { get; set; } + public global::OpenRouter.GenerationContentDataInput1? Type660 { get; set; } /// /// /// - public global::System.Guid? Type661 { get; set; } + public global::OpenRouter.GenerationContentDataInput? Type661 { get; set; } /// /// /// - public global::OpenRouter.ListGuardrailsResponse? Type662 { get; set; } + public global::OpenRouter.GenerationContentDataOutput? Type662 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type663 { get; set; } + public global::OpenRouter.GenerationContentData? Type663 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailRequest? Type664 { get; set; } + public global::OpenRouter.GenerationContentResponse? Type664 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponseData? Type665 { get; set; } + public global::OpenRouter.GuardrailInterval? Type665 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponse? Type666 { get; set; } + public global::OpenRouter.Guardrail? Type666 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponseData? Type667 { get; set; } + public global::System.Guid? Type667 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponse? Type668 { get; set; } + public global::OpenRouter.ListGuardrailsResponse? Type668 { get; set; } /// /// /// - public global::OpenRouter.DeleteGuardrailResponse? Type669 { get; set; } + public global::System.Collections.Generic.IList? Type669 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailRequest? Type670 { get; set; } + public global::OpenRouter.CreateGuardrailRequest? Type670 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponseData? Type671 { get; set; } + public global::OpenRouter.CreateGuardrailResponseData? Type671 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponse? Type672 { get; set; } + public global::OpenRouter.CreateGuardrailResponse? Type672 { get; set; } /// /// /// - public global::OpenRouter.KeyAssignment? Type673 { get; set; } + public global::OpenRouter.GetGuardrailResponseData? Type673 { get; set; } /// /// /// - public global::OpenRouter.ListKeyAssignmentsResponse? Type674 { get; set; } + public global::OpenRouter.GetGuardrailResponse? Type674 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type675 { get; set; } + public global::OpenRouter.DeleteGuardrailResponse? Type675 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysRequest? Type676 { get; set; } + public global::OpenRouter.UpdateGuardrailRequest? Type676 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysResponse? Type677 { get; set; } + public global::OpenRouter.UpdateGuardrailResponseData? Type677 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysRequest? Type678 { get; set; } + public global::OpenRouter.UpdateGuardrailResponse? Type678 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysResponse? Type679 { get; set; } + public global::OpenRouter.KeyAssignment? Type679 { get; set; } /// /// /// - public global::OpenRouter.MemberAssignment? Type680 { get; set; } + public global::OpenRouter.ListKeyAssignmentsResponse? Type680 { get; set; } /// /// /// - public global::OpenRouter.ListMemberAssignmentsResponse? Type681 { get; set; } + public global::System.Collections.Generic.IList? Type681 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type682 { get; set; } + public global::OpenRouter.BulkAssignKeysRequest? Type682 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersRequest? Type683 { get; set; } + public global::OpenRouter.BulkAssignKeysResponse? Type683 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersResponse? Type684 { get; set; } + public global::OpenRouter.BulkUnassignKeysRequest? Type684 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersRequest? Type685 { get; set; } + public global::OpenRouter.BulkUnassignKeysResponse? Type685 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersResponse? Type686 { get; set; } + public global::OpenRouter.MemberAssignment? Type686 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type687 { get; set; } + public global::OpenRouter.ListMemberAssignmentsResponse? Type687 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type688 { get; set; } + public global::System.Collections.Generic.IList? Type688 { get; set; } /// /// /// - public global::System.DateTime? Type689 { get; set; } + public global::OpenRouter.BulkAssignMembersRequest? Type689 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type690 { get; set; } + public global::OpenRouter.BulkAssignMembersResponse? Type690 { get; set; } /// /// /// - public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type691 { get; set; } + public global::OpenRouter.BulkUnassignMembersRequest? Type691 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysListResponse200? Type692 { get; set; } + public global::OpenRouter.BulkUnassignMembersResponse? Type692 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type693 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type693 { get; set; } /// /// /// - public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type694 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type694 { get; set; } /// /// /// - public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type695 { get; set; } + public global::System.DateTime? Type695 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysCreateKeysResponse201? Type696 { get; set; } + public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type696 { get; set; } /// /// /// - public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type697 { get; set; } + public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type697 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetKeyResponse200? Type698 { get; set; } + public global::OpenRouter.ApiKeysListResponse200? Type698 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type699 { get; set; } + public global::System.Collections.Generic.IList? Type699 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type700 { get; set; } + public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type700 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type701 { get; set; } + public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type701 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type702 { get; set; } + public global::OpenRouter.ApiKeysCreateKeysResponse201? Type702 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheControlDirective? Type703 { get; set; } + public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type703 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type704 { get; set; } + public global::OpenRouter.ApiKeysGetKeyResponse200? Type704 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type705 { get; set; } + public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type705 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type706 { get; set; } + public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type706 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeepType? Type707 { get; set; } + public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type707 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeep? Type708 { get; set; } + public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type708 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensTriggerType? Type709 { get; set; } + public global::OpenRouter.AnthropicCacheControlDirective? Type709 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensTrigger? Type710 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type710 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesTriggerType? Type711 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type711 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesTrigger? Type712 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type712 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type713 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeepType? Type713 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type714 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeep? Type714 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type715 { get; set; } + public global::OpenRouter.AnthropicInputTokensTriggerType? Type715 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurnsType? Type716 { get; set; } + public global::OpenRouter.AnthropicInputTokensTrigger? Type716 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurns? Type717 { get; set; } + public global::OpenRouter.AnthropicToolUsesTriggerType? Type717 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type718 { get; set; } + public global::OpenRouter.AnthropicToolUsesTrigger? Type718 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type719 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type719 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type720 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type720 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type721 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type721 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type722 { get; set; } + public global::OpenRouter.AnthropicThinkingTurnsType? Type722 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type723 { get; set; } + public global::OpenRouter.AnthropicThinkingTurns? Type723 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type724 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type724 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type725 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type725 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type726 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type726 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type727 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type727 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagement? Type728 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type728 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type729 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type729 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocationParamType? Type730 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type730 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocationParam? Type731 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type731 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocationParamType? Type732 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type732 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocationParam? Type733 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type733 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocationParamType? Type734 { get; set; } + public global::OpenRouter.MessagesRequestContextManagement? Type734 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocationParam? Type735 { get; set; } + public global::System.Collections.Generic.IList? Type735 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationWebSearchResultLocationType? Type736 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocationParamType? Type736 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationWebSearchResultLocation? Type737 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocationParam? Type737 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationSearchResultLocationType? Type738 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocationParamType? Type738 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationSearchResultLocation? Type739 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocationParam? Type739 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type740 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocationParamType? Type740 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamType? Type741 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocationParam? Type741 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParam? Type742 { get; set; } + public global::OpenRouter.AnthropicCitationWebSearchResultLocationType? Type742 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type743 { get; set; } + public global::OpenRouter.AnthropicCitationWebSearchResultLocation? Type743 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageMimeType? Type744 { get; set; } + public global::OpenRouter.AnthropicCitationSearchResultLocationType? Type744 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64ImageSourceType? Type745 { get; set; } + public global::OpenRouter.AnthropicCitationSearchResultLocation? Type745 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64ImageSource? Type746 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type746 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSourceType? Type747 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamType? Type747 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSource? Type748 { get; set; } + public global::OpenRouter.AnthropicTextBlockParam? Type748 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSource? Type749 { get; set; } + public global::System.Collections.Generic.IList? Type749 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamType? Type750 { get; set; } + public global::OpenRouter.AnthropicImageMimeType? Type750 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParam? Type751 { get; set; } + public global::OpenRouter.AnthropicBase64ImageSourceType? Type751 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type752 { get; set; } + public global::OpenRouter.AnthropicBase64ImageSource? Type752 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type753 { get; set; } + public global::OpenRouter.AnthropicUrlImageSourceType? Type753 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceType? Type754 { get; set; } + public global::OpenRouter.AnthropicUrlImageSource? Type754 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSource? Type755 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSource? Type755 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type756 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamType? Type756 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceType? Type757 { get; set; } + public global::OpenRouter.AnthropicImageBlockParam? Type757 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSource? Type758 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type758 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type759 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type759 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type760 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceType? Type760 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type761 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSource? Type761 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type762 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type762 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type763 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceType? Type763 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSourceType? Type764 { get; set; } + public global::OpenRouter.AnthropicPlainTextSource? Type764 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSource? Type765 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type765 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource? Type766 { get; set; } + public global::System.Collections.Generic.IList? Type766 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamType? Type767 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type767 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParam? Type768 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type768 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type769 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type769 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type770 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSourceType? Type770 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type771 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSource? Type771 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type772 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource? Type772 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type773 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamType? Type773 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type774 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParam? Type774 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamType? Type775 { get; set; } + public global::OpenRouter.OneOf? Type775 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParam? Type776 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type776 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type777 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type777 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type778 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type778 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type779 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type779 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type780 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type780 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type781 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamType? Type781 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type782 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParam? Type782 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type783 { get; set; } + public global::System.Collections.Generic.IList? Type783 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type784 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type784 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type785 { get; set; } + public global::System.Collections.Generic.IList? Type785 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type786 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type786 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolName? Type787 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type787 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type788 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type788 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type789 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type789 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type790 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type790 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type791 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type791 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type792 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type792 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type793 { get; set; } + public global::OpenRouter.AnthropicServerToolName? Type793 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type794 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type794 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type795 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type795 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type796 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type796 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type797 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type797 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type798 { get; set; } + public global::System.Collections.Generic.IList? Type798 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type799 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type799 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type800 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type800 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type801 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type801 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type802 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type802 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContent? Type803 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type803 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamRole? Type804 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type804 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParam? Type805 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type805 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestMetadata? Type806 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type806 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigEffort? Type807 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type807 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormatType? Type808 { get; set; } + public global::System.Collections.Generic.IList? Type808 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormat? Type809 { get; set; } + public global::OpenRouter.MessagesMessageParamContent? Type809 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type810 { get; set; } + public global::OpenRouter.MessagesMessageParamRole? Type810 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudget? Type811 { get; set; } + public global::OpenRouter.MessagesMessageParam? Type811 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfig? Type812 { get; set; } + public global::OpenRouter.MessagesRequestMetadata? Type812 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type813 { get; set; } + public global::OpenRouter.MessagesOutputConfigEffort? Type813 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type814 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormatType? Type814 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type815 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormat? Type815 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItems? Type816 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type816 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestServiceTier? Type817 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudget? Type817 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSpeed? Type818 { get; set; } + public global::OpenRouter.MessagesOutputConfig? Type818 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSystem? Type819 { get; set; } + public global::OpenRouter.OneOf? Type819 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingDisplay? Type820 { get; set; } + public global::OpenRouter.OneOf? Type820 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type821 { get; set; } + public global::OpenRouter.OneOf? Type821 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking0? Type822 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItems? Type822 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type823 { get; set; } + public global::OpenRouter.MessagesRequestServiceTier? Type823 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking1? Type824 { get; set; } + public global::OpenRouter.MessagesRequestSpeed? Type824 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type825 { get; set; } + public global::OpenRouter.MessagesRequestSystem? Type825 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking2? Type826 { get; set; } + public global::OpenRouter.AnthropicThinkingDisplay? Type826 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking? Type827 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type827 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type828 { get; set; } + public global::OpenRouter.MessagesRequestThinking0? Type828 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice0? Type829 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type829 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type830 { get; set; } + public global::OpenRouter.MessagesRequestThinking1? Type830 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice1? Type831 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type831 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type832 { get; set; } + public global::OpenRouter.MessagesRequestThinking2? Type832 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice2? Type833 { get; set; } + public global::OpenRouter.MessagesRequestThinking? Type833 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type834 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type834 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice3? Type835 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice0? Type835 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice? Type836 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type836 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type837 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice1? Type837 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type838 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type838 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems0? Type839 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice2? Type839 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type840 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type840 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type841 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice3? Type841 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems1? Type842 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice? Type842 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type843 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type843 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type844 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type844 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems2? Type845 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems0? Type845 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type846 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type846 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type847 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type847 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type848 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems1? Type848 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type849 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type849 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems3? Type850 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type850 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4AllowedCallersItems? Type851 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems2? Type851 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type852 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type852 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type853 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type853 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems4? Type854 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type854 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type855 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type855 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems? Type856 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems3? Type856 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type857 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4AllowedCallersItems? Type857 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type858 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type858 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type859 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type859 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type860 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems4? Type860 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type861 { get; set; } + public global::System.Collections.Generic.IList? Type861 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainer? Type862 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems? Type862 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocationType? Type863 { get; set; } + public global::OpenRouter.MessagesRequest? Type863 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocation? Type864 { get; set; } + public global::OpenRouter.OneOf? Type864 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocationType? Type865 { get; set; } + public global::System.Collections.Generic.IList? Type865 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocation? Type866 { get; set; } + public global::System.Collections.Generic.IList? Type866 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocationType? Type867 { get; set; } + public global::System.Collections.Generic.IList? Type867 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocation? Type868 { get; set; } + public global::OpenRouter.AnthropicContainer? Type868 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitation? Type869 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocationType? Type869 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockType? Type870 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocation? Type870 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlock? Type871 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocationType? Type871 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type872 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocation? Type872 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDirectCallerType? Type873 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocationType? Type873 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDirectCaller? Type874 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocation? Type874 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20250825CallerType? Type875 { get; set; } + public global::OpenRouter.AnthropicTextCitation? Type875 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20250825Caller? Type876 { get; set; } + public global::OpenRouter.AnthropicTextBlockType? Type876 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20260120CallerType? Type877 { get; set; } + public global::OpenRouter.AnthropicTextBlock? Type877 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20260120Caller? Type878 { get; set; } + public global::System.Collections.Generic.IList? Type878 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCaller? Type879 { get; set; } + public global::OpenRouter.AnthropicDirectCallerType? Type879 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUseBlockType? Type880 { get; set; } + public global::OpenRouter.AnthropicDirectCaller? Type880 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUseBlock? Type881 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20250825CallerType? Type881 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingBlockType? Type882 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20250825Caller? Type882 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingBlock? Type883 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20260120CallerType? Type883 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRedactedThinkingBlockType? Type884 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20260120Caller? Type884 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRedactedThinkingBlock? Type885 { get; set; } + public global::OpenRouter.AnthropicCaller? Type885 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUseBlockType? Type886 { get; set; } + public global::OpenRouter.AnthropicToolUseBlockType? Type886 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUseBlock? Type887 { get; set; } + public global::OpenRouter.AnthropicToolUseBlock? Type887 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultType? Type888 { get; set; } + public global::OpenRouter.AnthropicThinkingBlockType? Type888 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResult? Type889 { get; set; } + public global::OpenRouter.AnthropicThinkingBlock? Type889 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type890 { get; set; } + public global::OpenRouter.AnthropicRedactedThinkingBlockType? Type890 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type891 { get; set; } + public global::OpenRouter.AnthropicRedactedThinkingBlock? Type891 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type892 { get; set; } + public global::OpenRouter.AnthropicServerToolUseBlockType? Type892 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultError? Type893 { get; set; } + public global::OpenRouter.AnthropicServerToolUseBlock? Type893 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultContent? Type894 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultType? Type894 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultType? Type895 { get; set; } + public global::OpenRouter.AnthropicWebSearchResult? Type895 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResult? Type896 { get; set; } + public global::System.Collections.Generic.IList? Type896 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type897 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type897 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type898 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type898 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultError? Type899 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultError? Type899 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationsConfig? Type900 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultContent? Type900 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockSource? Type901 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultType? Type901 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockType? Type902 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResult? Type902 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlock? Type903 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type903 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchBlockType? Type904 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type904 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchBlock? Type905 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultError? Type905 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContent? Type906 { get; set; } + public global::OpenRouter.AnthropicCitationsConfig? Type906 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultType? Type907 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockSource? Type907 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResult? Type908 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockType? Type908 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolErrorCode? Type909 { get; set; } + public global::OpenRouter.AnthropicDocumentBlock? Type909 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type910 { get; set; } + public global::OpenRouter.AnthropicWebFetchBlockType? Type910 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultError? Type911 { get; set; } + public global::OpenRouter.AnthropicWebFetchBlock? Type911 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutputType? Type912 { get; set; } + public global::OpenRouter.AnthropicWebFetchContent? Type912 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutput? Type913 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultType? Type913 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResultType? Type914 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResult? Type914 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResult? Type915 { get; set; } + public global::OpenRouter.AnthropicServerToolErrorCode? Type915 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type916 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type916 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type917 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultError? Type917 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResult? Type918 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutputType? Type918 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContent? Type919 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutput? Type919 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultType? Type920 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResultType? Type920 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResult? Type921 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResult? Type921 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type922 { get; set; } + public global::System.Collections.Generic.IList? Type922 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type923 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type923 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultError? Type924 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResult? Type924 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type925 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContent? Type925 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type926 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultType? Type926 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type927 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResult? Type927 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResult? Type928 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type928 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type929 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type929 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContent? Type930 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultError? Type930 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultType? Type931 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type931 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResult? Type932 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type932 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type933 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type933 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type934 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResult? Type934 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultError? Type935 { get; set; } + public global::System.Collections.Generic.IList? Type935 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type936 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContent? Type936 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type937 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultType? Type937 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResult? Type938 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResult? Type938 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type939 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type939 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResult? Type940 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type940 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type941 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultError? Type941 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResult? Type942 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type942 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type943 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type943 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultType? Type944 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResult? Type944 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResult? Type945 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type945 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultErrorType? Type946 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResult? Type946 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultError? Type947 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type947 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReferenceType? Type948 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResult? Type948 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReference? Type949 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type949 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultType? Type950 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultType? Type950 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResult? Type951 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResult? Type951 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type952 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultErrorType? Type952 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContent? Type953 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultError? Type953 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchToolResultType? Type954 { get; set; } + public global::OpenRouter.AnthropicToolReferenceType? Type954 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchToolResult? Type955 { get; set; } + public global::OpenRouter.AnthropicToolReference? Type955 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainerUploadType? Type956 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultType? Type956 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainerUpload? Type957 { get; set; } + public global::OpenRouter.AnthropicToolSearchResult? Type957 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionBlockType? Type958 { get; set; } + public global::System.Collections.Generic.IList? Type958 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionBlock? Type959 { get; set; } + public global::OpenRouter.AnthropicToolSearchContent? Type959 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlock? Type960 { get; set; } + public global::OpenRouter.AnthropicToolSearchToolResultType? Type960 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultRole? Type961 { get; set; } + public global::OpenRouter.AnthropicToolSearchToolResult? Type961 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type962 { get; set; } + public global::OpenRouter.AnthropicContainerUploadType? Type962 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsType? Type963 { get; set; } + public global::OpenRouter.AnthropicContainerUpload? Type963 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetails? Type964 { get; set; } + public global::OpenRouter.AnthropicCompactionBlockType? Type964 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type965 { get; set; } + public global::OpenRouter.AnthropicCompactionBlock? Type965 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicStopReason? Type966 { get; set; } + public global::OpenRouter.ORAnthropicContentBlock? Type966 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultType? Type967 { get; set; } + public global::OpenRouter.BaseMessagesResultRole? Type967 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheCreation? Type968 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type968 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUsage? Type969 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsType? Type969 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServiceTier? Type970 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetails? Type970 { get; set; } /// /// /// - public global::OpenRouter.AnthropicIterationCacheCreation? Type971 { get; set; } + public global::OpenRouter.OneOf? Type971 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIterationType? Type972 { get; set; } + public global::OpenRouter.ORAnthropicStopReason? Type972 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIteration? Type973 { get; set; } + public global::OpenRouter.BaseMessagesResultType? Type973 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIterationType? Type974 { get; set; } + public global::OpenRouter.AnthropicCacheCreation? Type974 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIteration? Type975 { get; set; } + public global::OpenRouter.AnthropicServerToolUsage? Type975 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUnknownUsageIteration? Type976 { get; set; } + public global::OpenRouter.AnthropicServiceTier? Type976 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUsageIteration? Type977 { get; set; } + public global::OpenRouter.AnthropicIterationCacheCreation? Type977 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSpeed? Type978 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIterationType? Type978 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultUsage? Type979 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIteration? Type979 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type980 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIterationType? Type980 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type981 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIteration? Type981 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagement? Type982 { get; set; } + public global::OpenRouter.AnthropicUnknownUsageIteration? Type982 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type983 { get; set; } + public global::OpenRouter.AnthropicUsageIteration? Type983 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsageCostDetails? Type984 { get; set; } + public global::OpenRouter.AnthropicSpeed? Type984 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsage? Type985 { get; set; } + public global::OpenRouter.BaseMessagesResultUsage? Type985 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type986 { get; set; } + public global::System.Collections.Generic.IList? Type986 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type987 { get; set; } + public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type987 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type988 { get; set; } + public global::OpenRouter.MessagesResultContextManagement? Type988 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type989 { get; set; } + public global::System.Collections.Generic.IList? Type989 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorDetail? Type990 { get; set; } + public global::OpenRouter.MessagesResultUsageCostDetails? Type990 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponseType? Type991 { get; set; } + public global::OpenRouter.MessagesResultUsage? Type991 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponse? Type992 { get; set; } + public global::OpenRouter.OneOf? Type992 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersCategory? Type993 { get; set; } + public global::OpenRouter.MessagesResult? Type993 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type994 { get; set; } + public global::System.Collections.Generic.IList? Type994 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type995 { get; set; } + public global::OpenRouter.OneOf? Type995 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type996 { get; set; } + public global::OpenRouter.MessagesErrorDetail? Type996 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type997 { get; set; } + public global::OpenRouter.MessagesErrorResponseType? Type997 { get; set; } /// /// /// - public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type998 { get; set; } + public global::OpenRouter.MessagesErrorResponse? Type998 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type999 { get; set; } + public global::OpenRouter.ModelsGetParametersCategory? Type999 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1000 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type1000 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1001 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type1001 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1002 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1002 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1003 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1003 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1004 { get; set; } + public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1004 { get; set; } /// /// /// - public global::OpenRouter.ProvidersListProvidersResponse200? Type1005 { get; set; } + public global::System.Collections.Generic.IList? Type1005 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1006 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1006 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1007 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1007 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1008 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1008 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1009 { get; set; } + public global::System.Collections.Generic.IList? Type1009 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1010 { get; set; } + public global::OpenRouter.OneOf? Type1010 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankResponse200? Type1011 { get; set; } + public global::OpenRouter.ProvidersListProvidersResponse200? Type1011 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1012 { get; set; } + public global::System.Collections.Generic.IList? Type1012 { get; set; } /// /// /// - public global::OpenRouter.TtsPostRequestBodyContentApplicationJsonSchemaProviderOptions? Type1013 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1013 { get; set; } /// /// /// - public global::OpenRouter.TtsPostRequestBodyContentApplicationJsonSchemaProvider? Type1014 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1014 { get; set; } /// /// /// - public global::OpenRouter.TtsPostRequestBodyContentApplicationJsonSchemaResponseFormat? Type1015 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1015 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1016 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1016 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageImageUrl? Type1017 { get; set; } + public global::OpenRouter.RerankCreateRerankResponse200? Type1017 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageType? Type1018 { get; set; } + public global::System.Collections.Generic.IList? Type1018 { get; set; } /// /// /// - public global::OpenRouter.FrameImageFrameType? Type1019 { get; set; } + public global::OpenRouter.TtsPostRequestBodyContentApplicationJsonSchemaProviderOptions? Type1019 { get; set; } /// /// /// - public global::OpenRouter.FrameImage? Type1020 { get; set; } + public global::OpenRouter.TtsPostRequestBodyContentApplicationJsonSchemaProvider? Type1020 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImage? Type1021 { get; set; } + public global::OpenRouter.TtsPostRequestBodyContentApplicationJsonSchemaResponseFormat? Type1021 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1022 { get; set; } + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1022 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type1023 { get; set; } + public global::OpenRouter.ContentPartImageImageUrl? Type1023 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type1024 { get; set; } + public global::OpenRouter.ContentPartImageType? Type1024 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type1025 { get; set; } + public global::OpenRouter.FrameImageFrameType? Type1025 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1026 { get; set; } + public global::OpenRouter.FrameImage? Type1026 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1027 { get; set; } + public global::OpenRouter.ContentPartImage? Type1027 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type1028 { get; set; } + public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1028 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type1029 { get; set; } + public global::OpenRouter.VideoGenerationRequestProvider? Type1029 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type1030 { get; set; } + public global::OpenRouter.VideoGenerationRequestResolution? Type1030 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1031 { get; set; } + public global::OpenRouter.VideoGenerationRequest? Type1031 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1032 { get; set; } + public global::System.Collections.Generic.IList? Type1032 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1033 { get; set; } + public global::System.Collections.Generic.IList? Type1033 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSizesItems? Type1034 { get; set; } + public global::OpenRouter.VideoGenerationResponseStatus? Type1034 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type1035 { get; set; } + public global::OpenRouter.VideoGenerationUsage? Type1035 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1036 { get; set; } + public global::OpenRouter.VideoGenerationResponse? Type1036 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1037 { get; set; } + public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1037 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1038 { get; set; } + public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1038 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1039 { get; set; } + public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1039 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1040 { get; set; } + public global::OpenRouter.VideoModelSupportedSizesItems? Type1040 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type1041 { get; set; } + public global::OpenRouter.VideoModel? Type1041 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1042 { get; set; } + public global::System.Collections.Generic.IList? Type1042 { get; set; } /// /// /// - public global::OpenRouter.Workspace? Type1043 { get; set; } + public global::System.Collections.Generic.IList? Type1043 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspacesResponse? Type1044 { get; set; } + public global::System.Collections.Generic.IList? Type1044 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1045 { get; set; } + public global::System.Collections.Generic.IList? Type1045 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceRequest? Type1046 { get; set; } + public global::System.Collections.Generic.IList? Type1046 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponseData? Type1047 { get; set; } + public global::OpenRouter.VideoModelsListResponse? Type1047 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponse? Type1048 { get; set; } + public global::System.Collections.Generic.IList? Type1048 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponseData? Type1049 { get; set; } + public global::OpenRouter.Workspace? Type1049 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponse? Type1050 { get; set; } + public global::OpenRouter.ListWorkspacesResponse? Type1050 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceResponse? Type1051 { get; set; } + public global::System.Collections.Generic.IList? Type1051 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceRequest? Type1052 { get; set; } + public global::OpenRouter.CreateWorkspaceRequest? Type1052 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponseData? Type1053 { get; set; } + public global::OpenRouter.CreateWorkspaceResponseData? Type1053 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponse? Type1054 { get; set; } + public global::OpenRouter.CreateWorkspaceResponse? Type1054 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1055 { get; set; } + public global::OpenRouter.GetWorkspaceResponseData? Type1055 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMemberRole? Type1056 { get; set; } + public global::OpenRouter.GetWorkspaceResponse? Type1056 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMember? Type1057 { get; set; } + public global::OpenRouter.DeleteWorkspaceResponse? Type1057 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1058 { get; set; } + public global::OpenRouter.UpdateWorkspaceRequest? Type1058 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1059 { get; set; } + public global::OpenRouter.UpdateWorkspaceResponseData? Type1059 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1060 { get; set; } + public global::OpenRouter.UpdateWorkspaceResponse? Type1060 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1061 { get; set; } + public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1061 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1062 { get; set; } + public global::OpenRouter.WorkspaceMemberRole? Type1062 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1063 { get; set; } + public global::OpenRouter.WorkspaceMember? Type1063 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type1064 { get; set; } + public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1064 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type1065 { get; set; } + public global::System.Collections.Generic.IList? Type1065 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type1066 { get; set; } + public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1066 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1067 { get; set; } + public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1067 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type1068 { get; set; } + public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1068 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1069 { get; set; } + public global::OpenRouter.OneOf? Type1069 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type1070 { get; set; } + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1070 { get; set; } /// /// /// - public global::OpenRouter.CreateTtsRequest? Type1071 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequest? Type1071 { get; set; } /// /// /// - public byte[]? Type1072 { get; set; } + public global::OpenRouter.CreateKeysRequest? Type1072 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1073 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysRequest? Type1074 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1075 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankRequest? Type1076 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateTtsRequest? Type1077 { get; set; } + /// + /// + /// + public byte[]? Type1078 { get; set; } /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationsGetGenerationResponse200.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentData.Json.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationsGetGenerationResponse200.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentData.Json.g.cs index b343c6c2..86410559 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationsGetGenerationResponse200.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentData.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class GenerationsGetGenerationResponse200 + public sealed partial class GenerationContentData { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.GenerationsGetGenerationResponse200? FromJson( + public static global::OpenRouter.GenerationContentData? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.GenerationsGetGenerationResponse200), - jsonSerializerContext) as global::OpenRouter.GenerationsGetGenerationResponse200; + typeof(global::OpenRouter.GenerationContentData), + jsonSerializerContext) as global::OpenRouter.GenerationContentData; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.")] #endif - public static global::OpenRouter.GenerationsGetGenerationResponse200? FromJson( + public static global::OpenRouter.GenerationContentData? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.GenerationsGetGenerationResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationsGetGenerationResponse200; + typeof(global::OpenRouter.GenerationContentData), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationContentData; } /// @@ -80,11 +80,11 @@ public string ToJson( [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.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentData.g.cs new file mode 100644 index 00000000..616a3713 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentData.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Stored prompt and completion content + /// + public sealed partial class GenerationContentData + { + /// + /// The input to the generation — either a prompt string or an array of messages + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GenerationContentDataInputJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.GenerationContentDataInput Input { get; set; } + + /// + /// The output from the generation + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.GenerationContentDataOutput Output { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The input to the generation — either a prompt string or an array of messages + /// + /// + /// The output from the generation + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GenerationContentData( + global::OpenRouter.GenerationContentDataInput input, + global::OpenRouter.GenerationContentDataOutput output) + { + this.Input = input; + this.Output = output ?? throw new global::System.ArgumentNullException(nameof(output)); + } + + /// + /// Initializes a new instance of the class. + /// + public GenerationContentData() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput.Json.g.cs new file mode 100644 index 00000000..5c33d8d1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct GenerationContentDataInput + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GenerationContentDataInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GenerationContentDataInput), + jsonSerializerContext) as global::OpenRouter.GenerationContentDataInput?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::OpenRouter.GenerationContentDataInput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.GenerationContentDataInput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationContentDataInput?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput.g.cs new file mode 100644 index 00000000..93d81928 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput.g.cs @@ -0,0 +1,221 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// The input to the generation — either a prompt string or an array of messages + /// + public readonly partial struct GenerationContentDataInput : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GenerationContentDataInput0? GenerationContentDataInput0 { get; init; } +#else + public global::OpenRouter.GenerationContentDataInput0? GenerationContentDataInput0 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(GenerationContentDataInput0))] +#endif + public bool IsGenerationContentDataInput0 => GenerationContentDataInput0 != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GenerationContentDataInput1? GenerationContentDataInput1 { get; init; } +#else + public global::OpenRouter.GenerationContentDataInput1? GenerationContentDataInput1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(GenerationContentDataInput1))] +#endif + public bool IsGenerationContentDataInput1 => GenerationContentDataInput1 != null; + /// + /// + /// + public static implicit operator GenerationContentDataInput(global::OpenRouter.GenerationContentDataInput0 value) => new GenerationContentDataInput((global::OpenRouter.GenerationContentDataInput0?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GenerationContentDataInput0?(GenerationContentDataInput @this) => @this.GenerationContentDataInput0; + + /// + /// + /// + public GenerationContentDataInput(global::OpenRouter.GenerationContentDataInput0? value) + { + GenerationContentDataInput0 = value; + } + + /// + /// + /// + public static implicit operator GenerationContentDataInput(global::OpenRouter.GenerationContentDataInput1 value) => new GenerationContentDataInput((global::OpenRouter.GenerationContentDataInput1?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GenerationContentDataInput1?(GenerationContentDataInput @this) => @this.GenerationContentDataInput1; + + /// + /// + /// + public GenerationContentDataInput(global::OpenRouter.GenerationContentDataInput1? value) + { + GenerationContentDataInput1 = value; + } + + /// + /// + /// + public GenerationContentDataInput( + global::OpenRouter.GenerationContentDataInput0? generationContentDataInput0, + global::OpenRouter.GenerationContentDataInput1? generationContentDataInput1 + ) + { + GenerationContentDataInput0 = generationContentDataInput0; + GenerationContentDataInput1 = generationContentDataInput1; + } + + /// + /// + /// + public object? Object => + GenerationContentDataInput1 as object ?? + GenerationContentDataInput0 as object + ; + + /// + /// + /// + public override string? ToString() => + GenerationContentDataInput0?.ToString() ?? + GenerationContentDataInput1?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsGenerationContentDataInput0 && !IsGenerationContentDataInput1 || !IsGenerationContentDataInput0 && IsGenerationContentDataInput1; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? generationContentDataInput0 = null, + global::System.Func? generationContentDataInput1 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsGenerationContentDataInput0 && generationContentDataInput0 != null) + { + return generationContentDataInput0(GenerationContentDataInput0!); + } + else if (IsGenerationContentDataInput1 && generationContentDataInput1 != null) + { + return generationContentDataInput1(GenerationContentDataInput1!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? generationContentDataInput0 = null, + global::System.Action? generationContentDataInput1 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsGenerationContentDataInput0) + { + generationContentDataInput0?.Invoke(GenerationContentDataInput0!); + } + else if (IsGenerationContentDataInput1) + { + generationContentDataInput1?.Invoke(GenerationContentDataInput1!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + GenerationContentDataInput0, + typeof(global::OpenRouter.GenerationContentDataInput0), + GenerationContentDataInput1, + typeof(global::OpenRouter.GenerationContentDataInput1), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(GenerationContentDataInput other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(GenerationContentDataInput0, other.GenerationContentDataInput0) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(GenerationContentDataInput1, other.GenerationContentDataInput1) + ; + } + + /// + /// + /// + public static bool operator ==(GenerationContentDataInput obj1, GenerationContentDataInput obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(GenerationContentDataInput obj1, GenerationContentDataInput obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is GenerationContentDataInput o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput0.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput0.Json.g.cs new file mode 100644 index 00000000..3d2809d7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput0.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GenerationContentDataInput0 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GenerationContentDataInput0? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GenerationContentDataInput0), + jsonSerializerContext) as global::OpenRouter.GenerationContentDataInput0; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::OpenRouter.GenerationContentDataInput0? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.GenerationContentDataInput0), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationContentDataInput0; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput0.g.cs new file mode 100644 index 00000000..ba5b4781 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput0.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class GenerationContentDataInput0 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Prompt { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GenerationContentDataInput0( + string prompt) + { + this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); + } + + /// + /// Initializes a new instance of the class. + /// + public GenerationContentDataInput0() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1.Json.g.cs new file mode 100644 index 00000000..e38e6467 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GenerationContentDataInput1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GenerationContentDataInput1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GenerationContentDataInput1), + jsonSerializerContext) as global::OpenRouter.GenerationContentDataInput1; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::OpenRouter.GenerationContentDataInput1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.GenerationContentDataInput1), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationContentDataInput1; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1.g.cs new file mode 100644 index 00000000..e0d1216a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class GenerationContentDataInput1 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Messages { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GenerationContentDataInput1( + global::System.Collections.Generic.IList messages) + { + this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); + } + + /// + /// Initializes a new instance of the class. + /// + public GenerationContentDataInput1() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1Message.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1Message.Json.g.cs new file mode 100644 index 00000000..d6eacd24 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1Message.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GenerationContentDataInput1Message + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GenerationContentDataInput1Message? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GenerationContentDataInput1Message), + jsonSerializerContext) as global::OpenRouter.GenerationContentDataInput1Message; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::OpenRouter.GenerationContentDataInput1Message? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.GenerationContentDataInput1Message), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationContentDataInput1Message; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1Message.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1Message.g.cs new file mode 100644 index 00000000..e871b94a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataInput1Message.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class GenerationContentDataInput1Message + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaData.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataOutput.Json.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaData.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataOutput.Json.g.cs index 37551e00..e00bf020 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaData.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataOutput.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class GenerationGetResponsesContentApplicationJsonSchemaData + public sealed partial class GenerationContentDataOutput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData? FromJson( + public static global::OpenRouter.GenerationContentDataOutput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData), - jsonSerializerContext) as global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData; + typeof(global::OpenRouter.GenerationContentDataOutput), + jsonSerializerContext) as global::OpenRouter.GenerationContentDataOutput; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.")] #endif - public static global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData? FromJson( + public static global::OpenRouter.GenerationContentDataOutput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData; + typeof(global::OpenRouter.GenerationContentDataOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationContentDataOutput; } /// @@ -80,11 +80,11 @@ public string ToJson( [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.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataOutput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataOutput.g.cs new file mode 100644 index 00000000..1ee33ba5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentDataOutput.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// The output from the generation + /// + public sealed partial class GenerationContentDataOutput + { + /// + /// The completion output + /// + [global::System.Text.Json.Serialization.JsonPropertyName("completion")] + public string? Completion { get; set; } + + /// + /// Reasoning/thinking output, if any + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reasoning")] + public string? Reasoning { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The completion output + /// + /// + /// Reasoning/thinking output, if any + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GenerationContentDataOutput( + string? completion, + string? reasoning) + { + this.Completion = completion; + this.Reasoning = reasoning; + } + + /// + /// Initializes a new instance of the class. + /// + public GenerationContentDataOutput() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentResponse.Json.g.cs new file mode 100644 index 00000000..b227719d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GenerationContentResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GenerationContentResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GenerationContentResponse), + jsonSerializerContext) as global::OpenRouter.GenerationContentResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::OpenRouter.GenerationContentResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.GenerationContentResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationContentResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentResponse.g.cs new file mode 100644 index 00000000..145cab25 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationContentResponse.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Stored prompt and completion content for a generation + /// + public sealed partial class GenerationContentResponse + { + /// + /// Stored prompt and completion content + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.GenerationContentData Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Stored prompt and completion content + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GenerationContentResponse( + global::OpenRouter.GenerationContentData data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public GenerationContentResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs deleted file mode 100644 index 2d4d7c86..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Type of API used for the generation - /// - public enum GenerationGetResponsesContentApplicationJsonSchemaDataApiType - { - /// - /// - /// - Completions, - /// - /// - /// - Embeddings, - /// - /// - /// - Rerank, - /// - /// - /// - Tts, - /// - /// - /// - Video, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GenerationGetResponsesContentApplicationJsonSchemaDataApiTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GenerationGetResponsesContentApplicationJsonSchemaDataApiType value) - { - return value switch - { - GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Completions => "completions", - GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Embeddings => "embeddings", - GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Rerank => "rerank", - GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Tts => "tts", - GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Video => "video", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GenerationGetResponsesContentApplicationJsonSchemaDataApiType? ToEnum(string value) - { - return value switch - { - "completions" => GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Completions, - "embeddings" => GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Embeddings, - "rerank" => GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Rerank, - "tts" => GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Tts, - "video" => GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Video, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponse.Json.g.cs new file mode 100644 index 00000000..0b0eafc4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GenerationResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GenerationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GenerationResponse), + jsonSerializerContext) as global::OpenRouter.GenerationResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::OpenRouter.GenerationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.GenerationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationsGetGenerationResponse200.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponse.g.cs similarity index 72% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationsGetGenerationResponse200.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponse.g.cs index c70aecd3..10c9e757 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationsGetGenerationResponse200.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponse.g.cs @@ -6,14 +6,14 @@ namespace OpenRouter /// /// Generation response /// - public sealed partial class GenerationsGetGenerationResponse200 + public sealed partial class GenerationResponse { /// /// Generation data /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData Data { get; set; } + public required global::OpenRouter.GenerationResponseData Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,7 +22,7 @@ public sealed partial class GenerationsGetGenerationResponse200 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Generation data @@ -30,16 +30,16 @@ public sealed partial class GenerationsGetGenerationResponse200 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GenerationsGetGenerationResponse200( - global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData data) + public GenerationResponse( + global::OpenRouter.GenerationResponseData data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GenerationsGetGenerationResponse200() + public GenerationResponse() { } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.Json.g.cs new file mode 100644 index 00000000..c58d3b26 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GenerationResponseData + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GenerationResponseData? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GenerationResponseData), + jsonSerializerContext) as global::OpenRouter.GenerationResponseData; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::OpenRouter.GenerationResponseData? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.GenerationResponseData), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GenerationResponseData; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_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.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.g.cs similarity index 96% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaData.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.g.cs index d5eaaac4..a2d83acb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaData.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.g.cs @@ -6,15 +6,15 @@ namespace OpenRouter /// /// Generation data /// - public sealed partial class GenerationGetResponsesContentApplicationJsonSchemaData + public sealed partial class GenerationResponseData { /// /// Type of API used for the generation /// [global::System.Text.Json.Serialization.JsonPropertyName("api_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.OneOf ApiType { get; set; } + public required global::OpenRouter.OneOf ApiType { get; set; } /// /// ID of the app that made the request @@ -258,7 +258,7 @@ public sealed partial class GenerationGetResponsesContentApplicationJsonSchemaDa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Type of API used for the generation @@ -380,8 +380,8 @@ public sealed partial class GenerationGetResponsesContentApplicationJsonSchemaDa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GenerationGetResponsesContentApplicationJsonSchemaData( - global::OpenRouter.OneOf apiType, + public GenerationResponseData( + global::OpenRouter.OneOf apiType, string createdAt, string id, bool isByok, @@ -463,9 +463,9 @@ public GenerationGetResponsesContentApplicationJsonSchemaData( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GenerationGetResponsesContentApplicationJsonSchemaData() + public GenerationResponseData() { } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseDataApiType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseDataApiType.g.cs new file mode 100644 index 00000000..95c4f5e0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseDataApiType.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Type of API used for the generation + /// + public enum GenerationResponseDataApiType + { + /// + /// + /// + Completions, + /// + /// + /// + Embeddings, + /// + /// + /// + Rerank, + /// + /// + /// + Tts, + /// + /// + /// + Video, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GenerationResponseDataApiTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GenerationResponseDataApiType value) + { + return value switch + { + GenerationResponseDataApiType.Completions => "completions", + GenerationResponseDataApiType.Embeddings => "embeddings", + GenerationResponseDataApiType.Rerank => "rerank", + GenerationResponseDataApiType.Tts => "tts", + GenerationResponseDataApiType.Video => "video", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GenerationResponseDataApiType? ToEnum(string value) + { + return value switch + { + "completions" => GenerationResponseDataApiType.Completions, + "embeddings" => GenerationResponseDataApiType.Embeddings, + "rerank" => GenerationResponseDataApiType.Rerank, + "tts" => GenerationResponseDataApiType.Tts, + "video" => GenerationResponseDataApiType.Video, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageGenerationsClient.GetGeneration.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageGenerationsClient.GetGeneration.g.cs index 1c4ae7af..8cdd8ee8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageGenerationsClient.GetGeneration.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageGenerationsClient.GetGeneration.g.cs @@ -48,7 +48,7 @@ partial void ProcessGetGenerationResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetGenerationAsync( + public async global::System.Threading.Tasks.Task GetGenerationAsync( string id, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -539,7 +539,7 @@ partial void ProcessGetGenerationResponseContent( __response.EnsureSuccessStatusCode(); return - global::OpenRouter.GenerationsGetGenerationResponse200.FromJson(__content, JsonSerializerContext) ?? + global::OpenRouter.GenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -569,7 +569,7 @@ partial void ProcessGetGenerationResponseContent( ).ConfigureAwait(false); return - await global::OpenRouter.GenerationsGetGenerationResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::OpenRouter.GenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageGenerationsClient.ListGenerationContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageGenerationsClient.ListGenerationContent.g.cs new file mode 100644 index 00000000..4debb241 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageGenerationsClient.ListGenerationContent.g.cs @@ -0,0 +1,612 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageGenerationsClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_ListGenerationContentSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_ListGenerationContentSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_ListGenerationContentSecurityRequirement0, + }; + partial void PrepareListGenerationContentArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id); + partial void PrepareListGenerationContentRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id); + partial void ProcessListGenerationContentResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListGenerationContentResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get stored prompt and completion content for a generation + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListGenerationContentAsync( + string id, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListGenerationContentArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListGenerationContentSecurityRequirements, + operationName: "ListGenerationContentAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: "/generation/content", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddRequiredParameter("id", id) + ; + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListGenerationContentRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListGenerationContent", + methodName: "ListGenerationContentAsync", + pathTemplate: "\"/generation/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListGenerationContent", + methodName: "ListGenerationContentAsync", + pathTemplate: "\"/generation/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListGenerationContent", + methodName: "ListGenerationContentAsync", + pathTemplate: "\"/generation/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListGenerationContentResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListGenerationContent", + methodName: "ListGenerationContentAsync", + pathTemplate: "\"/generation/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListGenerationContent", + methodName: "ListGenerationContentAsync", + pathTemplate: "\"/generation/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + statusCode: __response.StatusCode) + { + ResponseBody = __content_403, + ResponseObject = __value_403, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + statusCode: __response.StatusCode) + { + ResponseBody = __content_404, + ResponseObject = __value_404, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Too Many Requests - Rate limit exceeded + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::OpenRouter.TooManyRequestsResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + statusCode: __response.StatusCode) + { + ResponseBody = __content_429, + ResponseObject = __value_429, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Bad Gateway - Provider/upstream API failure + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::OpenRouter.BadGatewayResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + statusCode: __response.StatusCode) + { + ResponseBody = __content_502, + ResponseObject = __value_502, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListGenerationContentResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::OpenRouter.GenerationContentResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return + await global::OpenRouter.GenerationContentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index 9ef8f37f..e14db278 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -945,7 +945,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Generations_getGeneration_Response_200" + "$ref": "#/components/schemas/GenerationResponse" } } } @@ -1013,6 +1013,98 @@ } } }, + "/generation/content": { + "get": { + "operationId": "list-generation-content", + "summary": "Get stored prompt and completion content for a generation", + "tags": [ + "subpackage_generations" + ], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "The generation ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Returns the stored prompt and completion content", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerationContentResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "403": { + "description": "Forbidden - Authentication successful but insufficient permissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests - Rate limit exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TooManyRequestsResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + }, + "502": { + "description": "Bad Gateway - Provider/upstream API failure", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadGatewayResponse" + } + } + } + } + } + } + }, "/guardrails": { "get": { "operationId": "list-guardrails", @@ -14265,7 +14357,7 @@ ], "title": "Endpoints_listEndpoints_Response_200" }, - "GenerationGetResponsesContentApplicationJsonSchemaDataApiType": { + "GenerationResponseDataApiType": { "type": "string", "enum": [ "completions", @@ -14275,7 +14367,7 @@ "video" ], "description": "Type of API used for the generation", - "title": "GenerationGetResponsesContentApplicationJsonSchemaDataApiType" + "title": "GenerationResponseDataApiType" }, "ProviderResponseProviderName": { "type": "string", @@ -14434,13 +14526,13 @@ "description": "Details of a provider response for a generation attempt", "title": "ProviderResponse" }, - "GenerationGetResponsesContentApplicationJsonSchemaData": { + "GenerationResponseData": { "type": "object", "properties": { "api_type": { "oneOf": [ { - "$ref": "#/components/schemas/GenerationGetResponsesContentApplicationJsonSchemaDataApiType" + "$ref": "#/components/schemas/GenerationResponseDataApiType" }, { "type": "null" @@ -14744,13 +14836,13 @@ "web_search_engine" ], "description": "Generation data", - "title": "GenerationGetResponsesContentApplicationJsonSchemaData" + "title": "GenerationResponseData" }, - "Generations_getGeneration_Response_200": { + "GenerationResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/GenerationGetResponsesContentApplicationJsonSchemaData", + "$ref": "#/components/schemas/GenerationResponseData", "description": "Generation data" } }, @@ -14758,7 +14850,103 @@ "data" ], "description": "Generation response", - "title": "Generations_getGeneration_Response_200" + "title": "GenerationResponse" + }, + "GenerationContentDataInput0": { + "type": "object", + "properties": { + "prompt": { + "type": "string" + } + }, + "required": [ + "prompt" + ], + "title": "GenerationContentDataInput0" + }, + "GenerationContentDataInput1": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "items": { + "description": "Any type" + } + } + }, + "required": [ + "messages" + ], + "title": "GenerationContentDataInput1" + }, + "GenerationContentDataInput": { + "oneOf": [ + { + "$ref": "#/components/schemas/GenerationContentDataInput0" + }, + { + "$ref": "#/components/schemas/GenerationContentDataInput1" + } + ], + "description": "The input to the generation — either a prompt string or an array of messages", + "title": "GenerationContentDataInput" + }, + "GenerationContentDataOutput": { + "type": "object", + "properties": { + "completion": { + "type": [ + "string", + "null" + ], + "description": "The completion output" + }, + "reasoning": { + "type": [ + "string", + "null" + ], + "description": "Reasoning/thinking output, if any" + } + }, + "required": [ + "completion", + "reasoning" + ], + "description": "The output from the generation", + "title": "GenerationContentDataOutput" + }, + "GenerationContentData": { + "type": "object", + "properties": { + "input": { + "$ref": "#/components/schemas/GenerationContentDataInput", + "description": "The input to the generation — either a prompt string or an array of messages" + }, + "output": { + "$ref": "#/components/schemas/GenerationContentDataOutput", + "description": "The output from the generation" + } + }, + "required": [ + "input", + "output" + ], + "description": "Stored prompt and completion content", + "title": "GenerationContentData" + }, + "GenerationContentResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/GenerationContentData" + } + }, + "required": [ + "data" + ], + "description": "Stored prompt and completion content for a generation", + "title": "GenerationContentResponse" }, "GuardrailInterval": { "type": "string",