From a4c6e8be3650a8b01f49fc52f122d539512ffe7a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 15 Apr 2026 21:57:45 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...onConverters.AnthropicThinkingDisplay.g.cs | 53 ++ ...ters.AnthropicThinkingDisplayNullable.g.cs | 60 +++ ...sonConverters.MessagesRequestThinking.g.cs | 2 + .../OpenRouter.JsonSerializerContext.g.cs | 12 + ...OpenRouter.JsonSerializerContextTypes.g.cs | 500 +++++++++--------- ...outer.Models.AnthropicThinkingDisplay.g.cs | 51 ++ ...outer.Models.MessagesRequestThinking0.g.cs | 10 + ...outer.Models.MessagesRequestThinking2.g.cs | 10 + .../OpenRouter.Models.MessagesResult.g.cs | 10 + ....MessagesResultContextManagement.Json.g.cs | 92 ++++ ...odels.MessagesResultContextManagement.g.cs | 44 ++ ...ntextManagementAppliedEditsItems.Json.g.cs | 92 ++++ ...ultContextManagementAppliedEditsItems.g.cs | 44 ++ src/libs/OpenRouter/openapi.yaml | 51 ++ 14 files changed, 793 insertions(+), 238 deletions(-) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicThinkingDisplay.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicThinkingDisplayNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicThinkingDisplay.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagement.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagement.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagementAppliedEditsItems.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagementAppliedEditsItems.g.cs diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicThinkingDisplay.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicThinkingDisplay.g.cs new file mode 100644 index 00000000..727fbf2a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicThinkingDisplay.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AnthropicThinkingDisplayJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AnthropicThinkingDisplay Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.AnthropicThinkingDisplayExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AnthropicThinkingDisplay)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AnthropicThinkingDisplay); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AnthropicThinkingDisplay value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.AnthropicThinkingDisplayExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicThinkingDisplayNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicThinkingDisplayNullable.g.cs new file mode 100644 index 00000000..21df1630 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicThinkingDisplayNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AnthropicThinkingDisplayNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AnthropicThinkingDisplay? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.AnthropicThinkingDisplayExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AnthropicThinkingDisplay)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AnthropicThinkingDisplay?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AnthropicThinkingDisplay? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.AnthropicThinkingDisplayExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestThinking.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestThinking.g.cs index 9fcca33c..edc5574d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestThinking.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestThinking.g.cs @@ -28,10 +28,12 @@ public class MessagesRequestThinkingJsonConverter : global::System.Text.Json.Ser var __score0 = 0; if (__jsonProps.Contains("budget_tokens")) __score0++; + if (__jsonProps.Contains("display")) __score0++; if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; if (__jsonProps.Contains("type")) __score1++; var __score2 = 0; + if (__jsonProps.Contains("display")) __score2++; if (__jsonProps.Contains("type")) __score2++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index f307bb15..e160e7c6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -1081,6 +1081,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.MessagesRequestServiceTierNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestThinkingOneOf0TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestThinkingOneOf0TypeNullableJsonConverter), @@ -1665,6 +1669,8 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), @@ -2490,6 +2496,7 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestServiceTier), TypeInfoPropertyName = "MessagesRequestServiceTier2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestSpeed))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestSystem), TypeInfoPropertyName = "MessagesRequestSystem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicThinkingDisplay), TypeInfoPropertyName = "AnthropicThinkingDisplay2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinkingOneOf0Type), TypeInfoPropertyName = "MessagesRequestThinkingOneOf0Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinking0))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinkingOneOf1Type), TypeInfoPropertyName = "MessagesRequestThinkingOneOf1Type2")] @@ -2650,11 +2657,15 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSpeed), TypeInfoPropertyName = "AnthropicSpeed2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseMessagesResultUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultContextManagementAppliedEditsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultContextManagement))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultUsageCostDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesResultUsageCostDetailsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesResultContextManagementObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorResponseType), TypeInfoPropertyName = "MessagesErrorResponseType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorResponse))] @@ -2793,6 +2804,7 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index 1307c467..6ce43cfb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -3276,903 +3276,923 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type812 { get; set; } + public global::OpenRouter.AnthropicThinkingDisplay? Type812 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking0? Type813 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type813 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type814 { get; set; } + public global::OpenRouter.MessagesRequestThinking0? Type814 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking1? Type815 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type815 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type816 { get; set; } + public global::OpenRouter.MessagesRequestThinking1? Type816 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking2? Type817 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type817 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking? Type818 { get; set; } + public global::OpenRouter.MessagesRequestThinking2? Type818 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type819 { get; set; } + public global::OpenRouter.MessagesRequestThinking? Type819 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice0? Type820 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type820 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type821 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice0? Type821 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice1? Type822 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type822 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type823 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice1? Type823 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice2? Type824 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type824 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type825 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice2? Type825 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice3? Type826 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type826 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice? Type827 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice3? Type827 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type828 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice? Type828 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type829 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type829 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems0? Type830 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type830 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type831 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems0? Type831 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type832 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type832 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems1? Type833 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type833 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type834 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems1? Type834 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type835 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type835 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems2? Type836 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type836 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type837 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems2? Type837 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type838 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type838 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type839 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type839 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type840 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type840 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems3? Type841 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type841 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4AllowedCallersItems? Type842 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems3? Type842 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type843 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4AllowedCallersItems? Type843 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type844 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type844 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems4? Type845 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type845 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type846 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems4? Type846 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems? Type847 { get; set; } + public global::System.Collections.Generic.IList? Type847 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type848 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems? Type848 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type849 { get; set; } + public global::OpenRouter.MessagesRequest? Type849 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type850 { get; set; } + public global::OpenRouter.OneOf? Type850 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type851 { get; set; } + public global::System.Collections.Generic.IList? Type851 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type852 { get; set; } + public global::System.Collections.Generic.IList? Type852 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainer? Type853 { get; set; } + public global::System.Collections.Generic.IList? Type853 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocationType? Type854 { get; set; } + public global::OpenRouter.AnthropicContainer? Type854 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocation? Type855 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocationType? Type855 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocationType? Type856 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocation? Type856 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocation? Type857 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocationType? Type857 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocationType? Type858 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocation? Type858 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocation? Type859 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocationType? Type859 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitation? Type860 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocation? Type860 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockType? Type861 { get; set; } + public global::OpenRouter.AnthropicTextCitation? Type861 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlock? Type862 { get; set; } + public global::OpenRouter.AnthropicTextBlockType? Type862 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type863 { get; set; } + public global::OpenRouter.AnthropicTextBlock? Type863 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDirectCallerType? Type864 { get; set; } + public global::System.Collections.Generic.IList? Type864 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDirectCaller? Type865 { get; set; } + public global::OpenRouter.AnthropicDirectCallerType? Type865 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20250825CallerType? Type866 { get; set; } + public global::OpenRouter.AnthropicDirectCaller? Type866 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20250825Caller? Type867 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20250825CallerType? Type867 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20260120CallerType? Type868 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20250825Caller? Type868 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20260120Caller? Type869 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20260120CallerType? Type869 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCaller? Type870 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20260120Caller? Type870 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUseBlockType? Type871 { get; set; } + public global::OpenRouter.AnthropicCaller? Type871 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUseBlock? Type872 { get; set; } + public global::OpenRouter.AnthropicToolUseBlockType? Type872 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingBlockType? Type873 { get; set; } + public global::OpenRouter.AnthropicToolUseBlock? Type873 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingBlock? Type874 { get; set; } + public global::OpenRouter.AnthropicThinkingBlockType? Type874 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRedactedThinkingBlockType? Type875 { get; set; } + public global::OpenRouter.AnthropicThinkingBlock? Type875 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRedactedThinkingBlock? Type876 { get; set; } + public global::OpenRouter.AnthropicRedactedThinkingBlockType? Type876 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUseBlockType? Type877 { get; set; } + public global::OpenRouter.AnthropicRedactedThinkingBlock? Type877 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUseBlock? Type878 { get; set; } + public global::OpenRouter.AnthropicServerToolUseBlockType? Type878 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultType? Type879 { get; set; } + public global::OpenRouter.AnthropicServerToolUseBlock? Type879 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResult? Type880 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultType? Type880 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type881 { get; set; } + public global::OpenRouter.AnthropicWebSearchResult? Type881 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type882 { get; set; } + public global::System.Collections.Generic.IList? Type882 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type883 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type883 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultError? Type884 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type884 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultContent? Type885 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultError? Type885 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultType? Type886 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultContent? Type886 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResult? Type887 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultType? Type887 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type888 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResult? Type888 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type889 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type889 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultError? Type890 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type890 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationsConfig? Type891 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultError? Type891 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockSource? Type892 { get; set; } + public global::OpenRouter.AnthropicCitationsConfig? Type892 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockType? Type893 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockSource? Type893 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlock? Type894 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockType? Type894 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchBlockType? Type895 { get; set; } + public global::OpenRouter.AnthropicDocumentBlock? Type895 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchBlock? Type896 { get; set; } + public global::OpenRouter.AnthropicWebFetchBlockType? Type896 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContent? Type897 { get; set; } + public global::OpenRouter.AnthropicWebFetchBlock? Type897 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultType? Type898 { get; set; } + public global::OpenRouter.AnthropicWebFetchContent? Type898 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResult? Type899 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultType? Type899 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolErrorCode? Type900 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResult? Type900 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type901 { get; set; } + public global::OpenRouter.AnthropicServerToolErrorCode? Type901 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultError? Type902 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type902 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutputType? Type903 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultError? Type903 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutput? Type904 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutputType? Type904 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResultType? Type905 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutput? Type905 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResult? Type906 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResultType? Type906 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type907 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResult? Type907 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type908 { get; set; } + public global::System.Collections.Generic.IList? Type908 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResult? Type909 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type909 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContent? Type910 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResult? Type910 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultType? Type911 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContent? Type911 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResult? Type912 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultType? Type912 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type913 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResult? Type913 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type914 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type914 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultError? Type915 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type915 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type916 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultError? Type916 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type917 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type917 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type918 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type918 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResult? Type919 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type919 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type920 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResult? Type920 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContent? Type921 { get; set; } + public global::System.Collections.Generic.IList? Type921 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultType? Type922 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContent? Type922 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResult? Type923 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultType? Type923 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type924 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResult? Type924 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type925 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type925 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultError? Type926 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type926 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type927 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultError? Type927 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type928 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type928 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResult? Type929 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type929 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type930 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResult? Type930 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResult? Type931 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type931 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type932 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResult? Type932 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResult? Type933 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type933 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type934 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResult? Type934 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultType? Type935 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type935 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResult? Type936 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultType? Type936 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultErrorType? Type937 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResult? Type937 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultError? Type938 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultErrorType? Type938 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReferenceType? Type939 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultError? Type939 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReference? Type940 { get; set; } + public global::OpenRouter.AnthropicToolReferenceType? Type940 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultType? Type941 { get; set; } + public global::OpenRouter.AnthropicToolReference? Type941 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResult? Type942 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultType? Type942 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type943 { get; set; } + public global::OpenRouter.AnthropicToolSearchResult? Type943 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContent? Type944 { get; set; } + public global::System.Collections.Generic.IList? Type944 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchToolResultType? Type945 { get; set; } + public global::OpenRouter.AnthropicToolSearchContent? Type945 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchToolResult? Type946 { get; set; } + public global::OpenRouter.AnthropicToolSearchToolResultType? Type946 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainerUploadType? Type947 { get; set; } + public global::OpenRouter.AnthropicToolSearchToolResult? Type947 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainerUpload? Type948 { get; set; } + public global::OpenRouter.AnthropicContainerUploadType? Type948 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionBlockType? Type949 { get; set; } + public global::OpenRouter.AnthropicContainerUpload? Type949 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionBlock? Type950 { get; set; } + public global::OpenRouter.AnthropicCompactionBlockType? Type950 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlock? Type951 { get; set; } + public global::OpenRouter.AnthropicCompactionBlock? Type951 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultRole? Type952 { get; set; } + public global::OpenRouter.ORAnthropicContentBlock? Type952 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type953 { get; set; } + public global::OpenRouter.BaseMessagesResultRole? Type953 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsType? Type954 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type954 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetails? Type955 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsType? Type955 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type956 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetails? Type956 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicStopReason? Type957 { get; set; } + public global::OpenRouter.OneOf? Type957 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultType? Type958 { get; set; } + public global::OpenRouter.ORAnthropicStopReason? Type958 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheCreation? Type959 { get; set; } + public global::OpenRouter.BaseMessagesResultType? Type959 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUsage? Type960 { get; set; } + public global::OpenRouter.AnthropicCacheCreation? Type960 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServiceTier? Type961 { get; set; } + public global::OpenRouter.AnthropicServerToolUsage? Type961 { get; set; } /// /// /// - public global::OpenRouter.AnthropicIterationCacheCreation? Type962 { get; set; } + public global::OpenRouter.AnthropicServiceTier? Type962 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIterationType? Type963 { get; set; } + public global::OpenRouter.AnthropicIterationCacheCreation? Type963 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIteration? Type964 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIterationType? Type964 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIterationType? Type965 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIteration? Type965 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIteration? Type966 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIterationType? Type966 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUnknownUsageIteration? Type967 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIteration? Type967 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUsageIteration? Type968 { get; set; } + public global::OpenRouter.AnthropicUnknownUsageIteration? Type968 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSpeed? Type969 { get; set; } + public global::OpenRouter.AnthropicUsageIteration? Type969 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultUsage? Type970 { get; set; } + public global::OpenRouter.AnthropicSpeed? Type970 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type971 { get; set; } + public global::OpenRouter.BaseMessagesResultUsage? Type971 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsageCostDetails? Type972 { get; set; } + public global::System.Collections.Generic.IList? Type972 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsage? Type973 { get; set; } + public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type973 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type974 { get; set; } + public global::OpenRouter.MessagesResultContextManagement? Type974 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type975 { get; set; } + public global::System.Collections.Generic.IList? Type975 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type976 { get; set; } + public global::OpenRouter.MessagesResultUsageCostDetails? Type976 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorDetail? Type977 { get; set; } + public global::OpenRouter.MessagesResultUsage? Type977 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponseType? Type978 { get; set; } + public global::OpenRouter.OneOf? Type978 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponse? Type979 { get; set; } + public global::OpenRouter.MessagesResult? Type979 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersCategory? Type980 { get; set; } + public global::System.Collections.Generic.IList? Type980 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type981 { get; set; } + public global::OpenRouter.OneOf? Type981 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type982 { get; set; } + public global::OpenRouter.MessagesErrorDetail? Type982 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type983 { get; set; } + public global::OpenRouter.MessagesErrorResponseType? Type983 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type984 { get; set; } + public global::OpenRouter.MessagesErrorResponse? Type984 { get; set; } /// /// /// - public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type985 { get; set; } + public global::OpenRouter.ModelsGetParametersCategory? Type985 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type986 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type986 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type987 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type987 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type988 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type988 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type989 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type989 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type990 { get; set; } + public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type990 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type991 { get; set; } + public global::System.Collections.Generic.IList? Type991 { get; set; } /// /// /// - public global::OpenRouter.ProvidersListProvidersResponse200? Type992 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type992 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type993 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type993 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type994 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type994 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type995 { get; set; } + public global::System.Collections.Generic.IList? Type995 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type996 { get; set; } + public global::OpenRouter.OneOf? Type996 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type997 { get; set; } + public global::OpenRouter.ProvidersListProvidersResponse200? Type997 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankResponse200? Type998 { get; set; } + public global::System.Collections.Generic.IList? Type998 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type999 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type999 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1000 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1000 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageImageUrl? Type1001 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1001 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageType? Type1002 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1002 { get; set; } /// /// /// - public global::OpenRouter.FrameImageFrameType? Type1003 { get; set; } + public global::OpenRouter.RerankCreateRerankResponse200? Type1003 { get; set; } /// /// /// - public global::OpenRouter.FrameImage? Type1004 { get; set; } + public global::System.Collections.Generic.IList? Type1004 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImage? Type1005 { get; set; } + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1005 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1006 { get; set; } + public global::OpenRouter.ContentPartImageImageUrl? Type1006 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type1007 { get; set; } + public global::OpenRouter.ContentPartImageType? Type1007 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type1008 { get; set; } + public global::OpenRouter.FrameImageFrameType? Type1008 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type1009 { get; set; } + public global::OpenRouter.FrameImage? Type1009 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1010 { get; set; } + public global::OpenRouter.ContentPartImage? Type1010 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1011 { get; set; } + public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1011 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type1012 { get; set; } + public global::OpenRouter.VideoGenerationRequestProvider? Type1012 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type1013 { get; set; } + public global::OpenRouter.VideoGenerationRequestResolution? Type1013 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type1014 { get; set; } + public global::OpenRouter.VideoGenerationRequest? Type1014 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1015 { get; set; } + public global::System.Collections.Generic.IList? Type1015 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1016 { get; set; } + public global::System.Collections.Generic.IList? Type1016 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1017 { get; set; } + public global::OpenRouter.VideoGenerationResponseStatus? Type1017 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSizesItems? Type1018 { get; set; } + public global::OpenRouter.VideoGenerationUsage? Type1018 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type1019 { get; set; } + public global::OpenRouter.VideoGenerationResponse? Type1019 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1020 { get; set; } + public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1020 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1021 { get; set; } + public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1021 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1022 { get; set; } + public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1022 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1023 { get; set; } + public global::OpenRouter.VideoModelSupportedSizesItems? Type1023 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1024 { get; set; } + public global::OpenRouter.VideoModel? Type1024 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type1025 { get; set; } + public global::System.Collections.Generic.IList? Type1025 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1026 { get; set; } + public global::System.Collections.Generic.IList? Type1026 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1027 { get; set; } + public global::System.Collections.Generic.IList? Type1027 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1028 { get; set; } + public global::System.Collections.Generic.IList? Type1028 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type1029 { get; set; } + public global::System.Collections.Generic.IList? Type1029 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type1030 { get; set; } + public global::OpenRouter.VideoModelsListResponse? Type1030 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type1031 { get; set; } + public global::System.Collections.Generic.IList? Type1031 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1032 { get; set; } + public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1032 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type1033 { get; set; } + public global::OpenRouter.OneOf? Type1033 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1034 { get; set; } + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1034 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type1035 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequest? Type1035 { get; set; } /// /// /// - public byte[]? Type1036 { get; set; } + public global::OpenRouter.CreateKeysRequest? Type1036 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1037 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysRequest? Type1038 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1039 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankRequest? Type1040 { get; set; } + /// + /// + /// + public byte[]? Type1041 { get; set; } /// /// @@ -4489,54 +4509,58 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicThinkingDisplay.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicThinkingDisplay.g.cs new file mode 100644 index 00000000..167c7cbb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicThinkingDisplay.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum AnthropicThinkingDisplay + { + /// + /// + /// + Omitted, + /// + /// + /// + Summarized, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AnthropicThinkingDisplayExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AnthropicThinkingDisplay value) + { + return value switch + { + AnthropicThinkingDisplay.Omitted => "omitted", + AnthropicThinkingDisplay.Summarized => "summarized", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AnthropicThinkingDisplay? ToEnum(string value) + { + return value switch + { + "omitted" => AnthropicThinkingDisplay.Omitted, + "summarized" => AnthropicThinkingDisplay.Summarized, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestThinking0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestThinking0.g.cs index 1aa5c93f..5382df3a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestThinking0.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestThinking0.g.cs @@ -15,6 +15,13 @@ public sealed partial class MessagesRequestThinking0 [global::System.Text.Json.Serialization.JsonRequired] public required int BudgetTokens { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("display")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayJsonConverter))] + public global::OpenRouter.AnthropicThinkingDisplay? Display { get; set; } + /// /// /// @@ -32,15 +39,18 @@ public sealed partial class MessagesRequestThinking0 /// Initializes a new instance of the class. /// /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesRequestThinking0( int budgetTokens, + global::OpenRouter.AnthropicThinkingDisplay? display, global::OpenRouter.MessagesRequestThinkingOneOf0Type type) { this.BudgetTokens = budgetTokens; + this.Display = display; this.Type = type; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestThinking2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestThinking2.g.cs index fdda1565..7126469d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestThinking2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestThinking2.g.cs @@ -8,6 +8,13 @@ namespace OpenRouter /// public sealed partial class MessagesRequestThinking2 { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("display")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayJsonConverter))] + public global::OpenRouter.AnthropicThinkingDisplay? Display { get; set; } + /// /// /// @@ -24,13 +31,16 @@ public sealed partial class MessagesRequestThinking2 /// /// Initializes a new instance of the class. /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesRequestThinking2( + global::OpenRouter.AnthropicThinkingDisplay? display, global::OpenRouter.MessagesRequestThinkingOneOf2Type type) { + this.Display = display; this.Type = type; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResult.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResult.g.cs index 6637a764..67f6af1d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResult.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResult.g.cs @@ -78,6 +78,13 @@ public sealed partial class MessagesResult [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.MessagesResultUsage Usage { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("context_management")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? ContextManagement { get; set; } + /// /// /// @@ -106,6 +113,7 @@ public sealed partial class MessagesResult /// /// /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -121,6 +129,7 @@ public MessagesResult( global::OpenRouter.BaseMessagesResultRole role, string? stopSequence, global::OpenRouter.BaseMessagesResultType type, + global::OpenRouter.OneOf? contextManagement, global::OpenRouter.ProviderName? provider) { this.Container = container ?? throw new global::System.ArgumentNullException(nameof(container)); @@ -133,6 +142,7 @@ public MessagesResult( this.StopSequence = stopSequence; this.Type = type; this.Usage = usage ?? throw new global::System.ArgumentNullException(nameof(usage)); + this.ContextManagement = contextManagement; this.Provider = provider; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagement.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagement.Json.g.cs new file mode 100644 index 00000000..f5593224 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagement.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class MessagesResultContextManagement + { + /// + /// 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.MessagesResultContextManagement? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.MessagesResultContextManagement), + jsonSerializerContext) as global::OpenRouter.MessagesResultContextManagement; + } + + /// + /// 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.MessagesResultContextManagement? 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.MessagesResultContextManagement), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.MessagesResultContextManagement; + } + + /// + /// 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.MessagesResultContextManagement.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagement.g.cs new file mode 100644 index 00000000..1bacb426 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagement.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class MessagesResultContextManagement + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("applied_edits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList AppliedEdits { 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 MessagesResultContextManagement( + global::System.Collections.Generic.IList appliedEdits) + { + this.AppliedEdits = appliedEdits ?? throw new global::System.ArgumentNullException(nameof(appliedEdits)); + } + + /// + /// Initializes a new instance of the class. + /// + public MessagesResultContextManagement() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagementAppliedEditsItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagementAppliedEditsItems.Json.g.cs new file mode 100644 index 00000000..8d7567a2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagementAppliedEditsItems.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class MessagesResultContextManagementAppliedEditsItems + { + /// + /// 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.MessagesResultContextManagementAppliedEditsItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.MessagesResultContextManagementAppliedEditsItems), + jsonSerializerContext) as global::OpenRouter.MessagesResultContextManagementAppliedEditsItems; + } + + /// + /// 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.MessagesResultContextManagementAppliedEditsItems? 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.MessagesResultContextManagementAppliedEditsItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.MessagesResultContextManagementAppliedEditsItems; + } + + /// + /// 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.MessagesResultContextManagementAppliedEditsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagementAppliedEditsItems.g.cs new file mode 100644 index 00000000..1e791158 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesResultContextManagementAppliedEditsItems.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class MessagesResultContextManagementAppliedEditsItems + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { 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 MessagesResultContextManagementAppliedEditsItems( + string type) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + } + + /// + /// Initializes a new instance of the class. + /// + public MessagesResultContextManagementAppliedEditsItems() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index 3d00662b..9122029d 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -17169,6 +17169,14 @@ ], "title": "MessagesRequestSystem" }, + "AnthropicThinkingDisplay": { + "type": "string", + "enum": [ + "summarized", + "omitted" + ], + "title": "AnthropicThinkingDisplay" + }, "MessagesRequestThinkingOneOf0Type": { "type": "string", "enum": [ @@ -17182,6 +17190,9 @@ "budget_tokens": { "type": "integer" }, + "display": { + "$ref": "#/components/schemas/AnthropicThinkingDisplay" + }, "type": { "$ref": "#/components/schemas/MessagesRequestThinkingOneOf0Type" } @@ -17221,6 +17232,9 @@ "MessagesRequestThinking2": { "type": "object", "properties": { + "display": { + "$ref": "#/components/schemas/AnthropicThinkingDisplay" + }, "type": { "$ref": "#/components/schemas/MessagesRequestThinkingOneOf2Type" } @@ -19561,6 +19575,33 @@ ], "title": "BaseMessagesResultUsage" }, + "MessagesResultContextManagementAppliedEditsItems": { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "MessagesResultContextManagementAppliedEditsItems" + }, + "MessagesResultContextManagement": { + "type": "object", + "properties": { + "applied_edits": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessagesResultContextManagementAppliedEditsItems" + } + } + }, + "required": [ + "applied_edits" + ], + "title": "MessagesResultContextManagement" + }, "MessagesResultUsageCostDetails": { "type": "object", "properties": { @@ -19706,6 +19747,16 @@ "usage": { "$ref": "#/components/schemas/MessagesResultUsage" }, + "context_management": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesResultContextManagement" + }, + { + "type": "null" + } + ] + }, "provider": { "$ref": "#/components/schemas/ProviderName" }